From 8db260b84780abb8a9d879f38dd12009ca60a0a2 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 7 Jun 2023 06:05:59 +0000 Subject: [PATCH] CodeGen from PR 24108 in Azure/azure-rest-api-specs Merge c1cd761d4105b54fa095ec983c5b37a588daccbc into aa87b5f458e20d7aa4e84c9c44ce3e0f5ec6dcf5 --- common/config/rush/pnpm-lock.yaml | 72 +- sdk/sql/arm-sql/CHANGELOG.md | 208 + sdk/sql/arm-sql/README.md | 2 +- sdk/sql/arm-sql/_meta.json | 6 +- sdk/sql/arm-sql/package.json | 16 +- sdk/sql/arm-sql/review/arm-sql.api.md | 989 +- sdk/sql/arm-sql/src/models/index.ts | 18189 ++++++++-------- sdk/sql/arm-sql/src/models/mappers.ts | 15821 +++++++------- sdk/sql/arm-sql/src/models/parameters.ts | 1914 +- .../backupShortTermRetentionPolicies.ts | 110 +- .../arm-sql/src/operations/capabilities.ts | 2 +- .../src/operations/dataMaskingPolicies.ts | 81 +- .../src/operations/dataMaskingRules.ts | 147 +- .../dataWarehouseUserActivitiesOperations.ts | 66 +- ...atabaseAdvancedThreatProtectionSettings.ts | 20 +- .../src/operations/databaseAdvisors.ts | 18 +- .../databaseAutomaticTuningOperations.ts | 16 +- .../databaseBlobAuditingPolicies.ts | 20 +- .../arm-sql/src/operations/databaseColumns.ts | 18 +- .../databaseEncryptionProtectors.ts | 8 +- .../databaseExtensionsOperations.ts | 100 +- .../src/operations/databaseOperations.ts | 68 +- .../operations/databaseRecommendedActions.ts | 16 +- .../arm-sql/src/operations/databaseSchemas.ts | 12 +- .../databaseSecurityAlertPolicies.ts | 90 +- ...baseSqlVulnerabilityAssessmentBaselines.ts | 22 +- ...seSqlVulnerabilityAssessmentExecuteScan.ts | 4 +- ...SqlVulnerabilityAssessmentRuleBaselines.ts | 38 +- ...aseSqlVulnerabilityAssessmentScanResult.ts | 20 +- ...databaseSqlVulnerabilityAssessmentScans.ts | 10 +- ...baseSqlVulnerabilityAssessmentsSettings.ts | 12 +- .../arm-sql/src/operations/databaseTables.ts | 10 +- .../arm-sql/src/operations/databaseUsages.ts | 8 +- ...aseVulnerabilityAssessmentRuleBaselines.ts | 20 +- .../databaseVulnerabilityAssessmentScans.ts | 230 +- .../databaseVulnerabilityAssessments.ts | 100 +- sdk/sql/arm-sql/src/operations/databases.ts | 358 +- .../arm-sql/src/operations/deletedServers.ts | 54 +- .../distributedAvailabilityGroups.ts | 177 +- .../src/operations/elasticPoolActivities.ts | 151 - .../elasticPoolDatabaseActivities.ts | 152 - .../src/operations/elasticPoolOperations.ts | 70 +- .../arm-sql/src/operations/elasticPools.ts | 291 +- .../src/operations/encryptionProtectors.ts | 24 +- .../src/operations/endpointCertificates.ts | 10 +- .../extendedDatabaseBlobAuditingPolicies.ts | 20 +- .../extendedServerBlobAuditingPolicies.ts | 20 +- .../arm-sql/src/operations/failoverGroups.ts | 224 +- .../arm-sql/src/operations/firewallRules.ts | 170 +- .../src/operations/geoBackupPolicies.ts | 195 +- .../src/operations/iPv6FirewallRules.ts | 24 +- sdk/sql/arm-sql/src/operations/index.ts | 137 +- .../src/operations/instanceFailoverGroups.ts | 30 +- .../arm-sql/src/operations/instancePools.ts | 258 +- sdk/sql/arm-sql/src/operations/jobAgents.ts | 32 +- .../arm-sql/src/operations/jobCredentials.ts | 22 +- .../arm-sql/src/operations/jobExecutions.ts | 272 +- .../src/operations/jobStepExecutions.ts | 10 +- sdk/sql/arm-sql/src/operations/jobSteps.ts | 338 +- .../src/operations/jobTargetExecutions.ts | 226 +- .../arm-sql/src/operations/jobTargetGroups.ts | 22 +- sdk/sql/arm-sql/src/operations/jobVersions.ts | 10 +- sdk/sql/arm-sql/src/operations/jobs.ts | 22 +- .../ledgerDigestUploadsOperations.ts | 100 +- .../operations/longTermRetentionBackups.ts | 1320 +- ...longTermRetentionManagedInstanceBackups.ts | 536 +- .../operations/longTermRetentionPolicies.ts | 100 +- .../maintenanceWindowOptionsOperations.ts | 6 +- .../maintenanceWindowsOperations.ts | 14 +- ...managedBackupShortTermRetentionPolicies.ts | 110 +- ...atabaseAdvancedThreatProtectionSettings.ts | 26 +- .../src/operations/managedDatabaseColumns.ts | 16 +- .../managedDatabaseMoveOperations.ts | 18 +- .../src/operations/managedDatabaseQueries.ts | 10 +- ...gedDatabaseRecommendedSensitivityLabels.ts | 6 +- .../managedDatabaseRestoreDetails.ts | 4 +- .../src/operations/managedDatabaseSchemas.ts | 10 +- .../managedDatabaseSecurityAlertPolicies.ts | 90 +- .../managedDatabaseSecurityEvents.ts | 10 +- .../managedDatabaseSensitivityLabels.ts | 397 +- .../src/operations/managedDatabaseTables.ts | 10 +- ...anagedDatabaseTransparentDataEncryption.ts | 94 +- ...aseVulnerabilityAssessmentRuleBaselines.ts | 32 +- ...gedDatabaseVulnerabilityAssessmentScans.ts | 260 +- ...managedDatabaseVulnerabilityAssessments.ts | 98 +- .../src/operations/managedDatabases.ts | 60 +- .../managedInstanceAdministrators.ts | 22 +- ...nstanceAdvancedThreatProtectionSettings.ts | 26 +- ...nagedInstanceAzureADOnlyAuthentications.ts | 94 +- .../src/operations/managedInstanceDtcs.ts | 18 +- .../managedInstanceEncryptionProtectors.ts | 212 +- .../src/operations/managedInstanceKeys.ts | 22 +- ...anagedInstanceLongTermRetentionPolicies.ts | 187 +- .../operations/managedInstanceOperations.ts | 14 +- ...nagedInstancePrivateEndpointConnections.ts | 98 +- .../managedInstancePrivateLinkResources.ts | 10 +- .../managedInstanceTdeCertificates.ts | 6 +- ...managedInstanceVulnerabilityAssessments.ts | 96 +- .../src/operations/managedInstances.ts | 276 +- .../managedLedgerDigestUploadsOperations.ts | 22 +- ...atabaseBackupShortTermRetentionPolicies.ts | 124 +- .../src/operations/managedServerDnsAliases.ts | 30 +- .../managedServerSecurityAlertPolicies.ts | 106 +- ...networkSecurityPerimeterConfigurations.ts} | 230 +- sdk/sql/arm-sql/src/operations/operations.ts | 2 +- .../src/operations/outboundFirewallRules.ts | 107 +- .../operations/privateEndpointConnections.ts | 94 +- .../src/operations/privateLinkResources.ts | 12 +- .../recommendedSensitivityLabels.ts | 8 +- .../src/operations/recoverableDatabases.ts | 16 +- .../operations/recoverableManagedDatabases.ts | 10 +- .../src/operations/replicationLinks.ts | 32 +- .../operations/restorableDroppedDatabases.ts | 14 +- .../restorableDroppedManagedDatabases.ts | 10 +- .../arm-sql/src/operations/restorePoints.ts | 26 +- .../src/operations/sensitivityLabels.ts | 367 +- .../serverAdvancedThreatProtectionSettings.ts | 20 +- .../arm-sql/src/operations/serverAdvisors.ts | 18 +- .../serverAutomaticTuningOperations.ts | 16 +- .../operations/serverAzureADAdministrators.ts | 94 +- .../serverAzureADOnlyAuthentications.ts | 94 +- .../operations/serverBlobAuditingPolicies.ts | 20 +- .../operations/serverConfigurationOptions.ts | 18 +- .../operations/serverConnectionPolicies.ts | 90 +- .../operations/serverDevOpsAuditSettings.ts | 20 +- .../src/operations/serverDnsAliases.ts | 98 +- sdk/sql/arm-sql/src/operations/serverKeys.ts | 24 +- .../src/operations/serverOperations.ts | 8 +- .../operations/serverSecurityAlertPolicies.ts | 102 +- .../src/operations/serverTrustCertificates.ts | 22 +- .../src/operations/serverTrustGroups.ts | 100 +- .../arm-sql/src/operations/serverUsages.ts | 79 +- .../serverVulnerabilityAssessments.ts | 94 +- sdk/sql/arm-sql/src/operations/servers.ts | 64 +- .../src/operations/serviceObjectives.ts | 178 - sdk/sql/arm-sql/src/operations/sqlAgent.ts | 12 +- .../sqlVulnerabilityAssessmentBaseline.ts | 12 +- .../sqlVulnerabilityAssessmentBaselines.ts | 10 +- .../sqlVulnerabilityAssessmentExecuteScan.ts | 4 +- .../sqlVulnerabilityAssessmentRuleBaseline.ts | 30 +- ...sqlVulnerabilityAssessmentRuleBaselines.ts | 8 +- .../sqlVulnerabilityAssessmentScanResult.ts | 20 +- .../sqlVulnerabilityAssessmentScans.ts | 10 +- .../operations/sqlVulnerabilityAssessments.ts | 4 +- .../sqlVulnerabilityAssessmentsSettings.ts | 20 +- .../startStopManagedInstanceSchedules.ts | 22 +- .../src/operations/subscriptionUsages.ts | 4 +- .../src/operations/synapseLinkWorkspaces.ts | 8 +- sdk/sql/arm-sql/src/operations/syncAgents.ts | 104 +- sdk/sql/arm-sql/src/operations/syncGroups.ts | 866 +- sdk/sql/arm-sql/src/operations/syncMembers.ts | 198 +- .../arm-sql/src/operations/tdeCertificates.ts | 8 +- sdk/sql/arm-sql/src/operations/timeZones.ts | 4 +- .../operations/transparentDataEncryptions.ts | 20 +- sdk/sql/arm-sql/src/operations/usages.ts | 6 +- .../arm-sql/src/operations/virtualClusters.ts | 30 +- .../src/operations/virtualNetworkRules.ts | 94 +- .../src/operations/workloadClassifiers.ts | 118 +- .../arm-sql/src/operations/workloadGroups.ts | 100 +- .../dataMaskingPolicies.ts | 31 +- .../operationsInterfaces/dataMaskingRules.ts | 5 + .../databaseExtensionsOperations.ts | 4 +- .../databaseVulnerabilityAssessmentScans.ts | 44 +- .../src/operationsInterfaces/databases.ts | 34 - .../distributedAvailabilityGroups.ts | 47 +- .../elasticPoolActivities.ts | 32 - .../elasticPoolDatabaseActivities.ts | 32 - .../src/operationsInterfaces/elasticPools.ts | 34 - .../operationsInterfaces/failoverGroups.ts | 39 +- .../src/operationsInterfaces/firewallRules.ts | 36 +- .../operationsInterfaces/geoBackupPolicies.ts | 38 +- .../arm-sql/src/operationsInterfaces/index.ts | 137 +- .../src/operationsInterfaces/instancePools.ts | 16 +- .../src/operationsInterfaces/jobExecutions.ts | 72 +- .../src/operationsInterfaces/jobSteps.ts | 58 +- .../jobTargetExecutions.ts | 18 +- .../longTermRetentionBackups.ts | 176 +- ...longTermRetentionManagedInstanceBackups.ts | 32 +- .../managedDatabaseSensitivityLabels.ts | 53 +- ...aseVulnerabilityAssessmentRuleBaselines.ts | 4 +- ...gedDatabaseVulnerabilityAssessmentScans.ts | 46 +- .../managedInstanceEncryptionProtectors.ts | 60 +- ...anagedInstanceLongTermRetentionPolicies.ts | 41 +- .../operationsInterfaces/managedInstances.ts | 53 +- .../managedServerSecurityAlertPolicies.ts | 8 +- .../networkSecurityPerimeterConfigurations.ts | 82 + .../outboundFirewallRules.ts | 4 - .../operationsInterfaces/sensitivityLabels.ts | 69 +- .../serverCommunicationLinks.ts | 101 - .../serverSecurityAlertPolicies.ts | 8 +- .../src/operationsInterfaces/serverUsages.ts | 2 +- .../operationsInterfaces/serviceObjectives.ts | 46 - .../src/operationsInterfaces/syncGroups.ts | 148 +- sdk/sql/arm-sql/src/sqlManagementClient.ts | 698 +- sdk/sql/arm-sql/test/sampleTest.ts | 43 + sdk/sql/arm-sql/tsconfig.json | 10 +- 196 files changed, 26732 insertions(+), 25920 deletions(-) delete mode 100644 sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts delete mode 100644 sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts rename sdk/sql/arm-sql/src/operations/{serverCommunicationLinks.ts => networkSecurityPerimeterConfigurations.ts} (56%) delete mode 100644 sdk/sql/arm-sql/src/operations/serviceObjectives.ts delete mode 100644 sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolActivities.ts delete mode 100644 sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolDatabaseActivities.ts create mode 100644 sdk/sql/arm-sql/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts delete mode 100644 sdk/sql/arm-sql/src/operationsInterfaces/serverCommunicationLinks.ts delete mode 100644 sdk/sql/arm-sql/src/operationsInterfaces/serviceObjectives.ts create mode 100644 sdk/sql/arm-sql/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index aafea9ae8794..9f8aa6fab517 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2245,7 +2245,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/chai-as-promised/7.1.5: @@ -2267,7 +2267,7 @@ packages: /@types/connect/3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/cookie/0.4.1: @@ -2277,7 +2277,7 @@ packages: /@types/cors/2.8.13: resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/debug/4.1.8: @@ -2289,7 +2289,7 @@ packages: /@types/decompress/4.2.4: resolution: {integrity: sha512-/C8kTMRTNiNuWGl5nEyKbPiMv6HA+0RbEXzFhFBEzASM6+oa4tJro9b8nj7eRlOFfuLdzUU+DS/GPDlvvzMOhA==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/eslint/8.4.10: @@ -2310,7 +2310,7 @@ packages: /@types/express-serve-static-core/4.17.35: resolution: {integrity: sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -2328,13 +2328,13 @@ packages: /@types/fs-extra/8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/inquirer/8.2.6: @@ -2347,7 +2347,7 @@ packages: /@types/is-buffer/2.0.0: resolution: {integrity: sha512-0f7N/e3BAz32qDYvgB4d2cqv1DqUwvGxHkXsrucICn8la1Vb6Yl6Eg8mPScGwUiqHJeE7diXlzaK+QMA9m4Gxw==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/json-schema/7.0.12: @@ -2361,13 +2361,13 @@ packages: /@types/jsonwebtoken/9.0.2: resolution: {integrity: sha512-drE6uz7QBKq1fYqqoFKTDRdFCPHd5TCub75BM+D+cMx7NU9hUz7SESLfC2fSCXVFMO5Yj8sOWHuGqPgjc+fz0Q==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/jws/3.2.5: resolution: {integrity: sha512-xGTxZH34xOryaTN8CMsvhh9lfNqFuHiMoRvsLYWQdBJHqiECyfInXVl2eK8Jz2emxZWMIn5RBlmr3oDVPeWujw==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/linkify-it/3.0.2: @@ -2418,13 +2418,13 @@ packages: /@types/mysql/2.15.19: resolution: {integrity: sha512-wSRg2QZv14CWcZXkgdvHbbV2ACufNy5EgI8mBBxnJIptchv7DBy/h53VMa2jDhyo0C9MO4iowE6z9vF8Ja1DkQ==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/node-fetch/2.6.4: resolution: {integrity: sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 form-data: 3.0.1 dev: false @@ -2449,7 +2449,7 @@ packages: /@types/pg/8.6.1: resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 pg-protocol: 1.6.0 pg-types: 2.2.0 dev: false @@ -2477,7 +2477,7 @@ packages: /@types/resolve/1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/semaphore/1.1.1: @@ -2496,14 +2496,14 @@ packages: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/serve-static/1.15.1: resolution: {integrity: sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==} dependencies: '@types/mime': 3.0.1 - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/sinon/10.0.15: @@ -2525,13 +2525,13 @@ packages: /@types/stoppable/1.1.1: resolution: {integrity: sha512-b8N+fCADRIYYrGZOcmOR8ZNBOqhktWTB/bMUl5LvGtT201QKJZOOH5UsFyI3qtteM6ZAJbJqZoBcLqqxKIwjhw==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/through/0.0.30: resolution: {integrity: sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/tough-cookie/4.0.2: @@ -2545,7 +2545,7 @@ packages: /@types/tunnel/0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/underscore/1.11.5: @@ -2563,19 +2563,19 @@ packages: /@types/ws/7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/ws/8.5.4: resolution: {integrity: sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/xml2js/0.4.11: resolution: {integrity: sha512-JdigeAKmCyoJUiQljjr7tQG3if9NkqGUgwEUqBvV0N7LM4HyQk7UXCnusRa1lnvXAEYJ8mw8GtZWioagNztOwA==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/yargs-parser/21.0.0: @@ -2592,7 +2592,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false optional: true @@ -3601,7 +3601,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug/3.2.7: @@ -3832,7 +3832,7 @@ packages: dependencies: semver: 7.5.1 shelljs: 0.8.5 - typescript: 5.2.0-dev.20230605 + typescript: 5.2.0-dev.20230606 dev: false /ecdsa-sig-formatter/1.0.11: @@ -3883,7 +3883,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.13 - '@types/node': 14.18.48 + '@types/node': 16.18.34 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -4807,7 +4807,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -7115,7 +7115,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 14.18.48 + '@types/node': 16.18.34 long: 5.2.3 dev: false @@ -8413,6 +8413,12 @@ packages: hasBin: true dev: false + /typescript/4.8.4: + resolution: {integrity: sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==} + engines: {node: '>=4.2.0'} + hasBin: true + dev: false + /typescript/5.0.4: resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} engines: {node: '>=12.20'} @@ -8425,8 +8431,8 @@ packages: hasBin: true dev: false - /typescript/5.2.0-dev.20230605: - resolution: {integrity: sha512-xMeI7pFrOfxZTt1m4a2txN1E2Qh9IzLT9LNdc0DlEwJJKXjajj5j/nFLwWOUEnaFZBT6v35jlgLogG5HuSxUyA==} + /typescript/5.2.0-dev.20230606: + resolution: {integrity: sha512-aS+7vCKtiKKuzHFWW3sZ0zX1mHqSHESmM+LgOXx2jAMQ8NnHoT+7ixl37t0Z+JWXjOb0umUbgjBepaOLiGTuSQ==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -14669,7 +14675,7 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-EpSU2v4ZtF6cBet3xtDZP6CVKFpIueokt1QWq2L94nDbejTY0apqrB5ld7Y1wMFd2eCjkWdyOemcoMU3aiEpng==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-/tBjWZJq4F0GRWtLPg1EJJSUnRXSFKH0iQwDiqg72Yf38il+hjeRtYIMXcR+/swv7tDy1fmNFXE8ougKu2mf7w==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: @@ -14690,7 +14696,7 @@ packages: rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_6vxqa4pl2c5hli7lcaemfsm5je tslib: 2.5.3 - typescript: 5.0.4 + typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: - supports-color @@ -18026,7 +18032,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-UTfrrypI9UvxkoW1o6zxcIzxJSxXeam5tEzF35ZFa+bJnIOgH45sUvzT2p4n/YA2/blGPYogtQPT81RcWiHgBg==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-bE/JTLjfj8HMmBTGfK1pTs4Kfsy9GJwXtrvbOjgDH8pYIvzzJ3LjUNRGjVhb3r+FOPkBRbb9fxniy5U3mmmLng==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: diff --git a/sdk/sql/arm-sql/CHANGELOG.md b/sdk/sql/arm-sql/CHANGELOG.md index 91fb8dc94736..fdbe0f90fbe3 100644 --- a/sdk/sql/arm-sql/CHANGELOG.md +++ b/sdk/sql/arm-sql/CHANGELOG.md @@ -1,5 +1,213 @@ # Release History +## 11.0.0-beta.1 (2023-06-07) + +**Features** + + - Added operation group NetworkSecurityPerimeterConfigurations + - Added operation DistributedAvailabilityGroups.beginSetRole + - Added operation DistributedAvailabilityGroups.beginSetRoleAndWait + - Added operation FailoverGroups.beginTryPlannedBeforeForcedFailover + - Added operation FailoverGroups.beginTryPlannedBeforeForcedFailoverAndWait + - Added operation GeoBackupPolicies.list + - Added operation ManagedDatabaseSensitivityLabels.listByDatabase + - Added operation ManagedInstanceLongTermRetentionPolicies.beginDelete + - Added operation ManagedInstanceLongTermRetentionPolicies.beginDeleteAndWait + - Added operation ManagedInstances.beginRefreshStatus + - Added operation ManagedInstances.beginRefreshStatusAndWait + - Added operation SensitivityLabels.listByDatabase + - Added Interface CertificateInfo + - Added Interface DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated + - Added Interface DataMaskingRulesListByDatabaseNextOptionalParams + - Added Interface DistributedAvailabilityGroupDatabase + - Added Interface DistributedAvailabilityGroupsCreateOrUpdateRequestBody + - Added Interface DistributedAvailabilityGroupSetRole + - Added Interface DistributedAvailabilityGroupsSetRoleOptionalParams + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface ErrorResponse + - Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders + - Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + - Added Interface GeoBackupPoliciesListNextOptionalParams + - Added Interface GeoBackupPoliciesListOptionalParams + - Added Interface ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams + - Added Interface ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + - Added Interface ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + - Added Interface ManagedInstancesRefreshStatusHeaders + - Added Interface ManagedInstancesRefreshStatusOptionalParams + - Added Interface NetworkSecurityPerimeterConfiguration + - Added Interface NetworkSecurityPerimeterConfigurationListResult + - Added Interface NetworkSecurityPerimeterConfigurationsGetOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + - Added Interface NSPConfigAccessRule + - Added Interface NSPConfigAccessRuleProperties + - Added Interface NSPConfigAssociation + - Added Interface NSPConfigNetworkSecurityPerimeterRule + - Added Interface NSPConfigPerimeter + - Added Interface NSPConfigProfile + - Added Interface NSPProvisioningIssue + - Added Interface NSPProvisioningIssueProperties + - Added Interface PhaseDetails + - Added Interface RefreshExternalGovernanceStatusOperationResultMI + - Added Interface SensitivityLabelsListByDatabaseNextOptionalParams + - Added Interface SensitivityLabelsListByDatabaseOptionalParams + - Added Interface ServerUsagesListByServerNextOptionalParams + - Added Interface UpsertManagedServerOperationStepWithEstimatesAndDuration + - Added Type Alias DataMaskingPolicyName + - Added Type Alias DataMaskingRulesListByDatabaseNextResponse + - Added Type Alias DistributedAvailabilityGroupsSetRoleResponse + - Added Type Alias FailoverGroupsTryPlannedBeforeForcedFailoverResponse + - Added Type Alias GeoBackupPoliciesListNextResponse + - Added Type Alias GeoBackupPoliciesListResponse + - Added Type Alias HybridSecondaryUsage + - Added Type Alias HybridSecondaryUsageDetected + - Added Type Alias InstanceRole + - Added Type Alias LinkRole + - Added Type Alias ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse + - Added Type Alias ManagedDatabaseSensitivityLabelsListByDatabaseResponse + - Added Type Alias ManagedInstanceLongTermRetentionPoliciesDeleteResponse + - Added Type Alias ManagedInstancesRefreshStatusResponse + - Added Type Alias ManagedInstancesStartResponse + - Added Type Alias ManagedInstancesStopResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsGetResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsListByServerNextResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsListByServerResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsReconcileResponse + - Added Type Alias Phase + - Added Type Alias ReplicaConnectedState + - Added Type Alias ReplicaSynchronizationHealth + - Added Type Alias ReplicationModeType + - Added Type Alias RoleChangeType + - Added Type Alias SecurityAlertPolicyNameAutoGenerated + - Added Type Alias SensitivityLabelsListByDatabaseNextResponse + - Added Type Alias SensitivityLabelsListByDatabaseResponse + - Added Type Alias ServerUsagesListByServerNextResponse + - Added Type Alias Status + - Interface DatabaseExtensions has a new optional parameter administratorLogin + - Interface DatabaseExtensions has a new optional parameter administratorLoginPassword + - Interface DatabaseExtensions has a new optional parameter authenticationType + - Interface DatabaseExtensions has a new optional parameter databaseEdition + - Interface DatabaseExtensions has a new optional parameter maxSizeBytes + - Interface DatabaseExtensions has a new optional parameter networkIsolation + - Interface DatabaseExtensions has a new optional parameter serviceObjectiveName + - Interface DatabaseOperation has a new optional parameter operationPhaseDetails + - Interface DataMaskingRuleListResult has a new optional parameter nextLink + - Interface DistributedAvailabilityGroup has a new optional parameter databases + - Interface DistributedAvailabilityGroup has a new optional parameter distributedAvailabilityGroupName + - Interface DistributedAvailabilityGroup has a new optional parameter instanceAvailabilityGroupName + - Interface DistributedAvailabilityGroup has a new optional parameter instanceLinkRole + - Interface DistributedAvailabilityGroup has a new optional parameter partnerAvailabilityGroupName + - Interface DistributedAvailabilityGroup has a new optional parameter partnerEndpoint + - Interface DistributedAvailabilityGroup has a new optional parameter partnerLinkRole + - Interface EditionCapability has a new optional parameter zonePinning + - Interface ElasticPool has a new optional parameter availabilityZone + - Interface ElasticPool has a new optional parameter minCapacity + - Interface ElasticPool has a new optional parameter preferredEnclaveType + - Interface ElasticPoolEditionCapability has a new optional parameter zonePinning + - Interface ElasticPoolUpdate has a new optional parameter availabilityZone + - Interface ElasticPoolUpdate has a new optional parameter minCapacity + - Interface ElasticPoolUpdate has a new optional parameter preferredEnclaveType + - Interface FailoverGroupReadOnlyEndpoint has a new optional parameter targetServer + - Interface FailoverGroupUpdate has a new optional parameter partnerServers + - Interface GeoBackupPolicyListResult has a new optional parameter nextLink + - Interface ImportExportExtensionsOperationResult has a new optional parameter blobUri + - Interface ImportExportExtensionsOperationResult has a new optional parameter privateEndpointConnections + - Interface ImportExportExtensionsOperationResult has a new optional parameter queuedTime + - Interface ManagedDatabase has a new optional parameter isLedgerOn + - Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn + - Interface ManagedInstance has a new optional parameter externalGovernanceStatus + - Interface ManagedInstance has a new optional parameter hybridSecondaryUsage + - Interface ManagedInstance has a new optional parameter hybridSecondaryUsageDetected + - Interface ManagedInstance has a new optional parameter isGeneralPurposeV2 + - Interface ManagedInstance has a new optional parameter storageIOps + - Interface ManagedInstance has a new optional parameter storageThroughputMBps + - Interface ManagedInstance has a new optional parameter virtualClusterId + - Interface ManagedInstancePrivateLinkProperties has a new optional parameter requiredZoneNames + - Interface ManagedInstanceUpdate has a new optional parameter externalGovernanceStatus + - Interface ManagedInstanceUpdate has a new optional parameter hybridSecondaryUsage + - Interface ManagedInstanceUpdate has a new optional parameter hybridSecondaryUsageDetected + - Interface ManagedInstanceUpdate has a new optional parameter isGeneralPurposeV2 + - Interface ManagedInstanceUpdate has a new optional parameter storageIOps + - Interface ManagedInstanceUpdate has a new optional parameter storageThroughputMBps + - Interface ManagedInstanceUpdate has a new optional parameter virtualClusterId + - Interface PrivateEndpointConnection has a new optional parameter groupIds + - Interface ReplicationLink has a new optional parameter partnerDatabaseId + - Interface ServerUsageListResult has a new optional parameter nextLink + - Interface ServiceObjectiveCapability has a new optional parameter zonePinning + - Interface SqlManagementClientOptionalParams has a new optional parameter apiVersion + - Interface SqlVulnerabilityAssessmentScanRecord has a new optional parameter lastScanTime + - Added Enum KnownDataMaskingPolicyName + - Added Enum KnownHybridSecondaryUsage + - Added Enum KnownHybridSecondaryUsageDetected + - Added Enum KnownInstanceRole + - Added Enum KnownLinkRole + - Added Enum KnownPhase + - Added Enum KnownReplicaConnectedState + - Added Enum KnownReplicaSynchronizationHealth + - Added Enum KnownReplicationModeType + - Added Enum KnownRoleChangeType + - Added Enum KnownSecurityAlertPolicyNameAutoGenerated + - Added Enum KnownStatus + - Enum KnownOperationMode has a new value Export + - Enum KnownOperationMode has a new value Import + - Enum KnownStorageCapabilityStorageAccountType has a new value Gzrs + +**Breaking Changes** + + - Removed operation group ElasticPoolActivities + - Removed operation group ElasticPoolDatabaseActivities + - Removed operation group ServerCommunicationLinks + - Removed operation group ServiceObjectives + - Removed operation Databases.listMetricDefinitions + - Removed operation Databases.listMetrics + - Removed operation ElasticPools.listMetricDefinitions + - Removed operation ElasticPools.listMetrics + - Removed operation GeoBackupPolicies.listByDatabase + - Operation DataMaskingPolicies.createOrUpdate has a new signature + - Operation DataMaskingPolicies.get has a new signature + - Operation DataMaskingRules.createOrUpdate has a new signature + - Operation DataMaskingRules.listByDatabase has a new signature + - Operation DistributedAvailabilityGroups.beginCreateOrUpdate has a new signature + - Operation DistributedAvailabilityGroups.beginCreateOrUpdateAndWait has a new signature + - Operation ManagedDatabaseVulnerabilityAssessmentRuleBaselines.createOrUpdate has a new signature + - Operation ManagedServerSecurityAlertPolicies.beginCreateOrUpdate has a new signature + - Operation ManagedServerSecurityAlertPolicies.beginCreateOrUpdateAndWait has a new signature + - Operation ManagedServerSecurityAlertPolicies.get has a new signature + - Operation OutboundFirewallRules.beginCreateOrUpdate has a new signature + - Operation OutboundFirewallRules.beginCreateOrUpdateAndWait has a new signature + - Operation ServerSecurityAlertPolicies.beginCreateOrUpdate has a new signature + - Operation ServerSecurityAlertPolicies.beginCreateOrUpdateAndWait has a new signature + - Operation ServerSecurityAlertPolicies.get has a new signature + - Interface DistributedAvailabilityGroup no longer has parameter lastHardenedLsn + - Interface DistributedAvailabilityGroup no longer has parameter linkState + - Interface DistributedAvailabilityGroup no longer has parameter primaryAvailabilityGroupName + - Interface DistributedAvailabilityGroup no longer has parameter secondaryAvailabilityGroupName + - Interface DistributedAvailabilityGroup no longer has parameter sourceEndpoint + - Interface DistributedAvailabilityGroup no longer has parameter sourceReplicaId + - Interface DistributedAvailabilityGroup no longer has parameter targetDatabase + - Interface DistributedAvailabilityGroup no longer has parameter targetReplicaId + - Interface ServerUsage no longer has parameter name + - Interface ServerUsage no longer has parameter nextResetTime + - Interface ServerUsage no longer has parameter resourceName + - Type of parameter replicationMode of interface DistributedAvailabilityGroup is changed from ReplicationMode to ReplicationModeType + - Type of parameter provisioningState of interface ManagedInstance is changed from ManagedInstancePropertiesProvisioningState to ProvisioningState + - Type of parameter stepsList of interface ManagedInstanceOperationSteps is changed from UpsertManagedServerOperationStep[] to UpsertManagedServerOperationStepWithEstimatesAndDuration[] + - Type of parameter provisioningState of interface ManagedInstanceUpdate is changed from ManagedInstancePropertiesProvisioningState to ProvisioningState + - Class SqlManagementClient no longer has parameter elasticPoolActivities + - Class SqlManagementClient no longer has parameter elasticPoolDatabaseActivities + - Class SqlManagementClient no longer has parameter serverCommunicationLinks + - Class SqlManagementClient no longer has parameter serviceObjectives + - Removed Enum KnownManagedInstancePropertiesProvisioningState + - Removed Enum KnownPrimaryAggregationType + - Removed Enum KnownReplicationMode + - Removed Enum KnownServiceObjectiveName + - Removed Enum KnownUnitDefinitionType + - Removed Enum KnownUnitType + - Removed Enum KnownUpsertManagedServerOperationStepStatus + + ## 10.0.0 (2023-03-22) **Features** diff --git a/sdk/sql/arm-sql/README.md b/sdk/sql/arm-sql/README.md index 20a34b7d9592..d3f5f0111807 100644 --- a/sdk/sql/arm-sql/README.md +++ b/sdk/sql/arm-sql/README.md @@ -6,7 +6,7 @@ The Azure SQL Database management API provides a RESTful set of web services tha [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-sql) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-sql) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-sql?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/sql/arm-sql/_meta.json b/sdk/sql/arm-sql/_meta.json index c17798370215..60ad9492165b 100644 --- a/sdk/sql/arm-sql/_meta.json +++ b/sdk/sql/arm-sql/_meta.json @@ -1,8 +1,8 @@ { - "commit": "cd2b76ce38029e1425ee024cd9403a908c60d71e", + "commit": "2bd475d1f9b9efa9586b00f823b451f37b501161", "readme": "specification/sql/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\sql\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/sql/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/sql/arm-sql/package.json b/sdk/sql/arm-sql/package.json index 68f17cb3467e..e0a74d401c6c 100644 --- a/sdk/sql/arm-sql/package.json +++ b/sdk/sql/arm-sql/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SqlManagementClient.", - "version": "10.0.0", + "version": "11.0.0-beta.1", "engines": { "node": ">=14.0.0" }, @@ -36,7 +36,7 @@ "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~5.0.0", + "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "dotenv": "^16.0.0", @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-sql?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql" +} \ No newline at end of file diff --git a/sdk/sql/arm-sql/review/arm-sql.api.md b/sdk/sql/arm-sql/review/arm-sql.api.md index f4bed1b8d041..cdcd6b5ed919 100644 --- a/sdk/sql/arm-sql/review/arm-sql.api.md +++ b/sdk/sql/arm-sql/review/arm-sql.api.md @@ -223,6 +223,13 @@ export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled"; // @public export type CatalogCollationType = string; +// @public +export interface CertificateInfo { + readonly certificateId?: string; + readonly certificateName?: string; + readonly expiryDate?: Date; +} + // @public export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists"; @@ -575,7 +582,14 @@ export interface DatabaseEncryptionProtectorsRevertOptionalParams extends coreCl // @public export interface DatabaseExtensions extends ProxyResource { + administratorLogin?: string; + administratorLoginPassword?: string; + authenticationType?: string; + databaseEdition?: string; + maxSizeBytes?: string; + networkIsolation?: NetworkIsolationSettings; operationMode?: OperationMode; + serviceObjectiveName?: string; storageKey?: string; storageKeyType?: StorageKeyType; storageUri?: string; @@ -660,6 +674,7 @@ export interface DatabaseOperation extends ProxyResource { readonly isUserError?: boolean; readonly operation?: string; readonly operationFriendlyName?: string; + readonly operationPhaseDetails?: PhaseDetails; readonly percentComplete?: number; readonly serverName?: string; readonly startTime?: Date; @@ -751,8 +766,6 @@ export interface Databases { listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: DatabasesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; listByServer(resourceGroupName: string, serverName: string, options?: DatabasesListByServerOptionalParams): PagedAsyncIterableIterator; listInaccessibleByServer(resourceGroupName: string, serverName: string, options?: DatabasesListInaccessibleByServerOptionalParams): PagedAsyncIterableIterator; - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesListMetricDefinitionsOptionalParams): PagedAsyncIterableIterator; - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options?: DatabasesListMetricsOptionalParams): PagedAsyncIterableIterator; rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: ResourceMoveDefinition, options?: DatabasesRenameOptionalParams): Promise; } @@ -941,20 +954,6 @@ export interface DatabasesListInaccessibleByServerOptionalParams extends coreCli // @public export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; -// @public -export interface DatabasesListMetricDefinitionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; - -// @public -export interface DatabasesListMetricsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DatabasesListMetricsResponse = MetricListResult; - // @public export interface DatabasesPauseOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1360,6 +1359,11 @@ export interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResour baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; } +// @public +export interface DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated extends ProxyResource { + baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; +} + // @public export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { result: string[]; @@ -1483,8 +1487,8 @@ export type DataMaskingFunction = "Default" | "CCN" | "Email" | "Number" | "SSN" // @public export interface DataMaskingPolicies { - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: DataMaskingPolicy, options?: DataMaskingPoliciesCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: DataMaskingPoliciesGetOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingPolicyName: DataMaskingPolicyName, parameters: DataMaskingPolicy, options?: DataMaskingPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingPoliciesGetOptionalParams): Promise; } // @public @@ -1511,6 +1515,9 @@ export interface DataMaskingPolicy extends ProxyResource { readonly maskingLevel?: string; } +// @public +export type DataMaskingPolicyName = string; + // @public export interface DataMaskingRule extends ProxyResource { aliasName?: string; @@ -1531,13 +1538,14 @@ export interface DataMaskingRule extends ProxyResource { // @public export interface DataMaskingRuleListResult { - value?: DataMaskingRule[]; + readonly nextLink?: string; + readonly value?: DataMaskingRule[]; } // @public export interface DataMaskingRules { - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams): Promise; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DataMaskingRulesListByDatabaseOptionalParams): PagedAsyncIterableIterator; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingPolicyName: DataMaskingPolicyName, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams): PagedAsyncIterableIterator; } // @public @@ -1547,6 +1555,13 @@ export interface DataMaskingRulesCreateOrUpdateOptionalParams extends coreClient // @public export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; +// @public +export interface DataMaskingRulesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataMaskingRulesListByDatabaseNextResponse = DataMaskingRuleListResult; + // @public export interface DataMaskingRulesListByDatabaseOptionalParams extends coreClient.OperationOptions { } @@ -1555,10 +1570,10 @@ export interface DataMaskingRulesListByDatabaseOptionalParams extends coreClient export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; // @public -export type DataMaskingRuleState = "Disabled" | "Enabled"; +export type DataMaskingRuleState = "Enabled" | "Disabled"; // @public -export type DataMaskingState = "Disabled" | "Enabled"; +export type DataMaskingState = "Enabled" | "Disabled"; // @public export interface DataWarehouseUserActivities extends ProxyResource { @@ -1679,24 +1694,49 @@ export type DiffBackupIntervalInHours = number; // @public export interface DistributedAvailabilityGroup extends ProxyResource { + readonly databases?: DistributedAvailabilityGroupDatabase[]; readonly distributedAvailabilityGroupId?: string; + readonly distributedAvailabilityGroupName?: string; + readonly instanceAvailabilityGroupName?: string; + readonly instanceLinkRole?: LinkRole; + readonly partnerAvailabilityGroupName?: string; + readonly partnerEndpoint?: string; + readonly partnerLinkRole?: LinkRole; + replicationMode?: ReplicationModeType; +} + +// @public +export interface DistributedAvailabilityGroupDatabase { + readonly connectedState?: ReplicaConnectedState; + readonly databaseName?: string; + readonly instanceRedoReplicationLagSeconds?: number; + readonly instanceReplicaId?: string; + readonly instanceSendReplicationLagSeconds?: number; + readonly lastBackupLsn?: string; + readonly lastBackupTime?: Date; + readonly lastCommitLsn?: string; + readonly lastCommitTime?: Date; readonly lastHardenedLsn?: string; - readonly linkState?: string; - primaryAvailabilityGroupName?: string; - replicationMode?: ReplicationMode; - secondaryAvailabilityGroupName?: string; - sourceEndpoint?: string; - readonly sourceReplicaId?: string; - targetDatabase?: string; - readonly targetReplicaId?: string; + readonly lastHardenedTime?: Date; + readonly lastReceivedLsn?: string; + readonly lastReceivedTime?: Date; + readonly lastSentLsn?: string; + readonly lastSentTime?: Date; + readonly mostRecentLinkError?: string; + readonly partnerAuthCertValidity?: CertificateInfo; + readonly partnerReplicaId?: string; + readonly replicaState?: string; + readonly synchronizationHealth?: ReplicaSynchronizationHealth; } // @public export interface DistributedAvailabilityGroups { - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise, DistributedAvailabilityGroupsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroupsCreateOrUpdateRequestBody, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise, DistributedAvailabilityGroupsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroupsCreateOrUpdateRequestBody, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise; + beginSetRole(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroupSetRole, options?: DistributedAvailabilityGroupsSetRoleOptionalParams): Promise, DistributedAvailabilityGroupsSetRoleResponse>>; + beginSetRoleAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroupSetRole, options?: DistributedAvailabilityGroupsSetRoleOptionalParams): Promise; beginUpdate(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams): Promise, DistributedAvailabilityGroupsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsGetOptionalParams): Promise; @@ -1709,6 +1749,15 @@ export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams exten updateIntervalInMs?: number; } +// @public +export interface DistributedAvailabilityGroupsCreateOrUpdateRequestBody { + primaryAvailabilityGroupName?: string; + replicationMode?: ReplicationModeType; + secondaryAvailabilityGroupName?: string; + sourceEndpoint?: string; + targetDatabase?: string; +} + // @public export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; @@ -1718,6 +1767,12 @@ export interface DistributedAvailabilityGroupsDeleteOptionalParams extends coreC updateIntervalInMs?: number; } +// @public +export interface DistributedAvailabilityGroupSetRole { + instanceRole: InstanceRole; + roleChangeType: RoleChangeType; +} + // @public export interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions { } @@ -1745,6 +1800,15 @@ export interface DistributedAvailabilityGroupsListResult { readonly value?: DistributedAvailabilityGroup[]; } +// @public +export interface DistributedAvailabilityGroupsSetRoleOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DistributedAvailabilityGroupsSetRoleResponse = DistributedAvailabilityGroup; + // @public export interface DistributedAvailabilityGroupsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1768,108 +1832,34 @@ export interface EditionCapability { readonly status?: CapabilityStatus; readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; readonly supportedStorageCapabilities?: StorageCapability[]; + readonly zonePinning?: boolean; readonly zoneRedundant?: boolean; } // @public export interface ElasticPool extends TrackedResource { + availabilityZone?: AvailabilityZoneType; readonly creationDate?: Date; highAvailabilityReplicaCount?: number; readonly kind?: string; licenseType?: ElasticPoolLicenseType; maintenanceConfigurationId?: string; maxSizeBytes?: number; + minCapacity?: number; perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + preferredEnclaveType?: AlwaysEncryptedEnclaveType; sku?: Sku; readonly state?: ElasticPoolState; zoneRedundant?: boolean; } -// @public -export interface ElasticPoolActivities { - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolActivitiesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ElasticPoolActivitiesListByElasticPoolOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; - -// @public -export interface ElasticPoolActivity extends ProxyResource { - readonly elasticPoolName?: string; - readonly endTime?: Date; - readonly errorCode?: number; - readonly errorMessage?: string; - readonly errorSeverity?: number; - location?: string; - readonly operation?: string; - readonly operationId?: string; - readonly percentComplete?: number; - readonly requestedDatabaseDtuCap?: number; - readonly requestedDatabaseDtuGuarantee?: number; - readonly requestedDatabaseDtuMax?: number; - readonly requestedDatabaseDtuMin?: number; - readonly requestedDtu?: number; - readonly requestedDtuGuarantee?: number; - readonly requestedElasticPoolName?: string; - readonly requestedStorageLimitInGB?: number; - readonly requestedStorageLimitInMB?: number; - readonly serverName?: string; - readonly startTime?: Date; - readonly state?: string; -} - -// @public -export interface ElasticPoolActivityListResult { - value: ElasticPoolActivity[]; -} - -// @public -export interface ElasticPoolDatabaseActivities { - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; - -// @public -export interface ElasticPoolDatabaseActivity extends ProxyResource { - readonly currentElasticPoolName?: string; - readonly currentServiceObjective?: string; - readonly databaseName?: string; - readonly endTime?: Date; - readonly errorCode?: number; - readonly errorMessage?: string; - readonly errorSeverity?: number; - location?: string; - readonly operation?: string; - readonly operationId?: string; - readonly percentComplete?: number; - readonly requestedElasticPoolName?: string; - readonly requestedServiceObjective?: string; - readonly serverName?: string; - readonly startTime?: Date; - readonly state?: string; -} - -// @public -export interface ElasticPoolDatabaseActivityListResult { - value: ElasticPoolDatabaseActivity[]; -} - // @public export interface ElasticPoolEditionCapability { readonly name?: string; reason?: string; readonly status?: CapabilityStatus; readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; + readonly zonePinning?: boolean; readonly zoneRedundant?: boolean; } @@ -1981,8 +1971,6 @@ export interface ElasticPools { beginUpdateAndWait(resourceGroupName: string, serverName: string, elasticPoolName: string, parameters: ElasticPoolUpdate, options?: ElasticPoolsUpdateOptionalParams): Promise; get(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolsGetOptionalParams): Promise; listByServer(resourceGroupName: string, serverName: string, options?: ElasticPoolsListByServerOptionalParams): PagedAsyncIterableIterator; - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolsListMetricDefinitionsOptionalParams): PagedAsyncIterableIterator; - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options?: ElasticPoolsListMetricsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -2028,20 +2016,6 @@ export interface ElasticPoolsListByServerOptionalParams extends coreClient.Opera // @public export type ElasticPoolsListByServerResponse = ElasticPoolListResult; -// @public -export interface ElasticPoolsListMetricDefinitionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult; - -// @public -export interface ElasticPoolsListMetricsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ElasticPoolsListMetricsResponse = MetricListResult; - // @public export type ElasticPoolState = string; @@ -2056,11 +2030,14 @@ export type ElasticPoolsUpdateResponse = ElasticPool; // @public export interface ElasticPoolUpdate { + availabilityZone?: AvailabilityZoneType; highAvailabilityReplicaCount?: number; licenseType?: ElasticPoolLicenseType; maintenanceConfigurationId?: string; maxSizeBytes?: number; + minCapacity?: number; perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + preferredEnclaveType?: AlwaysEncryptedEnclaveType; sku?: Sku; tags?: { [propertyName: string]: string; @@ -2184,6 +2161,26 @@ export interface EndpointDetail { readonly port?: number; } +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + // @public export interface ExportDatabaseDefinition { administratorLogin: string; @@ -2337,6 +2334,7 @@ export interface FailoverGroupListResult { // @public export interface FailoverGroupReadOnlyEndpoint { failoverPolicy?: ReadOnlyEndpointFailoverPolicy; + targetServer?: string; } // @public @@ -2358,6 +2356,8 @@ export interface FailoverGroups { beginFailoverAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsFailoverOptionalParams): Promise; beginForceFailoverAllowDataLoss(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams): Promise, FailoverGroupsForceFailoverAllowDataLossResponse>>; beginForceFailoverAllowDataLossAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams): Promise; + beginTryPlannedBeforeForcedFailover(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams): Promise, FailoverGroupsTryPlannedBeforeForcedFailoverResponse>>; + beginTryPlannedBeforeForcedFailoverAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams): Promise; beginUpdate(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroupUpdate, options?: FailoverGroupsUpdateOptionalParams): Promise, FailoverGroupsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroupUpdate, options?: FailoverGroupsUpdateOptionalParams): Promise; get(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsGetOptionalParams): Promise; @@ -2418,6 +2418,21 @@ export interface FailoverGroupsListByServerOptionalParams extends coreClient.Ope // @public export type FailoverGroupsListByServerResponse = FailoverGroupListResult; +// @public +export interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type FailoverGroupsTryPlannedBeforeForcedFailoverResponse = FailoverGroup; + // @public export interface FailoverGroupsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2430,6 +2445,7 @@ export type FailoverGroupsUpdateResponse = FailoverGroup; // @public export interface FailoverGroupUpdate { databases?: string[]; + partnerServers?: PartnerInfo[]; readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; readWriteEndpoint?: FailoverGroupReadWriteEndpoint; tags?: { @@ -2507,7 +2523,7 @@ export type FirewallRulesReplaceResponse = FirewallRule; export interface GeoBackupPolicies { createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, parameters: GeoBackupPolicy, options?: GeoBackupPoliciesCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, options?: GeoBackupPoliciesGetOptionalParams): Promise; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: GeoBackupPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; + list(resourceGroupName: string, serverName: string, databaseName: string, options?: GeoBackupPoliciesListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -2525,34 +2541,48 @@ export interface GeoBackupPoliciesGetOptionalParams extends coreClient.Operation export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; // @public -export interface GeoBackupPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions { +export interface GeoBackupPoliciesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GeoBackupPoliciesListNextResponse = GeoBackupPolicyListResult; + +// @public +export interface GeoBackupPoliciesListOptionalParams extends coreClient.OperationOptions { } // @public -export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; +export type GeoBackupPoliciesListResponse = GeoBackupPolicyListResult; // @public export interface GeoBackupPolicy extends ProxyResource { readonly kind?: string; readonly location?: string; - state: GeoBackupPolicyState; + state?: GeoBackupPolicyState; readonly storageType?: string; } // @public export interface GeoBackupPolicyListResult { - value?: GeoBackupPolicy[]; + readonly nextLink?: string; + readonly value?: GeoBackupPolicy[]; } // @public export type GeoBackupPolicyName = string; // @public -export type GeoBackupPolicyState = "Disabled" | "Enabled"; +export type GeoBackupPolicyState = "Enabled" | "Disabled"; // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export type HybridSecondaryUsage = string; + +// @public +export type HybridSecondaryUsageDetected = string; + // @public export type IdentityType = string; @@ -2578,9 +2608,12 @@ export interface ImportExportExtensionsOperationListResult { // @public export interface ImportExportExtensionsOperationResult extends ProxyResource { + readonly blobUri?: string; readonly databaseName?: string; readonly errorMessage?: string; readonly lastModifiedTime?: string; + readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; + readonly queuedTime?: string; readonly requestId?: string; readonly requestType?: string; readonly serverName?: string; @@ -2837,6 +2870,9 @@ export interface InstancePoolVcoresCapability { readonly value?: number; } +// @public +export type InstanceRole = string; + // @public export interface IPv6FirewallRule extends ProxyResourceWithWritableName { endIPv6Address?: string; @@ -3710,6 +3746,11 @@ export enum KnownDatabaseStatus { Suspect = "Suspect" } +// @public +export enum KnownDataMaskingPolicyName { + Default = "Default" +} + // @public export enum KnownDataWarehouseUserActivityName { Current = "current" @@ -3784,6 +3825,18 @@ export enum KnownGeoBackupPolicyName { Default = "Default" } +// @public +export enum KnownHybridSecondaryUsage { + Active = "Active", + Passive = "Passive" +} + +// @public +export enum KnownHybridSecondaryUsageDetected { + Active = "Active", + Passive = "Passive" +} + // @public export enum KnownIdentityType { None = "None", @@ -3804,6 +3857,12 @@ export enum KnownInstancePoolLicenseType { LicenseIncluded = "LicenseIncluded" } +// @public +export enum KnownInstanceRole { + Primary = "Primary", + Secondary = "Secondary" +} + // @public export enum KnownJobAgentState { Creating = "Creating", @@ -3856,6 +3915,12 @@ export enum KnownLedgerDigestUploadsName { Current = "current" } +// @public +export enum KnownLinkRole { + Primary = "Primary", + Secondary = "Secondary" +} + // @public export enum KnownLogSizeUnit { Gigabytes = "Gigabytes", @@ -3911,25 +3976,6 @@ export enum KnownManagedInstanceLongTermRetentionPolicyName { Default = "default" } -// @public -export enum KnownManagedInstancePropertiesProvisioningState { - Accepted = "Accepted", - Canceled = "Canceled", - Created = "Created", - Creating = "Creating", - Deleted = "Deleted", - Deleting = "Deleting", - Failed = "Failed", - NotSpecified = "NotSpecified", - Registering = "Registering", - Running = "Running", - Succeeded = "Succeeded", - TimedOut = "TimedOut", - Unknown = "Unknown", - Unrecognized = "Unrecognized", - Updating = "Updating" -} - // @public export enum KnownManagedInstanceProxyOverride { Default = "Default", @@ -3994,6 +4040,8 @@ export enum KnownMoveOperationMode { // @public export enum KnownOperationMode { + Export = "Export", + Import = "Import", PolybaseImport = "PolybaseImport" } @@ -4015,13 +4063,11 @@ export enum KnownPerformanceLevelUnit { } // @public -export enum KnownPrimaryAggregationType { - Average = "Average", - Count = "Count", - Maximum = "Maximum", - Minimum = "Minimum", - None = "None", - Total = "Total" +export enum KnownPhase { + Catchup = "Catchup", + Copying = "Copying", + CutoverInProgress = "CutoverInProgress", + WaitingForCutover = "WaitingForCutover" } // @public @@ -4106,6 +4152,19 @@ export enum KnownRecommendedActionCurrentState { Verifying = "Verifying" } +// @public +export enum KnownReplicaConnectedState { + Connected = "CONNECTED", + Disconnected = "DISCONNECTED" +} + +// @public +export enum KnownReplicaSynchronizationHealth { + Healthy = "HEALTHY", + NOTHealthy = "NOT_HEALTHY", + PartiallyHealthy = "PARTIALLY_HEALTHY" +} + // @public export enum KnownReplicationLinkType { GEO = "GEO", @@ -4114,7 +4173,7 @@ export enum KnownReplicationLinkType { } // @public -export enum KnownReplicationMode { +export enum KnownReplicationModeType { Async = "Async", Sync = "Sync" } @@ -4138,6 +4197,12 @@ export enum KnownRestoreDetailsName { Default = "Default" } +// @public +export enum KnownRoleChangeType { + Forced = "Forced", + Planned = "Planned" +} + // @public export enum KnownRuleSeverity { High = "High", @@ -4184,6 +4249,11 @@ export enum KnownSecondaryType { // @public export enum KnownSecurityAlertPolicyName { + Default = "default" +} + +// @public +export enum KnownSecurityAlertPolicyNameAutoGenerated { Default = "Default" } @@ -4230,75 +4300,6 @@ export enum KnownServerWorkspaceFeature { Disconnected = "Disconnected" } -// @public -export enum KnownServiceObjectiveName { - Basic = "Basic", - DS100 = "DS100", - DS1000 = "DS1000", - DS1200 = "DS1200", - DS1500 = "DS1500", - DS200 = "DS200", - DS2000 = "DS2000", - DS300 = "DS300", - DS400 = "DS400", - DS500 = "DS500", - DS600 = "DS600", - DW100 = "DW100", - DW1000 = "DW1000", - DW10000C = "DW10000c", - DW1000C = "DW1000c", - DW1200 = "DW1200", - DW1500 = "DW1500", - DW15000C = "DW15000c", - DW1500C = "DW1500c", - DW200 = "DW200", - DW2000 = "DW2000", - DW2000C = "DW2000c", - DW2500C = "DW2500c", - DW300 = "DW300", - DW3000 = "DW3000", - DW30000C = "DW30000c", - DW3000C = "DW3000c", - DW400 = "DW400", - DW500 = "DW500", - DW5000C = "DW5000c", - DW600 = "DW600", - DW6000 = "DW6000", - DW6000C = "DW6000c", - DW7500C = "DW7500c", - ElasticPool = "ElasticPool", - Free = "Free", - P1 = "P1", - P11 = "P11", - P15 = "P15", - P2 = "P2", - P3 = "P3", - P4 = "P4", - P6 = "P6", - PRS1 = "PRS1", - PRS2 = "PRS2", - PRS4 = "PRS4", - PRS6 = "PRS6", - S0 = "S0", - S1 = "S1", - S12 = "S12", - S2 = "S2", - S3 = "S3", - S4 = "S4", - S6 = "S6", - S7 = "S7", - S9 = "S9", - System = "System", - System0 = "System0", - System1 = "System1", - System2 = "System2", - System2L = "System2L", - System3 = "System3", - System3L = "System3L", - System4 = "System4", - System4L = "System4L" -} - // @public export enum KnownServicePrincipalType { None = "None", @@ -4331,9 +4332,20 @@ export enum KnownStartStopScheduleName { Default = "default" } +// @public +export enum KnownStatus { + Canceled = "Canceled", + Completed = "Completed", + Failed = "Failed", + InProgress = "InProgress", + NotStarted = "NotStarted", + SlowedDown = "SlowedDown" +} + // @public export enum KnownStorageCapabilityStorageAccountType { GRS = "GRS", + Gzrs = "GZRS", LRS = "LRS", ZRS = "ZRS" } @@ -4429,36 +4441,6 @@ export enum KnownTransparentDataEncryptionName { Current = "current" } -// @public -export enum KnownUnitDefinitionType { - Bytes = "Bytes", - BytesPerSecond = "BytesPerSecond", - Count = "Count", - CountPerSecond = "CountPerSecond", - Percent = "Percent", - Seconds = "Seconds" -} - -// @public -export enum KnownUnitType { - Bytes = "bytes", - BytesPerSecond = "bytesPerSecond", - Count = "count", - CountPerSecond = "countPerSecond", - Percent = "percent", - Seconds = "seconds" -} - -// @public -export enum KnownUpsertManagedServerOperationStepStatus { - Canceled = "Canceled", - Completed = "Completed", - Failed = "Failed", - InProgress = "InProgress", - NotStarted = "NotStarted", - SlowedDown = "SlowedDown" -} - // @public export enum KnownVirtualNetworkRuleState { Deleting = "Deleting", @@ -4562,6 +4544,9 @@ export interface LicenseTypeCapability { readonly status?: CapabilityStatus; } +// @public +export type LinkRole = string; + // @public export interface LocationCapabilities { readonly name?: string; @@ -5141,6 +5126,7 @@ export interface ManagedDatabase extends TrackedResource { readonly defaultSecondaryLocation?: string; readonly earliestRestorePoint?: Date; readonly failoverGroupId?: string; + isLedgerOn?: boolean; lastBackupName?: string; longTermRetentionBackupResourceId?: string; recoverableDatabaseId?: string; @@ -5575,6 +5561,7 @@ export interface ManagedDatabaseSensitivityLabels { disableRecommendation(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams): Promise; enableRecommendation(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: SensitivityLabelSource, options?: ManagedDatabaseSensitivityLabelsGetOptionalParams): Promise; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams): PagedAsyncIterableIterator; listCurrentByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams): PagedAsyncIterableIterator; listRecommendedByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: SensitivityLabelUpdateList, options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams): Promise; @@ -5606,6 +5593,21 @@ export interface ManagedDatabaseSensitivityLabelsGetOptionalParams extends coreC // @public export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; +// @public +export interface ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; + +// @public +export interface ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type ManagedDatabaseSensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; + // @public export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions { } @@ -5782,6 +5784,7 @@ export interface ManagedDatabaseUpdate { readonly defaultSecondaryLocation?: string; readonly earliestRestorePoint?: Date; readonly failoverGroupId?: string; + isLedgerOn?: boolean; lastBackupName?: string; longTermRetentionBackupResourceId?: string; recoverableDatabaseId?: string; @@ -5799,7 +5802,7 @@ export interface ManagedDatabaseUpdate { // @public export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, parameters: DatabaseVulnerabilityAssessmentRuleBaseline, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, parameters: DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams): Promise; } @@ -5809,7 +5812,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpda } // @public -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated; // @public export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions { @@ -5820,7 +5823,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalP } // @public -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated; // @public export interface ManagedDatabaseVulnerabilityAssessments { @@ -5914,9 +5917,13 @@ export interface ManagedInstance extends TrackedResource { readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; readonly dnsZone?: string; dnsZonePartner?: string; + readonly externalGovernanceStatus?: ExternalGovernanceStatus; readonly fullyQualifiedDomainName?: string; + hybridSecondaryUsage?: HybridSecondaryUsage; + readonly hybridSecondaryUsageDetected?: HybridSecondaryUsageDetected; identity?: ResourceIdentity; instancePoolId?: string; + isGeneralPurposeV2?: boolean; keyId?: string; licenseType?: ManagedInstanceLicenseType; maintenanceConfigurationId?: string; @@ -5924,7 +5931,7 @@ export interface ManagedInstance extends TrackedResource { minimalTlsVersion?: string; primaryUserAssignedIdentityId?: string; readonly privateEndpointConnections?: ManagedInstancePecProperty[]; - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; + readonly provisioningState?: ProvisioningState; proxyOverride?: ManagedInstanceProxyOverride; publicDataEndpointEnabled?: boolean; requestedBackupStorageRedundancy?: BackupStorageRedundancy; @@ -5933,10 +5940,13 @@ export interface ManagedInstance extends TrackedResource { sku?: Sku; sourceManagedInstanceId?: string; readonly state?: string; + storageIOps?: number; storageSizeInGB?: number; + storageThroughputMBps?: number; subnetId?: string; timezoneId?: string; vCores?: number; + readonly virtualClusterId?: string; zoneRedundant?: boolean; } @@ -6365,6 +6375,8 @@ export interface ManagedInstanceLongTermRetentionBackupListResult { export interface ManagedInstanceLongTermRetentionPolicies { beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, parameters: ManagedInstanceLongTermRetentionPolicy, options?: ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, parameters: ManagedInstanceLongTermRetentionPolicy, options?: ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams): Promise, ManagedInstanceLongTermRetentionPoliciesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, options?: ManagedInstanceLongTermRetentionPoliciesGetOptionalParams): Promise; listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; } @@ -6378,6 +6390,15 @@ export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalP // @public export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; +// @public +export interface ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedInstanceLongTermRetentionPoliciesDeleteResponse = ManagedInstanceLongTermRetentionPolicy; + // @public export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions { } @@ -6489,7 +6510,7 @@ export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInst // @public export interface ManagedInstanceOperationSteps { readonly currentStep?: number; - readonly stepsList?: UpsertManagedServerOperationStep[]; + readonly stepsList?: UpsertManagedServerOperationStepWithEstimatesAndDuration[]; readonly totalSteps?: string; } @@ -6591,6 +6612,7 @@ export interface ManagedInstancePrivateLinkListResult { export interface ManagedInstancePrivateLinkProperties { readonly groupId?: string; readonly requiredMembers?: string[]; + readonly requiredZoneNames?: string[]; } // @public @@ -6627,9 +6649,6 @@ export interface ManagedInstancePrivateLinkServiceConnectionStateProperty { status: string; } -// @public -export type ManagedInstancePropertiesProvisioningState = string; - // @public export type ManagedInstanceProxyOverride = string; @@ -6652,10 +6671,12 @@ export interface ManagedInstances { beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesDeleteOptionalParams): Promise; beginFailover(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesFailoverOptionalParams): Promise, void>>; beginFailoverAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesFailoverOptionalParams): Promise; - beginStart(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise, void>>; - beginStartAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise; - beginStop(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise, void>>; - beginStopAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise; + beginRefreshStatus(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesRefreshStatusOptionalParams): Promise, ManagedInstancesRefreshStatusResponse>>; + beginRefreshStatusAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesRefreshStatusOptionalParams): Promise; + beginStart(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise, ManagedInstancesStartResponse>>; + beginStartAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise; + beginStop(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise, ManagedInstancesStopResponse>>; + beginStopAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise; beginUpdate(resourceGroupName: string, managedInstanceName: string, parameters: ManagedInstanceUpdate, options?: ManagedInstancesUpdateOptionalParams): Promise, ManagedInstancesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, parameters: ManagedInstanceUpdate, options?: ManagedInstancesUpdateOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesGetOptionalParams): Promise; @@ -6776,18 +6797,39 @@ export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResp // @public export type ManagedInstancesListResponse = ManagedInstanceListResult; +// @public +export interface ManagedInstancesRefreshStatusHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ManagedInstancesRefreshStatusOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedInstancesRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResultMI; + // @public export interface ManagedInstancesStartOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export type ManagedInstancesStartResponse = ManagedInstance; + // @public export interface ManagedInstancesStopOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export type ManagedInstancesStopResponse = ManagedInstance; + // @public export interface ManagedInstancesUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -6818,9 +6860,13 @@ export interface ManagedInstanceUpdate { readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; readonly dnsZone?: string; dnsZonePartner?: string; + readonly externalGovernanceStatus?: ExternalGovernanceStatus; readonly fullyQualifiedDomainName?: string; + hybridSecondaryUsage?: HybridSecondaryUsage; + readonly hybridSecondaryUsageDetected?: HybridSecondaryUsageDetected; identity?: ResourceIdentity; instancePoolId?: string; + isGeneralPurposeV2?: boolean; keyId?: string; licenseType?: ManagedInstanceLicenseType; maintenanceConfigurationId?: string; @@ -6828,7 +6874,7 @@ export interface ManagedInstanceUpdate { minimalTlsVersion?: string; primaryUserAssignedIdentityId?: string; readonly privateEndpointConnections?: ManagedInstancePecProperty[]; - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; + readonly provisioningState?: ProvisioningState; proxyOverride?: ManagedInstanceProxyOverride; publicDataEndpointEnabled?: boolean; requestedBackupStorageRedundancy?: BackupStorageRedundancy; @@ -6837,13 +6883,16 @@ export interface ManagedInstanceUpdate { sku?: Sku; sourceManagedInstanceId?: string; readonly state?: string; + storageIOps?: number; storageSizeInGB?: number; + storageThroughputMBps?: number; subnetId?: string; tags?: { [propertyName: string]: string; }; timezoneId?: string; vCores?: number; + readonly virtualClusterId?: string; zoneRedundant?: boolean; } @@ -7123,9 +7172,9 @@ export interface ManagedServerDnsAliasListResult { // @public export interface ManagedServerSecurityAlertPolicies { - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams): Promise; listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams): PagedAsyncIterableIterator; } @@ -7215,79 +7264,168 @@ export interface MaxSizeRangeCapability { export type MaxSizeUnit = string; // @public -export interface Metric { - readonly endTime?: Date; - readonly metricValues?: MetricValue[]; - readonly name?: MetricName; - readonly startTime?: Date; - readonly timeGrain?: string; - readonly unit?: UnitType; +export type MetricType = string; + +// @public +export interface MinCapacityCapability { + reason?: string; + readonly status?: CapabilityStatus; + readonly value?: number; } // @public -export interface MetricAvailability { - readonly retention?: string; - readonly timeGrain?: string; +export type MoveOperationMode = string; + +// @public +export interface Name { + localizedValue?: string; + value?: string; +} + +// @public +export interface NetworkIsolationSettings { + sqlServerResourceId?: string; + storageAccountResourceId?: string; } // @public -export interface MetricDefinition { - readonly metricAvailabilities?: MetricAvailability[]; - readonly name?: MetricName; - readonly primaryAggregationType?: PrimaryAggregationType; - readonly resourceUri?: string; - readonly unit?: UnitDefinitionType; +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + // (undocumented) + networkSecurityPerimeter?: NSPConfigPerimeter; + // (undocumented) + profile?: NSPConfigProfile; + // (undocumented) + provisioningIssues?: NSPProvisioningIssue[]; + // (undocumented) + provisioningState?: string; + // (undocumented) + resourceAssociation?: NSPConfigAssociation; } // @public -export interface MetricDefinitionListResult { - value: MetricDefinition[]; +export interface NetworkSecurityPerimeterConfigurationListResult { + readonly nextLink?: string; + readonly value?: NetworkSecurityPerimeterConfiguration[]; } // @public -export interface MetricListResult { - value: Metric[]; +export interface NetworkSecurityPerimeterConfigurations { + beginReconcile(resourceGroupName: string, serverName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise, NetworkSecurityPerimeterConfigurationsReconcileResponse>>; + beginReconcileAndWait(resourceGroupName: string, serverName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams): PagedAsyncIterableIterator; } // @public -export interface MetricName { - readonly localizedValue?: string; - readonly value?: string; +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type MetricType = string; +export type NetworkSecurityPerimeterConfigurationsGetResponse = NetworkSecurityPerimeterConfiguration; // @public -export interface MetricValue { - readonly average?: number; - readonly count?: number; - readonly maximum?: number; - readonly minimum?: number; - readonly timestamp?: Date; - readonly total?: number; +export interface NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface MinCapacityCapability { - reason?: string; - readonly status?: CapabilityStatus; - readonly value?: number; +export type NetworkSecurityPerimeterConfigurationsListByServerNextResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface NetworkSecurityPerimeterConfigurationsListByServerOptionalParams extends coreClient.OperationOptions { } // @public -export type MoveOperationMode = string; +export type NetworkSecurityPerimeterConfigurationsListByServerResponse = NetworkSecurityPerimeterConfigurationListResult; // @public -export interface Name { - localizedValue?: string; - value?: string; +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface NetworkIsolationSettings { - sqlServerResourceId?: string; - storageAccountResourceId?: string; +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = NetworkSecurityPerimeterConfiguration; + +// @public (undocumented) +export interface NSPConfigAccessRule { + // (undocumented) + name?: string; + // (undocumented) + properties?: NSPConfigAccessRuleProperties; +} + +// @public (undocumented) +export interface NSPConfigAccessRuleProperties { + // (undocumented) + addressPrefixes?: string[]; + // (undocumented) + direction?: string; + // (undocumented) + fullyQualifiedDomainNames?: string[]; + // (undocumented) + networkSecurityPerimeters?: NSPConfigNetworkSecurityPerimeterRule[]; + // (undocumented) + subscriptions?: string[]; +} + +// @public (undocumented) +export interface NSPConfigAssociation { + // (undocumented) + accessMode?: string; + // (undocumented) + name?: string; +} + +// @public (undocumented) +export interface NSPConfigNetworkSecurityPerimeterRule { + // (undocumented) + id?: string; + // (undocumented) + location?: string; + // (undocumented) + perimeterGuid?: string; +} + +// @public (undocumented) +export interface NSPConfigPerimeter { + // (undocumented) + id?: string; + // (undocumented) + location?: string; + // (undocumented) + perimeterGuid?: string; +} + +// @public (undocumented) +export interface NSPConfigProfile { + // (undocumented) + accessRules?: NSPConfigAccessRule[]; + // (undocumented) + accessRulesVersion?: string; + // (undocumented) + name?: string; +} + +// @public (undocumented) +export interface NSPProvisioningIssue { + // (undocumented) + name?: string; + // (undocumented) + properties?: NSPProvisioningIssueProperties; +} + +// @public (undocumented) +export interface NSPProvisioningIssueProperties { + // (undocumented) + description?: string; + // (undocumented) + issueType?: string; + // (undocumented) + severity?: string; + // (undocumented) + suggestedAccessRules?: string[]; + // (undocumented) + suggestedResourceIds?: string[]; } // @public @@ -7308,14 +7446,6 @@ export interface OperationDisplay { readonly resource?: string; } -// @public -export interface OperationImpact { - readonly changeValueAbsolute?: number; - readonly changeValueRelative?: number; - readonly name?: string; - readonly unit?: string; -} - // @public export interface OperationListResult { readonly nextLink?: string; @@ -7372,8 +7502,8 @@ export interface OutboundFirewallRuleListResult { // @public export interface OutboundFirewallRules { - beginCreateOrUpdate(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise, OutboundFirewallRulesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise, OutboundFirewallRulesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesDeleteOptionalParams): Promise; get(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesGetOptionalParams): Promise; @@ -7442,13 +7572,22 @@ export interface PerformanceLevelCapability { export type PerformanceLevelUnit = string; // @public -export type PrimaryAggregationType = string; +export type Phase = string; + +// @public +export interface PhaseDetails { + readonly phase?: Phase; + readonly phaseInformation?: { + [propertyName: string]: string; + }; +} // @public export type PrincipalType = string; // @public export interface PrivateEndpointConnection extends ProxyResource { + readonly groupIds?: string[]; privateEndpoint?: PrivateEndpointProperty; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; readonly provisioningState?: PrivateEndpointProvisioningState; @@ -7858,6 +7997,16 @@ export interface RefreshExternalGovernanceStatusOperationResult extends ProxyRes readonly status?: string; } +// @public +export interface RefreshExternalGovernanceStatusOperationResultMI extends ProxyResource { + readonly errorMessage?: string; + readonly managedInstanceName?: string; + readonly queuedTime?: string; + readonly requestId?: string; + readonly requestType?: string; + readonly status?: string; +} + // @public export interface Remediation { readonly automated?: boolean; @@ -7866,11 +8015,18 @@ export interface Remediation { readonly scripts?: string[]; } +// @public +export type ReplicaConnectedState = string; + +// @public +export type ReplicaSynchronizationHealth = string; + // @public export interface ReplicationLink extends ProxyResource { readonly isTerminationAllowed?: boolean; readonly linkType?: ReplicationLinkType; readonly partnerDatabase?: string; + readonly partnerDatabaseId?: string; readonly partnerLocation?: string; readonly partnerRole?: ReplicationRole; readonly partnerServer?: string; @@ -7963,7 +8119,7 @@ export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; export type ReplicationLinkType = string; // @public -export type ReplicationMode = string; +export type ReplicationModeType = string; // @public export type ReplicationRole = "Primary" | "Secondary" | "NonReadableSecondary" | "Source" | "Copy"; @@ -8161,6 +8317,9 @@ export type RestorePointsListByDatabaseResponse = RestorePointListResult; // @public export type RestorePointType = "CONTINUOUS" | "DISCRETE"; +// @public +export type RoleChangeType = string; + // @public export type RuleSeverity = string; @@ -8190,6 +8349,9 @@ export type SecondaryType = string; // @public export type SecurityAlertPolicyName = string; +// @public +export type SecurityAlertPolicyNameAutoGenerated = string; + // @public export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; @@ -8266,6 +8428,7 @@ export interface SensitivityLabels { disableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: SensitivityLabelsDisableRecommendationOptionalParams): Promise; enableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: SensitivityLabelsEnableRecommendationOptionalParams): Promise; get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: SensitivityLabelSource, options?: SensitivityLabelsGetOptionalParams): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SensitivityLabelsListByDatabaseOptionalParams): PagedAsyncIterableIterator; listCurrentByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SensitivityLabelsListCurrentByDatabaseOptionalParams): PagedAsyncIterableIterator; listRecommendedByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SensitivityLabelsListRecommendedByDatabaseOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, serverName: string, databaseName: string, parameters: SensitivityLabelUpdateList, options?: SensitivityLabelsUpdateOptionalParams): Promise; @@ -8297,6 +8460,21 @@ export interface SensitivityLabelsGetOptionalParams extends coreClient.Operation // @public export type SensitivityLabelsGetResponse = SensitivityLabel; +// @public +export interface SensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; + +// @public +export interface SensitivityLabelsListByDatabaseOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type SensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; + // @public export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions { } @@ -8649,55 +8827,6 @@ export interface ServerBlobAuditingPolicyListResult { readonly value?: ServerBlobAuditingPolicy[]; } -// @public -export interface ServerCommunicationLink extends ProxyResource { - readonly kind?: string; - readonly location?: string; - partnerServer?: string; - readonly state?: string; -} - -// @public -export interface ServerCommunicationLinkListResult { - value?: ServerCommunicationLink[]; -} - -// @public -export interface ServerCommunicationLinks { - beginCreateOrUpdate(resourceGroupName: string, serverName: string, communicationLinkName: string, parameters: ServerCommunicationLink, options?: ServerCommunicationLinksCreateOrUpdateOptionalParams): Promise, ServerCommunicationLinksCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, communicationLinkName: string, parameters: ServerCommunicationLink, options?: ServerCommunicationLinksCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: ServerCommunicationLinksDeleteOptionalParams): Promise; - get(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: ServerCommunicationLinksGetOptionalParams): Promise; - listByServer(resourceGroupName: string, serverName: string, options?: ServerCommunicationLinksListByServerOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ServerCommunicationLinksCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; - -// @public -export interface ServerCommunicationLinksDeleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface ServerCommunicationLinksGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServerCommunicationLinksGetResponse = ServerCommunicationLink; - -// @public -export interface ServerCommunicationLinksListByServerOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; - // @public export interface ServerConfigurationOption extends ProxyResource { readonly provisioningState?: ProvisioningState; @@ -9117,9 +9246,9 @@ export interface ServersDeleteOptionalParams extends coreClient.OperationOptions // @public export interface ServerSecurityAlertPolicies { - beginCreateOrUpdate(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ServerSecurityAlertPoliciesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: ServerSecurityAlertPoliciesGetOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ServerSecurityAlertPoliciesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ServerSecurityAlertPoliciesGetOptionalParams): Promise; listByServer(resourceGroupName: string, serverName: string, options?: ServerSecurityAlertPoliciesListByServerOptionalParams): PagedAsyncIterableIterator; } @@ -9390,19 +9519,17 @@ export interface ServerUpdate { } // @public -export interface ServerUsage { +export interface ServerUsage extends ProxyResource { readonly currentValue?: number; readonly displayName?: string; readonly limit?: number; - readonly name?: string; - readonly nextResetTime?: Date; - readonly resourceName?: string; readonly unit?: string; } // @public export interface ServerUsageListResult { - value: ServerUsage[]; + readonly nextLink?: string; + readonly value?: ServerUsage[]; } // @public @@ -9410,6 +9537,13 @@ export interface ServerUsages { listByServer(resourceGroupName: string, serverName: string, options?: ServerUsagesListByServerOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ServerUsagesListByServerNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerUsagesListByServerNextResponse = ServerUsageListResult; + // @public export interface ServerUsagesListByServerOptionalParams extends coreClient.OperationOptions { } @@ -9483,15 +9617,6 @@ export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabi // @public export type ServerWorkspaceFeature = string; -// @public -export interface ServiceObjective extends ProxyResource { - readonly description?: string; - readonly enabled?: boolean; - readonly isDefault?: boolean; - readonly isSystem?: boolean; - readonly serviceObjectiveName?: string; -} - // @public export interface ServiceObjectiveCapability { readonly computeModel?: string; @@ -9507,37 +9632,10 @@ export interface ServiceObjectiveCapability { readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; readonly supportedMaxSizes?: MaxSizeRangeCapability[]; readonly supportedMinCapacities?: MinCapacityCapability[]; + readonly zonePinning?: boolean; readonly zoneRedundant?: boolean; } -// @public -export interface ServiceObjectiveListResult { - value: ServiceObjective[]; -} - -// @public -export type ServiceObjectiveName = string; - -// @public -export interface ServiceObjectives { - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options?: ServiceObjectivesGetOptionalParams): Promise; - listByServer(resourceGroupName: string, serverName: string, options?: ServiceObjectivesListByServerOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ServiceObjectivesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServiceObjectivesGetResponse = ServiceObjective; - -// @public -export interface ServiceObjectivesListByServerOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; - // @public export interface ServicePrincipal { readonly clientId?: string; @@ -9561,13 +9659,6 @@ export interface Sku { tier?: string; } -// @public -export interface SloUsageMetric { - readonly inRangeTimeRatio?: number; - readonly serviceLevelObjective?: ServiceObjectiveName; - readonly serviceLevelObjectiveId?: string; -} - // @public export interface SqlAgent { createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: SqlAgentConfiguration, options?: SqlAgentCreateOrUpdateOptionalParams): Promise; @@ -9602,6 +9693,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SqlManagementClientOptionalParams); // (undocumented) + apiVersion: string; + // (undocumented) backupShortTermRetentionPolicies: BackupShortTermRetentionPolicies; // (undocumented) capabilities: Capabilities; @@ -9662,10 +9755,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) distributedAvailabilityGroups: DistributedAvailabilityGroups; // (undocumented) - elasticPoolActivities: ElasticPoolActivities; - // (undocumented) - elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; - // (undocumented) elasticPoolOperations: ElasticPoolOperations; // (undocumented) elasticPools: ElasticPools; @@ -9788,6 +9877,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) managedServerSecurityAlertPolicies: ManagedServerSecurityAlertPolicies; // (undocumented) + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; + // (undocumented) operations: Operations; // (undocumented) outboundFirewallRules: OutboundFirewallRules; @@ -9824,8 +9915,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) serverBlobAuditingPolicies: ServerBlobAuditingPolicies; // (undocumented) - serverCommunicationLinks: ServerCommunicationLinks; - // (undocumented) serverConfigurationOptions: ServerConfigurationOptions; // (undocumented) serverConnectionPolicies: ServerConnectionPolicies; @@ -9850,8 +9939,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) serverVulnerabilityAssessments: ServerVulnerabilityAssessments; // (undocumented) - serviceObjectives: ServiceObjectives; - // (undocumented) sqlAgent: SqlAgent; // (undocumented) sqlVulnerabilityAssessmentBaseline: SqlVulnerabilityAssessmentBaseline; @@ -9906,6 +9993,7 @@ export class SqlManagementClient extends coreClient.ServiceClient { // @public export interface SqlManagementClientOptionalParams extends coreClient.ServiceClientOptions { $host?: string; + apiVersion?: string; endpoint?: string; } @@ -10046,6 +10134,7 @@ export interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource { readonly errors?: SqlVulnerabilityAssessmentScanError[]; readonly highSeverityFailedRulesCount?: number; readonly isBaselineApplied?: boolean; + readonly lastScanTime?: Date; readonly lowSeverityFailedRulesCount?: number; readonly mediumSeverityFailedRulesCount?: number; readonly scanId?: string; @@ -10234,6 +10323,9 @@ export type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopM // @public export type StartStopScheduleName = string; +// @public +export type Status = string; + // @public export interface StorageCapability { reason?: string; @@ -10918,12 +11010,6 @@ export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTr // @public export type TransparentDataEncryptionState = "Enabled" | "Disabled"; -// @public -export type UnitDefinitionType = string; - -// @public -export type UnitType = string; - // @public export interface UpdateLongTermRetentionBackupParameters { requestedBackupStorageRedundancy?: BackupStorageRedundancy; @@ -10947,18 +11033,21 @@ export interface UpsertManagedServerOperationParameters { } // @public (undocumented) -export interface UpsertManagedServerOperationStep { +export interface UpsertManagedServerOperationStepWithEstimatesAndDuration { // (undocumented) name?: string; // (undocumented) order?: number; // (undocumented) - status?: UpsertManagedServerOperationStepStatus; + status?: Status; + // (undocumented) + stepEndTime?: Date; + // (undocumented) + stepStartTime?: Date; + // (undocumented) + timeElapsed?: string; } -// @public -export type UpsertManagedServerOperationStepStatus = string; - // @public export interface Usage { readonly currentValue?: number; diff --git a/sdk/sql/arm-sql/src/models/index.ts b/sdk/sql/arm-sql/src/models/index.ts index c775633dd138..73b1b2d8d381 100644 --- a/sdk/sql/arm-sql/src/models/index.ts +++ b/sdk/sql/arm-sql/src/models/index.ts @@ -8,6 +8,20 @@ import * as coreClient from "@azure/core-client"; +/** A list of short term retention policies. */ +export interface BackupShortTermRetentionPolicyListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: BackupShortTermRetentionPolicy[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + /** ARM resource. */ export interface Resource { /** @@ -27,222 +41,118 @@ export interface Resource { readonly type?: string; } -/** The response to a list data masking rules request. */ -export interface DataMaskingRuleListResult { - /** The list of database data masking rules. */ - value?: DataMaskingRule[]; -} - -/** The response to a list geo backup policies request. */ -export interface GeoBackupPolicyListResult { - /** The list of geo backup policies. */ - value?: GeoBackupPolicy[]; -} - -/** The response to a list database metrics request. */ -export interface MetricListResult { - /** The list of metrics for the database. */ - value: Metric[]; -} - -/** Database metrics. */ -export interface Metric { - /** - * The start time for the metric (ISO-8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * The end time for the metric (ISO-8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTime?: Date; - /** - * The time step to be used to summarize the metric values. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeGrain?: string; - /** - * The unit of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unit?: UnitType; +/** A list of server auditing settings. */ +export interface ServerBlobAuditingPolicyListResult { /** - * The name information for the metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: MetricName; + readonly value?: ServerBlobAuditingPolicy[]; /** - * The metric values for the specified time window and timestep. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly metricValues?: MetricValue[]; + readonly nextLink?: string; } -/** A database metric name. */ -export interface MetricName { +/** A list of database auditing settings. */ +export interface DatabaseBlobAuditingPolicyListResult { /** - * The name of the database metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: string; + readonly value?: DatabaseBlobAuditingPolicy[]; /** - * The friendly name of the database metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly localizedValue?: string; + readonly nextLink?: string; } -/** Represents database metrics. */ -export interface MetricValue { - /** - * The number of values for the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly count?: number; - /** - * The average value of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly average?: number; - /** - * The max value of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maximum?: number; - /** - * The min value of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minimum?: number; +/** A list of database extended auditing settings. */ +export interface ExtendedDatabaseBlobAuditingPolicyListResult { /** - * The metric timestamp (ISO-8601 format). + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timestamp?: Date; + readonly value?: ExtendedDatabaseBlobAuditingPolicy[]; /** - * The total value of the metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly total?: number; -} - -/** The response to a list database metric definitions request. */ -export interface MetricDefinitionListResult { - /** The list of metric definitions for the database. */ - value: MetricDefinition[]; + readonly nextLink?: string; } -/** A database metric definition. */ -export interface MetricDefinition { - /** - * The name information for the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: MetricName; - /** - * The primary aggregation type defining how metric values are displayed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly primaryAggregationType?: PrimaryAggregationType; - /** - * The resource uri of the database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceUri?: string; +/** A list of server extended auditing settings. */ +export interface ExtendedServerBlobAuditingPolicyListResult { /** - * The unit of the metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: UnitDefinitionType; + readonly value?: ExtendedServerBlobAuditingPolicy[]; /** - * The list of database metric availabilities for the metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly metricAvailabilities?: MetricAvailability[]; + readonly nextLink?: string; } -/** A metric availability value. */ -export interface MetricAvailability { +/** The list of database data masking rules. */ +export interface DataMaskingRuleListResult { /** - * The length of retention for the database metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly retention?: string; + readonly value?: DataMaskingRule[]; /** - * The granularity of the database metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeGrain?: string; -} - -/** A list of server communication links. */ -export interface ServerCommunicationLinkListResult { - /** The list of server communication links. */ - value?: ServerCommunicationLink[]; -} - -/** Represents the response to a get database service objectives request. */ -export interface ServiceObjectiveListResult { - /** The list of database service objectives. */ - value: ServiceObjective[]; -} - -/** Represents the response to a list elastic pool activity request. */ -export interface ElasticPoolActivityListResult { - /** The list of elastic pool activities. */ - value: ElasticPoolActivity[]; -} - -/** Represents the response to a list elastic pool database activity request. */ -export interface ElasticPoolDatabaseActivityListResult { - /** The list of elastic pool database activities. */ - value: ElasticPoolDatabaseActivity[]; -} - -/** Represents the response to a list server metrics request. */ -export interface ServerUsageListResult { - /** The list of server metrics for the server. */ - value: ServerUsage[]; + readonly nextLink?: string; } -/** Represents server metrics. */ -export interface ServerUsage { - /** - * Name of the server usage metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceName?: string; - /** - * The metric display name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly displayName?: string; +/** User activities of a data warehouse */ +export interface DataWarehouseUserActivitiesListResult { /** - * The current value of the metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly value?: DataWarehouseUserActivities[]; /** - * The current limit of the metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly nextLink?: string; +} + +/** A list of the database's Advanced Threat Protection configurations. */ +export interface DatabaseAdvancedThreatProtectionListResult { /** - * The units of the metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly value?: DatabaseAdvancedThreatProtection[]; /** - * The next reset time for the metric (ISO8601 format). + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextResetTime?: Date; + readonly nextLink?: string; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } /** Contains information of current state for an Azure SQL Database, Server or Elastic Pool Recommended Action. */ @@ -382,13 +292,13 @@ export interface DatabaseColumnListResult { readonly nextLink?: string; } -/** A list of database schemas. */ -export interface DatabaseSchemaListResult { +/** Import export operation extensions list. */ +export interface ImportExportExtensionsOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSchema[]; + readonly value?: ImportExportExtensionsOperationResult[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -396,43 +306,40 @@ export interface DatabaseSchemaListResult { readonly nextLink?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** A list of the database's security alert policies. */ -export interface DatabaseSecurityAlertListResult { +/** Contains the private endpoint connection requests status. */ +export interface PrivateEndpointConnectionRequestStatus { /** - * Array of results. + * Resource id for which the private endpoint is created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSecurityAlertPolicy[]; + readonly privateLinkServiceId?: string; /** - * Link to retrieve next page of results. + * The connection name for the private endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly privateEndpointConnectionName?: string; + /** + * Status of this private endpoint connection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; } -/** A list of database tables. */ -export interface DatabaseTableListResult { +/** Contains the ARM resources for which to create private endpoint connection. */ +export interface NetworkIsolationSettings { + /** The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter. */ + storageAccountResourceId?: string; + /** The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation. */ + sqlServerResourceId?: string; +} + +/** The response to a list database operations request */ +export interface DatabaseOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseTable[]; + readonly value?: DatabaseOperation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -440,43 +347,27 @@ export interface DatabaseTableListResult { readonly nextLink?: string; } -/** Properties for an Azure SQL Database Vulnerability Assessment rule baseline's result. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { - /** The rule baseline result */ - result: string[]; -} - -/** Properties of a Vulnerability Assessment recurring scans. */ -export interface VulnerabilityAssessmentRecurringScansProperties { - /** Recurring scans state. */ - isEnabled?: boolean; - /** Specifies that the schedule scan notification will be is sent to the subscription administrators. */ - emailSubscriptionAdmins?: boolean; - /** Specifies an array of e-mail addresses to which the scan notification is sent. */ - emails?: string[]; -} - -/** A list of the database's vulnerability assessments. */ -export interface DatabaseVulnerabilityAssessmentListResult { +/** The phase details properties of a database operation. */ +export interface PhaseDetails { /** - * Array of results. + * The operation phase. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseVulnerabilityAssessment[]; + readonly phase?: Phase; /** - * Link to retrieve next page of results. + * The operation phase information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly phaseInformation?: { [propertyName: string]: string }; } -/** A list of vulnerability assessment scan records. */ -export interface VulnerabilityAssessmentScanRecordListResult { +/** A list of database schemas. */ +export interface DatabaseSchemaListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: VulnerabilityAssessmentScanRecord[]; + readonly value?: DatabaseSchema[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -484,27 +375,27 @@ export interface VulnerabilityAssessmentScanRecordListResult { readonly nextLink?: string; } -/** Properties of a vulnerability assessment scan error. */ -export interface VulnerabilityAssessmentScanError { +/** A list of the database's security alert policies. */ +export interface DatabaseSecurityAlertListResult { /** - * The error code. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly value?: DatabaseSecurityAlertPolicy[]; /** - * The error message. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly nextLink?: string; } -/** User activities of a data warehouse */ -export interface DataWarehouseUserActivitiesListResult { +/** A list of SQL Vulnerability Assessments baseline set. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DataWarehouseUserActivities[]; + readonly value?: DatabaseSqlVulnerabilityAssessmentBaselineSet[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -512,13 +403,13 @@ export interface DataWarehouseUserActivitiesListResult { readonly nextLink?: string; } -/** A list of deleted servers. */ -export interface DeletedServerListResult { +/** A list of SQL Vulnerability Assessments rule baseline. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DeletedServer[]; + readonly value?: DatabaseSqlVulnerabilityAssessmentRuleBaseline[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -526,13 +417,13 @@ export interface DeletedServerListResult { readonly nextLink?: string; } -/** The response to a list elastic pool operations request */ -export interface ElasticPoolOperationListResult { +/** A list of vulnerability assessment scan results. */ +export interface SQLVulnerabilityAssessmentScanListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ElasticPoolOperation[]; + readonly value?: SqlVulnerabilityAssessmentScanResults[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -540,152 +431,157 @@ export interface ElasticPoolOperationListResult { readonly nextLink?: string; } -/** A list of server encryption protectors. */ -export interface EncryptionProtectorListResult { +/** SQL Vulnerability Assessment remediation Details. */ +export interface Remediation { /** - * Array of results. + * SQL Vulnerability Assessment remediation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: EncryptionProtector[]; + readonly description?: string; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment remediation script. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Read-write endpoint of the failover group instance. */ -export interface FailoverGroupReadWriteEndpoint { - /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - failoverPolicy: ReadWriteEndpointFailoverPolicy; - /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - failoverWithDataLossGracePeriodMinutes?: number; -} - -/** Read-only endpoint of the failover group instance. */ -export interface FailoverGroupReadOnlyEndpoint { - /** Failover policy of the read-only endpoint for the failover group. */ - failoverPolicy?: ReadOnlyEndpointFailoverPolicy; -} - -/** Partner server information for the failover group. */ -export interface PartnerInfo { - /** Resource identifier of the partner server. */ - id: string; + readonly scripts?: string[]; /** - * Geo location of the partner server. + * SQL Vulnerability Assessment is remediation automated. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly automated?: boolean; /** - * Replication role of the partner server. + * SQL Vulnerability Assessment optional link to remediate in Azure Portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationRole?: FailoverGroupReplicationRole; -} - -/** A failover group update request. */ -export interface FailoverGroupUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Read-write endpoint of the failover group instance. */ - readWriteEndpoint?: FailoverGroupReadWriteEndpoint; - /** Read-only endpoint of the failover group instance. */ - readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; - /** List of databases in the failover group. */ - databases?: string[]; + readonly portalLink?: string; } -/** A list of failover groups. */ -export interface FailoverGroupListResult { +/** SQL Vulnerability Assessment baseline adjusted results */ +export interface BaselineAdjustedResult { /** - * Array of results. + * SQL Vulnerability Assessment baseline details * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: FailoverGroup[]; + readonly baseline?: Baseline; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment baseline status * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** ARM resource. */ -export interface ResourceWithWritableName { + readonly status?: RuleStatus; /** - * Resource ID. + * SQL Vulnerability Assessment results that are not in baseline * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; - /** Resource name. */ - name?: string; + readonly resultsNotInBaseline?: string[][]; /** - * Resource type. + * SQL Vulnerability Assessment results that are in baseline. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly resultsOnlyInBaseline?: string[][]; } -/** The response to a list firewall rules request */ -export interface FirewallRuleListResult { +/** SQL Vulnerability Assessment baseline Details */ +export interface Baseline { /** - * Array of results. + * SQL Vulnerability Assessment baseline expected results * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: FirewallRule[]; + readonly expectedResults?: string[][]; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment baseline update time (UTC) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of server firewall rules. */ -export interface FirewallRuleList { - values?: FirewallRule[]; + readonly updatedTime?: Date; } -/** An ARM Resource SKU. */ -export interface Sku { - /** The name of the SKU, typically, a letter + Number code, e.g. P3. */ - name: string; - /** The tier or edition of the particular SKU, e.g. Basic, Premium. */ - tier?: string; - /** Size of the particular SKU */ - size?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** Capacity of the particular SKU. */ - capacity?: number; +/** SQL Vulnerability Assessment rule metadata details. */ +export interface VaRule { + /** + * SQL Vulnerability Assessment rule Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleId?: string; + /** + * SQL Vulnerability Assessment rule severity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly severity?: RuleSeverity; + /** + * SQL Vulnerability Assessment rule category. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly category?: string; + /** + * SQL Vulnerability Assessment rule type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleType?: RuleType; + /** + * SQL Vulnerability Assessment rule title. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly title?: string; + /** + * SQL Vulnerability Assessment rule description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * SQL Vulnerability Assessment rule rationale. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly rationale?: string; + /** + * SQL Vulnerability Assessment rule query details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly queryCheck?: QueryCheck; + /** + * SQL Vulnerability Assessment benchmark references. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly benchmarkReferences?: BenchmarkReference[]; } -/** An update to an Instance pool. */ -export interface InstancePoolUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** SQL Vulnerability Assessment query check object. */ +export interface QueryCheck { + /** + * SQL Vulnerability Assessment rule query. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly query?: string; + /** + * SQL Vulnerability Assessment query expected result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expectedResult?: string[][]; + /** + * SQL Vulnerability Assessment column names of query expected result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly columnNames?: string[]; } -/** A list of Azure SQL instance pools. */ -export interface InstancePoolListResult { +/** SQL Vulnerability Assessment benchmark reference */ +export interface BenchmarkReference { /** - * Array of results. + * SQL Vulnerability Assessment benchmark name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: InstancePool[]; + readonly benchmark?: string; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment benchmark reference. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly reference?: string; } -/** A list of Azure SQL job agents. */ -export interface JobAgentListResult { +/** A list of vulnerability assessment scan records. */ +export interface SqlVulnerabilityAssessmentScanRecordListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobAgent[]; + readonly value?: SqlVulnerabilityAssessmentScanRecord[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -693,19 +589,27 @@ export interface JobAgentListResult { readonly nextLink?: string; } -/** An update to an Azure SQL job agent. */ -export interface JobAgentUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** Properties of a vulnerability assessment scan error. */ +export interface SqlVulnerabilityAssessmentScanError { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; } -/** A list of job credentials. */ -export interface JobCredentialListResult { +/** A list of SQL Vulnerability Assessments. */ +export interface SqlVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobCredential[]; + readonly value?: SqlVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -713,13 +617,13 @@ export interface JobCredentialListResult { readonly nextLink?: string; } -/** A list of job executions. */ -export interface JobExecutionListResult { +/** A list of database tables. */ +export interface DatabaseTableListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobExecution[]; + readonly value?: DatabaseTable[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -727,32 +631,33 @@ export interface JobExecutionListResult { readonly nextLink?: string; } -/** The target that a job execution is executed on. */ -export interface JobExecutionTarget { - /** - * The type of the target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: JobTargetType; +/** A list of database usage metrics. */ +export interface DatabaseUsageListResult { /** - * The server name. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly value?: DatabaseUsage[]; /** - * The database name. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly nextLink?: string; } -/** A list of jobs. */ -export interface JobListResult { +/** Properties for an Azure SQL Database Vulnerability Assessment rule baseline's result. */ +export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { + /** The rule baseline result */ + result: string[]; +} + +/** A list of vulnerability assessment scan records. */ +export interface VulnerabilityAssessmentScanRecordListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Job[]; + readonly value?: VulnerabilityAssessmentScanRecord[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -760,85 +665,27 @@ export interface JobListResult { readonly nextLink?: string; } -/** Scheduling properties of a job. */ -export interface JobSchedule { - /** Schedule start time. */ - startTime?: Date; - /** Schedule end time. */ - endTime?: Date; - /** Schedule interval type */ - type?: JobScheduleType; - /** Whether or not the schedule is enabled. */ - enabled?: boolean; - /** Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format. */ - interval?: string; -} - -/** A list of job steps. */ -export interface JobStepListResult { +/** Properties of a vulnerability assessment scan error. */ +export interface VulnerabilityAssessmentScanError { /** - * Array of results. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobStep[]; + readonly code?: string; /** - * Link to retrieve next page of results. + * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** The action to be executed by a job step. */ -export interface JobStepAction { - /** Type of action being executed by the job step. */ - type?: JobStepActionType; - /** The source of the action to execute. */ - source?: JobStepActionSource; - /** The action value, for example the text of the T-SQL script to execute. */ - value: string; -} - -/** The output configuration of a job step. */ -export interface JobStepOutput { - /** The output destination type. */ - type?: JobStepOutputType; - /** The output destination subscription id. */ - subscriptionId?: string; - /** The output destination resource group. */ - resourceGroupName?: string; - /** The output destination server name. */ - serverName: string; - /** The output destination database. */ - databaseName: string; - /** The output destination schema. */ - schemaName?: string; - /** The output destination table. */ - tableName: string; - /** The resource ID of the credential to use to connect to the output destination. */ - credential: string; -} - -/** The execution options of a job step. */ -export interface JobStepExecutionOptions { - /** Execution timeout for the job step. */ - timeoutSeconds?: number; - /** Maximum number of times the job step will be reattempted if the first attempt fails. */ - retryAttempts?: number; - /** Initial delay between retries for job step execution. */ - initialRetryIntervalSeconds?: number; - /** The maximum amount of time to wait between retries for job step execution. */ - maximumRetryIntervalSeconds?: number; - /** The backoff multiplier for the time between retries. */ - retryIntervalBackoffMultiplier?: number; + readonly message?: string; } -/** A list of target groups. */ -export interface JobTargetGroupListResult { +/** A list of the database's vulnerability assessments. */ +export interface DatabaseVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobTargetGroup[]; + readonly value?: DatabaseVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -846,31 +693,23 @@ export interface JobTargetGroupListResult { readonly nextLink?: string; } -/** A job target, for example a specific database or a container of databases that is evaluated during job execution. */ -export interface JobTarget { - /** Whether the target is included or excluded from the group. */ - membershipType?: JobTargetGroupMembershipType; - /** The target type. */ - type: JobTargetType; - /** The target server name. */ - serverName?: string; - /** The target database name. */ - databaseName?: string; - /** The target elastic pool name. */ - elasticPoolName?: string; - /** The target shard map. */ - shardMapName?: string; - /** The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target. */ - refreshCredential?: string; +/** Properties of a Vulnerability Assessment recurring scans. */ +export interface VulnerabilityAssessmentRecurringScansProperties { + /** Recurring scans state. */ + isEnabled?: boolean; + /** Specifies that the schedule scan notification will be is sent to the subscription administrators. */ + emailSubscriptionAdmins?: boolean; + /** Specifies an array of e-mail addresses to which the scan notification is sent. */ + emails?: string[]; } -/** A list of job versions. */ -export interface JobVersionListResult { +/** A list of databases. */ +export interface DatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobVersion[]; + readonly value?: Database[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -878,653 +717,968 @@ export interface JobVersionListResult { readonly nextLink?: 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; +/** 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; +} + +/** Azure Active Directory identity configuration for a resource. */ +export interface DatabaseIdentity { + /** The identity type */ + type?: DatabaseIdentityType; /** - * The list of supported server versions. + * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedServerVersions?: ServerVersionCapability[]; + readonly tenantId?: string; + /** The resource ids of the user assigned identities to use */ + userAssignedIdentities?: { [propertyName: string]: DatabaseUserIdentity }; +} + +/** Azure Active Directory identity configuration for a resource. */ +export interface DatabaseUserIdentity { /** - * The list of supported managed instance versions. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; + readonly principalId?: string; /** - * The status of the capability. + * The Azure Active Directory client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly clientId?: string; } -/** The server capability */ -export interface ServerVersionCapability { +/** Database level key used for encryption at rest. */ +export interface DatabaseKey { /** - * The server version name. + * The database key type. Only supported value is 'AzureKeyVault'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly type?: DatabaseKeyType; /** - * The list of supported database editions. + * Thumbprint of the database key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedEditions?: EditionCapability[]; + readonly thumbprint?: string; /** - * The list of supported elastic pool editions. + * The database key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedElasticPoolEditions?: ElasticPoolEditionCapability[]; + readonly creationDate?: Date; /** - * The status of the capability. + * Subregion of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly subregion?: string; } -/** The edition capability. */ -export interface EditionCapability { - /** - * 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[]; +/** A database update resource. */ +export interface DatabaseUpdate { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Database identity */ + identity?: DatabaseIdentity; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** - * 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. + * Specifies the mode of database creation. + * + * Default: regular database creation. + * + * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. + * + * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database. + * + * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified. + * + * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. + * + * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time. + * + * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. + * + * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. */ - readonly zoneRedundant?: boolean; + createMode?: CreateMode; + /** The collation of the database. */ + collation?: string; + /** The max size of the database expressed in bytes. */ + maxSizeBytes?: number; + /** The name of the sample schema to apply when creating this database. */ + sampleName?: SampleName; + /** The resource identifier of the elastic pool containing this database. */ + elasticPoolId?: string; + /** The resource identifier of the source database associated with create operation of this database. */ + sourceDatabaseId?: string; /** - * The read scale capability for the edition. + * The status of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly readScale?: ReadScaleCapability; + readonly status?: DatabaseStatus; /** - * The list of supported storage capabilities for this edition + * The ID of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedStorageCapabilities?: StorageCapability[]; + readonly databaseId?: string; /** - * The status of the capability. + * The creation date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; -} - -/** The service objectives capability. */ -export interface ServiceObjectiveCapability { + readonly creationDate?: Date; /** - * The unique ID of the service objective. + * The current service level objective name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly currentServiceObjectiveName?: string; /** - * The service objective name. + * 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 name?: string; + readonly requestedServiceObjectiveName?: string; /** - * The list of supported maximum database sizes. + * The default secondary region for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaxSizes?: MaxSizeRangeCapability[]; + readonly defaultSecondaryLocation?: string; /** - * The performance level. + * 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 performanceLevel?: PerformanceLevelCapability; + readonly failoverGroupId?: string; + /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ + restorePointInTime?: Date; + /** Specifies the time that the database was deleted. */ + sourceDatabaseDeletionDate?: Date; + /** The resource identifier of the recovery point associated with create operation of this database. */ + recoveryServicesRecoveryPointId?: string; + /** The resource identifier of the long term retention backup associated with create operation of this database. */ + longTermRetentionBackupResourceId?: string; + /** The resource identifier of the recoverable database associated with create operation of this database. */ + recoverableDatabaseId?: string; + /** The resource identifier of the restorable dropped database associated with create operation of this database. */ + restorableDroppedDatabaseId?: string; + /** Collation of the metadata catalog. */ + catalogCollation?: CatalogCollationType; + /** Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. */ + zoneRedundant?: boolean; + /** The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. */ + licenseType?: DatabaseLicenseType; /** - * The sku. + * The max log size for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sku?: Sku; + readonly maxLogSizeBytes?: number; /** - * List of supported license types. + * 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 supportedLicenseTypes?: LicenseTypeCapability[]; + readonly earliestRestoreDate?: Date; + /** The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. */ + readScale?: DatabaseReadScale; + /** The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool. */ + highAvailabilityReplicaCount?: number; + /** The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby. */ + secondaryType?: SecondaryType; /** - * The included (free) max size. + * The name and tier of the SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly includedMaxSize?: MaxSizeCapability; + readonly currentSku?: Sku; + /** Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled */ + autoPauseDelay?: number; /** - * Whether or not zone redundancy is supported for the service objective. + * The storage account type used to store backups for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; + /** The storage account type to be used to store backups for this database. */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + /** Minimal capacity that database will always have allocated, if not paused */ + minCapacity?: number; /** - * Supported time range for auto pause delay + * 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 supportedAutoPauseDelay?: AutoPauseDelayTimeRange; + readonly pausedDate?: Date; /** - * List of supported min capacities + * 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 supportedMinCapacities?: MinCapacityCapability[]; + readonly resumedDate?: Date; + /** Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur. */ + maintenanceConfigurationId?: string; + /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ + isLedgerOn?: boolean; /** - * The compute model + * Infra encryption is enabled for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly computeModel?: string; + readonly isInfraEncryptionEnabled?: boolean; + /** The Client id used for cross tenant per database CMK scenario */ + federatedClientId?: string; + /** The resource ids of the user assigned identities to use */ + keys?: { [propertyName: string]: DatabaseKey }; + /** The azure key vault URI of the database if it's configured with per Database Customer Managed Keys. */ + encryptionProtector?: string; + /** Type of enclave requested on the database i.e. Default or VBS enclaves. */ + preferredEnclaveType?: AlwaysEncryptedEnclaveType; /** - * List of supported maintenance configurations - * NOTE: This property will not be serialized. It can only be populated by the server. + * Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier. + * + * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier. + * + * When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database. + * + * To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state. */ - readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; + manualCutover?: boolean; /** - * The status of the capability. - * NOTE: This property will not be serialized. It can only be populated by the server. + * To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress. + * + * This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter. + * + * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress. + * + * When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + performCutover?: boolean; } -/** The maximum size range capability. */ -export interface MaxSizeRangeCapability { +/** Contains the information necessary to perform export database operation. */ +export interface ExportDatabaseDefinition { + /** Storage key type. */ + storageKeyType: StorageKeyType; + /** Storage key. */ + storageKey: string; + /** Storage Uri. */ + storageUri: string; + /** Administrator login name. */ + administratorLogin: string; + /** Administrator login password. */ + administratorLoginPassword: string; + /** Authentication type. */ + authenticationType?: string; + /** Optional resource information to enable network isolation for request. */ + networkIsolation?: NetworkIsolationSettings; +} + +/** Contains the information necessary to perform import operation for existing database. */ +export interface ImportExistingDatabaseDefinition { + /** Storage key type. */ + storageKeyType: StorageKeyType; + /** Storage key. */ + storageKey: string; + /** Storage Uri. */ + storageUri: string; + /** Administrator login name. */ + administratorLogin: string; + /** Administrator login password. */ + administratorLoginPassword: string; + /** Authentication type. */ + authenticationType?: string; + /** Optional resource information to enable network isolation for request. */ + networkIsolation?: NetworkIsolationSettings; +} + +/** Contains the information necessary to perform a resource move (rename). */ +export interface ResourceMoveDefinition { + /** The target ID for the resource */ + id: string; +} + +/** A list of deleted servers. */ +export interface DeletedServerListResult { /** - * Minimum value. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly minValue?: MaxSizeCapability; + readonly value?: DeletedServer[]; /** - * Maximum value. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxValue?: MaxSizeCapability; + readonly nextLink?: string; +} + +/** A list of distributed availability groups in instance. */ +export interface DistributedAvailabilityGroupsListResult { /** - * Scale/step size for discrete values between the minimum value and the maximum value. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scaleSize?: MaxSizeCapability; + readonly value?: DistributedAvailabilityGroup[]; /** - * Size of transaction log. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly logSize?: LogSizeCapability; + readonly nextLink?: string; +} + +/** Database specific information */ +export interface DistributedAvailabilityGroupDatabase { /** - * The status of the capability. + * The name of the database in link * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; -} - -/** The maximum size capability. */ -export interface MaxSizeCapability { + readonly databaseName?: string; /** - * The maximum size limit (see 'unit' for the units). + * Managed instance replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly instanceReplicaId?: string; /** - * The units that the limit is expressed in. + * SQL server replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: MaxSizeUnit; -} - -/** The log size capability. */ -export interface LogSizeCapability { + readonly partnerReplicaId?: string; /** - * The log size limit (see 'unit' for the units). + * Current link state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly replicaState?: string; /** - * The units that the limit is expressed in. + * Link health state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: LogSizeUnit; -} - -/** The performance level capability. */ -export interface PerformanceLevelCapability { + readonly synchronizationHealth?: ReplicaSynchronizationHealth; /** - * Performance level value. + * Link connected state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly connectedState?: ReplicaConnectedState; /** - * Unit type used to measure performance level. + * Last received LSN * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PerformanceLevelUnit; -} - -/** The license type capability */ -export interface LicenseTypeCapability { + readonly lastReceivedLsn?: string; /** - * License type identifier. + * Last received LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly lastReceivedTime?: Date; /** - * The status of the capability. + * Last sent LSN * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; -} - -/** Supported auto pause delay time range */ -export interface AutoPauseDelayTimeRange { + readonly lastSentLsn?: string; /** - * Minimum value + * Last sent LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly minValue?: number; + readonly lastSentTime?: Date; /** - * Maximum value + * Last commit LSN * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxValue?: number; + readonly lastCommitLsn?: string; /** - * Step value for discrete values between the minimum value and the maximum value. + * Last commit LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepSize?: number; + readonly lastCommitTime?: Date; /** - * Default value is no value is provided + * Last hardened LSN * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly default?: number; + readonly lastHardenedLsn?: string; /** - * Unit of time that delay is expressed in + * Last hardened LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PauseDelayTimeUnit; + readonly lastHardenedTime?: Date; /** - * Value that is used to not pause (infinite delay before pause) + * Last backup LSN * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly doNotPauseValue?: number; -} - -/** The min capacity capability */ -export interface MinCapacityCapability { + readonly lastBackupLsn?: string; /** - * Min capacity value + * Last backup LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly lastBackupTime?: Date; /** - * The status of the capability. + * The most recent link connection error description * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; -} - -/** The maintenance configuration capability */ -export interface MaintenanceConfigurationCapability { + readonly mostRecentLinkError?: string; /** - * Maintenance configuration name + * SQL server certificate validity * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly partnerAuthCertValidity?: CertificateInfo; /** - * Whether or not zone redundancy is supported for the maintenance configuration. + * Replication lag when Managed Instance link side is primary * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly instanceSendReplicationLagSeconds?: number; /** - * The status of the capability. + * Redo lag when Managed Instance link side is primary * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly instanceRedoReplicationLagSeconds?: number; } -/** The read scale capability. */ -export interface ReadScaleCapability { +/** Certificate information */ +export interface CertificateInfo { /** - * The maximum number of read scale replicas. + * The certificate name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxNumberOfReplicas?: number; + readonly certificateName?: string; /** - * The status of the capability. + * The certificate ID * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly certificateId?: string; + /** + * The certificate expiry date + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expiryDate?: Date; } -/** The storage account type capability. */ -export interface StorageCapability { +/** Information for creating and updating distributed availability group */ +export interface DistributedAvailabilityGroupsCreateOrUpdateRequestBody { + /** The name of the target database */ + targetDatabase?: string; + /** The source endpoint */ + sourceEndpoint?: string; + /** The primary availability group name */ + primaryAvailabilityGroupName?: string; + /** The secondary availability group name */ + secondaryAvailabilityGroupName?: string; + /** The replication mode of a distributed availability group. Parameter will be ignored during link creation. */ + replicationMode?: ReplicationModeType; +} + +/** Distributed availability group failover request. */ +export interface DistributedAvailabilityGroupSetRole { + /** New role of managed instance in a distributed availability group, can be Primary or Secondary. */ + instanceRole: InstanceRole; + /** The type of the role change, can be Planned or Forced. */ + roleChangeType: RoleChangeType; +} + +/** The response to a list elastic pool operations request */ +export interface ElasticPoolOperationListResult { /** - * The storage account type for the database's backups. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageAccountType?: StorageCapabilityStorageAccountType; + readonly value?: ElasticPoolOperation[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The elastic pool edition capability. */ -export interface ElasticPoolEditionCapability { +/** The result of an elastic pool list request. */ +export interface ElasticPoolListResult { /** - * The elastic pool edition name. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: ElasticPool[]; /** - * The list of supported elastic pool DTU levels for the edition. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; + readonly nextLink?: string; +} + +/** Per database settings of an elastic pool. */ +export interface ElasticPoolPerDatabaseSettings { + /** The minimum capacity all databases are guaranteed. */ + minCapacity?: number; + /** The maximum capacity any one database can consume. */ + maxCapacity?: number; +} + +/** An elastic pool update. */ +export interface ElasticPoolUpdate { + /** An ARM Resource SKU. */ + sku?: Sku; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The storage limit for the database elastic pool in bytes. */ + maxSizeBytes?: number; + /** Minimal capacity that serverless pool will not shrink below, if not paused */ + minCapacity?: number; + /** The per database settings for the elastic pool. */ + perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ + zoneRedundant?: boolean; + /** The license type to apply for this elastic pool. */ + licenseType?: ElasticPoolLicenseType; + /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ + maintenanceConfigurationId?: string; + /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. */ + highAvailabilityReplicaCount?: number; + /** Type of enclave requested on the elastic pool. */ + preferredEnclaveType?: AlwaysEncryptedEnclaveType; + /** Specifies the availability zone the pool's primary replica is pinned to. */ + availabilityZone?: AvailabilityZoneType; +} + +/** A list of server encryption protectors. */ +export interface EncryptionProtectorListResult { /** - * Whether or not zone redundancy is supported for the edition. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly value?: EncryptionProtector[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The Elastic Pool performance level capability. */ -export interface ElasticPoolPerformanceLevelCapability { - /** - * The performance level for the pool. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly performanceLevel?: PerformanceLevelCapability; +/** A list of endpoint certificates on the target instance. */ +export interface EndpointCertificateListResult { /** - * The sku. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sku?: Sku; + readonly value?: EndpointCertificate[]; /** - * List of supported license types. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly nextLink?: string; +} + +/** A list of failover groups. */ +export interface FailoverGroupListResult { /** - * The maximum number of databases supported. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxDatabaseCount?: number; + readonly value?: FailoverGroup[]; /** - * The included (free) max size for this performance level. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly includedMaxSize?: MaxSizeCapability; + readonly nextLink?: string; +} + +/** Read-write endpoint of the failover group instance. */ +export interface FailoverGroupReadWriteEndpoint { + /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ + failoverPolicy: ReadWriteEndpointFailoverPolicy; + /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ + failoverWithDataLossGracePeriodMinutes?: number; +} + +/** Read-only endpoint of the failover group instance. */ +export interface FailoverGroupReadOnlyEndpoint { + /** Failover policy of the read-only endpoint for the failover group. */ + failoverPolicy?: ReadOnlyEndpointFailoverPolicy; + /** The target partner server where the read-only endpoint points to. */ + targetServer?: string; +} + +/** Partner server information for the failover group. */ +export interface PartnerInfo { + /** Resource identifier of the partner server. */ + id: string; /** - * The list of supported max sizes. + * Geo location of the partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaxSizes?: MaxSizeRangeCapability[]; + readonly location?: string; /** - * The list of supported per database max sizes. + * Replication role of the partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; + readonly replicationRole?: FailoverGroupReplicationRole; +} + +/** A failover group update request. */ +export interface FailoverGroupUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** Read-write endpoint of the failover group instance. */ + readWriteEndpoint?: FailoverGroupReadWriteEndpoint; + /** Read-only endpoint of the failover group instance. */ + readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; + /** List of databases in the failover group. */ + databases?: string[]; + /** List of partner server information for the failover group. */ + partnerServers?: PartnerInfo[]; +} + +/** The response to a list firewall rules request */ +export interface FirewallRuleListResult { /** - * The list of supported per database max performance levels. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; + readonly value?: FirewallRule[]; /** - * Whether or not zone redundancy is supported for the performance level. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly nextLink?: string; +} + +/** ARM resource. */ +export interface ResourceWithWritableName { /** - * List of supported maintenance configurations + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; + readonly id?: string; + /** Resource name. */ + name?: string; /** - * The status of the capability. + * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly type?: string; } -/** The max per-database performance level capability. */ -export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { +/** A list of server firewall rules. */ +export interface FirewallRuleList { + values?: FirewallRule[]; +} + +/** The list of geo backup policies. */ +export interface GeoBackupPolicyListResult { /** - * The maximum performance level per database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly value?: GeoBackupPolicy[]; /** - * Unit type used to measure performance level. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PerformanceLevelUnit; + readonly nextLink?: string; +} + +/** The response to a list IPv6 firewall rules request */ +export interface IPv6FirewallRuleListResult { /** - * The list of supported min database performance levels. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedPerDatabaseMinPerformanceLevels?: ElasticPoolPerDatabaseMinPerformanceLevelCapability[]; + readonly value?: IPv6FirewallRule[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The minimum per-database performance level capability. */ -export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { - /** - * The minimum performance level per database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly limit?: number; +/** A list of instance failover groups. */ +export interface InstanceFailoverGroupListResult { /** - * Unit type used to measure performance level. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PerformanceLevelUnit; + readonly value?: InstanceFailoverGroup[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The managed instance capability */ -export interface ManagedInstanceVersionCapability { +/** Read-write endpoint of the failover group instance. */ +export interface InstanceFailoverGroupReadWriteEndpoint { + /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ + failoverPolicy: ReadWriteEndpointFailoverPolicy; + /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ + failoverWithDataLossGracePeriodMinutes?: number; +} + +/** Read-only endpoint of the failover group instance. */ +export interface InstanceFailoverGroupReadOnlyEndpoint { + /** Failover policy of the read-only endpoint for the failover group. */ + failoverPolicy?: ReadOnlyEndpointFailoverPolicy; +} + +/** Partner region information for the failover group. */ +export interface PartnerRegionInfo { + /** Geo location of the partner managed instances. */ + location?: string; /** - * The server version name. + * Replication role of the partner managed instances. * 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[]; + readonly replicationRole?: InstanceFailoverGroupReplicationRole; +} + +/** Pairs of Managed Instances in the failover group. */ +export interface ManagedInstancePairInfo { + /** Id of Primary Managed Instance in pair. */ + primaryManagedInstanceId?: string; + /** Id of Partner Managed Instance in pair. */ + partnerManagedInstanceId?: string; +} + +/** A list of Azure SQL instance pools. */ +export interface InstancePoolListResult { /** - * The list of supported instance pool editions. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedInstancePoolEditions?: InstancePoolEditionCapability[]; + readonly value?: InstancePool[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The managed 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; +/** An update to an Instance pool. */ +export interface InstancePoolUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** A list of Azure SQL job agents. */ +export interface JobAgentListResult { /** - * The supported families. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; + readonly value?: JobAgent[]; /** - * The list of supported storage capabilities for this edition + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedStorageCapabilities?: StorageCapability[]; + readonly nextLink?: string; +} + +/** An update to an Azure SQL job agent. */ +export interface JobAgentUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** A list of job credentials. */ +export interface JobCredentialListResult { /** - * Whether or not zone redundancy is supported for the edition. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly value?: JobCredential[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The managed server family capability. */ -export interface ManagedInstanceFamilyCapability { +/** A list of job executions. */ +export interface JobExecutionListResult { /** - * Family name. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: JobExecution[]; /** - * SKU name. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sku?: string; + readonly nextLink?: string; +} + +/** The target that a job execution is executed on. */ +export interface JobExecutionTarget { /** - * List of supported license types. + * The type of the target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly type?: JobTargetType; /** - * List of supported virtual cores values. + * The server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; + readonly serverName?: string; /** - * The status of the capability. + * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly databaseName?: string; } -/** The managed instance virtual cores capability. */ -export interface ManagedInstanceVcoresCapability { +/** A list of job steps. */ +export interface JobStepListResult { /** - * The virtual cores identifier. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: JobStep[]; /** - * The virtual cores value. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly nextLink?: string; +} + +/** The action to be executed by a job step. */ +export interface JobStepAction { + /** Type of action being executed by the job step. */ + type?: JobStepActionType; + /** The source of the action to execute. */ + source?: JobStepActionSource; + /** The action value, for example the text of the T-SQL script to execute. */ + value: string; +} + +/** The output configuration of a job step. */ +export interface JobStepOutput { + /** The output destination type. */ + type?: JobStepOutputType; + /** The output destination subscription id. */ + subscriptionId?: string; + /** The output destination resource group. */ + resourceGroupName?: string; + /** The output destination server name. */ + serverName: string; + /** The output destination database. */ + databaseName: string; + /** The output destination schema. */ + schemaName?: string; + /** The output destination table. */ + tableName: string; + /** The resource ID of the credential to use to connect to the output destination. */ + credential: string; +} + +/** The execution options of a job step. */ +export interface JobStepExecutionOptions { + /** Execution timeout for the job step. */ + timeoutSeconds?: number; + /** Maximum number of times the job step will be reattempted if the first attempt fails. */ + retryAttempts?: number; + /** Initial delay between retries for job step execution. */ + initialRetryIntervalSeconds?: number; + /** The maximum amount of time to wait between retries for job step execution. */ + maximumRetryIntervalSeconds?: number; + /** The backoff multiplier for the time between retries. */ + retryIntervalBackoffMultiplier?: number; +} + +/** A list of target groups. */ +export interface JobTargetGroupListResult { /** - * Included size. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly includedMaxSize?: MaxSizeCapability; + readonly value?: JobTargetGroup[]; /** - * Storage size ranges. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedStorageSizes?: MaxSizeRangeCapability[]; + readonly nextLink?: string; +} + +/** A job target, for example a specific database or a container of databases that is evaluated during job execution. */ +export interface JobTarget { + /** Whether the target is included or excluded from the group. */ + membershipType?: JobTargetGroupMembershipType; + /** The target type. */ + type: JobTargetType; + /** The target server name. */ + serverName?: string; + /** The target database name. */ + databaseName?: string; + /** The target elastic pool name. */ + elasticPoolName?: string; + /** The target shard map. */ + shardMapName?: string; + /** The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target. */ + refreshCredential?: string; +} + +/** A list of job versions. */ +export interface JobVersionListResult { /** - * True if this service objective is supported for managed instances in an instance pool. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instancePoolSupported?: boolean; + readonly value?: JobVersion[]; /** - * True if this service objective is supported for standalone managed instances. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly standaloneSupported?: boolean; + readonly nextLink?: string; +} + +/** A list of jobs. */ +export interface JobListResult { /** - * List of supported maintenance configurations + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaintenanceConfigurations?: ManagedInstanceMaintenanceConfigurationCapability[]; + readonly value?: Job[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The maintenance configuration capability */ -export interface ManagedInstanceMaintenanceConfigurationCapability { +/** Scheduling properties of a job. */ +export interface JobSchedule { + /** Schedule start time. */ + startTime?: Date; + /** Schedule end time. */ + endTime?: Date; + /** Schedule interval type */ + type?: JobScheduleType; + /** Whether or not the schedule is enabled. */ + enabled?: boolean; + /** Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format. */ + interval?: string; +} + +/** A list of ledger digest upload settings. */ +export interface LedgerDigestUploadsListResult { /** - * Maintenance configuration name + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: LedgerDigestUploads[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The instance pool capability */ -export interface InstancePoolEditionCapability { +/** The location capability. */ +export interface LocationCapabilities { /** - * The instance pool version name. + * The location name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The supported families. + * The list of supported server versions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedFamilies?: InstancePoolFamilyCapability[]; + readonly supportedServerVersions?: ServerVersionCapability[]; + /** + * The list of supported managed instance versions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1534,23 +1688,23 @@ export interface InstancePoolEditionCapability { reason?: string; } -/** The instance pool family capability. */ -export interface InstancePoolFamilyCapability { - /** - * Family name. +/** 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; /** - * List of supported license types. + * The list of supported database editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly supportedEditions?: EditionCapability[]; /** - * List of supported virtual cores values. + * The list of supported elastic pool editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedVcoresValues?: InstancePoolVcoresCapability[]; + readonly supportedElasticPoolEditions?: ElasticPoolEditionCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1560,23 +1714,38 @@ export interface InstancePoolFamilyCapability { reason?: string; } -/** The managed instance virtual cores capability. */ -export interface InstancePoolVcoresCapability { +/** The edition capability. */ +export interface EditionCapability { /** - * The virtual cores identifier. + * The database edition name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The virtual cores value. + * The list of supported service objectives for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; /** - * Storage limit. + * Whether or not zone redundancy is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageLimit?: MaxSizeCapability; + readonly zoneRedundant?: boolean; + /** + * The read scale capability for the edition. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly readScale?: ReadScaleCapability; + /** + * The list of supported storage capabilities for this edition + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly supportedStorageCapabilities?: StorageCapability[]; + /** + * Whether or not zone pinning is supported for the edition. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly zonePinning?: boolean; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1586,667 +1755,643 @@ export interface InstancePoolVcoresCapability { reason?: string; } -/** A list of long term retention policies. */ -export interface LongTermRetentionPolicyListResult { +/** The service objectives capability. */ +export interface ServiceObjectiveCapability { /** - * Array of results. + * The unique ID of the service objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LongTermRetentionPolicy[]; + readonly id?: string; /** - * Link to retrieve next page of results. + * The service objective name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Maintenance window time range. */ -export interface MaintenanceWindowTimeRange { - /** Day of maintenance window. */ - dayOfWeek?: DayOfWeek; - /** Start time minutes offset from 12am. */ - startTime?: string; - /** Duration of maintenance window in minutes. */ - duration?: string; -} - -/** A list of short term retention policies. */ -export interface ManagedBackupShortTermRetentionPolicyListResult { + readonly name?: string; /** - * Array of results. + * The list of supported maximum database sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedBackupShortTermRetentionPolicy[]; + readonly supportedMaxSizes?: MaxSizeRangeCapability[]; /** - * Link to retrieve next page of results. + * The performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Execution statistics for one particular query */ -export interface ManagedInstanceQueryStatistics { + readonly performanceLevel?: PerformanceLevelCapability; /** - * Array of results. + * The sku. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: QueryStatistics[]; + readonly sku?: Sku; /** - * Link to retrieve next page of results. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Properties of a query execution statistics. */ -export interface QueryStatisticsProperties { + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * Database name of the database in which this query was executed. + * The included (free) max size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly includedMaxSize?: MaxSizeCapability; /** - * Unique query id (unique within one database). + * Whether or not zone redundancy is supported for the service objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queryId?: string; + readonly zoneRedundant?: boolean; /** - * The start time for the metric (ISO-8601 format). + * Supported time range for auto pause delay * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: string; + readonly supportedAutoPauseDelay?: AutoPauseDelayTimeRange; /** - * The end time for the metric (ISO-8601 format). + * List of supported min capacities * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: string; - /** List of intervals with appropriate metric data */ - intervals?: QueryMetricInterval[]; -} - -/** Properties of a query metrics interval. */ -export interface QueryMetricInterval { + readonly supportedMinCapacities?: MinCapacityCapability[]; /** - * The start time for the metric interval (ISO-8601 format). + * The compute model * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intervalStartTime?: string; + readonly computeModel?: string; /** - * Interval type (length). + * List of supported maintenance configurations * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intervalType?: QueryTimeGrainType; + readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; /** - * Execution count of a query in this interval. + * Whether or not zone pinning is supported. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executionCount?: number; - /** List of metric objects for this interval */ - metrics?: QueryMetricProperties[]; + readonly zonePinning?: boolean; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** Properties of a topquery metric in one interval. */ -export interface QueryMetricProperties { +/** The maximum size range capability. */ +export interface MaxSizeRangeCapability { /** - * The name information for the metric. + * Minimum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly minValue?: MaxSizeCapability; /** - * The UI appropriate name for the metric. + * Maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly maxValue?: MaxSizeCapability; /** - * The unit of the metric. + * Scale/step size for discrete values between the minimum value and the maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: QueryMetricUnitType; + readonly scaleSize?: MaxSizeCapability; /** - * The value of the metric. + * Size of transaction log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly logSize?: LogSizeCapability; /** - * Metric value when min() aggregate function is used over the interval. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly min?: number; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** The maximum size capability. */ +export interface MaxSizeCapability { /** - * Metric value when max() aggregate function is used over the interval. + * The maximum size limit (see 'unit' for the units). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly max?: number; + readonly limit?: number; /** - * Metric value when avg() aggregate function is used over the interval. + * The units that the limit is expressed in. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly avg?: number; + readonly unit?: MaxSizeUnit; +} + +/** The log size capability. */ +export interface LogSizeCapability { /** - * Metric value when sum() aggregate function is used over the interval. + * The log size limit (see 'unit' for the units). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sum?: number; + readonly limit?: number; /** - * Metric value when stdev aggregate function is used over the interval. + * The units that the limit is expressed in. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stdev?: number; + readonly unit?: LogSizeUnit; } -/** A list of the managed database's security alert policies. */ -export interface ManagedDatabaseSecurityAlertPolicyListResult { +/** The performance level capability. */ +export interface PerformanceLevelCapability { /** - * Array of results. + * Performance level value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedDatabaseSecurityAlertPolicy[]; + readonly value?: number; /** - * Link to retrieve next page of results. + * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly unit?: PerformanceLevelUnit; } -/** A list of security events. */ -export interface SecurityEventCollection { +/** The license type capability */ +export interface LicenseTypeCapability { /** - * Array of results. + * License type identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SecurityEvent[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** The properties of a security event sql injection additional properties. */ -export interface SecurityEventSqlInjectionAdditionalProperties { - /** - * The threat ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly threatId?: string; +/** Supported auto pause delay time range */ +export interface AutoPauseDelayTimeRange { /** - * The statement + * Minimum value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statement?: string; + readonly minValue?: number; /** - * The statement highlight offset + * Maximum value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statementHighlightOffset?: number; + readonly maxValue?: number; /** - * The statement highlight length + * Step value for discrete values between the minimum value and the maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statementHighlightLength?: number; + readonly stepSize?: number; /** - * The sql error code + * Default value is no value is provided * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly default?: number; /** - * The sql error severity + * Unit of time that delay is expressed in * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly unit?: PauseDelayTimeUnit; /** - * The sql error message + * Value that is used to not pause (infinite delay before pause) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly doNotPauseValue?: number; } -/** A list of managed transparent data encryptions */ -export interface ManagedTransparentDataEncryptionListResult { +/** The min capacity capability */ +export interface MinCapacityCapability { /** - * Array of results. + * Min capacity value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedTransparentDataEncryption[]; + readonly value?: number; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of managed instance administrators. */ -export interface ManagedInstanceAdministratorListResult { +/** The maintenance configuration capability */ +export interface MaintenanceConfigurationCapability { /** - * Array of results. + * Maintenance configuration name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceAdministrator[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * Whether or not zone redundancy is supported for the maintenance configuration. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly zoneRedundant?: boolean; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of active directory only authentications. */ -export interface ManagedInstanceAzureADOnlyAuthListResult { +/** The read scale capability. */ +export interface ReadScaleCapability { /** - * Array of results. + * The maximum number of read scale replicas. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceAzureADOnlyAuthentication[]; + readonly maxNumberOfReplicas?: number; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of managed instance encryption protectors. */ -export interface ManagedInstanceEncryptionProtectorListResult { +/** The storage account type capability. */ +export interface StorageCapability { /** - * Array of results. + * The storage account type for the database's backups. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceEncryptionProtector[]; + readonly storageAccountType?: StorageCapabilityStorageAccountType; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of managed instance keys. */ -export interface ManagedInstanceKeyListResult { +/** The elastic pool edition capability. */ +export interface ElasticPoolEditionCapability { /** - * Array of results. + * The elastic pool edition name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceKey[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The list of supported elastic pool DTU levels for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of long term retention policies. */ -export interface ManagedInstanceLongTermRetentionPolicyListResult { + readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; /** - * Array of results. + * Whether or not zone redundancy is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceLongTermRetentionPolicy[]; + readonly zoneRedundant?: boolean; /** - * Link to retrieve next page of results. + * Whether or not zone pinning is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly zonePinning?: boolean; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** The response to a list managed instance operations request */ -export interface ManagedInstanceOperationListResult { +/** The Elastic Pool performance level capability. */ +export interface ElasticPoolPerformanceLevelCapability { /** - * Array of results. + * The performance level for the pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceOperation[]; + readonly performanceLevel?: PerformanceLevelCapability; /** - * Link to retrieve next page of results. + * The sku. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** The parameters of a managed instance operation. */ -export interface ManagedInstanceOperationParametersPair { + readonly sku?: Sku; /** - * The current parameters. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentParameters?: UpsertManagedServerOperationParameters; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * The requested parameters. + * The maximum number of databases supported. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedParameters?: UpsertManagedServerOperationParameters; -} - -export interface UpsertManagedServerOperationParameters { - family?: string; - tier?: string; - vCores?: number; - storageSizeInGB?: number; -} - -/** The steps of a managed instance operation. */ -export interface ManagedInstanceOperationSteps { + readonly maxDatabaseCount?: number; /** - * The total number of operation steps. + * 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 totalSteps?: string; + readonly includedMaxSize?: MaxSizeCapability; /** - * The number of current operation steps. + * The list of supported max sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentStep?: number; + readonly supportedMaxSizes?: MaxSizeRangeCapability[]; /** - * The operation steps list. + * The list of supported per database max sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepsList?: UpsertManagedServerOperationStep[]; -} - -export interface UpsertManagedServerOperationStep { - order?: number; - name?: string; - status?: UpsertManagedServerOperationStepStatus; -} - -/** Properties of a private endpoint connection. */ -export interface ManagedInstancePrivateEndpointConnectionProperties { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: ManagedInstancePrivateEndpointProperty; - /** Connection State of the Private Endpoint Connection. */ - privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; + readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; /** - * State of the Private Endpoint Connection. + * 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 provisioningState?: string; -} - -export interface ManagedInstancePrivateEndpointProperty { - /** Resource id of the private endpoint. */ - id?: string; -} - -export interface ManagedInstancePrivateLinkServiceConnectionStateProperty { - /** The private link service connection status. */ - status: string; - /** The private link service connection description. */ - description: string; + readonly supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; /** - * The private link service connection description. + * Whether or not zone redundancy is supported for the performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actionsRequired?: string; -} - -/** A list of private endpoint connections. */ -export interface ManagedInstancePrivateEndpointConnectionListResult { + readonly zoneRedundant?: boolean; /** - * Array of results. + * List of supported maintenance configurations * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstancePrivateEndpointConnection[]; + readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of private link resources */ -export interface ManagedInstancePrivateLinkListResult { +/** The max per-database performance level capability. */ +export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { /** - * Array of results. + * The maximum performance level per database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstancePrivateLink[]; + readonly limit?: number; /** - * Link to retrieve next page of results. + * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Properties of a private link resource. */ -export interface ManagedInstancePrivateLinkProperties { + readonly unit?: PerformanceLevelUnit; /** - * The private link resource group id. + * The list of supported min database performance levels. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly supportedPerDatabaseMinPerformanceLevels?: ElasticPoolPerDatabaseMinPerformanceLevelCapability[]; /** - * The private link resource required member names. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of the ManagedInstance's vulnerability assessments. */ -export interface ManagedInstanceVulnerabilityAssessmentListResult { +/** The minimum per-database performance level capability. */ +export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { /** - * Array of results. + * The minimum performance level per database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceVulnerabilityAssessment[]; + readonly limit?: number; /** - * Link to retrieve next page of results. + * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly unit?: PerformanceLevelUnit; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of the managed Server's security alert policies. */ -export interface ManagedServerSecurityAlertPolicyListResult { +/** The managed instance capability */ +export interface ManagedInstanceVersionCapability { /** - * Array of results. + * The server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedServerSecurityAlertPolicy[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The list of supported managed instance editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Result of the request to list SQL operations. */ -export interface OperationListResult { + readonly supportedEditions?: ManagedInstanceEditionCapability[]; /** - * Array of results. + * The list of supported instance pool editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Operation[]; + readonly supportedInstancePoolEditions?: InstancePoolEditionCapability[]; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** SQL REST API operation definition. */ -export interface Operation { +/** The managed server capability */ +export interface ManagedInstanceEditionCapability { /** - * The name of the operation being performed on this particular object. + * The managed server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The localized display information for this particular operation / action. + * The supported families. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly display?: OperationDisplay; + readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; /** - * The intended executor of the operation. + * The list of supported storage capabilities for this edition * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly origin?: OperationOrigin; + readonly supportedStorageCapabilities?: StorageCapability[]; /** - * Additional descriptions for the operation. + * 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 properties?: { [propertyName: string]: Record }; -} - -/** Display metadata associated with the operation. */ -export interface OperationDisplay { + readonly zoneRedundant?: boolean; /** - * The localized friendly form of the resource provider name. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provider?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** The managed server family capability. */ +export interface ManagedInstanceFamilyCapability { /** - * The localized friendly form of the resource type related to this action/operation. + * Family name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resource?: string; + readonly name?: string; /** - * The localized friendly name for the operation. + * SKU name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly sku?: string; /** - * The localized friendly description for the operation. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; -} - -export interface PrivateEndpointProperty { - /** Resource id of the private endpoint. */ - id?: string; -} - -export interface PrivateLinkServiceConnectionStateProperty { - /** The private link service connection status. */ - status: PrivateLinkServiceConnectionStateStatus; - /** The private link service connection description. */ - description: string; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * The actions required for private link service connection. + * List of supported virtual cores values. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actionsRequired?: PrivateLinkServiceConnectionStateActionsRequire; + readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of private endpoint connections. */ -export interface PrivateEndpointConnectionListResult { +/** The managed instance virtual cores capability. */ +export interface ManagedInstanceVcoresCapability { /** - * Array of results. + * The virtual cores identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: PrivateEndpointConnection[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The virtual cores value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of private link resources */ -export interface PrivateLinkResourceListResult { + readonly value?: number; /** - * Array of results. + * Included size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: PrivateLinkResource[]; + readonly includedMaxSize?: MaxSizeCapability; /** - * Link to retrieve next page of results. + * Storage size ranges. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Properties of a private link resource. */ -export interface PrivateLinkResourceProperties { + readonly supportedStorageSizes?: MaxSizeRangeCapability[]; /** - * The private link resource group id. + * True if this service objective is supported for managed instances in an instance pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly instancePoolSupported?: boolean; /** - * The private link resource required member names. + * True if this service objective is supported for standalone managed instances. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; + readonly standaloneSupported?: boolean; /** - * The private link resource required zone names. + * List of supported maintenance configurations * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredZoneNames?: string[]; + readonly supportedMaintenanceConfigurations?: ManagedInstanceMaintenanceConfigurationCapability[]; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of recoverable managed databases. */ -export interface RecoverableManagedDatabaseListResult { +/** The maintenance configuration capability */ +export interface ManagedInstanceMaintenanceConfigurationCapability { /** - * Array of results. + * Maintenance configuration name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RecoverableManagedDatabase[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of long term retention backups. */ -export interface RestorePointListResult { +/** The instance pool capability */ +export interface InstancePoolEditionCapability { /** - * Array of results. + * The instance pool version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RestorePoint[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The supported families. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Contains the information necessary to perform a create database restore point operation. */ -export interface CreateDatabaseRestorePointDefinition { - /** The restore point label to apply */ - restorePointLabel: string; + readonly supportedFamilies?: InstancePoolFamilyCapability[]; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** Automatic tuning properties for individual advisors. */ -export interface AutomaticTuningServerOptions { - /** Automatic tuning option desired state. */ - desiredState?: AutomaticTuningOptionModeDesired; +/** The instance pool family capability. */ +export interface InstancePoolFamilyCapability { /** - * Automatic tuning option actual state. + * Family name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actualState?: AutomaticTuningOptionModeActual; + readonly name?: string; /** - * Reason code if desired and actual state are different. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reasonCode?: number; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * Reason description if desired and actual state are different. + * List of supported virtual cores values. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reasonDesc?: AutomaticTuningServerReason; + readonly supportedVcoresValues?: InstancePoolVcoresCapability[]; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of active directory administrators. */ -export interface AdministratorListResult { +/** The managed instance virtual cores capability. */ +export interface InstancePoolVcoresCapability { /** - * Array of results. + * The virtual cores identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerAzureADAdministrator[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The virtual cores value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly value?: number; + /** + * Storage limit. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly storageLimit?: MaxSizeCapability; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of active directory only authentications. */ -export interface AzureADOnlyAuthListResult { +/** A list of long term retention backups. */ +export interface LongTermRetentionBackupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerAzureADOnlyAuthentication[]; + readonly value?: LongTermRetentionBackup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2254,13 +2399,35 @@ export interface AzureADOnlyAuthListResult { readonly nextLink?: string; } -/** A list of server DevOps audit settings. */ -export interface ServerDevOpsAuditSettingsListResult { +/** Contains the information necessary to perform long term retention backup copy operation. */ +export interface CopyLongTermRetentionBackupParameters { + /** The subscription that owns the target server */ + targetSubscriptionId?: string; + /** The resource group that owns the target server */ + targetResourceGroup?: string; + /** The resource Id of the target server that owns the database */ + targetServerResourceId?: string; + /** The fully qualified domain name of the target server */ + targetServerFullyQualifiedDomainName?: string; + /** The name of the database owns the copied backup. */ + targetDatabaseName?: string; + /** The storage redundancy type of the copied backup */ + targetBackupStorageRedundancy?: BackupStorageRedundancy; +} + +/** Contains the information necessary to perform long term retention backup update operation. */ +export interface UpdateLongTermRetentionBackupParameters { + /** The storage redundancy type of the copied backup */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; +} + +/** A list of long term retention backups for managed database(s). */ +export interface ManagedInstanceLongTermRetentionBackupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerDevOpsAuditingSettings[]; + readonly value?: ManagedInstanceLongTermRetentionBackup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2268,13 +2435,13 @@ export interface ServerDevOpsAuditSettingsListResult { readonly nextLink?: string; } -/** A list of server DNS aliases. */ -export interface ServerDnsAliasListResult { +/** A list of long term retention policies. */ +export interface LongTermRetentionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerDnsAlias[]; + readonly value?: LongTermRetentionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2282,19 +2449,23 @@ export interface ServerDnsAliasListResult { readonly nextLink?: string; } -/** A server dns alias acquisition request. */ -export interface ServerDnsAliasAcquisition { - /** The id of the server alias that will be acquired to point to this server instead. */ - oldServerDnsAliasId: string; +/** Maintenance window time range. */ +export interface MaintenanceWindowTimeRange { + /** Day of maintenance window. */ + dayOfWeek?: DayOfWeek; + /** Start time minutes offset from 12am. */ + startTime?: string; + /** Duration of maintenance window in minutes. */ + duration?: string; } -/** A list of server keys. */ -export interface ServerKeyListResult { +/** A list of short term retention policies. */ +export interface ManagedBackupShortTermRetentionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerKey[]; + readonly value?: ManagedBackupShortTermRetentionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2302,13 +2473,13 @@ export interface ServerKeyListResult { readonly nextLink?: string; } -/** The response to a list server operations request */ -export interface ServerOperationListResult { +/** A list of the managed database's Advanced Threat Protection settings. */ +export interface ManagedDatabaseAdvancedThreatProtectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerOperation[]; + readonly value?: ManagedDatabaseAdvancedThreatProtection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2316,13 +2487,13 @@ export interface ServerOperationListResult { readonly nextLink?: string; } -/** A list of the server's security alert policies. */ -export interface LogicalServerSecurityAlertPolicyListResult { +/** List of managed database move operations. */ +export interface ManagedDatabaseMoveOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerSecurityAlertPolicy[]; + readonly value?: ManagedDatabaseMoveOperationResult[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2330,19 +2501,13 @@ export interface LogicalServerSecurityAlertPolicyListResult { readonly nextLink?: string; } -/** Server info for the server trust group. */ -export interface ServerInfo { - /** Server Id. */ - serverId: string; -} - -/** A list of server trust groups. */ -export interface ServerTrustGroupListResult { +/** Execution statistics for one particular query */ +export interface ManagedInstanceQueryStatistics { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerTrustGroup[]; + readonly value?: QueryStatistics[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2350,197 +2515,166 @@ export interface ServerTrustGroupListResult { readonly nextLink?: string; } -/** A list of the server's vulnerability assessments. */ -export interface ServerVulnerabilityAssessmentListResult { +/** Properties of a query execution statistics. */ +export interface QueryStatisticsProperties { /** - * Array of results. + * Database name of the database in which this query was executed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerVulnerabilityAssessment[]; + readonly databaseName?: string; /** - * Link to retrieve next page of results. + * Unique query id (unique within one database). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of subscription usage metrics in a location. */ -export interface SubscriptionUsageListResult { + readonly queryId?: string; /** - * Array of results. + * The start time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SubscriptionUsage[]; + readonly startTime?: string; /** - * Link to retrieve next page of results. + * The end time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly endTime?: string; + /** List of intervals with appropriate metric data */ + intervals?: QueryMetricInterval[]; } -/** A list of sync agents. */ -export interface SyncAgentListResult { +/** Properties of a query metrics interval. */ +export interface QueryMetricInterval { /** - * Array of results. + * The start time for the metric interval (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncAgent[]; + readonly intervalStartTime?: string; /** - * Link to retrieve next page of results. + * Interval type (length). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Properties of an Azure SQL Database sync agent key. */ -export interface SyncAgentKeyProperties { + readonly intervalType?: QueryTimeGrainType; /** - * Key of sync agent. + * Execution count of a query in this interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly syncAgentKey?: string; + readonly executionCount?: number; + /** List of metric objects for this interval */ + metrics?: QueryMetricProperties[]; } -/** A list of sync agent linked databases. */ -export interface SyncAgentLinkedDatabaseListResult { +/** Properties of a topquery metric in one interval. */ +export interface QueryMetricProperties { /** - * Array of results. + * The name information for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncAgentLinkedDatabase[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The UI appropriate name for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of sync database ID properties. */ -export interface SyncDatabaseIdListResult { + readonly displayName?: string; /** - * Array of results. + * The unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncDatabaseIdProperties[]; + readonly unit?: QueryMetricUnitType; /** - * Link to retrieve next page of results. + * The value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Properties of the sync database id. */ -export interface SyncDatabaseIdProperties { + readonly value?: number; /** - * ARM resource id of sync database. + * Metric value when min() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; -} - -/** A list of sync schema properties. */ -export interface SyncFullSchemaPropertiesListResult { + readonly min?: number; /** - * Array of results. + * Metric value when max() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncFullSchemaProperties[]; + readonly max?: number; /** - * Link to retrieve next page of results. + * Metric value when avg() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Properties of the database full schema. */ -export interface SyncFullSchemaProperties { + readonly avg?: number; /** - * List of tables in the database full schema. + * Metric value when sum() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tables?: SyncFullSchemaTable[]; + readonly sum?: number; /** - * Last update time of the database schema. + * Metric value when stdev aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastUpdateTime?: Date; + readonly stdev?: number; } -/** Properties of the table in the database full schema. */ -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; +/** The managed database's restore details backup set properties. */ +export interface ManagedDatabaseRestoreDetailsBackupSetProperties { /** - * Name of the table. + * Backup set status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly status?: string; /** - * Quoted name of the table. + * First stripe name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly quotedName?: string; -} - -/** Properties of the column in the table of database full schema. */ -export interface SyncFullSchemaTableColumn { + readonly firstStripeName?: string; /** - * Data size of the column. + * Number of stripes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataSize?: string; + readonly numberOfStripes?: number; /** - * Data type of the column. + * Backup size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataType?: string; + readonly backupSizeMB?: number; /** - * Error id of the column. + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorId?: string; + readonly restoreStartedTimestampUtc?: Date; /** - * If there is error in the table. + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hasError?: boolean; + readonly restoreFinishedTimestampUtc?: Date; +} + +/** The managed database's restore details unrestorable file properties. */ +export interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties { /** - * If it is the primary key of the table. + * File name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isPrimaryKey?: boolean; + readonly name?: string; +} + +/** A list of the managed database's security alert policies. */ +export interface ManagedDatabaseSecurityAlertPolicyListResult { /** - * Name of the column. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: ManagedDatabaseSecurityAlertPolicy[]; /** - * Quoted name of the column. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly quotedName?: string; + readonly nextLink?: string; } -/** A list of sync group log properties. */ -export interface SyncGroupLogListResult { +/** A list of security events. */ +export interface SecurityEventCollection { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncGroupLogProperties[]; + readonly value?: SecurityEvent[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2548,73 +2682,52 @@ export interface SyncGroupLogListResult { readonly nextLink?: string; } -/** Properties of an Azure SQL Database sync group log. */ -export interface SyncGroupLogProperties { +/** The properties of a security event sql injection additional properties. */ +export interface SecurityEventSqlInjectionAdditionalProperties { /** - * Timestamp of the sync group log. + * The threat ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timestamp?: Date; + readonly threatId?: string; /** - * Type of the sync group log. + * The statement * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: SyncGroupLogType; + readonly statement?: string; /** - * Source of the sync group log. + * The statement highlight offset * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly source?: string; + readonly statementHighlightOffset?: number; /** - * Details of the sync group log. + * The statement highlight length * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: string; + readonly statementHighlightLength?: number; /** - * TracingId of the sync group log. + * The sql error code * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tracingId?: string; + readonly errorCode?: number; /** - * OperationStatus of the sync group log. + * The sql error severity * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationStatus?: string; -} - -/** Properties of sync group schema. */ -export interface SyncGroupSchema { - /** List of tables in sync group schema. */ - tables?: SyncGroupSchemaTable[]; - /** Name of master sync member where the schema is from. */ - masterSyncMemberName?: string; -} - -/** Properties of table in sync group schema. */ -export interface SyncGroupSchemaTable { - /** List of columns in sync group schema. */ - columns?: SyncGroupSchemaTableColumn[]; - /** Quoted name of sync group schema table. */ - quotedName?: string; -} - -/** 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; + readonly errorSeverity?: number; + /** + * The sql error message + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorMessage?: string; } -/** A list of sync groups. */ -export interface SyncGroupListResult { +/** A list of sensitivity labels. */ +export interface SensitivityLabelListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncGroup[]; + readonly value?: SensitivityLabel[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2622,13 +2735,23 @@ export interface SyncGroupListResult { readonly nextLink?: string; } -/** A list of Azure SQL Database sync members. */ -export interface SyncMemberListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. +/** A list of sensitivity label update operations. */ +export interface SensitivityLabelUpdateList { + operations?: SensitivityLabelUpdate[]; +} + +/** A list of recommended sensitivity label update operations. */ +export interface RecommendedSensitivityLabelUpdateList { + operations?: RecommendedSensitivityLabelUpdate[]; +} + +/** A list of managed transparent data encryptions */ +export interface ManagedTransparentDataEncryptionListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncMember[]; + readonly value?: ManagedTransparentDataEncryption[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2636,13 +2759,13 @@ export interface SyncMemberListResult { readonly nextLink?: string; } -/** A list of time zones. */ -export interface TimeZoneListResult { +/** A list of managed databases. */ +export interface ManagedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: TimeZone[]; + readonly value?: ManagedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2650,41 +2773,98 @@ export interface TimeZoneListResult { readonly nextLink?: string; } -/** A list of virtual network rules. */ -export interface VirtualNetworkRuleListResult { +/** An managed database update. */ +export interface ManagedDatabaseUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** Collation of the managed database. */ + collation?: string; /** - * Array of results. + * Status of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: VirtualNetworkRule[]; + readonly status?: ManagedDatabaseStatus; /** - * Link to retrieve next page of results. + * Creation date of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of workload classifiers for a workload group. */ -export interface WorkloadClassifierListResult { + readonly creationDate?: Date; /** - * Array of results. + * Earliest restore point in time for point in time restore. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: WorkloadClassifier[]; + 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; /** - * Link to retrieve next page of results. + * Geo paired region. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly defaultSecondaryLocation?: string; + /** Collation of the metadata catalog. */ + catalogCollation?: CatalogCollationType; + /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ + createMode?: ManagedDatabaseCreateMode; + /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ + storageContainerUri?: string; + /** The resource identifier of the source database associated with create operation of this database. */ + sourceDatabaseId?: string; + /** The resource identifier of the cross-subscription source database associated with create operation of this database. */ + crossSubscriptionSourceDatabaseId?: string; + /** The restorable dropped database resource id to restore when creating this database. */ + restorableDroppedDatabaseId?: string; + /** The restorable cross-subscription dropped database resource id to restore when creating this database. */ + crossSubscriptionRestorableDroppedDatabaseId?: string; + /** Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. */ + storageContainerIdentity?: string; + /** Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. */ + storageContainerSasToken?: string; + /** + * Instance Failover Group resource identifier that this managed database belongs to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly failoverGroupId?: string; + /** The resource identifier of the recoverable database associated with create operation of this database. */ + recoverableDatabaseId?: string; + /** The name of the Long Term Retention backup to be used for restore of this managed database. */ + longTermRetentionBackupResourceId?: string; + /** Whether to auto complete restore of this managed database. */ + autoCompleteRestore?: boolean; + /** Last backup file name for restore of this managed database. */ + lastBackupName?: string; + /** Target managed instance id used in cross-subscription restore. */ + crossSubscriptionTargetManagedInstanceId?: string; + /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ + isLedgerOn?: boolean; } -/** A list of workload groups. */ -export interface WorkloadGroupListResult { +/** Contains the information necessary to perform a managed database move. */ +export interface ManagedDatabaseMoveDefinition { + /** The destination managed database ID */ + destinationManagedDatabaseId: string; +} + +/** Contains the information necessary to perform a complete database restore operation. */ +export interface CompleteDatabaseRestoreDefinition { + /** The last backup name to apply */ + lastBackupName: string; +} + +/** Contains the information necessary to start a managed database move. */ +export interface ManagedDatabaseStartMoveDefinition { + /** The destination managed database ID */ + destinationManagedDatabaseId: string; + /** The move operation mode. */ + operationMode?: MoveOperationMode; +} + +/** A list of managed instance administrators. */ +export interface ManagedInstanceAdministratorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: WorkloadGroup[]; + readonly value?: ManagedInstanceAdministrator[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2692,13 +2872,13 @@ export interface WorkloadGroupListResult { readonly nextLink?: string; } -/** A list of short term retention policies. */ -export interface BackupShortTermRetentionPolicyListResult { +/** A list of the managed instance's Advanced Threat Protection settings. */ +export interface ManagedInstanceAdvancedThreatProtectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: BackupShortTermRetentionPolicy[]; + readonly value?: ManagedInstanceAdvancedThreatProtection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2706,13 +2886,13 @@ export interface BackupShortTermRetentionPolicyListResult { readonly nextLink?: string; } -/** Import export operation extensions list. */ -export interface ImportExportExtensionsOperationListResult { +/** A list of active directory only authentications. */ +export interface ManagedInstanceAzureADOnlyAuthListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ImportExportExtensionsOperationResult[]; + readonly value?: ManagedInstanceAzureADOnlyAuthentication[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2720,13 +2900,13 @@ export interface ImportExportExtensionsOperationListResult { readonly nextLink?: string; } -/** The response to a list database operations request */ -export interface DatabaseOperationListResult { +/** A list of managed instance's DTCs. */ +export interface ManagedInstanceDtcListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseOperation[]; + readonly value?: ManagedInstanceDtc[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2734,13 +2914,37 @@ export interface DatabaseOperationListResult { readonly nextLink?: string; } -/** A list of database usage metrics. */ -export interface DatabaseUsageListResult { +/** The Security Settings of managed instance DTC. */ +export interface ManagedInstanceDtcSecuritySettings { + /** Transaction Manager communication settings of managed instance DTC. */ + transactionManagerCommunicationSettings?: ManagedInstanceDtcTransactionManagerCommunicationSettings; + /** Allow XA Transactions to managed instance DTC. */ + xaTransactionsEnabled?: boolean; + /** Allow SNA LU 6.2 Transactions to managed instance DTC. */ + snaLu6Point2TransactionsEnabled?: boolean; + /** Default timeout for XA Transactions (in seconds). */ + xaTransactionsDefaultTimeout?: number; + /** Maximum timeout for XA Transactions (in seconds). */ + xaTransactionsMaximumTimeout?: number; +} + +/** The Transaction Manager Communication Settings of managed instance DTC. */ +export interface ManagedInstanceDtcTransactionManagerCommunicationSettings { + /** Allow Inbound traffic to managed instance DTC. */ + allowInboundEnabled?: boolean; + /** Allow Outbound traffic of managed instance DTC. */ + allowOutboundEnabled?: boolean; + /** Authentication type of managed instance DTC. */ + authentication?: string; +} + +/** A list of managed instance encryption protectors. */ +export interface ManagedInstanceEncryptionProtectorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseUsage[]; + readonly value?: ManagedInstanceEncryptionProtector[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2748,13 +2952,13 @@ export interface DatabaseUsageListResult { readonly nextLink?: string; } -/** A list of ledger digest upload settings. */ -export interface LedgerDigestUploadsListResult { +/** A list of managed instance keys. */ +export interface ManagedInstanceKeyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LedgerDigestUploads[]; + readonly value?: ManagedInstanceKey[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2762,13 +2966,13 @@ export interface LedgerDigestUploadsListResult { readonly nextLink?: string; } -/** A list of outbound rules. */ -export interface OutboundFirewallRuleListResult { +/** A list of long term retention policies. */ +export interface ManagedInstanceLongTermRetentionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: OutboundFirewallRule[]; + readonly value?: ManagedInstanceLongTermRetentionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2776,13 +2980,13 @@ export interface OutboundFirewallRuleListResult { readonly nextLink?: string; } -/** A list of usages. */ -export interface UsageListResult { +/** The response to a list managed instance operations request */ +export interface ManagedInstanceOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Usage[]; + readonly value?: ManagedInstanceOperation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2790,96 +2994,106 @@ export interface UsageListResult { readonly nextLink?: string; } -/** ARM usage. */ -export interface Usage { +/** The parameters of a managed instance operation. */ +export interface ManagedInstanceOperationParametersPair { /** - * Resource ID. + * The current parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly currentParameters?: UpsertManagedServerOperationParameters; /** - * Resource name. + * The requested parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: Name; + readonly requestedParameters?: UpsertManagedServerOperationParameters; +} + +export interface UpsertManagedServerOperationParameters { + family?: string; + tier?: string; + vCores?: number; + storageSizeInGB?: number; +} + +/** The steps of a managed instance operation. */ +export interface ManagedInstanceOperationSteps { /** - * Resource type. + * The total number of operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly totalSteps?: string; /** - * Usage unit. + * The number of current operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly currentStep?: number; /** - * Usage current value. + * The operation steps list. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly stepsList?: UpsertManagedServerOperationStepWithEstimatesAndDuration[]; +} + +export interface UpsertManagedServerOperationStepWithEstimatesAndDuration { + stepStartTime?: Date; + stepEndTime?: Date; + timeElapsed?: string; + order?: number; + name?: string; + status?: Status; +} + +/** A list of private endpoint connections. */ +export interface ManagedInstancePrivateEndpointConnectionListResult { /** - * Usage limit. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly value?: ManagedInstancePrivateEndpointConnection[]; /** - * Usage requested limit. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedLimit?: number; + readonly nextLink?: string; } -/** ARM Usage Name */ -export interface Name { - /** Usage name value */ - value?: string; - /** Usage name localized value. */ - localizedValue?: string; +/** Properties of a private endpoint connection. */ +export interface ManagedInstancePrivateEndpointConnectionProperties { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: ManagedInstancePrivateEndpointProperty; + /** Connection State of the Private Endpoint Connection. */ + privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; + /** + * State of the Private Endpoint Connection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } -/** Contains the information necessary to perform long term retention backup copy operation. */ -export interface CopyLongTermRetentionBackupParameters { - /** The subscription that owns the target server */ - targetSubscriptionId?: string; - /** The resource group that owns the target server */ - targetResourceGroup?: string; - /** The resource Id of the target server that owns the database */ - targetServerResourceId?: string; - /** The fully qualified domain name of the target server */ - targetServerFullyQualifiedDomainName?: string; - /** The name of the database owns the copied backup. */ - targetDatabaseName?: string; - /** The storage redundancy type of the copied backup */ - targetBackupStorageRedundancy?: BackupStorageRedundancy; -} - -/** Contains the information necessary to perform long term retention backup update operation. */ -export interface UpdateLongTermRetentionBackupParameters { - /** The storage redundancy type of the copied backup */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; +export interface ManagedInstancePrivateEndpointProperty { + /** Resource id of the private endpoint. */ + id?: string; } -/** A list of long term retention backups. */ -export interface LongTermRetentionBackupListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: LongTermRetentionBackup[]; +export interface ManagedInstancePrivateLinkServiceConnectionStateProperty { + /** The private link service connection status. */ + status: string; + /** The private link service connection description. */ + description: string; /** - * Link to retrieve next page of results. + * The private link service connection description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly actionsRequired?: string; } -/** A list of long term retention backups for managed database(s). */ -export interface ManagedInstanceLongTermRetentionBackupListResult { +/** A list of private link resources */ +export interface ManagedInstancePrivateLinkListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceLongTermRetentionBackup[]; + readonly value?: ManagedInstancePrivateLink[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2887,41 +3101,32 @@ export interface ManagedInstanceLongTermRetentionBackupListResult { readonly nextLink?: string; } -/** A list of restorable dropped managed databases. */ -export interface RestorableDroppedManagedDatabaseListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: RestorableDroppedManagedDatabase[]; +/** Properties of a private link resource. */ +export interface ManagedInstancePrivateLinkProperties { /** - * Link to retrieve next page of results. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of server connection policy objects. */ -export interface ServerConnectionPolicyListResult { + readonly groupId?: string; /** - * Array of results. + * The private link resource required member names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerConnectionPolicy[]; + readonly requiredMembers?: string[]; /** - * Link to retrieve next page of results. + * The private link resource required zone names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly requiredZoneNames?: string[]; } -/** A list of distributed availability groups in instance. */ -export interface DistributedAvailabilityGroupsListResult { +/** A list of the ManagedInstance's vulnerability assessments. */ +export interface ManagedInstanceVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DistributedAvailabilityGroup[]; + readonly value?: ManagedInstanceVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2929,13 +3134,13 @@ export interface DistributedAvailabilityGroupsListResult { readonly nextLink?: string; } -/** A list of server trust certificates in instance. */ -export interface ServerTrustCertificatesListResult { +/** A list of managed instances. */ +export interface ManagedInstanceListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerTrustCertificate[]; + readonly value?: ManagedInstance[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2943,175 +3148,218 @@ export interface ServerTrustCertificatesListResult { readonly nextLink?: string; } -/** The response to a list IPv6 firewall rules request */ -export interface IPv6FirewallRuleListResult { +/** Azure Active Directory identity configuration for a resource. */ +export interface ResourceIdentity { + /** The resource ids of the user assigned identities to use */ + userAssignedIdentities?: { [propertyName: string]: UserIdentity }; /** - * Array of results. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: IPv6FirewallRule[]; + readonly principalId?: string; + /** The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. */ + type?: IdentityType; /** - * Link to retrieve next page of results. + * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly tenantId?: string; } -/** A list of endpoint certificates on the target instance. */ -export interface EndpointCertificateListResult { +/** Azure Active Directory identity configuration for a resource. */ +export interface UserIdentity { /** - * Array of results. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: EndpointCertificate[]; + readonly principalId?: string; /** - * Link to retrieve next page of results. + * The Azure Active Directory client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly clientId?: string; } -/** A list of sensitivity labels. */ -export interface SensitivityLabelListResult { +/** A private endpoint connection under a managed instance */ +export interface ManagedInstancePecProperty { /** - * Array of results. + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SensitivityLabel[]; + readonly id?: string; /** - * Link to retrieve next page of results. + * Private endpoint connection properties * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of sensitivity label update operations. */ -export interface SensitivityLabelUpdateList { - operations?: SensitivityLabelUpdate[]; + readonly properties?: ManagedInstancePrivateEndpointConnectionProperties; } -/** A list of recommended sensitivity label update operations. */ -export interface RecommendedSensitivityLabelUpdateList { - operations?: RecommendedSensitivityLabelUpdate[]; +/** Properties of a active directory administrator. */ +export interface ManagedInstanceExternalAdministrator { + /** Type of the sever administrator. */ + administratorType?: AdministratorType; + /** Principal Type of the sever administrator. */ + principalType?: PrincipalType; + /** Login name of the server administrator. */ + login?: string; + /** SID (object ID) of the server administrator. */ + sid?: string; + /** Tenant ID of the administrator. */ + tenantId?: string; + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; } -/** A list of server auditing settings. */ -export interface ServerBlobAuditingPolicyListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ServerBlobAuditingPolicy[]; +/** The managed instance's service principal configuration for a resource. */ +export interface ServicePrincipal { /** - * Link to retrieve next page of results. + * The Azure Active Directory application object id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of database auditing settings. */ -export interface DatabaseBlobAuditingPolicyListResult { + readonly principalId?: string; /** - * Array of results. + * The Azure Active Directory application client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseBlobAuditingPolicy[]; + readonly clientId?: string; /** - * Link to retrieve next page of results. + * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly tenantId?: string; + /** Service principal type. */ + type?: ServicePrincipalType; } -/** A list of database extended auditing settings. */ -export interface ExtendedDatabaseBlobAuditingPolicyListResult { +/** An update request for an Azure SQL Database managed instance. */ +export interface ManagedInstanceUpdate { + /** Managed instance sku */ + sku?: Sku; + /** Managed instance identity */ + identity?: ResourceIdentity; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** - * Array of results. + * Provisioning state of managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ExtendedDatabaseBlobAuditingPolicy[]; + readonly provisioningState?: ProvisioningState; /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the mode of database creation. + * + * Default: Regular instance creation. + * + * Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. */ - readonly nextLink?: string; -} - -/** A list of server extended auditing settings. */ -export interface ExtendedServerBlobAuditingPolicyListResult { + managedInstanceCreateMode?: ManagedServerCreateMode; /** - * Array of results. + * The fully qualified domain name of the managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ExtendedServerBlobAuditingPolicy[]; + readonly fullyQualifiedDomainName?: string; + /** Whether or not this is a GPv2 variant of General Purpose edition. */ + isGeneralPurposeV2?: boolean; + /** Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). */ + administratorLogin?: string; + /** The administrator login password (required for managed instance creation). */ + administratorLoginPassword?: string; + /** Subnet resource ID for the managed instance. */ + subnetId?: string; /** - * Link to retrieve next page of results. + * The state of the managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of the database's Advanced Threat Protection configurations. */ -export interface DatabaseAdvancedThreatProtectionListResult { + readonly state?: string; + /** The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). */ + licenseType?: ManagedInstanceLicenseType; + /** Hybrid secondary usage. Possible values are 'Active' (default value) and 'Passive' (customer uses the secondary as Passive DR). */ + hybridSecondaryUsage?: HybridSecondaryUsage; /** - * Array of results. + * Hybrid secondary usage detected. Possible values are 'Active' (customer does not meet the requirements to use the secondary as Passive DR) and 'Passive' (customer meets the requirements to use the secondary as Passive DR). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseAdvancedThreatProtection[]; + readonly hybridSecondaryUsageDetected?: HybridSecondaryUsageDetected; + /** The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ + vCores?: number; + /** Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. */ + storageSizeInGB?: number; + /** Storage IOps. Minimum value: 120. Maximum value: 120000. Increments of 1 IOps allowed only. Maximum value depends on the selected hardware family and number of vCores. */ + storageIOps?: number; + /** Storage throughput in MBps. Minimum value: 25. Maximum value: 4000. Increments of 1 MBps allowed only. Maximum value depends on the selected hardware family and number of vCores. */ + storageThroughputMBps?: number; + /** Collation of the managed instance. */ + collation?: string; /** - * Link to retrieve next page of results. + * The Dns Zone that the managed instance is in. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of the server's Advanced Threat Protection configurations. */ -export interface LogicalServerAdvancedThreatProtectionListResult { + readonly dnsZone?: string; + /** The resource id of another managed instance whose DNS zone this managed instance will share after creation. */ + dnsZonePartner?: string; + /** Whether or not the public data endpoint is enabled. */ + publicDataEndpointEnabled?: boolean; + /** The resource identifier of the source managed instance associated with create operation of this instance. */ + sourceManagedInstanceId?: string; + /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ + restorePointInTime?: Date; + /** Connection type used for connecting to the instance. */ + proxyOverride?: ManagedInstanceProxyOverride; /** - * Array of results. + * Id of the timezone. Allowed values are timezones supported by Windows. + * Windows keeps details on supported timezones, including the id, in registry under + * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. + * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. + * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. + * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". + */ + timezoneId?: string; + /** The Id of the instance pool this managed server belongs to. */ + instancePoolId?: string; + /** Specifies maintenance configuration id to apply to this managed instance. */ + maintenanceConfigurationId?: string; + /** + * List of private endpoint connections on a managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerAdvancedThreatProtection[]; + readonly privateEndpointConnections?: ManagedInstancePecProperty[]; + /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; /** - * Link to retrieve next page of results. + * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of managed server DNS aliases. */ -export interface ManagedServerDnsAliasListResult { + readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; + /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + /** Whether or not the multi-az is enabled. */ + zoneRedundant?: boolean; + /** The resource id of a user assigned identity to be used by default. */ + primaryUserAssignedIdentityId?: string; + /** A CMK URI of the key to use for encryption. */ + keyId?: string; + /** The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ + administrators?: ManagedInstanceExternalAdministrator; + /** The managed instance's service principal. */ + servicePrincipal?: ServicePrincipal; /** - * Array of results. + * Virtual cluster resource id for the Managed Instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedServerDnsAlias[]; + readonly virtualClusterId?: string; /** - * Link to retrieve next page of results. + * Status of external governance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A managed server dns alias creation request. */ -export interface ManagedServerDnsAliasCreation { - /** Whether or not DNS record should be created for this alias. */ - createDnsRecord?: boolean; -} - -/** A managed server DNS alias acquisition request. */ -export interface ManagedServerDnsAliasAcquisition { - /** The resource ID of the managed server DNS alias that will be acquired to point to this managed server instead. */ - oldManagedServerDnsAliasResourceId: string; + readonly externalGovernanceStatus?: ExternalGovernanceStatus; } -/** A list of SQL Vulnerability Assessments baseline set. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { +/** A collection of endpoints that the managed instance service requires outbound network access to. */ +export interface OutboundEnvironmentEndpointCollection { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSqlVulnerabilityAssessmentBaselineSet[]; + readonly value?: OutboundEnvironmentEndpoint[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3119,185 +3367,188 @@ export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { readonly nextLink?: string; } -/** A list of SQL Vulnerability Assessments rule baseline. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult { +/** An endpoint that the managed instance service requires outbound network access to. */ +export interface OutboundEnvironmentEndpoint { /** - * Array of results. + * The type of service accessed by the managed instance service, e.g., Azure Storage, Azure Active Directory, etc. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSqlVulnerabilityAssessmentRuleBaseline[]; + readonly category?: string; /** - * Link to retrieve next page of results. + * The endpoints that the managed instance service communicates with in order to function correctly. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly endpoints?: EndpointDependency[]; } -/** A list of vulnerability assessment scan results. */ -export interface SQLVulnerabilityAssessmentScanListResult { +/** A domain name that the managed instance service needs to communicate with, along with additional details. */ +export interface EndpointDependency { /** - * Array of results. + * The domain name of the dependency. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SqlVulnerabilityAssessmentScanResults[]; + readonly domainName?: string; /** - * Link to retrieve next page of results. + * The IP Addresses and Ports used when connecting to DomainName. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly endpointDetails?: EndpointDetail[]; } -/** SQL Vulnerability Assessment remediation Details. */ -export interface Remediation { - /** - * SQL Vulnerability Assessment remediation description. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; - /** - * SQL Vulnerability Assessment remediation script. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly scripts?: string[]; +/** A domain name that the managed instance service needs to communicate with, along with additional details. */ +export interface EndpointDetail { /** - * SQL Vulnerability Assessment is remediation automated. + * The port an endpoint is connected to. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly automated?: boolean; + readonly port?: number; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { /** - * SQL Vulnerability Assessment optional link to remediate in Azure Portal. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly portalLink?: string; -} - -/** SQL Vulnerability Assessment baseline adjusted results */ -export interface BaselineAdjustedResult { + readonly code?: string; /** - * SQL Vulnerability Assessment baseline details + * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly baseline?: Baseline; + readonly message?: string; /** - * SQL Vulnerability Assessment baseline status + * The error target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: RuleStatus; + readonly target?: string; /** - * SQL Vulnerability Assessment results that are not in baseline + * The error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resultsNotInBaseline?: string[][]; + readonly details?: ErrorDetail[]; /** - * SQL Vulnerability Assessment results that are in baseline. + * The error additional info. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resultsOnlyInBaseline?: string[][]; + readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** SQL Vulnerability Assessment baseline Details */ -export interface Baseline { +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { /** - * SQL Vulnerability Assessment baseline expected results + * The additional info type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly expectedResults?: string[][]; + readonly type?: string; /** - * SQL Vulnerability Assessment baseline update time (UTC) + * The additional info. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly updatedTime?: Date; + readonly info?: Record; } -/** SQL Vulnerability Assessment rule metadata details. */ -export interface VaRule { - /** - * SQL Vulnerability Assessment rule Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ruleId?: string; +/** A list of top resource consuming queries on managed instance */ +export interface TopQueriesListResult { /** - * SQL Vulnerability Assessment rule severity. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly severity?: RuleSeverity; + readonly value?: TopQueries[]; /** - * SQL Vulnerability Assessment rule category. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly category?: string; + readonly nextLink?: string; +} + +export interface TopQueries { /** - * SQL Vulnerability Assessment rule type. + * Requested number of top queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleType?: RuleType; + readonly numberOfQueries?: number; /** - * SQL Vulnerability Assessment rule title. + * Aggregation function used to calculate query metrics. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly title?: string; + readonly aggregationFunction?: string; /** - * SQL Vulnerability Assessment rule description. + * Metric used to rank queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly observationMetric?: string; /** - * SQL Vulnerability Assessment rule rationale. + * Interval type (length). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly rationale?: string; + readonly intervalType?: QueryTimeGrainType; /** - * SQL Vulnerability Assessment rule query details. + * The start time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queryCheck?: QueryCheck; + readonly startTime?: string; /** - * SQL Vulnerability Assessment benchmark references. + * The end time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly benchmarkReferences?: BenchmarkReference[]; + readonly endTime?: string; + /** List of top resource consuming queries with appropriate metric data */ + queries?: QueryStatisticsProperties[]; } -/** SQL Vulnerability Assessment query check object. */ -export interface QueryCheck { - /** - * SQL Vulnerability Assessment rule query. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly query?: string; +/** A list of ledger digest upload settings. */ +export interface ManagedLedgerDigestUploadsListResult { /** - * SQL Vulnerability Assessment query expected result. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly expectedResult?: string[][]; + readonly value?: ManagedLedgerDigestUploads[]; /** - * SQL Vulnerability Assessment column names of query expected result. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly columnNames?: string[]; + readonly nextLink?: string; } -/** SQL Vulnerability Assessment benchmark reference */ -export interface BenchmarkReference { +/** A list of managed server DNS aliases. */ +export interface ManagedServerDnsAliasListResult { /** - * SQL Vulnerability Assessment benchmark name + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly benchmark?: string; + readonly value?: ManagedServerDnsAlias[]; /** - * SQL Vulnerability Assessment benchmark reference. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reference?: string; + readonly nextLink?: string; } -/** A list of vulnerability assessment scan records. */ -export interface SqlVulnerabilityAssessmentScanRecordListResult { +/** A managed server dns alias creation request. */ +export interface ManagedServerDnsAliasCreation { + /** Whether or not DNS record should be created for this alias. */ + createDnsRecord?: boolean; +} + +/** A managed server DNS alias acquisition request. */ +export interface ManagedServerDnsAliasAcquisition { + /** The resource ID of the managed server DNS alias that will be acquired to point to this managed server instead. */ + oldManagedServerDnsAliasResourceId: string; +} + +/** A list of the managed Server's security alert policies. */ +export interface ManagedServerSecurityAlertPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SqlVulnerabilityAssessmentScanRecord[]; + readonly value?: ManagedServerSecurityAlertPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3305,27 +3556,76 @@ export interface SqlVulnerabilityAssessmentScanRecordListResult { readonly nextLink?: string; } -/** Properties of a vulnerability assessment scan error. */ -export interface SqlVulnerabilityAssessmentScanError { +/** A list of NSP configurations for a server. */ +export interface NetworkSecurityPerimeterConfigurationListResult { /** - * The error code. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly value?: NetworkSecurityPerimeterConfiguration[]; /** - * The error message. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly nextLink?: string; } -/** A list of SQL Vulnerability Assessments. */ -export interface SqlVulnerabilityAssessmentListResult { +export interface NSPConfigPerimeter { + id?: string; + perimeterGuid?: string; + location?: string; +} + +export interface NSPConfigAssociation { + name?: string; + accessMode?: string; +} + +export interface NSPConfigProfile { + name?: string; + accessRulesVersion?: string; + accessRules?: NSPConfigAccessRule[]; +} + +export interface NSPConfigAccessRule { + name?: string; + properties?: NSPConfigAccessRuleProperties; +} + +export interface NSPConfigAccessRuleProperties { + direction?: string; + addressPrefixes?: string[]; + fullyQualifiedDomainNames?: string[]; + subscriptions?: string[]; + networkSecurityPerimeters?: NSPConfigNetworkSecurityPerimeterRule[]; +} + +export interface NSPConfigNetworkSecurityPerimeterRule { + id?: string; + perimeterGuid?: string; + location?: string; +} + +export interface NSPProvisioningIssue { + name?: string; + properties?: NSPProvisioningIssueProperties; +} + +export interface NSPProvisioningIssueProperties { + issueType?: string; + severity?: string; + description?: string; + suggestedResourceIds?: string[]; + suggestedAccessRules?: string[]; +} + +/** Result of the request to list SQL operations. */ +export interface OperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SqlVulnerabilityAssessment[]; + readonly value?: Operation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3333,41 +3633,61 @@ export interface SqlVulnerabilityAssessmentListResult { readonly nextLink?: string; } -/** A list of the managed database's Advanced Threat Protection settings. */ -export interface ManagedDatabaseAdvancedThreatProtectionListResult { +/** SQL REST API operation definition. */ +export interface Operation { /** - * Array of results. + * 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 value?: ManagedDatabaseAdvancedThreatProtection[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; + readonly display?: OperationDisplay; + /** + * The intended executor of the operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly origin?: OperationOrigin; + /** + * Additional descriptions for the operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: { [propertyName: string]: Record }; } -/** A list of the managed instance's Advanced Threat Protection settings. */ -export interface ManagedInstanceAdvancedThreatProtectionListResult { +/** Display metadata associated with the operation. */ +export interface OperationDisplay { /** - * Array of results. + * 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 value?: ManagedInstanceAdvancedThreatProtection[]; + readonly provider?: string; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; + 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; } -/** A list of replication links. */ -export interface ReplicationLinkListResult { +/** A list of outbound rules. */ +export interface OutboundFirewallRuleListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ReplicationLink[]; + readonly value?: OutboundFirewallRule[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3375,13 +3695,13 @@ export interface ReplicationLinkListResult { readonly nextLink?: string; } -/** List of managed database move operations. */ -export interface ManagedDatabaseMoveOperationListResult { +/** A list of private endpoint connections. */ +export interface PrivateEndpointConnectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedDatabaseMoveOperationResult[]; + readonly value?: PrivateEndpointConnection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3389,51 +3709,48 @@ export interface ManagedDatabaseMoveOperationListResult { readonly nextLink?: string; } -/** A list of managed instance's DTCs. */ -export interface ManagedInstanceDtcListResult { +/** Properties of a private endpoint connection. */ +export interface PrivateEndpointConnectionProperties { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpointProperty; /** - * Array of results. + * Group IDs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceDtc[]; + readonly groupIds?: string[]; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** - * Link to retrieve next page of results. + * State of the private endpoint connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly provisioningState?: PrivateEndpointProvisioningState; } -/** The Security Settings of managed instance DTC. */ -export interface ManagedInstanceDtcSecuritySettings { - /** Transaction Manager communication settings of managed instance DTC. */ - transactionManagerCommunicationSettings?: ManagedInstanceDtcTransactionManagerCommunicationSettings; - /** Allow XA Transactions to managed instance DTC. */ - xaTransactionsEnabled?: boolean; - /** Allow SNA LU 6.2 Transactions to managed instance DTC. */ - snaLu6Point2TransactionsEnabled?: boolean; - /** Default timeout for XA Transactions (in seconds). */ - xaTransactionsDefaultTimeout?: number; - /** Maximum timeout for XA Transactions (in seconds). */ - xaTransactionsMaximumTimeout?: number; +export interface PrivateEndpointProperty { + /** Resource id of the private endpoint. */ + id?: string; } -/** The Transaction Manager Communication Settings of managed instance DTC. */ -export interface ManagedInstanceDtcTransactionManagerCommunicationSettings { - /** Allow Inbound traffic to managed instance DTC. */ - allowInboundEnabled?: boolean; - /** Allow Outbound traffic of managed instance DTC. */ - allowOutboundEnabled?: boolean; - /** Authentication type of managed instance DTC. */ - authentication?: string; +export interface PrivateLinkServiceConnectionStateProperty { + /** The private link service connection status. */ + status: PrivateLinkServiceConnectionStateStatus; + /** 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?: PrivateLinkServiceConnectionStateActionsRequire; } -/** A list of synapselink workspaces */ -export interface SynapseLinkWorkspaceListResult { +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SynapseLinkWorkspace[]; + readonly value?: PrivateLinkResource[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3441,21 +3758,32 @@ export interface SynapseLinkWorkspaceListResult { readonly nextLink?: string; } -/** Properties of a Synapse link workspaces */ -export interface SynapseLinkWorkspaceInfoProperties { - /** Synapse link workspace id. */ - workspaceId?: string; - /** Link connection name. */ - linkConnectionName?: string; +/** 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[]; + /** + * The private link resource required zone names. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requiredZoneNames?: string[]; } -/** A list of virtual clusters. */ -export interface VirtualClusterListResult { +/** A list of recoverable databases. */ +export interface RecoverableDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: VirtualCluster[]; + readonly value?: RecoverableDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3463,31 +3791,27 @@ export interface VirtualClusterListResult { readonly nextLink?: string; } -/** An update request for virtual cluster. */ -export interface VirtualClusterUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** A list of recoverable managed databases. */ +export interface RecoverableManagedDatabaseListResult { /** - * Subnet resource ID for the virtual cluster. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subnetId?: string; - /** Virtual cluster version. */ - version?: string; + readonly value?: RecoverableManagedDatabase[]; /** - * List of resources in this virtual cluster. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly childResources?: string[]; + readonly nextLink?: string; } -/** A list of instance failover groups. */ -export interface InstanceFailoverGroupListResult { +/** A list of replication links. */ +export interface ReplicationLinkListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: InstanceFailoverGroup[]; + readonly value?: ReplicationLink[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3495,89 +3819,96 @@ export interface InstanceFailoverGroupListResult { readonly nextLink?: string; } -/** Read-write endpoint of the failover group instance. */ -export interface InstanceFailoverGroupReadWriteEndpoint { - /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - failoverPolicy: ReadWriteEndpointFailoverPolicy; - /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - failoverWithDataLossGracePeriodMinutes?: number; -} - -/** Read-only endpoint of the failover group instance. */ -export interface InstanceFailoverGroupReadOnlyEndpoint { - /** Failover policy of the read-only endpoint for the failover group. */ - failoverPolicy?: ReadOnlyEndpointFailoverPolicy; -} - -/** Partner region information for the failover group. */ -export interface PartnerRegionInfo { - /** Geo location of the partner managed instances. */ - location?: string; +/** A list of restorable dropped databases. */ +export interface RestorableDroppedDatabaseListResult { /** - * Replication role of the partner managed instances. + * Array of results. * 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; + readonly value?: RestorableDroppedDatabase[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** The managed database's restore details backup set properties. */ -export interface ManagedDatabaseRestoreDetailsBackupSetProperties { +/** A list of restorable dropped managed databases. */ +export interface RestorableDroppedManagedDatabaseListResult { /** - * Backup set status. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly value?: RestorableDroppedManagedDatabase[]; /** - * First stripe name. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly firstStripeName?: string; + readonly nextLink?: string; +} + +/** A list of long term retention backups. */ +export interface RestorePointListResult { /** - * Number of stripes. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfStripes?: number; + readonly value?: RestorePoint[]; /** - * Backup size. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupSizeMB?: number; + readonly nextLink?: string; +} + +/** Contains the information necessary to perform a create database restore point operation. */ +export interface CreateDatabaseRestorePointDefinition { + /** The restore point label to apply */ + restorePointLabel: string; +} + +/** A list of the server's Advanced Threat Protection configurations. */ +export interface LogicalServerAdvancedThreatProtectionListResult { /** - * Last restored file time. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restoreStartedTimestampUtc?: Date; + readonly value?: ServerAdvancedThreatProtection[]; /** - * Last restored file time. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restoreFinishedTimestampUtc?: Date; + readonly nextLink?: string; } -/** The managed database's restore details unrestorable file properties. */ -export interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties { +/** Automatic tuning properties for individual advisors. */ +export interface AutomaticTuningServerOptions { + /** Automatic tuning option desired state. */ + desiredState?: AutomaticTuningOptionModeDesired; /** - * File name. + * Automatic tuning option actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + 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. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reasonDesc?: AutomaticTuningServerReason; } -/** A list of managed databases. */ -export interface ManagedDatabaseListResult { +/** A list of active directory administrators. */ +export interface AdministratorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedDatabase[]; + readonly value?: ServerAzureADAdministrator[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3585,96 +3916,89 @@ export interface ManagedDatabaseListResult { readonly nextLink?: string; } -/** An managed database update. */ -export interface ManagedDatabaseUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Collation of the managed database. */ - collation?: string; +/** A list of active directory only authentications. */ +export interface AzureADOnlyAuthListResult { /** - * Status of the database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: ManagedDatabaseStatus; + readonly value?: ServerAzureADOnlyAuthentication[]; /** - * Creation date of the database. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly nextLink?: string; +} + +/** A list of server configuration options. */ +export interface ServerConfigurationOptionListResult { /** - * Earliest restore point in time for point in time restore. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestorePoint?: Date; - /** Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ - restorePointInTime?: Date; + readonly value?: ServerConfigurationOption[]; /** - * Geo paired region. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly defaultSecondaryLocation?: string; - /** Collation of the metadata catalog. */ - catalogCollation?: CatalogCollationType; - /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ - createMode?: ManagedDatabaseCreateMode; - /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ - storageContainerUri?: string; - /** The resource identifier of the source database associated with create operation of this database. */ - sourceDatabaseId?: string; - /** The resource identifier of the cross-subscription source database associated with create operation of this database. */ - crossSubscriptionSourceDatabaseId?: string; - /** The restorable dropped database resource id to restore when creating this database. */ - restorableDroppedDatabaseId?: string; - /** The restorable cross-subscription dropped database resource id to restore when creating this database. */ - crossSubscriptionRestorableDroppedDatabaseId?: string; - /** Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. */ - storageContainerIdentity?: string; - /** Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. */ - storageContainerSasToken?: string; + readonly nextLink?: string; +} + +/** A list of server connection policy objects. */ +export interface ServerConnectionPolicyListResult { /** - * Instance Failover Group resource identifier that this managed database belongs to. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly failoverGroupId?: string; - /** The resource identifier of the recoverable database associated with create operation of this database. */ - recoverableDatabaseId?: string; - /** The name of the Long Term Retention backup to be used for restore of this managed database. */ - longTermRetentionBackupResourceId?: string; - /** Whether to auto complete restore of this managed database. */ - autoCompleteRestore?: boolean; - /** Last backup file name for restore of this managed database. */ - lastBackupName?: string; - /** Target managed instance id used in cross-subscription restore. */ - crossSubscriptionTargetManagedInstanceId?: string; + readonly value?: ServerConnectionPolicy[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** Contains the information necessary to perform a managed database move. */ -export interface ManagedDatabaseMoveDefinition { - /** The destination managed database ID */ - destinationManagedDatabaseId: string; +/** A list of server DevOps audit settings. */ +export interface ServerDevOpsAuditSettingsListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ServerDevOpsAuditingSettings[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** Contains the information necessary to perform a complete database restore operation. */ -export interface CompleteDatabaseRestoreDefinition { - /** The last backup name to apply */ - lastBackupName: string; +/** A list of server DNS aliases. */ +export interface ServerDnsAliasListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ServerDnsAlias[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** Contains the information necessary to start a managed database move. */ -export interface ManagedDatabaseStartMoveDefinition { - /** The destination managed database ID */ - destinationManagedDatabaseId: string; - /** The move operation mode. */ - operationMode?: MoveOperationMode; +/** A server dns alias acquisition request. */ +export interface ServerDnsAliasAcquisition { + /** The id of the server alias that will be acquired to point to this server instead. */ + oldServerDnsAliasId: string; } -/** A list of databases. */ -export interface DatabaseListResult { +/** A list of server keys. */ +export interface ServerKeyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Database[]; + readonly value?: ServerKey[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3682,276 +4006,233 @@ export interface DatabaseListResult { readonly nextLink?: string; } -/** Azure Active Directory identity configuration for a resource. */ -export interface DatabaseIdentity { - /** The identity type */ - type?: DatabaseIdentityType; +/** The response to a list server operations request */ +export interface ServerOperationListResult { /** - * The Azure Active Directory tenant id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; - /** The resource ids of the user assigned identities to use */ - userAssignedIdentities?: { [propertyName: string]: DatabaseUserIdentity }; + readonly value?: ServerOperation[]; + /** + * 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; } -/** Azure Active Directory identity configuration for a resource. */ -export interface DatabaseUserIdentity { +/** A list of the server's security alert policies. */ +export interface LogicalServerSecurityAlertPolicyListResult { /** - * The Azure Active Directory principal id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly value?: ServerSecurityAlertPolicy[]; /** - * The Azure Active Directory client id. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; + readonly nextLink?: string; } -/** Database level key used for encryption at rest. */ -export interface DatabaseKey { +/** A list of server trust certificates in instance. */ +export interface ServerTrustCertificatesListResult { /** - * The database key type. Only supported value is 'AzureKeyVault'. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: DatabaseKeyType; + readonly value?: ServerTrustCertificate[]; /** - * Thumbprint of the database key. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly nextLink?: string; +} + +/** A list of server trust groups. */ +export interface ServerTrustGroupListResult { /** - * The database key creation date. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly value?: ServerTrustGroup[]; /** - * Subregion of the server key. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subregion?: string; + readonly nextLink?: string; } -/** A database update resource. */ -export interface DatabaseUpdate { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Database identity */ - identity?: DatabaseIdentity; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** - * Specifies the mode of database creation. - * - * Default: regular database creation. - * - * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. - * - * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database. - * - * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified. - * - * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. - * - * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time. - * - * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. - * - * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. - */ - createMode?: CreateMode; - /** The collation of the database. */ - collation?: string; - /** The max size of the database expressed in bytes. */ - maxSizeBytes?: number; - /** The name of the sample schema to apply when creating this database. */ - sampleName?: SampleName; - /** The resource identifier of the elastic pool containing this database. */ - elasticPoolId?: string; - /** The resource identifier of the source database associated with create operation of this database. */ - sourceDatabaseId?: string; +/** Server info for the server trust group. */ +export interface ServerInfo { + /** Server Id. */ + serverId: string; +} + +/** A list of server usage metrics. */ +export interface ServerUsageListResult { /** - * The status of the database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: DatabaseStatus; + readonly value?: ServerUsage[]; /** - * The ID of the database. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseId?: string; + readonly nextLink?: string; +} + +/** A list of the server's vulnerability assessments. */ +export interface ServerVulnerabilityAssessmentListResult { /** - * The creation date of the database (ISO8601 format). + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly value?: ServerVulnerabilityAssessment[]; /** - * The current service level objective name of the database. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentServiceObjectiveName?: string; + readonly nextLink?: string; +} + +/** A request to check whether the specified name for a resource is available. */ +export interface CheckNameAvailabilityRequest { + name: string; + type: "Microsoft.Sql/servers"; +} + +/** The result of a name availability check. */ +export interface CheckNameAvailabilityResponse { /** - * The requested service level objective name of the database. + * The name whose availability was checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedServiceObjectiveName?: string; + readonly name?: string; /** - * The default secondary region for this database. + * True if the name is available, otherwise false. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly defaultSecondaryLocation?: string; + readonly available?: boolean; /** - * Failover Group resource identifier that this database belongs to. + * The reason code explaining why the name is unavailable. Will be undefined if the name is available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly failoverGroupId?: string; - /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ - restorePointInTime?: Date; - /** Specifies the time that the database was deleted. */ - sourceDatabaseDeletionDate?: Date; - /** The resource identifier of the recovery point associated with create operation of this database. */ - recoveryServicesRecoveryPointId?: string; - /** The resource identifier of the long term retention backup associated with create operation of this database. */ - longTermRetentionBackupResourceId?: string; - /** The resource identifier of the recoverable database associated with create operation of this database. */ - recoverableDatabaseId?: string; - /** The resource identifier of the restorable dropped database associated with create operation of this database. */ - restorableDroppedDatabaseId?: string; - /** Collation of the metadata catalog. */ - catalogCollation?: CatalogCollationType; - /** Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. */ - zoneRedundant?: boolean; - /** The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. */ - licenseType?: DatabaseLicenseType; + readonly reason?: CheckNameAvailabilityReason; /** - * The max log size for this database. + * A message explaining why the name is unavailable. Will be undefined if the name is available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxLogSizeBytes?: number; + readonly message?: string; +} + +/** A list of servers. */ +export interface ServerListResult { /** - * This records the earliest start date and time that restore is available for this database (ISO8601 format). + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; - /** The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. */ - readScale?: DatabaseReadScale; - /** The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool. */ - highAvailabilityReplicaCount?: number; - /** The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby. */ - secondaryType?: SecondaryType; + readonly value?: Server[]; /** - * The name and tier of the SKU. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentSku?: Sku; - /** Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled */ - autoPauseDelay?: number; + readonly nextLink?: string; +} + +/** A private endpoint connection under a server */ +export interface ServerPrivateEndpointConnection { /** - * The storage account type used to store backups for this database. + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; - /** The storage account type to be used to store backups for this database. */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; - /** Minimal capacity that database will always have allocated, if not paused */ - minCapacity?: number; + readonly id?: string; /** - * The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. + * Private endpoint connection properties * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly pausedDate?: Date; + readonly properties?: PrivateEndpointConnectionProperties; +} + +/** Properties of a active directory administrator. */ +export interface ServerExternalAdministrator { + /** Type of the sever administrator. */ + administratorType?: AdministratorType; + /** Principal Type of the sever administrator. */ + principalType?: PrincipalType; + /** Login name of the server administrator. */ + login?: string; + /** SID (object ID) of the server administrator. */ + sid?: string; + /** Tenant ID of the administrator. */ + tenantId?: string; + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; +} + +/** An update request for an Azure SQL Database server. */ +export interface ServerUpdate { + /** Server identity */ + identity?: ResourceIdentity; + /** Resource tags. */ + tags?: { [propertyName: string]: 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 date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. + * The state of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resumedDate?: Date; - /** Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur. */ - maintenanceConfigurationId?: string; - /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ - isLedgerOn?: boolean; + readonly state?: string; /** - * Infra encryption is enabled for this database. + * The fully qualified domain name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isInfraEncryptionEnabled?: boolean; - /** The Client id used for cross tenant per database CMK scenario */ - federatedClientId?: string; - /** The resource ids of the user assigned identities to use */ - keys?: { [propertyName: string]: DatabaseKey }; - /** The azure key vault URI of the database if it's configured with per Database Customer Managed Keys. */ - encryptionProtector?: string; - /** Type of enclave requested on the database i.e. Default or VBS enclaves. */ - preferredEnclaveType?: AlwaysEncryptedEnclaveType; - /** - * Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier. - * - * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier. - * - * When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database. - * - * To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state. - */ - manualCutover?: boolean; - /** - * To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress. - * - * This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter. - * - * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress. - * - * When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database. - */ - performCutover?: boolean; -} - -/** Contains the information necessary to perform export database operation. */ -export interface ExportDatabaseDefinition { - /** Storage key type. */ - storageKeyType: StorageKeyType; - /** Storage key. */ - storageKey: string; - /** Storage Uri. */ - storageUri: string; - /** Administrator login name. */ - administratorLogin: string; - /** Administrator login password. */ - administratorLoginPassword: string; - /** Authentication type. */ - authenticationType?: string; - /** Optional resource information to enable network isolation for request. */ - networkIsolation?: NetworkIsolationSettings; -} - -/** Contains the ARM resources for which to create private endpoint connection. */ -export interface NetworkIsolationSettings { - /** The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter. */ - storageAccountResourceId?: string; - /** The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation. */ - sqlServerResourceId?: string; -} - -/** Contains the private endpoint connection requests status. */ -export interface PrivateEndpointConnectionRequestStatus { + readonly fullyQualifiedDomainName?: string; /** - * Resource id for which the private endpoint is created. + * List of private endpoint connections on a server * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateLinkServiceId?: string; + readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; + /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; + /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter' */ + publicNetworkAccess?: ServerPublicNetworkAccessFlag; /** - * The connection name for the private endpoint. + * Whether or not existing server has a workspace created and if it allows connection from workspace * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnectionName?: string; + readonly workspaceFeature?: ServerWorkspaceFeature; + /** The resource id of a user assigned identity to be used by default. */ + primaryUserAssignedIdentityId?: string; + /** The Client id used for cross tenant CMK scenario */ + federatedClientId?: string; + /** A CMK URI of the key to use for encryption. */ + keyId?: string; + /** The Azure Active Directory administrator of the server. This can only be used at server create time. If used for server update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ + administrators?: ServerExternalAdministrator; + /** Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ + restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; /** - * Status of this private endpoint connection. + * Status of external governance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly externalGovernanceStatus?: ExternalGovernanceStatus; } -/** Contains the information necessary to perform import operation for existing database. */ -export interface ImportExistingDatabaseDefinition { +/** Contains the information necessary to perform import operation for new database. */ +export interface ImportNewDatabaseDefinition { + /** Name of the import database. */ + databaseName?: string; + /** Edition of the import database. */ + edition?: string; + /** Service level objective name of the import database. */ + serviceObjectiveName?: string; + /** Max size in bytes for the import database. */ + maxSizeBytes?: string; /** Storage key type. */ storageKeyType: StorageKeyType; /** Storage key. */ @@ -3968,19 +4249,13 @@ export interface ImportExistingDatabaseDefinition { networkIsolation?: NetworkIsolationSettings; } -/** Contains the information necessary to perform a resource move (rename). */ -export interface ResourceMoveDefinition { - /** The target ID for the resource */ - id: string; -} - -/** The result of an elastic pool list request. */ -export interface ElasticPoolListResult { +/** Managed instance's Start/Stop schedule list result. */ +export interface StartStopManagedInstanceScheduleListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ElasticPool[]; + readonly value?: StartStopManagedInstanceSchedule[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3988,41 +4263,25 @@ export interface ElasticPoolListResult { readonly nextLink?: string; } -/** Per database settings of an elastic pool. */ -export interface ElasticPoolPerDatabaseSettings { - /** The minimum capacity all databases are guaranteed. */ - minCapacity?: number; - /** The maximum capacity any one database can consume. */ - maxCapacity?: number; -} - -/** An elastic pool update. */ -export interface ElasticPoolUpdate { - /** An ARM Resource SKU. */ - sku?: Sku; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The storage limit for the database elastic pool in bytes. */ - maxSizeBytes?: number; - /** The per database settings for the elastic pool. */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; - /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ - zoneRedundant?: boolean; - /** The license type to apply for this elastic pool. */ - licenseType?: ElasticPoolLicenseType; - /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ - maintenanceConfigurationId?: string; - /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. */ - highAvailabilityReplicaCount?: number; +/** Schedule info describing when the server should be started or stopped. */ +export interface ScheduleItem { + /** Start day. */ + startDay: DayOfWeek; + /** Start time. */ + startTime: string; + /** Stop day. */ + stopDay: DayOfWeek; + /** Stop time. */ + stopTime: string; } -/** A list of managed instances. */ -export interface ManagedInstanceListResult { +/** A list of subscription usage metrics in a location. */ +export interface SubscriptionUsageListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstance[]; + readonly value?: SubscriptionUsage[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4030,192 +4289,135 @@ export interface ManagedInstanceListResult { readonly nextLink?: string; } -/** Azure Active Directory identity configuration for a resource. */ -export interface ResourceIdentity { - /** The resource ids of the user assigned identities to use */ - userAssignedIdentities?: { [propertyName: string]: UserIdentity }; +/** A list of synapselink workspaces */ +export interface SynapseLinkWorkspaceListResult { /** - * The Azure Active Directory principal id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; - /** The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. */ - type?: IdentityType; + readonly value?: SynapseLinkWorkspace[]; /** - * The Azure Active Directory tenant id. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; + readonly nextLink?: string; } -/** Azure Active Directory identity configuration for a resource. */ -export interface UserIdentity { - /** - * 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 Azure Active Directory client id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly clientId?: string; +/** Properties of a Synapse link workspaces */ +export interface SynapseLinkWorkspaceInfoProperties { + /** Synapse link workspace id. */ + workspaceId?: string; + /** Link connection name. */ + linkConnectionName?: string; } -/** A private endpoint connection under a managed instance */ -export interface ManagedInstancePecProperty { +/** A list of sync agents. */ +export interface SyncAgentListResult { /** - * Resource ID. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly value?: SyncAgent[]; /** - * Private endpoint connection properties + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: ManagedInstancePrivateEndpointConnectionProperties; -} - -/** Properties of a active directory administrator. */ -export interface ManagedInstanceExternalAdministrator { - /** Type of the sever administrator. */ - administratorType?: AdministratorType; - /** Principal Type of the sever administrator. */ - principalType?: PrincipalType; - /** Login name of the server administrator. */ - login?: string; - /** SID (object ID) of the server administrator. */ - sid?: string; - /** Tenant ID of the administrator. */ - tenantId?: string; - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; + readonly nextLink?: string; } -/** The managed instance's service principal configuration for a resource. */ -export interface ServicePrincipal { +/** Properties of an Azure SQL Database sync agent key. */ +export interface SyncAgentKeyProperties { /** - * The Azure Active Directory application object id. + * Key of sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly syncAgentKey?: string; +} + +/** A list of sync agent linked databases. */ +export interface SyncAgentLinkedDatabaseListResult { /** - * The Azure Active Directory application client id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; + readonly value?: SyncAgentLinkedDatabase[]; /** - * The Azure Active Directory tenant id. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; - /** Service principal type. */ - type?: ServicePrincipalType; + readonly nextLink?: string; } -/** An update request for an Azure SQL Database managed instance. */ -export interface ManagedInstanceUpdate { - /** Managed instance sku */ - sku?: Sku; - /** Managed instance identity */ - identity?: ResourceIdentity; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; - /** - * Specifies the mode of database creation. - * - * Default: Regular instance creation. - * - * Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. - */ - managedInstanceCreateMode?: ManagedServerCreateMode; +/** A list of sync database ID properties. */ +export interface SyncDatabaseIdListResult { /** - * The fully qualified domain name of the managed instance. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedDomainName?: string; - /** Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). */ - administratorLogin?: string; - /** The administrator login password (required for managed instance creation). */ - administratorLoginPassword?: string; - /** Subnet resource ID for the managed instance. */ - subnetId?: string; + readonly value?: SyncDatabaseIdProperties[]; /** - * The state of the managed instance. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; - /** The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). */ - licenseType?: ManagedInstanceLicenseType; - /** The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ - vCores?: number; - /** Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. */ - storageSizeInGB?: number; - /** Collation of the managed instance. */ - collation?: string; + readonly nextLink?: string; +} + +/** Properties of the sync database id. */ +export interface SyncDatabaseIdProperties { /** - * The Dns Zone that the managed instance is in. + * ARM resource id of sync database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dnsZone?: string; - /** The resource id of another managed instance whose DNS zone this managed instance will share after creation. */ - dnsZonePartner?: string; - /** Whether or not the public data endpoint is enabled. */ - publicDataEndpointEnabled?: boolean; - /** The resource identifier of the source managed instance associated with create operation of this instance. */ - sourceManagedInstanceId?: string; - /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ - restorePointInTime?: Date; - /** Connection type used for connecting to the instance. */ - proxyOverride?: ManagedInstanceProxyOverride; - /** - * Id of the timezone. Allowed values are timezones supported by Windows. - * Windows keeps details on supported timezones, including the id, in registry under - * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. - * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. - * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. - * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". - */ - timezoneId?: string; - /** The Id of the instance pool this managed server belongs to. */ - instancePoolId?: string; - /** Specifies maintenance configuration id to apply to this managed instance. */ - maintenanceConfigurationId?: string; + readonly id?: string; +} + +/** A list of sync groups. */ +export interface SyncGroupListResult { /** - * List of private endpoint connections on a managed instance. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: ManagedInstancePecProperty[]; - /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ - minimalTlsVersion?: string; + readonly value?: SyncGroup[]; /** - * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; - /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; - /** Whether or not the multi-az is enabled. */ - zoneRedundant?: boolean; - /** The resource id of a user assigned identity to be used by default. */ - primaryUserAssignedIdentityId?: string; - /** A CMK URI of the key to use for encryption. */ - keyId?: string; - /** The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ - administrators?: ManagedInstanceExternalAdministrator; - /** The managed instance's service principal. */ - servicePrincipal?: ServicePrincipal; + readonly nextLink?: string; } -/** A collection of endpoints that the managed instance service requires outbound network access to. */ -export interface OutboundEnvironmentEndpointCollection { +/** Properties of sync group schema. */ +export interface SyncGroupSchema { + /** List of tables in sync group schema. */ + tables?: SyncGroupSchemaTable[]; + /** Name of master sync member where the schema is from. */ + masterSyncMemberName?: string; +} + +/** Properties of table in sync group schema. */ +export interface SyncGroupSchemaTable { + /** List of columns in sync group schema. */ + columns?: SyncGroupSchemaTableColumn[]; + /** Quoted name of sync group schema table. */ + quotedName?: string; +} + +/** Properties of column in sync group table. */ +export interface SyncGroupSchemaTableColumn { + /** Quoted name of sync group table column. */ + quotedName?: string; + /** Data size of the column. */ + dataSize?: string; + /** Data type of the column. */ + dataType?: string; +} + +/** A list of sync schema properties. */ +export interface SyncFullSchemaPropertiesListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: OutboundEnvironmentEndpoint[]; + readonly value?: SyncFullSchemaProperties[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4223,99 +4425,95 @@ export interface OutboundEnvironmentEndpointCollection { readonly nextLink?: string; } -/** An endpoint that the managed instance service requires outbound network access to. */ -export interface OutboundEnvironmentEndpoint { +/** Properties of the database full schema. */ +export interface SyncFullSchemaProperties { /** - * The type of service accessed by the managed instance service, e.g., Azure Storage, Azure Active Directory, etc. + * List of tables in the database full schema. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly category?: string; + readonly tables?: SyncFullSchemaTable[]; /** - * The endpoints that the managed instance service communicates with in order to function correctly. + * Last update time of the database schema. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endpoints?: EndpointDependency[]; + readonly lastUpdateTime?: Date; } -/** A domain name that the managed instance service needs to communicate with, along with additional details. */ -export interface EndpointDependency { +/** Properties of the table in the database full schema. */ +export interface SyncFullSchemaTable { /** - * The domain name of the dependency. + * 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 domainName?: string; + readonly columns?: SyncFullSchemaTableColumn[]; /** - * The IP Addresses and Ports used when connecting to DomainName. + * Error id of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endpointDetails?: EndpointDetail[]; -} - -/** A domain name that the managed instance service needs to communicate with, along with additional details. */ -export interface EndpointDetail { + readonly errorId?: string; /** - * The port an endpoint is connected to. + * If there is error in the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly port?: number; -} - -/** A list of top resource consuming queries on managed instance */ -export interface TopQueriesListResult { + readonly hasError?: boolean; /** - * Array of results. + * Name of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: TopQueries[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * Quoted name of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly quotedName?: string; } -export interface TopQueries { +/** Properties of the column in the table of database full schema. */ +export interface SyncFullSchemaTableColumn { /** - * Requested number of top queries. + * Data size of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfQueries?: number; + readonly dataSize?: string; /** - * Aggregation function used to calculate query metrics. + * Data type of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly aggregationFunction?: string; + readonly dataType?: string; /** - * Metric used to rank queries. + * Error id of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly observationMetric?: string; + readonly errorId?: string; /** - * Interval type (length). + * If there is error in the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intervalType?: QueryTimeGrainType; + readonly hasError?: boolean; /** - * The start time for the metric (ISO-8601 format). + * 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 startTime?: string; + readonly isPrimaryKey?: boolean; /** - * The end time for the metric (ISO-8601 format). + * Name of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: string; - /** List of top resource consuming queries with appropriate metric data */ - queries?: QueryStatisticsProperties[]; + readonly 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; } -/** A list of ledger digest upload settings. */ -export interface ManagedLedgerDigestUploadsListResult { +/** A list of sync group log properties. */ +export interface SyncGroupLogListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedLedgerDigestUploads[]; + readonly value?: SyncGroupLogProperties[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4323,85 +4521,75 @@ export interface ManagedLedgerDigestUploadsListResult { readonly nextLink?: string; } -/** A list of recoverable databases. */ -export interface RecoverableDatabaseListResult { +/** Properties of an Azure SQL Database sync group log. */ +export interface SyncGroupLogProperties { /** - * Array of results. + * Timestamp of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RecoverableDatabase[]; + readonly timestamp?: Date; /** - * Link to retrieve next page of results. + * Type of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of restorable dropped databases. */ -export interface RestorableDroppedDatabaseListResult { + readonly type?: SyncGroupLogType; /** - * Array of results. + * Source of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RestorableDroppedDatabase[]; + readonly source?: string; /** - * Link to retrieve next page of results. + * Details of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of server configuration options. */ -export interface ServerConfigurationOptionListResult { + readonly details?: string; /** - * Array of results. + * TracingId of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerConfigurationOption[]; + readonly tracingId?: string; /** - * Link to retrieve next page of results. + * OperationStatus of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A request to check whether the specified name for a resource is available. */ -export interface CheckNameAvailabilityRequest { - name: string; - type: "Microsoft.Sql/servers"; + readonly operationStatus?: string; } -/** The result of a name availability check. */ -export interface CheckNameAvailabilityResponse { +/** A list of Azure SQL Database sync members. */ +export interface SyncMemberListResult { /** - * The name whose availability was checked. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: SyncMember[]; /** - * True if the name is available, otherwise false. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly available?: boolean; + readonly nextLink?: string; +} + +/** A list of time zones. */ +export interface TimeZoneListResult { /** - * The reason code explaining why the name is unavailable. Will be undefined if the name is available. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reason?: CheckNameAvailabilityReason; + readonly value?: TimeZone[]; /** - * A message explaining why the name is unavailable. Will be undefined if the name is available. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly nextLink?: string; } -/** A list of servers. */ -export interface ServerListResult { +/** A list of transparent data encryptions */ +export interface LogicalDatabaseTransparentDataEncryptionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Server[]; + readonly value?: LogicalDatabaseTransparentDataEncryption[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4409,140 +4597,74 @@ export interface ServerListResult { readonly nextLink?: string; } -/** A private endpoint connection under a server */ -export interface ServerPrivateEndpointConnection { +/** A list of usages. */ +export interface UsageListResult { /** - * Resource ID. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly value?: Usage[]; /** - * Private endpoint connection properties + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: PrivateEndpointConnectionProperties; + readonly nextLink?: string; } -/** Properties of a private endpoint connection. */ -export interface PrivateEndpointConnectionProperties { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: PrivateEndpointProperty; +/** ARM usage. */ +export interface Usage { /** - * Group IDs. + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupIds?: string[]; - /** Connection state of the private endpoint connection. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + readonly id?: string; /** - * State of the private endpoint connection. + * Resource name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: PrivateEndpointProvisioningState; -} - -/** Properties of a active directory administrator. */ -export interface ServerExternalAdministrator { - /** Type of the sever administrator. */ - administratorType?: AdministratorType; - /** Principal Type of the sever administrator. */ - principalType?: PrincipalType; - /** Login name of the server administrator. */ - login?: string; - /** SID (object ID) of the server administrator. */ - sid?: string; - /** Tenant ID of the administrator. */ - tenantId?: string; - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; -} - -/** An update request for an Azure SQL Database server. */ -export interface ServerUpdate { - /** Server identity */ - identity?: ResourceIdentity; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Administrator username for the server. Once created it cannot be changed. */ - administratorLogin?: string; - /** The administrator login password (required for server creation). */ - administratorLoginPassword?: string; - /** The version of the server. */ - version?: string; + readonly name?: Name; /** - * The state of the server. + * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly type?: string; /** - * The fully qualified domain name of the server. + * Usage unit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedDomainName?: string; + readonly unit?: string; /** - * List of private endpoint connections on a server + * Usage current value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; - /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ - minimalTlsVersion?: string; - /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter' */ - publicNetworkAccess?: ServerPublicNetworkAccessFlag; + readonly currentValue?: number; /** - * Whether or not existing server has a workspace created and if it allows connection from workspace + * Usage limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workspaceFeature?: ServerWorkspaceFeature; - /** The resource id of a user assigned identity to be used by default. */ - primaryUserAssignedIdentityId?: string; - /** The Client id used for cross tenant CMK scenario */ - federatedClientId?: string; - /** A CMK URI of the key to use for encryption. */ - keyId?: string; - /** The Azure Active Directory administrator of the server. This can only be used at server create time. If used for server update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ - administrators?: ServerExternalAdministrator; - /** Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ - restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; + readonly limit?: number; /** - * Status of external governance. + * Usage requested limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly externalGovernanceStatus?: ExternalGovernanceStatus; + readonly requestedLimit?: number; } -/** Contains the information necessary to perform import operation for new database. */ -export interface ImportNewDatabaseDefinition { - /** Name of the import database. */ - databaseName?: string; - /** Edition of the import database. */ - edition?: string; - /** Service level objective name of the import database. */ - serviceObjectiveName?: string; - /** Max size in bytes for the import database. */ - maxSizeBytes?: string; - /** Storage key type. */ - storageKeyType: StorageKeyType; - /** Storage key. */ - storageKey: string; - /** Storage Uri. */ - storageUri: string; - /** Administrator login name. */ - administratorLogin: string; - /** Administrator login password. */ - administratorLoginPassword: string; - /** Authentication type. */ - authenticationType?: string; - /** Optional resource information to enable network isolation for request. */ - networkIsolation?: NetworkIsolationSettings; +/** ARM Usage Name */ +export interface Name { + /** Usage name value */ + value?: string; + /** Usage name localized value. */ + localizedValue?: string; } -/** Managed instance's Start/Stop schedule list result. */ -export interface StartStopManagedInstanceScheduleListResult { +/** A list of virtual clusters. */ +export interface VirtualClusterListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: StartStopManagedInstanceSchedule[]; + readonly value?: VirtualCluster[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4550,73 +4672,64 @@ export interface StartStopManagedInstanceScheduleListResult { readonly nextLink?: string; } -/** Schedule info describing when the server should be started or stopped. */ -export interface ScheduleItem { - /** Start day. */ - startDay: DayOfWeek; - /** Start time. */ - startTime: string; - /** Stop day. */ - stopDay: DayOfWeek; - /** Stop time. */ - stopTime: string; -} - -/** A list of transparent data encryptions */ -export interface LogicalDatabaseTransparentDataEncryptionListResult { +/** An update request for virtual cluster. */ +export interface VirtualClusterUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** - * Array of results. + * Subnet resource ID for the virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LogicalDatabaseTransparentDataEncryption[]; + readonly subnetId?: string; + /** Virtual cluster version. */ + version?: string; /** - * Link to retrieve next page of results. + * List of resources in this virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly childResources?: string[]; } -/** A Slo Usage Metric. */ -export interface SloUsageMetric { - /** - * The serviceLevelObjective for SLO usage metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serviceLevelObjective?: ServiceObjectiveName; +/** A list of virtual network rules. */ +export interface VirtualNetworkRuleListResult { /** - * The serviceLevelObjectiveId for SLO usage metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceLevelObjectiveId?: string; + readonly value?: VirtualNetworkRule[]; /** - * Gets or sets inRangeTimeRatio for SLO usage metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly inRangeTimeRatio?: number; + readonly nextLink?: string; } -/** The impact of an operation, both in absolute and relative terms. */ -export interface OperationImpact { +/** A list of workload classifiers for a workload group. */ +export interface WorkloadClassifierListResult { /** - * The name of the impact dimension. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: WorkloadClassifier[]; /** - * The unit in which estimated impact to dimension is measured. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly nextLink?: string; +} + +/** A list of workload groups. */ +export interface WorkloadGroupListResult { /** - * The absolute impact to dimension. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly changeValueAbsolute?: number; + readonly value?: WorkloadGroup[]; /** - * The relative impact to dimension (null if not applicable) + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly changeValueRelative?: number; + readonly nextLink?: string; } /** The properties that are supported in the $filter operation. */ @@ -4642,331 +4755,579 @@ export interface TrackedResource extends Resource { export interface ProxyResourceWithWritableName extends ResourceWithWritableName {} -/** Represents a database data masking policy. */ -export interface DataMaskingPolicy extends ProxyResource { - /** - * The location of the data masking policy. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** - * The kind of data masking policy. Metadata, used for Azure portal. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; - /** The state of the data masking policy. */ - dataMaskingState?: DataMaskingState; - /** The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries. */ - exemptPrincipals?: string; - /** - * The list of the application principals. This is a legacy parameter and is no longer used. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly applicationPrincipals?: string; - /** - * The masking level. This is a legacy parameter and is no longer used. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maskingLevel?: string; +/** A short term retention policy. */ +export interface BackupShortTermRetentionPolicy extends ProxyResource { + /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ + retentionDays?: number; + /** The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases. */ + diffBackupIntervalInHours?: DiffBackupIntervalInHours; } -/** Represents a database data masking rule. */ -export interface DataMaskingRule extends ProxyResource { - /** - * The location of the data masking rule. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; +/** A server blob auditing policy. */ +export interface ServerBlobAuditingPolicy extends ProxyResource { /** - * The kind of Data Masking Rule. Metadata, used for Azure portal. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly kind?: string; + isDevopsAuditEnabled?: boolean; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The rule Id. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - readonly idPropertiesId?: string; - /** The alias name. This is a legacy parameter and is no longer used. */ - aliasName?: string; - /** The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState. */ - ruleState?: DataMaskingRuleState; - /** The schema name on which the data masking rule is applied. */ - schemaName?: string; - /** The table name on which the data masking rule is applied. */ - tableName?: string; - /** The column name on which the data masking rule is applied. */ - columnName?: string; - /** The masking function that is used for the data masking rule. */ - maskingFunction?: DataMaskingFunction; - /** The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ - numberFrom?: string; - /** The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ - numberTo?: string; - /** If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored. */ - prefixSize?: string; - /** If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored. */ - suffixSize?: string; - /** If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored. */ - replacementString?: string; -} - -/** A database geo backup policy. */ -export interface GeoBackupPolicy extends ProxyResource { + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * 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. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly kind?: string; + isAzureMonitorTargetEnabled?: boolean; /** - * Backup policy location. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly location?: string; - /** The state of the geo backup policy. */ - state: GeoBackupPolicyState; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The storage type of the geo backup policy. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly storageType?: string; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; } -/** Server communication link. */ -export interface ServerCommunicationLink extends ProxyResource { - /** - * Communication link location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; +/** A database blob auditing policy. */ +export interface DatabaseBlobAuditingPolicy extends ProxyResource { /** - * Communication link kind. This property is used for Azure Portal metadata. + * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: string; - /** The name of the partner server. */ - partnerServer?: string; -} - -/** Represents a database service objective. */ -export interface ServiceObjective extends ProxyResource { - /** - * The name for the service objective. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serviceObjectiveName?: string; - /** - * Gets whether the service level objective is the default service objective. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isDefault?: boolean; - /** - * Gets whether the service level objective is a system service objective. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isSystem?: boolean; - /** - * The description for the service level objective. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; - /** - * Gets whether the service level objective is enabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly enabled?: boolean; -} - -/** Represents the activity on an elastic pool. */ -export interface ElasticPoolActivity extends ProxyResource { - /** The geo-location where the resource lives */ - location?: string; - /** - * The time the operation finished (ISO8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTime?: Date; - /** - * 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; - /** - * The percentage complete if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - readonly percentComplete?: number; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The requested max DTU per database if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly requestedDatabaseDtuMax?: number; + isAzureMonitorTargetEnabled?: boolean; /** - * The requested min DTU per database if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly requestedDatabaseDtuMin?: number; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The requested DTU for the pool if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly requestedDtu?: number; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** An extended database blob auditing policy. */ +export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { + /** Specifies condition of where clause when creating an audit. */ + predicateExpression?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The requested name for the elastic pool if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - readonly requestedElasticPoolName?: string; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The requested storage limit for the pool in GB if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly requestedStorageLimitInGB?: number; + isAzureMonitorTargetEnabled?: boolean; /** - * The name of the elastic pool. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly elasticPoolName?: string; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The name of the server the elastic pool is in. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly serverName?: string; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** An extended server blob auditing policy. */ +export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { /** - * The time the operation started (ISO8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly startTime?: Date; + isDevopsAuditEnabled?: boolean; + /** Specifies condition of where clause when creating an audit. */ + predicateExpression?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The current state of the operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: string; - /** - * The requested storage limit in MB. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - readonly requestedStorageLimitInMB?: number; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The requested per database DTU guarantee. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly requestedDatabaseDtuGuarantee?: number; + isAzureMonitorTargetEnabled?: boolean; /** - * The requested per database DTU cap. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly requestedDatabaseDtuCap?: number; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The requested DTU guarantee. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly requestedDtuGuarantee?: number; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; } -/** Represents the activity on an elastic pool. */ -export interface ElasticPoolDatabaseActivity extends ProxyResource { - /** The geo-location where the resource lives */ - location?: string; - /** - * The database name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly databaseName?: string; - /** - * The time the operation finished (ISO8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTime?: Date; - /** - * The error code if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorCode?: number; - /** - * The error message if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; - /** - * The error severity if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorSeverity?: number; +/** A database data masking policy. */ +export interface DataMaskingPolicy extends ProxyResource { /** - * The operation name. + * The location of the data masking policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly location?: string; /** - * The unique operation ID. + * The kind of Data Masking Policy. Metadata, used for Azure portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationId?: string; + readonly kind?: string; + /** The state of the data masking policy. */ + dataMaskingState?: DataMaskingState; + /** The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries. */ + exemptPrincipals?: string; /** - * The percentage complete if available. + * The list of the application principals. This is a legacy parameter and is no longer used. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly applicationPrincipals?: string; /** - * The name for the elastic pool the database is moving into if available. + * The masking level. This is a legacy parameter and is no longer used. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedElasticPoolName?: string; + readonly maskingLevel?: string; +} + +/** A database data masking rule. */ +export interface DataMaskingRule extends ProxyResource { /** - * The name of the current elastic pool the database is in if available. + * The location of the data masking rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentElasticPoolName?: string; + readonly location?: string; /** - * The name of the current service objective if available. + * The kind of Data Masking Rule. Metadata, used for Azure portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentServiceObjective?: string; + readonly kind?: string; /** - * The name of the requested service objective if available. + * The rule Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedServiceObjective?: string; + readonly idPropertiesId?: string; + /** The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState. */ + ruleState?: DataMaskingRuleState; + /** The schema name on which the data masking rule is applied. */ + schemaName?: string; + /** The table name on which the data masking rule is applied. */ + tableName?: string; + /** The column name on which the data masking rule is applied. */ + columnName?: string; + /** The alias name. This is a legacy parameter and is no longer used. */ + aliasName?: string; + /** The masking function that is used for the data masking rule. */ + maskingFunction?: DataMaskingFunction; + /** The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ + numberFrom?: string; + /** The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ + numberTo?: string; + /** If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored. */ + prefixSize?: string; + /** If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored. */ + suffixSize?: string; + /** If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored. */ + replacementString?: string; +} + +/** User activities of a data warehouse */ +export interface DataWarehouseUserActivities extends ProxyResource { /** - * The name of the server the elastic pool is in. + * Count of running and suspended queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly activeQueriesCount?: number; +} + +/** A database Advanced Threat Protection. */ +export interface DatabaseAdvancedThreatProtection extends ProxyResource { /** - * The time the operation started (ISO8601 format). + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** - * The current state of the operation. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly creationTime?: Date; } /** Database, Server or Elastic Pool Recommended Action. */ @@ -5161,158 +5522,93 @@ export interface DatabaseColumn extends ProxyResource { isComputed?: boolean; } -/** A database schema resource. */ -export interface DatabaseSchema extends ProxyResource {} - -/** A database security alert policy. */ -export interface DatabaseSecurityAlertPolicy extends ProxyResource { +/** An Extension operation result resource. */ +export interface ImportExportExtensionsOperationResult extends ProxyResource { /** - * SystemData of SecurityAlertPolicyResource. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ - state?: SecurityAlertsPolicyState; - /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - disabledAlerts?: string[]; - /** Specifies an array of e-mail addresses to which the alert is sent. */ - emailAddresses?: string[]; - /** Specifies that the alert is sent to the account administrators. */ - emailAccountAdmins?: boolean; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ - storageEndpoint?: string; - /** Specifies the identifier key of the Threat Detection audit storage account. */ - storageAccountAccessKey?: string; - /** Specifies the number of days to keep in the Threat Detection audit logs. */ - retentionDays?: number; + readonly requestId?: string; /** - * Specifies the UTC creation time of the policy. + * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A database table resource. */ -export interface DatabaseTable extends ProxyResource { - /** The table temporal type. */ - temporalType?: TableTemporalType; - /** Whether or not the table is memory optimized. */ - memoryOptimized?: boolean; -} - -/** A database vulnerability assessment rule baseline. */ -export interface DatabaseVulnerabilityAssessmentRuleBaseline - extends ProxyResource { - /** The rule baseline result */ - baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; -} - -/** A database vulnerability assessment. */ -export interface DatabaseVulnerabilityAssessment extends ProxyResource { - /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set */ - storageContainerPath?: string; - /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. */ - storageContainerSasKey?: string; - /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ - storageAccountAccessKey?: string; - /** The recurring scans settings */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** A vulnerability assessment scan record. */ -export interface VulnerabilityAssessmentScanRecord extends ProxyResource { + readonly requestType?: string; /** - * The scan ID. + * Last modified time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scanId?: string; + readonly lastModifiedTime?: string; /** - * The scan trigger type. + * Server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; + readonly serverName?: string; /** - * The scan status. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: VulnerabilityAssessmentScanState; - /** - * The scan start time (UTC). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * The scan end time (UTC). + * Database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; + readonly databaseName?: string; /** - * The scan errors. + * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errors?: VulnerabilityAssessmentScanError[]; + readonly status?: string; /** - * The scan results storage container path. + * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageContainerPath?: string; + readonly errorMessage?: string; /** - * The number of failed security checks. + * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFailedSecurityChecks?: number; -} - -/** A database Vulnerability Assessment scan export resource. */ -export interface DatabaseVulnerabilityAssessmentScansExport - extends ProxyResource { + readonly queuedTime?: string; /** - * Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). + * Blob URI. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly exportedReportLocation?: string; -} - -/** User activities of a data warehouse */ -export interface DataWarehouseUserActivities extends ProxyResource { + readonly blobUri?: string; /** - * Count of running and suspended queries. + * Gets the status of private endpoints associated with this request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly activeQueriesCount?: number; + readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; } -/** A deleted server. */ -export interface DeletedServer extends ProxyResource { - /** - * The version of the deleted server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly version?: string; - /** - * The deletion time of the deleted server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly deletionTime?: Date; - /** - * The original ID of the server before deletion. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly originalId?: string; - /** - * The fully qualified domain name of the server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly fullyQualifiedDomainName?: string; +/** An Import, Export, or PolybaseImport resource. */ +export interface DatabaseExtensions extends ProxyResource { + /** Operation mode of the operation: Import, Export, or PolybaseImport. */ + operationMode?: OperationMode; + /** Storage key type: StorageAccessKey or SharedAccessKey. */ + storageKeyType?: StorageKeyType; + /** Storage key for the storage account. */ + storageKey?: string; + /** Storage Uri for the storage account. */ + storageUri?: string; + /** Administrator login name. */ + administratorLogin?: string; + /** Administrator login password. */ + administratorLoginPassword?: string; + /** Authentication type: SQL authentication or AD password. */ + authenticationType?: string; + /** Database edition for the newly created database in the case of an import operation. */ + databaseEdition?: string; + /** Database service level objective for the newly created database in the case of an import operation. */ + serviceObjectiveName?: string; + /** Database max size in bytes for the newly created database in the case of an import operation. */ + maxSizeBytes?: string; + /** Optional resource information to enable network isolation for request. */ + networkIsolation?: NetworkIsolationSettings; } -/** A elastic pool operation. */ -export interface ElasticPoolOperation extends ProxyResource { +/** A database operation. */ +export interface DatabaseOperation extends ProxyResource { /** - * The name of the elastic pool the operation is being performed on. + * The name of the database the operation is being performed on. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: string; + readonly databaseName?: string; /** * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5342,7 +5638,7 @@ export interface ElasticPoolOperation extends ProxyResource { * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly state?: ManagementOperationState; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5378,758 +5674,490 @@ export interface ElasticPoolOperation extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isCancellable?: boolean; + /** + * The operation phase details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationPhaseDetails?: PhaseDetails; } -/** The server encryption protector. */ -export interface EncryptionProtector extends ProxyResource { +/** A database schema resource. */ +export interface DatabaseSchema extends ProxyResource {} + +/** A database security alert policy. */ +export interface DatabaseSecurityAlertPolicy extends ProxyResource { /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly systemData?: SystemData; + /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ + state?: SecurityAlertsPolicyState; + /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; /** - * Resource location. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly creationTime?: Date; +} + +/** A database sql vulnerability assessment baseline set. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselineSet + extends ProxyResource { /** - * Subregion of the encryption protector. + * SystemData of DatabaseSqlVulnerabilityAssessmentBaselineSetResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subregion?: string; - /** The name of the server key. */ - serverKeyName?: string; - /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; + readonly systemData?: SystemData; + /** The baseline set result */ + results?: { [propertyName: string]: string[][] }; +} + +/** A database sql vulnerability assessment rule baseline list input. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput + extends ProxyResource { /** - * The URI of the server key. + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly uri?: string; + readonly systemData?: SystemData; + /** The latest scan flag */ + latestScan?: boolean; + /** The rule baseline result list */ + results?: { [propertyName: string]: string[][] }; +} + +/** A database sql vulnerability assessment rule baseline. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaseline + extends ProxyResource { /** - * Thumbprint of the server key. + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; - /** Key auto rotation opt-in flag. Either true or false. */ - autoRotationEnabled?: boolean; + readonly systemData?: SystemData; + /** The rule baseline result */ + results?: string[][]; } -/** A failover group. */ -export interface FailoverGroup extends ProxyResource { +/** A database sql vulnerability assessment rule baseline input. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput + extends ProxyResource { /** - * Resource location. + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineInputResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Read-write endpoint of the failover group instance. */ - readWriteEndpoint?: FailoverGroupReadWriteEndpoint; - /** Read-only endpoint of the failover group instance. */ - readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; + readonly systemData?: SystemData; + /** The latest scan flag */ + latestScan?: boolean; + /** The rule baseline result */ + results?: string[][]; +} + +export interface SqlVulnerabilityAssessmentScanResults extends ProxyResource { /** - * Local replication role of the failover group instance. + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationRole?: FailoverGroupReplicationRole; + readonly systemData?: SystemData; /** - * Replication state of the failover group instance. + * SQL Vulnerability Assessment rule Id. * 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 stored credential that can be used by a job to connect to target databases. */ -export interface JobCredential extends ProxyResource { - /** The credential user name. */ - username?: string; - /** The credential password. */ - password?: string; -} - -/** An execution of a job */ -export interface JobExecution extends ProxyResource { + readonly ruleId?: string; /** - * The job version number. + * SQL Vulnerability Assessment rule result status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly jobVersion?: number; + readonly status?: RuleStatus; /** - * The job step name. + * SQL Vulnerability Assessment error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepName?: string; + readonly errorMessage?: string; /** - * The job step id. + * SQL Vulnerability Assessment is the query results trimmed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepId?: number; + readonly isTrimmed?: boolean; /** - * The unique identifier of the job execution. + * SQL Vulnerability Assessment query results that was run. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly jobExecutionId?: string; + readonly queryResults?: string[][]; /** - * The detailed state of the job execution. + * SQL Vulnerability Assessment the remediation details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lifecycle?: JobExecutionLifecycle; + readonly remediation?: Remediation; /** - * The ARM provisioning state of the job execution. + * SQL Vulnerability Assessment rule result adjusted with baseline. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly baselineAdjustedResult?: BaselineAdjustedResult; /** - * The time that the job execution was created. + * SQL Vulnerability Assessment rule metadata. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createTime?: Date; + readonly ruleMetadata?: VaRule; +} + +/** A vulnerability assessment scan record. */ +export interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource { /** - * The time that the job execution started. + * SystemData of SqlVulnerabilityAssessmentScanRecordResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly systemData?: SystemData; /** - * The time that the job execution completed. + * The scan ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; - /** Number of times the job execution has been attempted. */ - currentAttempts?: number; + readonly scanId?: string; /** - * Start time of the current attempt. + * The scan trigger type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentAttemptStartTime?: Date; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** - * The last status or error message. + * The scan status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastMessage?: string; + readonly state?: VulnerabilityAssessmentScanState; /** - * The target that this execution is executed on. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly target?: JobExecutionTarget; -} - -/** A job. */ -export interface Job extends ProxyResource { - /** User-defined description of the job. */ - description?: string; - /** - * The job version number. + * The scan start time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: number; - /** Schedule properties of the job. */ - schedule?: JobSchedule; -} - -/** A job step. */ -export interface JobStep extends ProxyResource { - /** The job step's index within the job. If not specified when creating the job step, it will be created as the last step. If not specified when updating the job step, the step id is not modified. */ - stepId?: number; - /** The resource ID of the target group that the job step will be executed on. */ - targetGroup?: string; - /** The resource ID of the job credential that will be used to connect to the targets. */ - credential?: string; - /** The action payload of the job step. */ - action?: JobStepAction; - /** Output destination properties of the job step. */ - output?: JobStepOutput; - /** Execution options for the job step. */ - executionOptions?: JobStepExecutionOptions; -} - -/** A group of job targets. */ -export interface JobTargetGroup extends ProxyResource { - /** Members of the target group. */ - members?: JobTarget[]; -} - -/** A job version. */ -export interface JobVersion extends ProxyResource {} - -/** A long term retention policy. */ -export interface LongTermRetentionPolicy extends ProxyResource { - /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ - weeklyRetention?: string; - /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ - monthlyRetention?: string; - /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ - yearlyRetention?: string; - /** The week of year to take the yearly backup in an ISO 8601 format. */ - weekOfYear?: number; -} - -/** Maintenance window options. */ -export interface MaintenanceWindowOptions extends ProxyResource { - /** Whether maintenance windows are enabled for the database. */ - isEnabled?: boolean; - /** Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. */ - maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; - /** Minimum duration of maintenance window. */ - minDurationInMinutes?: number; - /** Default duration for maintenance window. */ - defaultDurationInMinutes?: number; - /** Minimum number of maintenance windows cycles to be set on the database. */ - minCycles?: number; - /** Time granularity in minutes for maintenance windows. */ - timeGranularityInMinutes?: number; - /** Whether we allow multiple maintenance windows per cycle. */ - allowMultipleMaintenanceWindowsPerCycle?: boolean; -} - -/** Maintenance windows. */ -export interface MaintenanceWindows extends ProxyResource { - timeRanges?: MaintenanceWindowTimeRange[]; -} - -/** A short term retention policy. */ -export interface ManagedBackupShortTermRetentionPolicy extends ProxyResource { - /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ - retentionDays?: number; -} - -/** Database query. */ -export interface ManagedInstanceQuery extends ProxyResource { - /** Query text. */ - queryText?: string; -} - -export interface QueryStatistics extends ProxyResource { + readonly startTime?: Date; /** - * Database name of the database in which this query was executed. + * The scan end time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly endTime?: Date; /** - * Unique query id (unique within one database). + * The scan errors. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queryId?: string; + readonly errors?: SqlVulnerabilityAssessmentScanError[]; /** - * The start time for the metric (ISO-8601 format). + * The server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: string; + readonly server?: string; /** - * The end time for the metric (ISO-8601 format). + * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: string; - /** List of intervals with appropriate metric data */ - intervals?: QueryMetricInterval[]; -} - -/** A managed database security alert policy. */ -export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource { - /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ - state?: SecurityAlertPolicyState; - /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - disabledAlerts?: string[]; - /** Specifies an array of e-mail addresses to which the alert is sent. */ - emailAddresses?: string[]; - /** Specifies that the alert is sent to the account administrators. */ - emailAccountAdmins?: boolean; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ - storageEndpoint?: string; - /** Specifies the identifier key of the Threat Detection audit storage account. */ - storageAccountAccessKey?: string; - /** Specifies the number of days to keep in the Threat Detection audit logs. */ - retentionDays?: number; + readonly database?: string; /** - * Specifies the UTC creation time of the policy. + * The SQL version. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A security event. */ -export interface SecurityEvent extends ProxyResource { + readonly sqlVersion?: string; /** - * The time when the security event occurred. + * The number of failed rules with high severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly eventTime?: Date; + readonly highSeverityFailedRulesCount?: number; /** - * The type of the security event. + * The number of failed rules with medium severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly securityEventType?: SecurityEventType; + readonly mediumSeverityFailedRulesCount?: number; /** - * The subscription name + * The number of failed rules with low severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subscription?: string; + readonly lowSeverityFailedRulesCount?: number; /** - * The server name + * The number of total passed rules. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly server?: string; + readonly totalPassedRulesCount?: number; /** - * The database name + * The number of total failed rules. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly database?: string; + readonly totalFailedRulesCount?: number; /** - * The IP address of the client who executed the statement. + * The number of total rules assessed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientIp?: string; + readonly totalRulesCount?: number; /** - * The application used to execute the statement. + * Baseline created for this database, and has one or more rules. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly applicationName?: string; + readonly isBaselineApplied?: boolean; /** - * The principal user who executed the statement + * The last scan time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalName?: string; + readonly lastScanTime?: Date; +} + +/** A SQL Vulnerability Assessment. */ +export interface SqlVulnerabilityAssessment extends ProxyResource { /** - * The sql injection additional properties, populated only if the type of the security event is sql injection. + * SystemData of SqlVulnerabilityAssessmentResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; -} - -/** A managed database transparent data encryption state. */ -export interface ManagedTransparentDataEncryption extends ProxyResource { - /** Specifies the state of the transparent data encryption. */ - state?: TransparentDataEncryptionState; -} - -/** An Azure SQL managed instance administrator. */ -export interface ManagedInstanceAdministrator extends ProxyResource { - /** Type of the managed instance administrator. */ - administratorType?: ManagedInstanceAdministratorType; - /** Login name of the managed instance administrator. */ - login?: string; - /** SID (object ID) of the managed instance administrator. */ - sid?: string; - /** Tenant ID of the managed instance administrator. */ - tenantId?: string; + readonly systemData?: SystemData; + /** Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: SqlVulnerabilityAssessmentState; } -/** Azure Active Directory only authentication. */ -export interface ManagedInstanceAzureADOnlyAuthentication - extends ProxyResource { - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; +/** A database table resource. */ +export interface DatabaseTable extends ProxyResource { + /** The table temporal type. */ + temporalType?: TableTemporalType; + /** Whether or not the table is memory optimized. */ + memoryOptimized?: boolean; } -/** The managed instance encryption protector. */ -export interface ManagedInstanceEncryptionProtector extends ProxyResource { +/** Usage metric of a database. */ +export interface DatabaseUsage extends ProxyResource { /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * User-readable name of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; - /** The name of the managed instance key. */ - serverKeyName?: string; - /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; + readonly displayName?: string; /** - * The URI of the server key. + * Current value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly uri?: string; + readonly currentValue?: number; /** - * Thumbprint of the server key. + * Boundary value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; - /** Key auto rotation opt-in flag. Either true or false. */ - autoRotationEnabled?: boolean; -} - -/** A managed instance key. */ -export interface ManagedInstanceKey extends ProxyResource { + readonly limit?: number; /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * Unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; - /** The key type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; - /** The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ - uri?: string; + readonly unit?: string; +} + +/** A database vulnerability assessment rule baseline. */ +export interface DatabaseVulnerabilityAssessmentRuleBaseline + extends ProxyResource { + /** The rule baseline result */ + baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; +} + +/** A vulnerability assessment scan record. */ +export interface VulnerabilityAssessmentScanRecord extends ProxyResource { /** - * Thumbprint of the key. + * The scan ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly scanId?: string; /** - * The key creation date. + * The scan trigger type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** - * Key auto rotation opt-in flag. Either true or false. + * The scan status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly autoRotationEnabled?: boolean; -} - -/** A long term retention policy. */ -export interface ManagedInstanceLongTermRetentionPolicy extends ProxyResource { - /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ - weeklyRetention?: string; - /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ - monthlyRetention?: string; - /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ - yearlyRetention?: string; - /** The week of year to take the yearly backup in an ISO 8601 format. */ - weekOfYear?: number; -} - -/** A managed instance operation. */ -export interface ManagedInstanceOperation extends ProxyResource { + readonly state?: VulnerabilityAssessmentScanState; /** - * The name of the managed instance the operation is being performed on. + * The scan start time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceName?: string; + readonly startTime?: Date; /** - * The name of operation. + * The scan end time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly endTime?: Date; /** - * The friendly name of operation. + * The scan errors. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly errors?: VulnerabilityAssessmentScanError[]; /** - * The percentage of the operation completed. + * The scan results storage container path. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly storageContainerPath?: string; /** - * The operation start time. + * The number of failed security checks. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly numberOfFailedSecurityChecks?: number; +} + +/** A database Vulnerability Assessment scan export resource. */ +export interface DatabaseVulnerabilityAssessmentScansExport + extends ProxyResource { /** - * The operation state. + * 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 state?: ManagementOperationState; + readonly exportedReportLocation?: 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 write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageContainerSasKey?: string; + /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageAccountAccessKey?: string; + /** The recurring scans settings */ + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +} + +/** An ImportExport operation result resource. */ +export interface ImportExportOperationResult extends ProxyResource { /** - * The operation error code. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly requestId?: string; /** - * The operation error description. + * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDescription?: string; + readonly requestType?: string; /** - * The operation error severity. + * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly queuedTime?: string; /** - * Whether or not the error is a user error. + * Last modified time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUserError?: boolean; + readonly lastModifiedTime?: string; /** - * The estimated completion time of the operation. + * Blob Uri. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedCompletionTime?: Date; + readonly blobUri?: string; /** - * The operation description. + * Server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly serverName?: string; /** - * Whether the operation can be cancelled. + * Database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; + readonly databaseName?: string; /** - * The operation parameters. + * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationParameters?: ManagedInstanceOperationParametersPair; + readonly status?: string; /** - * The operation steps. + * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationSteps?: ManagedInstanceOperationSteps; -} - -/** A private endpoint connection */ -export interface ManagedInstancePrivateEndpointConnection - extends ProxyResource { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: ManagedInstancePrivateEndpointProperty; - /** Connection State of the Private Endpoint Connection. */ - privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; + readonly errorMessage?: string; /** - * State of the Private Endpoint Connection. + * Gets the status of private endpoints associated with this request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; } -/** A private link resource */ -export interface ManagedInstancePrivateLink extends ProxyResource { +/** A deleted server. */ +export interface DeletedServer extends ProxyResource { /** - * The private link resource group id. + * The version of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: ManagedInstancePrivateLinkProperties; -} - -/** A TDE certificate that can be uploaded into a server. */ -export interface TdeCertificate extends ProxyResource { - /** The base64 encoded certificate private blob. */ - privateBlob?: string; - /** The certificate password. */ - certPassword?: string; -} - -/** A managed instance vulnerability assessment. */ -export interface ManagedInstanceVulnerabilityAssessment extends ProxyResource { - /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ - storageContainerPath?: string; - /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ - storageContainerSasKey?: string; - /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ - storageAccountAccessKey?: string; - /** The recurring scans settings */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** A managed server security alert policy. */ -export interface ManagedServerSecurityAlertPolicy extends ProxyResource { + readonly version?: string; /** - * SystemData of SecurityAlertPolicyResource. + * The deletion time of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ - state?: SecurityAlertsPolicyState; - /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - disabledAlerts?: string[]; - /** Specifies an array of e-mail addresses to which the alert is sent. */ - emailAddresses?: string[]; - /** Specifies that the alert is sent to the account administrators. */ - emailAccountAdmins?: boolean; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ - storageEndpoint?: string; - /** Specifies the identifier key of the Threat Detection audit storage account. */ - storageAccountAccessKey?: string; - /** Specifies the number of days to keep in the Threat Detection audit logs. */ - retentionDays?: number; + readonly deletionTime?: Date; /** - * Specifies the UTC creation time of the policy. + * The original ID of the server before deletion. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A private endpoint connection */ -export interface PrivateEndpointConnection extends ProxyResource { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: PrivateEndpointProperty; - /** Connection state of the private endpoint connection. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + readonly originalId?: string; /** - * State of the private endpoint connection. + * The fully qualified domain name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: PrivateEndpointProvisioningState; + readonly fullyQualifiedDomainName?: string; } -/** A private link resource */ -export interface PrivateLinkResource extends ProxyResource { +/** Distributed availability group between box and Sql Managed Instance. */ +export interface DistributedAvailabilityGroup extends ProxyResource { /** - * The private link resource group id. + * Name of the distributed availability group * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: PrivateLinkResourceProperties; -} - -/** A recoverable managed database resource. */ -export interface RecoverableManagedDatabase extends ProxyResource { + readonly distributedAvailabilityGroupName?: string; /** - * The last available backup date. + * ID of the distributed availability group * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAvailableBackupDate?: string; -} - -/** Database restore points. */ -export interface RestorePoint extends ProxyResource { + readonly distributedAvailabilityGroupId?: string; + /** Replication mode of the link */ + replicationMode?: ReplicationModeType; /** - * Resource location. + * SQL server side link role * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly partnerLinkRole?: LinkRole; /** - * The type of restore point + * SQL server side availability group name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointType?: RestorePointType; + readonly partnerAvailabilityGroupName?: string; /** - * The earliest time to which this database can be restored + * SQL server side endpoint - IP or DNS resolvable name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; + readonly partnerEndpoint?: string; /** - * The time the backup was taken + * Managed instance side link role * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointCreationDate?: Date; + readonly instanceLinkRole?: LinkRole; /** - * The label of restore point for backup request by user + * Managed instance side availability group name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointLabel?: string; -} - -/** Server-level Automatic Tuning. */ -export interface ServerAutomaticTuning extends ProxyResource { - /** Automatic tuning desired state. */ - desiredState?: AutomaticTuningServerMode; + readonly instanceAvailabilityGroupName?: string; /** - * Automatic tuning actual state. + * Databases in the distributed availability group * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actualState?: AutomaticTuningServerMode; - /** Automatic tuning options definition. */ - options?: { [propertyName: string]: AutomaticTuningServerOptions }; + readonly databases?: DistributedAvailabilityGroupDatabase[]; } -/** Azure Active Directory administrator. */ -export interface ServerAzureADAdministrator extends ProxyResource { - /** Type of the sever administrator. */ - administratorType?: AdministratorType; - /** Login name of the server administrator. */ - login?: string; - /** SID (object ID) of the server administrator. */ - sid?: string; - /** Tenant ID of the administrator. */ - tenantId?: string; +/** A elastic pool operation. */ +export interface ElasticPoolOperation extends ProxyResource { /** - * Azure Active Directory only Authentication enabled. + * 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 azureADOnlyAuthentication?: boolean; -} - -/** Azure Active Directory only authentication. */ -export interface ServerAzureADOnlyAuthentication extends ProxyResource { - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; -} - -/** A server DevOps auditing settings. */ -export interface ServerDevOpsAuditingSettings extends ProxyResource { + readonly elasticPoolName?: string; /** - * SystemData of ServerDevOpsAuditSettingsResource. + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** - * Specifies whether DevOps audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure DevOps audit, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should be also created. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * - */ - isAzureMonitorTargetEnabled?: boolean; - /** Specifies whether Managed Identity is used to access blob storage */ - isManagedIdentityInUse?: boolean; - /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ - state?: BlobAuditingPolicyState; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) - */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -} - -/** A 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 key. */ -export interface ServerKey extends ProxyResource { - /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; - /** - * Resource location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** - * Subregion of the server key. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly subregion?: string; - /** The server key type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; - /** The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ - uri?: string; - /** - * Thumbprint of the server key. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly thumbprint?: string; - /** - * The server key creation date. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly creationDate?: Date; - /** - * Key auto rotation opt-in flag. Either true or false. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly autoRotationEnabled?: boolean; -} - -/** A server operation. */ -export interface ServerOperation extends ProxyResource { - /** - * The name of operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operation?: string; + readonly operation?: string; /** * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6154,7 +6182,7 @@ export interface ServerOperation extends ProxyResource { * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly state?: string; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6192,657 +6220,719 @@ export interface ServerOperation extends ProxyResource { readonly isCancellable?: boolean; } -/** A server security alert policy. */ -export interface ServerSecurityAlertPolicy extends ProxyResource { - /** - * SystemData of SecurityAlertPolicyResource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ - state?: SecurityAlertsPolicyState; - /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - disabledAlerts?: string[]; - /** Specifies an array of e-mail addresses to which the alert is sent. */ - emailAddresses?: string[]; - /** Specifies that the alert is sent to the account administrators. */ - emailAccountAdmins?: boolean; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ - storageEndpoint?: string; - /** Specifies the identifier key of the Threat Detection audit storage account. */ - storageAccountAccessKey?: string; - /** Specifies the number of days to keep in the Threat Detection audit logs. */ - retentionDays?: number; +/** The server encryption protector. */ +export interface EncryptionProtector extends ProxyResource { /** - * Specifies the UTC creation time of the policy. + * Kind of encryption protector. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A server trust group. */ -export interface ServerTrustGroup extends ProxyResource { - /** Group members information for the server trust group. */ - groupMembers?: ServerInfo[]; - /** Trust scope of the server trust group. */ - trustScopes?: ServerTrustGroupPropertiesTrustScopesItem[]; -} - -/** A server vulnerability assessment. */ -export interface ServerVulnerabilityAssessment extends ProxyResource { - /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ - storageContainerPath?: string; - /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ - storageContainerSasKey?: string; - /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ - storageAccountAccessKey?: string; - /** The recurring scans settings */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** A recoverable managed database resource. */ -export interface SqlAgentConfiguration extends ProxyResource { - /** The state of Sql Agent. */ - state?: SqlAgentConfigurationPropertiesState; -} - -/** Usage Metric of a Subscription in a Location. */ -export interface SubscriptionUsage extends ProxyResource { + readonly kind?: string; /** - * User-readable name of the metric. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly location?: string; /** - * Current value of the metric. + * Subregion of the encryption protector. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly subregion?: string; + /** The name of the server key. */ + serverKeyName?: string; + /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; /** - * Boundary value of the metric. + * The URI of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly uri?: string; /** - * Unit of the metric. + * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly thumbprint?: string; + /** Key auto rotation opt-in flag. Either true or false. */ + autoRotationEnabled?: boolean; } -/** An Azure SQL Database sync agent. */ -export interface SyncAgent extends ProxyResource { +/** Certificate used on an endpoint on the Managed Instance. */ +export interface EndpointCertificate extends ProxyResource { + /** The certificate public blob */ + publicBlob?: string; +} + +/** A failover group. */ +export interface FailoverGroup extends ProxyResource { /** - * Name of the sync agent. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly namePropertiesName?: string; - /** ARM resource id of the sync database in the sync agent. */ - syncDatabaseId?: string; + readonly location?: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** Read-write endpoint of the failover group instance. */ + readWriteEndpoint?: FailoverGroupReadWriteEndpoint; + /** Read-only endpoint of the failover group instance. */ + readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; /** - * Last alive time of the sync agent. + * Local replication role of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAliveTime?: Date; + readonly replicationRole?: FailoverGroupReplicationRole; /** - * State of the sync agent. + * Replication state of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: SyncAgentState; + readonly replicationState?: string; + /** List of partner server information for the failover group. */ + partnerServers?: PartnerInfo[]; + /** List of databases in the failover group. */ + databases?: string[]; +} + +/** A Geo backup policy. */ +export interface GeoBackupPolicy extends ProxyResource { /** - * If the sync agent version is up to date. + * Backup policy location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUpToDate?: boolean; + readonly location?: string; /** - * Expiration time of the sync agent version. + * Kind of geo backup policy. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly expiryTime?: Date; + readonly kind?: string; + /** The state of the geo backup policy. */ + state?: GeoBackupPolicyState; /** - * Version of the sync agent. + * The storage type of the geo backup policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; + readonly storageType?: string; } -/** An Azure SQL Database sync agent linked database. */ -export interface SyncAgentLinkedDatabase extends ProxyResource { +/** An instance failover group. */ +export interface InstanceFailoverGroup extends ProxyResource { + /** Type of the geo-secondary instance. Set 'Standby' if the instance is used as a DR option only. */ + secondaryType?: SecondaryInstanceType; + /** Read-write endpoint of the failover group instance. */ + readWriteEndpoint?: InstanceFailoverGroupReadWriteEndpoint; + /** Read-only endpoint of the failover group instance. */ + readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; /** - * Type of the sync agent linked database. + * Local replication role of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseType?: SyncMemberDbType; + readonly replicationRole?: InstanceFailoverGroupReplicationRole; /** - * Id of the sync agent linked database. + * Replication state of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseId?: string; + readonly replicationState?: string; + /** Partner region information for the failover group. */ + partnerRegions?: PartnerRegionInfo[]; + /** List of managed instance pairs in the failover group. */ + managedInstancePairs?: ManagedInstancePairInfo[]; +} + +/** A stored credential that can be used by a job to connect to target databases. */ +export interface JobCredential extends ProxyResource { + /** The credential user name. */ + username?: string; + /** The credential password. */ + password?: string; +} + +/** An execution of a job */ +export interface JobExecution extends ProxyResource { /** - * Description of the sync agent linked database. + * The job version number. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly jobVersion?: number; /** - * Server name of the sync agent linked database. + * The job step name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly stepName?: string; /** - * Database name of the sync agent linked database. + * The job step id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly stepId?: number; /** - * User name of the sync agent linked database. + * The unique identifier of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userName?: string; -} - -/** An Azure SQL Database sync group. */ -export interface SyncGroup extends ProxyResource { - /** The name and capacity of the SKU. */ - sku?: Sku; - /** Sync interval of the sync group. */ - interval?: number; + readonly jobExecutionId?: string; /** - * Last sync time of the sync group. + * The detailed state of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastSyncTime?: Date; - /** Conflict resolution policy of the sync group. */ - conflictResolutionPolicy?: SyncConflictResolutionPolicy; - /** ARM resource id of the sync database in the sync group. */ - syncDatabaseId?: string; - /** User name for the sync group hub database credential. */ - hubDatabaseUserName?: string; - /** Password for the sync group hub database credential. */ - hubDatabasePassword?: string; + readonly lifecycle?: JobExecutionLifecycle; /** - * Sync state of the sync group. + * The ARM provisioning state of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly syncState?: SyncGroupState; - /** Sync schema of the sync group. */ - schema?: SyncGroupSchema; - /** If conflict logging is enabled. */ - enableConflictLogging?: boolean; - /** Conflict logging retention period. */ - conflictLoggingRetentionInDays?: number; - /** If use private link connection is enabled. */ - usePrivateLinkConnection?: boolean; + readonly provisioningState?: ProvisioningState; /** - * Private endpoint name of the sync group if use private link connection is enabled. + * The time that the job execution was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointName?: string; -} - -/** An Azure SQL Database sync member. */ -export interface SyncMember extends ProxyResource { - /** Database type of the sync member. */ - databaseType?: SyncMemberDbType; - /** ARM resource id of the sync agent in the sync member. */ - syncAgentId?: string; - /** SQL Server database id of the sync member. */ - sqlServerDatabaseId?: string; - /** ARM resource id of the sync member logical database, for sync members in Azure. */ - syncMemberAzureDatabaseResourceId?: string; - /** Whether to use private link connection. */ - usePrivateLinkConnection?: boolean; + readonly createTime?: Date; /** - * Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure. + * The time that the job execution started. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointName?: string; - /** Server name of the member database in the sync member */ - serverName?: string; - /** Database name of the member database in the sync member. */ - databaseName?: string; - /** User name of the member database in the sync member. */ - userName?: string; - /** Password of the member database in the sync member. */ - password?: string; - /** Sync direction of the sync member. */ - syncDirection?: SyncDirection; + readonly startTime?: Date; /** - * Sync state of the sync member. + * The time that the job execution completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly syncState?: SyncMemberState; -} - -/** Time Zone. */ -export interface TimeZone extends ProxyResource { + readonly endTime?: Date; + /** Number of times the job execution has been attempted. */ + currentAttempts?: number; /** - * The time zone id + * Start time of the current attempt. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeZoneId?: string; + readonly currentAttemptStartTime?: Date; /** - * The time zone display name + * The last status or error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; -} - -/** A virtual network rule. */ -export interface VirtualNetworkRule extends ProxyResource { - /** The ARM resource id of the virtual network subnet. */ - virtualNetworkSubnetId?: string; - /** Create firewall rule before the virtual network has vnet service endpoint enabled. */ - ignoreMissingVnetServiceEndpoint?: boolean; + readonly lastMessage?: string; /** - * Virtual Network Rule State + * The target that this execution is executed on. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: VirtualNetworkRuleState; + readonly target?: JobExecutionTarget; } -/** Workload classifier operations for a data warehouse */ -export interface WorkloadClassifier extends ProxyResource { - /** The workload classifier member name. */ - memberName?: string; - /** The workload classifier label. */ - label?: string; - /** The workload classifier context. */ - context?: string; - /** The workload classifier start time for classification. */ - startTime?: string; - /** The workload classifier end time for classification. */ - endTime?: string; - /** The workload classifier importance. */ - importance?: string; +/** A job 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; } -/** Workload group operations for a data warehouse */ -export interface WorkloadGroup extends ProxyResource { - /** The workload group minimum percentage resource. */ - minResourcePercent?: number; - /** The workload group cap percentage resource. */ - maxResourcePercent?: number; - /** The workload group request minimum grant percentage. */ - minResourcePercentPerRequest?: number; - /** The workload group request maximum grant percentage. */ - maxResourcePercentPerRequest?: number; - /** The workload group importance level. */ - importance?: string; - /** The workload group query execution timeout. */ - queryExecutionTimeout?: number; +/** A group of job targets. */ +export interface JobTargetGroup extends ProxyResource { + /** Members of the target group. */ + members?: JobTarget[]; } -/** A short term retention policy. */ -export interface BackupShortTermRetentionPolicy extends ProxyResource { - /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ - retentionDays?: number; - /** The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases. */ - diffBackupIntervalInHours?: DiffBackupIntervalInHours; +/** A job version. */ +export interface JobVersion extends ProxyResource {} + +/** A job. */ +export interface Job extends ProxyResource { + /** User-defined description of the job. */ + 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; } -/** An export managed database operation result resource. */ -export interface DatabaseExtensions extends ProxyResource { - /** Operation Mode. */ - operationMode?: OperationMode; - /** Storage key type. */ - storageKeyType?: StorageKeyType; - /** Storage key. */ - storageKey?: string; - /** Storage Uri. */ - storageUri?: string; +/** Azure SQL Database ledger digest upload settings. */ +export interface LedgerDigestUploads extends ProxyResource { + /** The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. */ + digestStorageEndpoint?: string; + /** + * Specifies the state of ledger digest upload. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: LedgerDigestUploadsState; } -/** An Extension operation result resource. */ -export interface ImportExportExtensionsOperationResult extends ProxyResource { +/** A long term retention backup. */ +export interface LongTermRetentionBackup extends ProxyResource { /** - * Request Id. + * 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 requestId?: string; + readonly serverName?: string; /** - * Request type. + * The create time of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestType?: string; + readonly serverCreateTime?: Date; /** - * Last modified time. + * 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 lastModifiedTime?: string; + readonly databaseName?: string; /** - * Server name. + * The delete time of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly databaseDeletionTime?: Date; /** - * Database name. + * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly backupTime?: Date; /** - * Operation status. + * 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 status?: string; + readonly backupExpirationTime?: Date; /** - * Error message. + * The storage redundancy type of the backup * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly backupStorageRedundancy?: BackupStorageRedundancy; + /** The storage redundancy type of the backup */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; } -/** A database operation. */ -export interface DatabaseOperation extends ProxyResource { +/** A LongTermRetentionBackup operation result resource. */ +export interface LongTermRetentionBackupOperationResult extends ProxyResource { /** - * The name of the database the operation is being performed on. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly requestId?: string; /** - * The name of operation. + * Operation type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly operationType?: string; /** - * The friendly name of operation. + * Source backup resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly fromBackupResourceId?: string; /** - * The percentage of the operation completed. + * Target backup resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly toBackupResourceId?: string; /** - * The name of the server. + * The storage redundancy type of the copied backup * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly targetBackupStorageRedundancy?: BackupStorageRedundancy; /** - * The operation start time. + * Operation status * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly status?: string; /** - * The operation state. + * Progress message * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly message?: string; +} + +/** A long term retention backup for a managed database. */ +export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { /** - * The operation error code. + * 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 errorCode?: number; + readonly managedInstanceName?: string; /** - * The operation error description. + * The create time of the instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDescription?: string; + readonly managedInstanceCreateTime?: Date; /** - * The operation error severity. + * 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 errorSeverity?: number; + readonly databaseName?: string; /** - * Whether or not the error is a user error. + * The delete time of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUserError?: boolean; + readonly databaseDeletionTime?: Date; /** - * The estimated completion time of the operation. + * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedCompletionTime?: Date; + readonly backupTime?: Date; /** - * The operation description. + * 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 description?: string; + readonly backupExpirationTime?: Date; /** - * Whether the operation can be cancelled. + * The storage redundancy type of the backup * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; + readonly backupStorageRedundancy?: BackupStorageRedundancy; } -/** Usage metric of a database. */ -export interface DatabaseUsage extends ProxyResource { - /** - * User-readable name of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly displayName?: string; - /** - * Current value of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly currentValue?: number; +/** A long term retention policy. */ +export interface LongTermRetentionPolicy extends ProxyResource { + /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ + weeklyRetention?: string; + /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ + monthlyRetention?: string; + /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ + yearlyRetention?: string; + /** The week of year to take the yearly backup in an ISO 8601 format. */ + weekOfYear?: number; +} + +/** Maintenance window options. */ +export interface MaintenanceWindowOptions extends ProxyResource { + /** Whether maintenance windows are enabled for the database. */ + isEnabled?: boolean; + /** Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. */ + maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; + /** Minimum duration of maintenance window. */ + minDurationInMinutes?: number; + /** Default duration for maintenance window. */ + defaultDurationInMinutes?: number; + /** Minimum number of maintenance windows cycles to be set on the database. */ + minCycles?: number; + /** Time granularity in minutes for maintenance windows. */ + timeGranularityInMinutes?: number; + /** Whether we allow multiple maintenance windows per cycle. */ + allowMultipleMaintenanceWindowsPerCycle?: boolean; +} + +/** Maintenance windows. */ +export interface MaintenanceWindows extends ProxyResource { + timeRanges?: MaintenanceWindowTimeRange[]; +} + +/** A short term retention policy. */ +export interface ManagedBackupShortTermRetentionPolicy extends ProxyResource { + /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ + retentionDays?: number; +} + +/** A managed database Advanced Threat Protection. */ +export interface ManagedDatabaseAdvancedThreatProtection extends ProxyResource { /** - * Boundary value of the metric. + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** - * Unit of the metric. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly creationTime?: Date; } -/** Azure SQL Database ledger digest upload settings. */ -export interface LedgerDigestUploads extends ProxyResource { - /** The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. */ - digestStorageEndpoint?: string; +/** A managed database move operation. */ +export interface ManagedDatabaseMoveOperationResult extends ProxyResource { /** - * Specifies the state of ledger digest upload. + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: LedgerDigestUploadsState; -} - -/** An Azure SQL DB Server Outbound Firewall Rule. */ -export interface OutboundFirewallRule extends ProxyResource { + readonly operation?: string; /** - * The state of the outbound rule. + * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; -} - -/** A LongTermRetentionBackup operation result resource. */ -export interface LongTermRetentionBackupOperationResult extends ProxyResource { + readonly operationFriendlyName?: string; /** - * Request Id. + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestId?: string; + readonly startTime?: Date; /** - * Operation type. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationType?: string; + readonly state?: ManagementOperationState; /** - * Source backup resource id + * Operation mode. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fromBackupResourceId?: string; + readonly operationMode?: MoveOperationMode; /** - * Target backup resource id + * Source Managed Instance name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly toBackupResourceId?: string; + readonly sourceManagedInstanceName?: string; /** - * The storage redundancy type of the copied backup + * Target Managed Instance name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetBackupStorageRedundancy?: BackupStorageRedundancy; + readonly targetManagedInstanceName?: string; /** - * Operation status + * Source Managed Instance resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly sourceManagedInstanceId?: string; /** - * Progress message + * Target Managed instance resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; -} - -/** A long term retention backup. */ -export interface LongTermRetentionBackup extends ProxyResource { + readonly targetManagedInstanceId?: string; /** - * The server name that the backup database belong to. + * Source database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly sourceDatabaseName?: string; /** - * The create time of the server. + * Target database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverCreateTime?: Date; + readonly targetDatabaseName?: string; /** - * The name of the database the backup belong to + * Is move operation cancellable. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly isCancellable?: boolean; /** - * The delete time of the database + * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseDeletionTime?: Date; + readonly errorCode?: number; /** - * The time the backup was taken + * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupTime?: Date; + readonly errorDescription?: string; /** - * The time the long term retention backup will expire. + * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupExpirationTime?: Date; + readonly errorSeverity?: number; /** - * The storage redundancy type of the backup + * 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 backupStorageRedundancy?: BackupStorageRedundancy; - /** The storage redundancy type of the backup */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; + readonly isUserError?: boolean; } -/** A long term retention backup for a managed database. */ -export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { +/** Database query. */ +export interface ManagedInstanceQuery extends ProxyResource { + /** Query text. */ + queryText?: string; +} + +export interface QueryStatistics extends ProxyResource { /** - * The managed instance that the backup database belongs to. + * Database name of the database in which this query was executed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceName?: string; + readonly databaseName?: string; /** - * The create time of the instance. + * Unique query id (unique within one database). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceCreateTime?: Date; + readonly queryId?: string; /** - * The name of the database the backup belong to + * The start time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly startTime?: string; /** - * The delete time of the database + * The end time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseDeletionTime?: Date; + readonly endTime?: string; + /** List of intervals with appropriate metric data */ + intervals?: QueryMetricInterval[]; +} + +/** A managed database restore details. */ +export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { /** - * The time the backup was taken + * Restore type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupTime?: Date; + readonly typePropertiesType?: string; /** - * The time the long term retention backup will expire. + * Restore status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupExpirationTime?: Date; + readonly status?: string; /** - * The storage redundancy type of the backup + * The reason why restore is in Blocked state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupStorageRedundancy?: BackupStorageRedundancy; -} - -/** A server connection policy */ -export interface ServerConnectionPolicy extends ProxyResource { + readonly blockReason?: string; /** - * Resource location. + * Last uploaded file name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly lastUploadedFileName?: string; /** - * Metadata used for the Azure portal experience. + * Last uploaded file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; - /** The server connection type. */ - connectionType?: ServerConnectionType; -} - -/** Distributed availability group between box and Sql Managed Instance. */ -export interface DistributedAvailabilityGroup extends ProxyResource { - /** The name of the target database */ - targetDatabase?: string; - /** The source endpoint */ - sourceEndpoint?: string; - /** The primary availability group name */ - primaryAvailabilityGroupName?: string; - /** The secondary availability group name */ - secondaryAvailabilityGroupName?: string; - /** The replication mode of a distributed availability group. Parameter will be ignored during link creation. */ - replicationMode?: ReplicationMode; + readonly lastUploadedFileTime?: Date; /** - * The distributed availability group id + * Last restored file name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly distributedAvailabilityGroupId?: string; + readonly lastRestoredFileName?: string; /** - * The source replica id + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sourceReplicaId?: string; + readonly lastRestoredFileTime?: Date; /** - * The target replica id + * Percent completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetReplicaId?: string; + readonly percentCompleted?: number; /** - * The link state + * Current restored size MB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly linkState?: string; + readonly currentRestoredSizeMB?: number; /** - * The last hardened lsn + * Current restore plan size MB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastHardenedLsn?: string; -} - -/** Server trust certificate imported from box to enable connection between box and Sql Managed Instance. */ -export interface ServerTrustCertificate extends ProxyResource { - /** The certificate public blob */ - publicBlob?: string; + readonly currentRestorePlanSizeMB?: number; /** - * The certificate thumbprint + * Current backup type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly currentBackupType?: string; /** - * The certificate name + * Current restoring file name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly certificateName?: string; + readonly currentRestoringFileName?: string; + /** + * Number of files detected. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesDetected?: number; + /** + * Number of files queued. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesQueued?: number; + /** + * Number of files skipped. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesSkipped?: number; + /** + * Number of files restoring. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesRestoring?: number; + /** + * Number of files restored. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesRestored?: number; + /** + * Number of files unrestorable. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesUnrestorable?: number; + /** + * Full backup sets. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + /** + * Diff backup sets. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diffBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + /** + * Log backup sets. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly logBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + /** + * Unrestorable files. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unrestorableFiles?: ManagedDatabaseRestoreDetailsUnrestorableFileProperties[]; } -/** Certificate used on an endpoint on the Managed Instance. */ -export interface EndpointCertificate extends ProxyResource { - /** The certificate public blob */ - publicBlob?: 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. */ + state?: SecurityAlertPolicyState; + /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; + /** + * Specifies the 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 security event. */ +export interface SecurityEvent extends ProxyResource { + /** + * The time when the security event occurred. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly eventTime?: Date; + /** + * The type of the security event. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly securityEventType?: SecurityEventType; + /** + * The subscription name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subscription?: string; + /** + * The server name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly server?: string; + /** + * The database name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly database?: string; + /** + * The IP address of the client who executed the statement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientIp?: string; + /** + * The application used to execute the statement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly applicationName?: string; + /** + * The principal user who executed the statement + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalName?: string; + /** + * The sql injection additional properties, populated only if the type of the security event is sql injection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; } /** A sensitivity label. */ @@ -6907,755 +6997,427 @@ export interface RecommendedSensitivityLabelUpdate extends ProxyResource { column?: string; } -/** A server blob auditing policy. */ -export interface ServerBlobAuditingPolicy extends ProxyResource { +/** A managed database transparent data encryption state. */ +export interface ManagedTransparentDataEncryption extends ProxyResource { + /** Specifies the state of the transparent data encryption. */ + state?: TransparentDataEncryptionState; +} + +/** A database vulnerability assessment rule baseline. */ +export interface DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated + extends ProxyResource { + /** The rule baseline result */ + baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; +} + +/** An Azure SQL managed instance administrator. */ +export interface ManagedInstanceAdministrator extends ProxyResource { + /** Type of the managed instance administrator. */ + administratorType?: ManagedInstanceAdministratorType; + /** Login name of the managed instance administrator. */ + login?: string; + /** SID (object ID) of the managed instance administrator. */ + sid?: string; + /** Tenant ID of the managed instance administrator. */ + tenantId?: string; +} + +/** A managed instance Advanced Threat Protection. */ +export interface ManagedInstanceAdvancedThreatProtection extends ProxyResource { /** - * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * SystemData of AdvancedThreatProtectionResource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isDevopsAuditEnabled?: boolean; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * DBCC_GROUP - * DATABASE_OWNERSHIP_CHANGE_GROUP - * DATABASE_CHANGE_GROUP - * LEDGER_OPERATION_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * Specifies the UTC creation time of the policy. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; - /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * - */ - isAzureMonitorTargetEnabled?: boolean; - /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - */ - queueDelayMs?: number; - /** Specifies whether Managed Identity is used to access blob storage */ - isManagedIdentityInUse?: boolean; - /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ - state?: BlobAuditingPolicyState; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) - */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -} - -/** A database blob auditing policy. */ -export interface DatabaseBlobAuditingPolicy extends ProxyResource { - /** - * Resource kind. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; - /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * DBCC_GROUP - * DATABASE_OWNERSHIP_CHANGE_GROUP - * DATABASE_CHANGE_GROUP - * LEDGER_OPERATION_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; - /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * - */ - isAzureMonitorTargetEnabled?: boolean; - /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - */ - queueDelayMs?: number; - /** Specifies whether Managed Identity is used to access blob storage */ - isManagedIdentityInUse?: boolean; - /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ - state?: BlobAuditingPolicyState; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) - */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; + readonly creationTime?: Date; } -/** An extended database blob auditing policy. */ -export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { - /** Specifies condition of where clause when creating an audit. */ - predicateExpression?: string; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; - /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * DBCC_GROUP - * DATABASE_OWNERSHIP_CHANGE_GROUP - * DATABASE_CHANGE_GROUP - * LEDGER_OPERATION_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; - /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * - */ - isAzureMonitorTargetEnabled?: boolean; - /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - */ - queueDelayMs?: number; - /** Specifies whether Managed Identity is used to access blob storage */ - isManagedIdentityInUse?: boolean; - /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ - state?: BlobAuditingPolicyState; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) - */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; +/** Azure Active Directory only authentication. */ +export interface ManagedInstanceAzureADOnlyAuthentication + extends ProxyResource { + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; } -/** An extended server blob auditing policy. */ -export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { - /** - * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * - */ - isDevopsAuditEnabled?: boolean; - /** Specifies condition of where clause when creating an audit. */ - predicateExpression?: string; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; - /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * DBCC_GROUP - * DATABASE_OWNERSHIP_CHANGE_GROUP - * DATABASE_CHANGE_GROUP - * LEDGER_OPERATION_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; - /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * - */ - isAzureMonitorTargetEnabled?: boolean; +/** SQL Managed Instance DTC */ +export interface ManagedInstanceDtc extends ProxyResource { + /** Active status of managed instance DTC. */ + dtcEnabled?: boolean; + /** Security settings of managed instance DTC. */ + securitySettings?: ManagedInstanceDtcSecuritySettings; + /** External dns suffix search list of managed instance DTC. */ + externalDnsSuffixSearchList?: string[]; /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * Host name dns suffix of managed instance DTC. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - queueDelayMs?: number; - /** Specifies whether Managed Identity is used to access blob storage */ - isManagedIdentityInUse?: boolean; - /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ - state?: BlobAuditingPolicyState; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - storageEndpoint?: string; + readonly dtcHostNameDnsSuffix?: string; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) - */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; + * Provisioning state of managed instance DTC. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; } -/** A database Advanced Threat Protection. */ -export interface DatabaseAdvancedThreatProtection extends ProxyResource { +/** The managed instance encryption protector. */ +export interface ManagedInstanceEncryptionProtector extends ProxyResource { /** - * SystemData of AdvancedThreatProtectionResource. + * 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 systemData?: SystemData; - /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ - state?: AdvancedThreatProtectionState; + readonly kind?: string; + /** The name of the managed instance key. */ + serverKeyName?: string; + /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; /** - * Specifies the UTC creation time of the policy. + * The URI of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly uri?: string; + /** + * Thumbprint of the server key. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly thumbprint?: string; + /** Key auto rotation opt-in flag. Either true or false. */ + autoRotationEnabled?: boolean; } -/** A server Advanced Threat Protection. */ -export interface ServerAdvancedThreatProtection extends ProxyResource { +/** A managed instance key. */ +export interface ManagedInstanceKey extends ProxyResource { /** - * SystemData of AdvancedThreatProtectionResource. + * 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 systemData?: SystemData; - /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ - state?: AdvancedThreatProtectionState; + readonly kind?: string; + /** The key type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; + /** The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ + uri?: string; /** - * Specifies the UTC creation time of the policy. + * Thumbprint of the key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A managed server DNS alias. */ -export interface ManagedServerDnsAlias extends ProxyResource { + readonly thumbprint?: string; /** - * The fully qualified DNS record for managed server alias + * The key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly azureDnsRecord?: string; + readonly creationDate?: Date; /** - * The fully qualified public DNS record for managed server alias + * Key auto rotation opt-in flag. Either true or false. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicAzureDnsRecord?: string; + readonly autoRotationEnabled?: boolean; } -/** A database sql vulnerability assessment baseline set. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselineSet - extends ProxyResource { +/** A long term retention policy. */ +export interface ManagedInstanceLongTermRetentionPolicy extends ProxyResource { + /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ + weeklyRetention?: string; + /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ + monthlyRetention?: string; + /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ + yearlyRetention?: string; + /** The week of year to take the yearly backup in an ISO 8601 format. */ + weekOfYear?: number; +} + +/** A managed instance operation. */ +export interface ManagedInstanceOperation extends ProxyResource { /** - * SystemData of DatabaseSqlVulnerabilityAssessmentBaselineSetResource. + * 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 systemData?: SystemData; - /** The baseline set result */ - results?: { [propertyName: string]: string[][] }; -} - -/** A database sql vulnerability assessment rule baseline list input. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput - extends ProxyResource { + readonly managedInstanceName?: string; /** - * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputResource. + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** The latest scan flag */ - latestScan?: boolean; - /** The rule baseline result list */ - results?: { [propertyName: string]: string[][] }; -} - -/** A database sql vulnerability assessment rule baseline. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaseline - extends ProxyResource { + readonly operation?: string; /** - * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineResource. + * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** The rule baseline result */ - results?: string[][]; -} - -/** A database sql vulnerability assessment rule baseline input. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput - extends ProxyResource { + readonly operationFriendlyName?: string; /** - * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineInputResource. + * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** The latest scan flag */ - latestScan?: boolean; - /** The rule baseline result */ - results?: string[][]; -} - -export interface SqlVulnerabilityAssessmentScanResults extends ProxyResource { + readonly percentComplete?: number; /** - * SystemData of AdvancedThreatProtectionResource. + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; + readonly startTime?: Date; /** - * SQL Vulnerability Assessment rule Id. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleId?: string; + readonly state?: ManagementOperationState; /** - * SQL Vulnerability Assessment rule result status. + * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: RuleStatus; + readonly errorCode?: number; /** - * SQL Vulnerability Assessment error message. + * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly errorDescription?: string; /** - * SQL Vulnerability Assessment is the query results trimmed. + * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isTrimmed?: boolean; + readonly errorSeverity?: number; /** - * SQL Vulnerability Assessment query results that was run. + * 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 queryResults?: string[][]; + readonly isUserError?: boolean; /** - * SQL Vulnerability Assessment the remediation details. + * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly remediation?: Remediation; + readonly estimatedCompletionTime?: Date; /** - * SQL Vulnerability Assessment rule result adjusted with baseline. + * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly baselineAdjustedResult?: BaselineAdjustedResult; + readonly description?: string; /** - * SQL Vulnerability Assessment rule metadata. + * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleMetadata?: VaRule; -} - -/** A vulnerability assessment scan record. */ -export interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource { + readonly isCancellable?: boolean; /** - * SystemData of SqlVulnerabilityAssessmentScanRecordResource. + * The operation parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; + readonly operationParameters?: ManagedInstanceOperationParametersPair; /** - * The scan ID. + * The operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scanId?: string; + readonly operationSteps?: ManagedInstanceOperationSteps; +} + +/** A private endpoint connection */ +export interface ManagedInstancePrivateEndpointConnection + extends ProxyResource { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: ManagedInstancePrivateEndpointProperty; + /** Connection State of the Private Endpoint Connection. */ + privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; /** - * The scan trigger type. + * State of the Private Endpoint Connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; + readonly provisioningState?: string; +} + +/** A private link resource */ +export interface ManagedInstancePrivateLink extends ProxyResource { /** - * The scan status. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: VulnerabilityAssessmentScanState; + readonly properties?: ManagedInstancePrivateLinkProperties; +} + +/** A TDE certificate that can be uploaded into a server. */ +export interface TdeCertificate extends ProxyResource { + /** The base64 encoded certificate private blob. */ + privateBlob?: string; + /** The certificate password. */ + certPassword?: string; +} + +/** A managed instance vulnerability assessment. */ +export interface ManagedInstanceVulnerabilityAssessment extends ProxyResource { + /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ + storageContainerPath?: string; + /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageContainerSasKey?: string; + /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageAccountAccessKey?: string; + /** The recurring scans settings */ + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +} + +/** An RefreshExternalGovernanceStatus operation result resource. */ +export interface RefreshExternalGovernanceStatusOperationResultMI + extends ProxyResource { /** - * The scan start time (UTC). + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly requestId?: string; /** - * The scan end time (UTC). + * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; + readonly requestType?: string; /** - * The scan errors. + * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errors?: SqlVulnerabilityAssessmentScanError[]; + readonly queuedTime?: string; /** - * The server name. + * Managed instance name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly server?: string; + readonly managedInstanceName?: string; /** - * The database name. + * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly database?: string; + readonly status?: string; /** - * The SQL version. + * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sqlVersion?: string; + readonly errorMessage?: string; +} + +/** Azure SQL Database ledger digest upload settings. */ +export interface ManagedLedgerDigestUploads extends ProxyResource { + /** The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. */ + digestStorageEndpoint?: string; /** - * The number of failed rules with high severity. + * Specifies the state of ledger digest upload. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly highSeverityFailedRulesCount?: number; + readonly state?: ManagedLedgerDigestUploadsState; +} + +/** A managed server DNS alias. */ +export interface ManagedServerDnsAlias extends ProxyResource { /** - * The number of failed rules with medium severity. + * The fully qualified DNS record for managed server alias + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly azureDnsRecord?: string; + /** + * The fully qualified public DNS record for managed server alias * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly mediumSeverityFailedRulesCount?: number; + readonly publicAzureDnsRecord?: string; +} + +/** A managed server security alert policy. */ +export interface ManagedServerSecurityAlertPolicy extends ProxyResource { /** - * The number of failed rules with low severity. + * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lowSeverityFailedRulesCount?: number; + readonly systemData?: SystemData; + /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ + state?: SecurityAlertsPolicyState; + /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; /** - * The number of total passed rules. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalPassedRulesCount?: number; + readonly creationTime?: Date; +} + +/** NSP Configuration for a server. */ +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + provisioningState?: string; + networkSecurityPerimeter?: NSPConfigPerimeter; + resourceAssociation?: NSPConfigAssociation; + profile?: NSPConfigProfile; + provisioningIssues?: NSPProvisioningIssue[]; +} + +/** An Azure SQL DB Server Outbound Firewall Rule. */ +export interface OutboundFirewallRule extends ProxyResource { /** - * The number of total failed rules. + * The state of the outbound rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalFailedRulesCount?: number; + readonly provisioningState?: string; +} + +/** A private endpoint connection */ +export interface PrivateEndpointConnection extends ProxyResource { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpointProperty; /** - * The number of total rules assessed. + * Group IDs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalRulesCount?: number; + readonly groupIds?: string[]; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** - * Baseline created for this database, and has one or more rules. + * State of the private endpoint connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isBaselineApplied?: boolean; + readonly provisioningState?: PrivateEndpointProvisioningState; } -/** A SQL Vulnerability Assessment. */ -export interface SqlVulnerabilityAssessment extends ProxyResource { +/** A private link resource */ +export interface PrivateLinkResource extends ProxyResource { /** - * SystemData of SqlVulnerabilityAssessmentResource. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ - state?: SqlVulnerabilityAssessmentState; + readonly properties?: PrivateLinkResourceProperties; } -/** A managed database Advanced Threat Protection. */ -export interface ManagedDatabaseAdvancedThreatProtection extends ProxyResource { +/** A recoverable database resource. */ +export interface RecoverableDatabase extends ProxyResource { /** - * SystemData of AdvancedThreatProtectionResource. + * The edition of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ - state?: AdvancedThreatProtectionState; + readonly edition?: string; /** - * Specifies the UTC creation time of the policy. + * The service level objective name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A managed instance Advanced Threat Protection. */ -export interface ManagedInstanceAdvancedThreatProtection extends ProxyResource { + readonly serviceLevelObjective?: string; /** - * SystemData of AdvancedThreatProtectionResource. + * The elastic pool name of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ - state?: AdvancedThreatProtectionState; + readonly elasticPoolName?: string; /** - * Specifies the UTC creation time of the policy. + * The last available backup date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly lastAvailableBackupDate?: Date; + /** The resource ids of the user assigned identities to use */ + keys?: { [propertyName: string]: DatabaseKey }; +} + +/** A 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 replication link. */ @@ -7670,6 +7432,11 @@ export interface ReplicationLink extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly partnerDatabase?: string; + /** + * Resource partner database Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly partnerDatabaseId?: string; /** * Resource partner location. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -7717,405 +7484,398 @@ export interface ReplicationLink extends ProxyResource { readonly linkType?: ReplicationLinkType; } -/** A managed database move operation. */ -export interface ManagedDatabaseMoveOperationResult extends ProxyResource { - /** - * The name of operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operation?: string; - /** - * The friendly name of operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationFriendlyName?: string; - /** - * The operation start time. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * The operation state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: ManagementOperationState; - /** - * Operation mode. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationMode?: MoveOperationMode; - /** - * Source Managed Instance name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sourceManagedInstanceName?: string; - /** - * Target Managed Instance name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly targetManagedInstanceName?: string; - /** - * Source Managed Instance resource id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sourceManagedInstanceId?: string; - /** - * Target Managed instance resource id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly targetManagedInstanceId?: string; - /** - * Source database name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sourceDatabaseName?: string; - /** - * Target database name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly targetDatabaseName?: string; - /** - * Is move operation cancellable. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isCancellable?: boolean; - /** - * The operation error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorCode?: number; - /** - * The operation error description. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorDescription?: string; - /** - * The operation error severity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorSeverity?: number; +/** A restorable dropped database resource. */ +export interface RestorableDroppedDatabase extends ProxyResource { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Resource location. */ + location?: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** - * Whether or not the error is a user error. + * The name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUserError?: boolean; -} - -/** SQL Managed Instance DTC */ -export interface ManagedInstanceDtc extends ProxyResource { - /** Active status of managed instance DTC. */ - dtcEnabled?: boolean; - /** Security settings of managed instance DTC. */ - securitySettings?: ManagedInstanceDtcSecuritySettings; - /** External dns suffix search list of managed instance DTC. */ - externalDnsSuffixSearchList?: string[]; + readonly databaseName?: string; /** - * Host name dns suffix of managed instance DTC. + * The max size of the database expressed in bytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dtcHostNameDnsSuffix?: string; + readonly maxSizeBytes?: number; /** - * Provisioning state of managed instance DTC. + * The creation date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; -} - -/** Synapse link workspace resource */ -export interface SynapseLinkWorkspace extends ProxyResource { - /** List of all synapselink workspaces */ - workspaces?: SynapseLinkWorkspaceInfoProperties[]; -} - -/** A refresh DNS servers operation. */ -export interface UpdateVirtualClusterDnsServersOperation extends ProxyResource { + readonly creationDate?: Date; /** - * The status of the DNS refresh operation. + * The deletion date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: DNSRefreshOperationStatus; -} - -/** An instance failover group. */ -export interface InstanceFailoverGroup extends ProxyResource { - /** Type of the geo-secondary instance. Set 'Standby' if the instance is used as a DR option only. */ - secondaryType?: SecondaryInstanceType; - /** Read-write endpoint of the failover group instance. */ - readWriteEndpoint?: InstanceFailoverGroupReadWriteEndpoint; - /** Read-only endpoint of the failover group instance. */ - readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; + readonly deletionDate?: Date; /** - * Local replication role of the failover group instance. + * 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 replicationRole?: InstanceFailoverGroupReplicationRole; + readonly earliestRestoreDate?: Date; /** - * Replication state of the failover group instance. + * The storage account type used to store backups for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationState?: string; - /** Partner region information for the failover group. */ - partnerRegions?: PartnerRegionInfo[]; - /** List of managed instance pairs in the failover group. */ - managedInstancePairs?: ManagedInstancePairInfo[]; + readonly backupStorageRedundancy?: BackupStorageRedundancy; + /** The resource ids of the user assigned identities to use */ + keys?: { [propertyName: string]: DatabaseKey }; } -/** A managed database restore details. */ -export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { +/** Database restore points. */ +export interface RestorePoint extends ProxyResource { /** - * Restore type. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly typePropertiesType?: string; + readonly location?: string; /** - * Restore status. + * The type of restore point * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly restorePointType?: RestorePointType; /** - * The reason why restore is in Blocked state. + * 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 blockReason?: string; + readonly earliestRestoreDate?: Date; /** - * Last uploaded file name. + * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastUploadedFileName?: string; + readonly restorePointCreationDate?: Date; /** - * Last uploaded file time. + * The label of restore point for backup request by user * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastUploadedFileTime?: Date; + readonly restorePointLabel?: string; +} + +/** A server Advanced Threat Protection. */ +export interface ServerAdvancedThreatProtection extends ProxyResource { /** - * Last restored file name. + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastRestoredFileName?: string; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** - * Last restored file time. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastRestoredFileTime?: Date; + readonly creationTime?: Date; +} + +/** Server-level Automatic Tuning. */ +export interface ServerAutomaticTuning extends ProxyResource { + /** Automatic tuning desired state. */ + desiredState?: AutomaticTuningServerMode; /** - * Percent completed. + * Automatic tuning actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentCompleted?: number; + readonly actualState?: AutomaticTuningServerMode; + /** Automatic tuning options definition. */ + options?: { [propertyName: string]: AutomaticTuningServerOptions }; +} + +/** Azure Active Directory administrator. */ +export interface ServerAzureADAdministrator extends ProxyResource { + /** Type of the sever administrator. */ + administratorType?: AdministratorType; + /** Login name of the server administrator. */ + login?: string; + /** SID (object ID) of the server administrator. */ + sid?: string; + /** Tenant ID of the administrator. */ + tenantId?: string; /** - * Current restored size MB. + * Azure Active Directory only Authentication enabled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentRestoredSizeMB?: number; + readonly azureADOnlyAuthentication?: boolean; +} + +/** Azure Active Directory only authentication. */ +export interface ServerAzureADOnlyAuthentication extends ProxyResource { + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; +} + +/** A server configuration option */ +export interface ServerConfigurationOption extends ProxyResource { + /** Value of the server configuration option. */ + serverConfigurationOptionValue?: number; /** - * Current restore plan size MB. + * Provisioning state of server configuration option. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentRestorePlanSizeMB?: number; + readonly provisioningState?: ProvisioningState; +} + +/** A server connection policy */ +export interface ServerConnectionPolicy extends ProxyResource { /** - * Current backup type. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentBackupType?: string; + readonly location?: string; /** - * Current restoring file name. + * Metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentRestoringFileName?: string; + readonly kind?: string; + /** The server connection type. */ + connectionType?: ServerConnectionType; +} + +/** A server DevOps auditing settings. */ +export interface ServerDevOpsAuditingSettings extends ProxyResource { /** - * Number of files detected. + * SystemData of ServerDevOpsAuditSettingsResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesDetected?: number; + readonly systemData?: SystemData; /** - * Number of files queued. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether DevOps audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure DevOps audit, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should be also created. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly numberOfFilesQueued?: number; + isAzureMonitorTargetEnabled?: boolean; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * Number of files skipped. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly numberOfFilesSkipped?: number; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** A server DNS alias. */ +export interface ServerDnsAlias extends ProxyResource { /** - * Number of files restoring. + * The fully qualified DNS record for alias * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesRestoring?: number; + readonly azureDnsRecord?: string; +} + +/** A server key. */ +export interface ServerKey extends ProxyResource { /** - * Number of files restored. + * Kind of encryption protector. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesRestored?: number; + readonly kind?: string; /** - * Number of files unrestorable. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesUnrestorable?: number; + readonly location?: string; /** - * Full backup sets. + * Subregion of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + readonly subregion?: string; + /** The server key type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; + /** The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: 'https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion' */ + uri?: string; /** - * Diff backup sets. + * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly diffBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + readonly thumbprint?: string; /** - * Log backup sets. + * The server key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly logBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + readonly creationDate?: Date; /** - * Unrestorable files. + * Key auto rotation opt-in flag. Either true or false. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unrestorableFiles?: ManagedDatabaseRestoreDetailsUnrestorableFileProperties[]; + readonly autoRotationEnabled?: boolean; } -/** An ImportExport operation result resource. */ -export interface ImportExportOperationResult extends ProxyResource { +/** A server operation. */ +export interface ServerOperation extends ProxyResource { /** - * Request Id. + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestId?: string; + readonly operation?: string; /** - * Request type. + * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestType?: string; + readonly operationFriendlyName?: string; /** - * Queued time. + * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queuedTime?: string; + readonly percentComplete?: number; /** - * Last modified time. + * The name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedTime?: string; + readonly serverName?: string; /** - * Blob Uri. + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly blobUri?: string; + readonly startTime?: Date; /** - * Server name. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly state?: ManagementOperationState; /** - * Database name. + * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly errorCode?: number; /** - * Operation status. + * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly errorDescription?: string; /** - * Error message. + * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly errorSeverity?: number; /** - * Gets the status of private endpoints associated with this request. + * Whether or not the error is a user error. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; -} - -/** Azure SQL Database ledger digest upload settings. */ -export interface ManagedLedgerDigestUploads extends ProxyResource { - /** The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. */ - digestStorageEndpoint?: string; + readonly isUserError?: boolean; /** - * Specifies the state of ledger digest upload. + * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagedLedgerDigestUploadsState; -} - -/** A recoverable database resource. */ -export interface RecoverableDatabase extends ProxyResource { + readonly estimatedCompletionTime?: Date; /** - * The edition of the database. + * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly edition?: string; + readonly description?: string; /** - * The service level objective name of the database. + * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceLevelObjective?: string; + readonly isCancellable?: boolean; +} + +/** A server security alert policy. */ +export interface ServerSecurityAlertPolicy extends ProxyResource { /** - * The elastic pool name of the database + * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: string; + readonly systemData?: SystemData; + /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ + state?: SecurityAlertsPolicyState; + /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; /** - * The last available backup date. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAvailableBackupDate?: Date; - /** The resource ids of the user assigned identities to use */ - keys?: { [propertyName: string]: DatabaseKey }; + readonly creationTime?: Date; } -/** A restorable dropped database resource. */ -export interface RestorableDroppedDatabase extends ProxyResource { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Resource location. */ - location?: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** Server trust certificate imported from box to enable connection between box and Sql Managed Instance. */ +export interface ServerTrustCertificate extends ProxyResource { + /** The certificate public blob */ + publicBlob?: string; /** - * The name of the database. + * The certificate thumbprint * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly thumbprint?: string; /** - * The max size of the database expressed in bytes. + * The certificate name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxSizeBytes?: number; + readonly certificateName?: string; +} + +/** A server trust group. */ +export interface ServerTrustGroup extends ProxyResource { + /** Group members information for the server trust group. */ + groupMembers?: ServerInfo[]; + /** Trust scope of the server trust group. */ + trustScopes?: ServerTrustGroupPropertiesTrustScopesItem[]; +} + +/** Usage metric of a server. */ +export interface ServerUsage extends ProxyResource { /** - * The creation date of the database (ISO8601 format). + * User-readable name of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly displayName?: string; /** - * The deletion date of the database (ISO8601 format). + * Current value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deletionDate?: Date; + readonly currentValue?: number; /** - * The earliest restore date of the database (ISO8601 format). + * Boundary value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; + readonly limit?: number; /** - * The storage account type used to store backups for this database. + * Unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupStorageRedundancy?: BackupStorageRedundancy; - /** The resource ids of the user assigned identities to use */ - keys?: { [propertyName: string]: DatabaseKey }; + readonly unit?: string; } -/** A server configuration option */ -export interface ServerConfigurationOption extends ProxyResource { - /** Value of the server configuration option. */ - serverConfigurationOptionValue?: number; - /** - * Provisioning state of server configuration option. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; +/** A server vulnerability assessment. */ +export interface ServerVulnerabilityAssessment extends ProxyResource { + /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ + storageContainerPath?: string; + /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageContainerSasKey?: string; + /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageAccountAccessKey?: string; + /** The recurring scans settings */ + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; } /** An RefreshExternalGovernanceStatus operation result resource. */ @@ -8153,6 +7913,12 @@ export interface RefreshExternalGovernanceStatusOperationResult readonly errorMessage?: string; } +/** A recoverable managed database resource. */ +export interface SqlAgentConfiguration extends ProxyResource { + /** The state of Sql Agent. */ + state?: SqlAgentConfigurationPropertiesState; +} + /** Managed instance's Start/Stop schedule. */ export interface StartStopManagedInstanceSchedule extends ProxyResource { /** @@ -8178,137 +7944,252 @@ export interface StartStopManagedInstanceSchedule extends ProxyResource { readonly nextExecutionTime?: string; } -/** A logical database transparent data encryption state. */ -export interface LogicalDatabaseTransparentDataEncryption - extends ProxyResource { - /** Specifies the state of the transparent data encryption. */ - state?: TransparentDataEncryptionState; +/** 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 instance pool. */ -export interface InstancePool extends TrackedResource { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Resource ID of the subnet to place this instance pool in. */ - subnetId?: string; - /** Count of vCores belonging to this instance pool. */ - vCores?: number; - /** The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). */ - licenseType?: InstancePoolLicenseType; +/** Synapse link workspace resource */ +export interface SynapseLinkWorkspace extends ProxyResource { + /** List of all synapselink workspaces */ + workspaces?: SynapseLinkWorkspaceInfoProperties[]; } -/** 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; +/** An Azure SQL Database sync agent. */ +export interface SyncAgent extends ProxyResource { /** - * The state of the job agent. + * Name of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: JobAgentState; + readonly namePropertiesName?: 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. + * 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; + /** + * Version of the sync agent. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly version?: string; } -/** A restorable dropped managed database resource. */ -export interface RestorableDroppedManagedDatabase extends TrackedResource { +/** An Azure SQL Database sync agent linked database. */ +export interface SyncAgentLinkedDatabase extends ProxyResource { /** - * The name of the database. + * Type of the sync agent linked database. + * 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; /** - * The creation date of the database (ISO8601 format). + * User name of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly userName?: string; +} + +/** An Azure SQL Database sync group. */ +export interface SyncGroup extends ProxyResource { + /** The name and capacity of the SKU. */ + sku?: Sku; + /** Sync interval of the sync group. */ + interval?: number; /** - * The deletion date of the database (ISO8601 format). + * Last sync time of the sync group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deletionDate?: Date; + readonly lastSyncTime?: Date; + /** Conflict resolution policy of the sync group. */ + conflictResolutionPolicy?: SyncConflictResolutionPolicy; + /** ARM resource id of the sync database in the sync group. */ + syncDatabaseId?: string; + /** User name for the sync group hub database credential. */ + hubDatabaseUserName?: string; + /** Password for the sync group hub database credential. */ + hubDatabasePassword?: string; /** - * The earliest restore date of the database (ISO8601 format). + * Sync state of the sync group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; + readonly syncState?: SyncGroupState; + /** Sync schema of the sync group. */ + schema?: SyncGroupSchema; + /** If conflict logging is enabled. */ + enableConflictLogging?: boolean; + /** Conflict logging retention period. */ + conflictLoggingRetentionInDays?: number; + /** If use private link connection is enabled. */ + usePrivateLinkConnection?: boolean; + /** + * Private endpoint name of the sync group if use private link connection is enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointName?: string; } -/** An Azure SQL virtual cluster. */ -export interface VirtualCluster extends TrackedResource { +/** An Azure SQL Database sync member. */ +export interface SyncMember extends ProxyResource { + /** Database type of the sync member. */ + databaseType?: SyncMemberDbType; + /** ARM resource id of the sync agent in the sync member. */ + syncAgentId?: string; + /** SQL Server database id of the sync member. */ + sqlServerDatabaseId?: string; + /** ARM resource id of the sync member logical database, for sync members in Azure. */ + syncMemberAzureDatabaseResourceId?: string; + /** Whether to use private link connection. */ + usePrivateLinkConnection?: boolean; /** - * Subnet resource ID for the virtual cluster. + * Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subnetId?: string; - /** Virtual cluster version. */ - version?: string; + readonly privateEndpointName?: string; + /** Server name of the member database in the sync member */ + serverName?: string; + /** Database name of the member database in the sync member. */ + databaseName?: string; + /** User name of the member database in the sync member. */ + userName?: string; + /** Password of the member database in the sync member. */ + password?: string; + /** Sync direction of the sync member. */ + syncDirection?: SyncDirection; /** - * List of resources in this virtual cluster. + * Sync state of the sync member. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly childResources?: string[]; + readonly syncState?: SyncMemberState; } -/** A managed database resource. */ -export interface ManagedDatabase extends TrackedResource { - /** Collation of the managed database. */ - collation?: string; - /** - * Status of the database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: ManagedDatabaseStatus; +/** Time Zone property. */ +export interface TimeZone extends ProxyResource { /** - * Creation date of the database. + * The time zone id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly timeZoneId?: string; /** - * Earliest restore point in time for point in time restore. + * The time zone display name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestorePoint?: Date; - /** Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ - restorePointInTime?: Date; + readonly displayName?: string; +} + +/** A logical database transparent data encryption state. */ +export interface LogicalDatabaseTransparentDataEncryption + extends ProxyResource { + /** Specifies the state of the transparent data encryption. */ + state?: TransparentDataEncryptionState; +} + +/** A refresh DNS servers operation. */ +export interface UpdateVirtualClusterDnsServersOperation extends ProxyResource { /** - * Geo paired region. + * The status of the DNS refresh operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly defaultSecondaryLocation?: string; - /** Collation of the metadata catalog. */ - catalogCollation?: CatalogCollationType; - /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ - createMode?: ManagedDatabaseCreateMode; - /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ - storageContainerUri?: string; - /** The resource identifier of the source database associated with create operation of this database. */ - sourceDatabaseId?: string; - /** The resource identifier of the cross-subscription source database associated with create operation of this database. */ - crossSubscriptionSourceDatabaseId?: string; - /** The restorable dropped database resource id to restore when creating this database. */ - restorableDroppedDatabaseId?: string; - /** The restorable cross-subscription dropped database resource id to restore when creating this database. */ - crossSubscriptionRestorableDroppedDatabaseId?: string; - /** Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. */ - storageContainerIdentity?: string; - /** Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. */ - storageContainerSasToken?: string; + readonly status?: DNSRefreshOperationStatus; +} + +/** A virtual network rule. */ +export interface VirtualNetworkRule extends ProxyResource { + /** The ARM resource id of the virtual network subnet. */ + virtualNetworkSubnetId?: string; + /** Create firewall rule before the virtual network has vnet service endpoint enabled. */ + ignoreMissingVnetServiceEndpoint?: boolean; /** - * Instance Failover Group resource identifier that this managed database belongs to. + * Virtual Network Rule State * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly failoverGroupId?: string; - /** The resource identifier of the recoverable database associated with create operation of this database. */ - recoverableDatabaseId?: string; - /** The name of the Long Term Retention backup to be used for restore of this managed database. */ - longTermRetentionBackupResourceId?: string; - /** Whether to auto complete restore of this managed database. */ - autoCompleteRestore?: boolean; - /** Last backup file name for restore of this managed database. */ - lastBackupName?: string; - /** Target managed instance id used in cross-subscription restore. */ - crossSubscriptionTargetManagedInstanceId?: string; + readonly state?: VirtualNetworkRuleState; +} + +/** Workload classifier operations for a data warehouse */ +export interface WorkloadClassifier extends ProxyResource { + /** The workload classifier member name. */ + memberName?: string; + /** The workload classifier label. */ + label?: string; + /** The workload classifier context. */ + context?: string; + /** The workload classifier start time for classification. */ + startTime?: string; + /** The workload classifier end time for classification. */ + endTime?: string; + /** The workload classifier importance. */ + importance?: string; +} + +/** Workload group operations for a data warehouse */ +export interface WorkloadGroup extends ProxyResource { + /** The workload group minimum percentage resource. */ + minResourcePercent?: number; + /** The workload group cap percentage resource. */ + maxResourcePercent?: number; + /** The workload group request minimum grant percentage. */ + minResourcePercentPerRequest?: number; + /** The workload group request maximum grant percentage. */ + maxResourcePercentPerRequest?: number; + /** The workload group importance level. */ + importance?: string; + /** The workload group query execution timeout. */ + queryExecutionTimeout?: number; } /** A database resource. */ @@ -8552,6 +8433,8 @@ export interface ElasticPool extends TrackedResource { readonly creationDate?: Date; /** The storage limit for the database elastic pool in bytes. */ maxSizeBytes?: number; + /** Minimal capacity that serverless pool will not shrink below, if not paused */ + minCapacity?: number; /** The per database settings for the elastic pool. */ perDatabaseSettings?: ElasticPoolPerDatabaseSettings; /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ @@ -8560,8 +8443,100 @@ export interface ElasticPool extends TrackedResource { licenseType?: ElasticPoolLicenseType; /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ maintenanceConfigurationId?: string; - /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. */ + /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. */ highAvailabilityReplicaCount?: number; + /** Type of enclave requested on the elastic pool. */ + preferredEnclaveType?: AlwaysEncryptedEnclaveType; + /** Specifies the availability zone the pool's primary replica is pinned to. */ + availabilityZone?: AvailabilityZoneType; +} + +/** An Azure SQL instance pool. */ +export interface InstancePool extends TrackedResource { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Resource ID of the subnet to place this instance pool in. */ + subnetId?: string; + /** Count of vCores belonging to this instance pool. */ + vCores?: number; + /** The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). */ + licenseType?: InstancePoolLicenseType; +} + +/** An Azure SQL job agent. */ +export interface JobAgent extends TrackedResource { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Resource ID of the database to store job metadata in. */ + databaseId?: string; + /** + * The state of the job agent. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: JobAgentState; +} + +/** A managed database resource. */ +export interface ManagedDatabase extends TrackedResource { + /** Collation of the managed database. */ + collation?: string; + /** + * Status of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: ManagedDatabaseStatus; + /** + * Creation date of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** + * Earliest restore point in time for point in time restore. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly earliestRestorePoint?: Date; + /** Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ + restorePointInTime?: Date; + /** + * Geo paired region. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly defaultSecondaryLocation?: string; + /** Collation of the metadata catalog. */ + catalogCollation?: CatalogCollationType; + /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ + createMode?: ManagedDatabaseCreateMode; + /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ + storageContainerUri?: string; + /** The resource identifier of the source database associated with create operation of this database. */ + sourceDatabaseId?: string; + /** The resource identifier of the cross-subscription source database associated with create operation of this database. */ + crossSubscriptionSourceDatabaseId?: string; + /** The restorable dropped database resource id to restore when creating this database. */ + restorableDroppedDatabaseId?: string; + /** The restorable cross-subscription dropped database resource id to restore when creating this database. */ + crossSubscriptionRestorableDroppedDatabaseId?: string; + /** Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. */ + storageContainerIdentity?: string; + /** Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. */ + storageContainerSasToken?: string; + /** + * Instance Failover Group resource identifier that this managed database belongs to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly failoverGroupId?: string; + /** The resource identifier of the recoverable database associated with create operation of this database. */ + recoverableDatabaseId?: string; + /** The name of the Long Term Retention backup to be used for restore of this managed database. */ + longTermRetentionBackupResourceId?: string; + /** Whether to auto complete restore of this managed database. */ + autoCompleteRestore?: boolean; + /** Last backup file name for restore of this managed database. */ + lastBackupName?: string; + /** Target managed instance id used in cross-subscription restore. */ + crossSubscriptionTargetManagedInstanceId?: string; + /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ + isLedgerOn?: boolean; } /** An Azure SQL managed instance. */ @@ -8570,8 +8545,11 @@ export interface ManagedInstance extends TrackedResource { identity?: ResourceIdentity; /** Managed instance SKU. Allowed values for sku.name: GP_Gen5, GP_G8IM, GP_G8IH, BC_Gen5, BC_G8IM, BC_G8IH */ sku?: Sku; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; + /** + * Provisioning state of managed instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; /** * Specifies the mode of database creation. * @@ -8585,6 +8563,8 @@ export interface ManagedInstance extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly fullyQualifiedDomainName?: string; + /** Whether or not this is a GPv2 variant of General Purpose edition. */ + isGeneralPurposeV2?: boolean; /** Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). */ administratorLogin?: string; /** The administrator login password (required for managed instance creation). */ @@ -8598,10 +8578,21 @@ export interface ManagedInstance extends TrackedResource { readonly state?: string; /** The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). */ licenseType?: ManagedInstanceLicenseType; + /** Hybrid secondary usage. Possible values are 'Active' (default value) and 'Passive' (customer uses the secondary as Passive DR). */ + hybridSecondaryUsage?: HybridSecondaryUsage; + /** + * Hybrid secondary usage detected. Possible values are 'Active' (customer does not meet the requirements to use the secondary as Passive DR) and 'Passive' (customer meets the requirements to use the secondary as Passive DR). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hybridSecondaryUsageDetected?: HybridSecondaryUsageDetected; /** The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ vCores?: number; /** Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. */ storageSizeInGB?: number; + /** Storage IOps. Minimum value: 120. Maximum value: 120000. Increments of 1 IOps allowed only. Maximum value depends on the selected hardware family and number of vCores. */ + storageIOps?: number; + /** Storage throughput in MBps. Minimum value: 25. Maximum value: 4000. Increments of 1 MBps allowed only. Maximum value depends on the selected hardware family and number of vCores. */ + storageThroughputMBps?: number; /** Collation of the managed instance. */ collation?: string; /** @@ -8640,22 +8631,56 @@ export interface ManagedInstance extends TrackedResource { /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ minimalTlsVersion?: string; /** - * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) + * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; + /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + /** Whether or not the multi-az is enabled. */ + zoneRedundant?: boolean; + /** The resource id of a user assigned identity to be used by default. */ + primaryUserAssignedIdentityId?: string; + /** A CMK URI of the key to use for encryption. */ + keyId?: string; + /** The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ + administrators?: ManagedInstanceExternalAdministrator; + /** The managed instance's service principal. */ + servicePrincipal?: ServicePrincipal; + /** + * Virtual cluster resource id for the Managed Instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly virtualClusterId?: string; + /** + * Status of external governance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly externalGovernanceStatus?: ExternalGovernanceStatus; +} + +/** 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 currentBackupStorageRedundancy?: BackupStorageRedundancy; - /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; - /** Whether or not the multi-az is enabled. */ - zoneRedundant?: boolean; - /** The resource id of a user assigned identity to be used by default. */ - primaryUserAssignedIdentityId?: string; - /** A CMK URI of the key to use for encryption. */ - keyId?: string; - /** The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ - administrators?: ManagedInstanceExternalAdministrator; - /** The managed instance's service principal. */ - servicePrincipal?: ServicePrincipal; + readonly earliestRestoreDate?: Date; } /** An Azure SQL Database server. */ @@ -8714,6 +8739,22 @@ export interface Server extends TrackedResource { readonly externalGovernanceStatus?: ExternalGovernanceStatus; } +/** An Azure SQL virtual cluster. */ +export interface VirtualCluster extends TrackedResource { + /** + * Subnet resource ID for the virtual cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subnetId?: string; + /** Virtual cluster version. */ + version?: string; + /** + * List of resources in this virtual cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly childResources?: string[]; +} + /** A server firewall rule. */ export interface FirewallRule extends ProxyResourceWithWritableName { /** The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all Azure-internal IP addresses. */ @@ -8730,110 +8771,117 @@ export interface IPv6FirewallRule extends ProxyResourceWithWritableName { endIPv6Address?: string; } -/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ -export enum KnownGeoBackupPolicyName { +/** Defines headers for FailoverGroups_tryPlannedBeforeForcedFailover operation. */ +export interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders { + location?: string; +} + +/** Defines headers for ManagedInstances_refreshStatus operation. */ +export interface ManagedInstancesRefreshStatusHeaders { + location?: string; +} + +/** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ +export enum KnownDiffBackupIntervalInHours { + /** Twelve */ + Twelve = 12, + /** TwentyFour */ + TwentyFour = 24 +} + +/** + * Defines values for DiffBackupIntervalInHours. \ + * {@link KnownDiffBackupIntervalInHours} can be used interchangeably with DiffBackupIntervalInHours, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **12** \ + * **24** + */ +export type DiffBackupIntervalInHours = number; + +/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ +export enum KnownShortTermRetentionPolicyName { + /** Default */ + Default = "default" +} + +/** + * Defines values for ShortTermRetentionPolicyName. \ + * {@link KnownShortTermRetentionPolicyName} can be used interchangeably with ShortTermRetentionPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type ShortTermRetentionPolicyName = string; + +/** Known values of {@link DataMaskingPolicyName} that the service accepts. */ +export enum KnownDataMaskingPolicyName { /** Default */ Default = "Default" } /** - * Defines values for GeoBackupPolicyName. \ - * {@link KnownGeoBackupPolicyName} can be used interchangeably with GeoBackupPolicyName, + * Defines values for DataMaskingPolicyName. \ + * {@link KnownDataMaskingPolicyName} can be used interchangeably with DataMaskingPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** */ -export type GeoBackupPolicyName = string; +export type DataMaskingPolicyName = string; -/** Known values of {@link UnitType} that the service accepts. */ -export enum KnownUnitType { - /** Count */ - Count = "count", - /** Bytes */ - Bytes = "bytes", - /** Seconds */ - Seconds = "seconds", - /** Percent */ - Percent = "percent", - /** CountPerSecond */ - CountPerSecond = "countPerSecond", - /** BytesPerSecond */ - BytesPerSecond = "bytesPerSecond" +/** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ +export enum KnownDataWarehouseUserActivityName { + /** Current */ + Current = "current" } /** - * Defines values for UnitType. \ - * {@link KnownUnitType} can be used interchangeably with UnitType, + * Defines values for DataWarehouseUserActivityName. \ + * {@link KnownDataWarehouseUserActivityName} can be used interchangeably with DataWarehouseUserActivityName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **count** \ - * **bytes** \ - * **seconds** \ - * **percent** \ - * **countPerSecond** \ - * **bytesPerSecond** + * **current** */ -export type UnitType = string; +export type DataWarehouseUserActivityName = string; -/** Known values of {@link PrimaryAggregationType} that the service accepts. */ -export enum KnownPrimaryAggregationType { - /** None */ - None = "None", - /** Average */ - Average = "Average", - /** Count */ - Count = "Count", - /** Minimum */ - Minimum = "Minimum", - /** Maximum */ - Maximum = "Maximum", - /** Total */ - Total = "Total" +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" } /** - * Defines values for PrimaryAggregationType. \ - * {@link KnownPrimaryAggregationType} can be used interchangeably with PrimaryAggregationType, + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **Average** \ - * **Count** \ - * **Minimum** \ - * **Maximum** \ - * **Total** + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type PrimaryAggregationType = string; +export type CreatedByType = string; -/** Known values of {@link UnitDefinitionType} that the service accepts. */ -export enum KnownUnitDefinitionType { - /** Count */ - Count = "Count", - /** Bytes */ - Bytes = "Bytes", - /** Seconds */ - Seconds = "Seconds", - /** Percent */ - Percent = "Percent", - /** CountPerSecond */ - CountPerSecond = "CountPerSecond", - /** BytesPerSecond */ - BytesPerSecond = "BytesPerSecond" +/** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */ +export enum KnownAdvancedThreatProtectionName { + /** Default */ + Default = "Default" } /** - * Defines values for UnitDefinitionType. \ - * {@link KnownUnitDefinitionType} can be used interchangeably with UnitDefinitionType, + * Defines values for AdvancedThreatProtectionName. \ + * {@link KnownAdvancedThreatProtectionName} can be used interchangeably with AdvancedThreatProtectionName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Count** \ - * **Bytes** \ - * **Seconds** \ - * **Percent** \ - * **CountPerSecond** \ - * **BytesPerSecond** + * **Default** */ -export type UnitDefinitionType = string; +export type AdvancedThreatProtectionName = string; /** Known values of {@link RecommendedActionCurrentState} that the service accepts. */ export enum KnownRecommendedActionCurrentState { @@ -8995,163 +9043,34 @@ export enum KnownColumnDataType { * **varchar** \ * **binary** \ * **char** \ - * **timestamp** \ - * **nvarchar** \ - * **nchar** \ - * **xml** \ - * **sysname** - */ -export type ColumnDataType = string; - -/** Known values of {@link TableTemporalType} that the service accepts. */ -export enum KnownTableTemporalType { - /** NonTemporalTable */ - NonTemporalTable = "NonTemporalTable", - /** HistoryTable */ - HistoryTable = "HistoryTable", - /** SystemVersionedTemporalTable */ - SystemVersionedTemporalTable = "SystemVersionedTemporalTable" -} - -/** - * Defines values for TableTemporalType. \ - * {@link KnownTableTemporalType} can be used interchangeably with TableTemporalType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NonTemporalTable** \ - * **HistoryTable** \ - * **SystemVersionedTemporalTable** - */ -export type TableTemporalType = string; - -/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ -export enum KnownSecurityAlertPolicyName { - /** Default */ - Default = "Default" -} - -/** - * Defines values for SecurityAlertPolicyName. \ - * {@link KnownSecurityAlertPolicyName} can be used interchangeably with SecurityAlertPolicyName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** - */ -export type SecurityAlertPolicyName = string; - -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - -/** Known values of {@link VulnerabilityAssessmentName} that the service accepts. */ -export enum KnownVulnerabilityAssessmentName { - /** Default */ - Default = "default" -} - -/** - * Defines values for VulnerabilityAssessmentName. \ - * {@link KnownVulnerabilityAssessmentName} can be used interchangeably with VulnerabilityAssessmentName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **default** - */ -export type VulnerabilityAssessmentName = string; - -/** Known values of {@link VulnerabilityAssessmentScanTriggerType} that the service accepts. */ -export enum KnownVulnerabilityAssessmentScanTriggerType { - /** OnDemand */ - OnDemand = "OnDemand", - /** Recurring */ - Recurring = "Recurring" -} - -/** - * Defines values for VulnerabilityAssessmentScanTriggerType. \ - * {@link KnownVulnerabilityAssessmentScanTriggerType} can be used interchangeably with VulnerabilityAssessmentScanTriggerType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **OnDemand** \ - * **Recurring** - */ -export type VulnerabilityAssessmentScanTriggerType = string; - -/** Known values of {@link VulnerabilityAssessmentScanState} that the service accepts. */ -export enum KnownVulnerabilityAssessmentScanState { - /** Passed */ - Passed = "Passed", - /** Failed */ - Failed = "Failed", - /** FailedToRun */ - FailedToRun = "FailedToRun", - /** InProgress */ - InProgress = "InProgress" -} - -/** - * Defines values for VulnerabilityAssessmentScanState. \ - * {@link KnownVulnerabilityAssessmentScanState} can be used interchangeably with VulnerabilityAssessmentScanState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Passed** \ - * **Failed** \ - * **FailedToRun** \ - * **InProgress** - */ -export type VulnerabilityAssessmentScanState = string; - -/** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ -export enum KnownDataWarehouseUserActivityName { - /** Current */ - Current = "current" -} - -/** - * Defines values for DataWarehouseUserActivityName. \ - * {@link KnownDataWarehouseUserActivityName} can be used interchangeably with DataWarehouseUserActivityName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **current** + * **timestamp** \ + * **nvarchar** \ + * **nchar** \ + * **xml** \ + * **sysname** */ -export type DataWarehouseUserActivityName = string; +export type ColumnDataType = string; -/** Known values of {@link ServerKeyType} that the service accepts. */ -export enum KnownServerKeyType { - /** ServiceManaged */ - ServiceManaged = "ServiceManaged", - /** AzureKeyVault */ - AzureKeyVault = "AzureKeyVault" +/** Known values of {@link TableTemporalType} that the service accepts. */ +export enum KnownTableTemporalType { + /** NonTemporalTable */ + NonTemporalTable = "NonTemporalTable", + /** HistoryTable */ + HistoryTable = "HistoryTable", + /** SystemVersionedTemporalTable */ + SystemVersionedTemporalTable = "SystemVersionedTemporalTable" } /** - * Defines values for ServerKeyType. \ - * {@link KnownServerKeyType} can be used interchangeably with ServerKeyType, + * Defines values for TableTemporalType. \ + * {@link KnownTableTemporalType} can be used interchangeably with TableTemporalType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ServiceManaged** \ - * **AzureKeyVault** + * **NonTemporalTable** \ + * **HistoryTable** \ + * **SystemVersionedTemporalTable** */ -export type ServerKeyType = string; +export type TableTemporalType = string; /** Known values of {@link EncryptionProtectorName} that the service accepts. */ export enum KnownEncryptionProtectorName { @@ -9168,1082 +9087,1085 @@ export enum KnownEncryptionProtectorName { */ export type EncryptionProtectorName = string; -/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadWriteEndpointFailoverPolicy { - /** Manual */ - Manual = "Manual", - /** Automatic */ - Automatic = "Automatic" -} - -/** - * Defines values for ReadWriteEndpointFailoverPolicy. \ - * {@link KnownReadWriteEndpointFailoverPolicy} can be used interchangeably with ReadWriteEndpointFailoverPolicy, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Manual** \ - * **Automatic** - */ -export type ReadWriteEndpointFailoverPolicy = string; - -/** Known values of {@link ReadOnlyEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadOnlyEndpointFailoverPolicy { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled" +/** Known values of {@link OperationMode} that the service accepts. */ +export enum KnownOperationMode { + /** PolybaseImport */ + PolybaseImport = "PolybaseImport", + /** Import */ + Import = "Import", + /** Export */ + Export = "Export" } /** - * Defines values for ReadOnlyEndpointFailoverPolicy. \ - * {@link KnownReadOnlyEndpointFailoverPolicy} can be used interchangeably with ReadOnlyEndpointFailoverPolicy, + * Defines values for OperationMode. \ + * {@link KnownOperationMode} can be used interchangeably with OperationMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **Enabled** + * **PolybaseImport** \ + * **Import** \ + * **Export** */ -export type ReadOnlyEndpointFailoverPolicy = string; +export type OperationMode = string; -/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ -export enum KnownFailoverGroupReplicationRole { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** Known values of {@link StorageKeyType} that the service accepts. */ +export enum KnownStorageKeyType { + /** SharedAccessKey */ + SharedAccessKey = "SharedAccessKey", + /** StorageAccessKey */ + StorageAccessKey = "StorageAccessKey" } /** - * Defines values for FailoverGroupReplicationRole. \ - * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, + * Defines values for StorageKeyType. \ + * {@link KnownStorageKeyType} can be used interchangeably with StorageKeyType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Primary** \ - * **Secondary** + * **SharedAccessKey** \ + * **StorageAccessKey** */ -export type FailoverGroupReplicationRole = string; +export type StorageKeyType = string; -/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ -export enum KnownInstancePoolLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link ManagementOperationState} that the service accepts. */ +export enum KnownManagementOperationState { + /** Pending */ + Pending = "Pending", + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** CancelInProgress */ + CancelInProgress = "CancelInProgress", + /** Cancelled */ + Cancelled = "Cancelled" } /** - * Defines values for InstancePoolLicenseType. \ - * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, + * Defines values for ManagementOperationState. \ + * {@link KnownManagementOperationState} can be used interchangeably with ManagementOperationState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **LicenseIncluded** \ - * **BasePrice** + * **Pending** \ + * **InProgress** \ + * **Succeeded** \ + * **Failed** \ + * **CancelInProgress** \ + * **Cancelled** */ -export type InstancePoolLicenseType = string; +export type ManagementOperationState = string; -/** Known values of {@link JobAgentState} that the service accepts. */ -export enum KnownJobAgentState { - /** Creating */ - Creating = "Creating", - /** Ready */ - Ready = "Ready", - /** Updating */ - Updating = "Updating", - /** Deleting */ - Deleting = "Deleting", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link Phase} that the service accepts. */ +export enum KnownPhase { + /** Copying */ + Copying = "Copying", + /** Catchup */ + Catchup = "Catchup", + /** WaitingForCutover */ + WaitingForCutover = "WaitingForCutover", + /** CutoverInProgress */ + CutoverInProgress = "CutoverInProgress" } /** - * Defines values for JobAgentState. \ - * {@link KnownJobAgentState} can be used interchangeably with JobAgentState, + * Defines values for Phase. \ + * {@link KnownPhase} can be used interchangeably with Phase, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ - * **Ready** \ - * **Updating** \ - * **Deleting** \ - * **Disabled** + * **Copying** \ + * **Catchup** \ + * **WaitingForCutover** \ + * **CutoverInProgress** */ -export type JobAgentState = string; +export type Phase = string; -/** Known values of {@link JobExecutionLifecycle} that the service accepts. */ -export enum KnownJobExecutionLifecycle { - /** Created */ - Created = "Created", - /** InProgress */ - InProgress = "InProgress", - /** WaitingForChildJobExecutions */ - WaitingForChildJobExecutions = "WaitingForChildJobExecutions", - /** WaitingForRetry */ - WaitingForRetry = "WaitingForRetry", - /** Succeeded */ - Succeeded = "Succeeded", - /** SucceededWithSkipped */ - SucceededWithSkipped = "SucceededWithSkipped", - /** Failed */ - Failed = "Failed", - /** TimedOut */ - TimedOut = "TimedOut", - /** Canceled */ - Canceled = "Canceled", - /** Skipped */ - Skipped = "Skipped" +/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ +export enum KnownSecurityAlertPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for JobExecutionLifecycle. \ - * {@link KnownJobExecutionLifecycle} can be used interchangeably with JobExecutionLifecycle, + * Defines values for SecurityAlertPolicyName. \ + * {@link KnownSecurityAlertPolicyName} can be used interchangeably with SecurityAlertPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Created** \ - * **InProgress** \ - * **WaitingForChildJobExecutions** \ - * **WaitingForRetry** \ - * **Succeeded** \ - * **SucceededWithSkipped** \ - * **Failed** \ - * **TimedOut** \ - * **Canceled** \ - * **Skipped** + * **default** */ -export type JobExecutionLifecycle = string; +export type SecurityAlertPolicyName = string; -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Created */ - Created = "Created", - /** InProgress */ - InProgress = "InProgress", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled" +/** Known values of {@link VulnerabilityAssessmentName} that the service accepts. */ +export enum KnownVulnerabilityAssessmentName { + /** Default */ + Default = "default" } /** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * Defines values for VulnerabilityAssessmentName. \ + * {@link KnownVulnerabilityAssessmentName} can be used interchangeably with VulnerabilityAssessmentName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Created** \ - * **InProgress** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **default** */ -export type ProvisioningState = string; +export type VulnerabilityAssessmentName = string; -/** Known values of {@link JobTargetType} that the service accepts. */ -export enum KnownJobTargetType { - /** TargetGroup */ - TargetGroup = "TargetGroup", - /** SqlDatabase */ - SqlDatabase = "SqlDatabase", - /** SqlElasticPool */ - SqlElasticPool = "SqlElasticPool", - /** SqlShardMap */ - SqlShardMap = "SqlShardMap", - /** SqlServer */ - SqlServer = "SqlServer" +/** Known values of {@link BaselineName} that the service accepts. */ +export enum KnownBaselineName { + /** Default */ + Default = "default" } /** - * Defines values for JobTargetType. \ - * {@link KnownJobTargetType} can be used interchangeably with JobTargetType, + * Defines values for BaselineName. \ + * {@link KnownBaselineName} can be used interchangeably with BaselineName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **TargetGroup** \ - * **SqlDatabase** \ - * **SqlElasticPool** \ - * **SqlShardMap** \ - * **SqlServer** + * **default** */ -export type JobTargetType = string; +export type BaselineName = string; -/** Known values of {@link JobStepActionType} that the service accepts. */ -export enum KnownJobStepActionType { - /** TSql */ - TSql = "TSql" +/** Known values of {@link SQLVulnerabilityAssessmentName} that the service accepts. */ +export enum KnownSQLVulnerabilityAssessmentName { + /** Default */ + Default = "default" } -/** - * Defines values for JobStepActionType. \ - * {@link KnownJobStepActionType} can be used interchangeably with JobStepActionType, +/** + * Defines values for SQLVulnerabilityAssessmentName. \ + * {@link KnownSQLVulnerabilityAssessmentName} can be used interchangeably with SQLVulnerabilityAssessmentName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **TSql** + * **default** */ -export type JobStepActionType = string; +export type SQLVulnerabilityAssessmentName = string; -/** Known values of {@link JobStepActionSource} that the service accepts. */ -export enum KnownJobStepActionSource { - /** Inline */ - Inline = "Inline" +/** Known values of {@link RuleStatus} that the service accepts. */ +export enum KnownRuleStatus { + /** NonFinding */ + NonFinding = "NonFinding", + /** Finding */ + Finding = "Finding", + /** InternalError */ + InternalError = "InternalError" } /** - * Defines values for JobStepActionSource. \ - * {@link KnownJobStepActionSource} can be used interchangeably with JobStepActionSource, + * Defines values for RuleStatus. \ + * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Inline** + * **NonFinding** \ + * **Finding** \ + * **InternalError** */ -export type JobStepActionSource = string; +export type RuleStatus = string; -/** Known values of {@link JobStepOutputType} that the service accepts. */ -export enum KnownJobStepOutputType { - /** SqlDatabase */ - SqlDatabase = "SqlDatabase" +/** Known values of {@link RuleSeverity} that the service accepts. */ +export enum KnownRuleSeverity { + /** High */ + High = "High", + /** Medium */ + Medium = "Medium", + /** Low */ + Low = "Low", + /** Informational */ + Informational = "Informational", + /** Obsolete */ + Obsolete = "Obsolete" } /** - * Defines values for JobStepOutputType. \ - * {@link KnownJobStepOutputType} can be used interchangeably with JobStepOutputType, + * Defines values for RuleSeverity. \ + * {@link KnownRuleSeverity} can be used interchangeably with RuleSeverity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SqlDatabase** + * **High** \ + * **Medium** \ + * **Low** \ + * **Informational** \ + * **Obsolete** */ -export type JobStepOutputType = string; +export type RuleSeverity = string; -/** Known values of {@link CapabilityGroup} that the service accepts. */ -export enum KnownCapabilityGroup { - /** SupportedEditions */ - SupportedEditions = "supportedEditions", - /** SupportedElasticPoolEditions */ - SupportedElasticPoolEditions = "supportedElasticPoolEditions", - /** SupportedManagedInstanceVersions */ - SupportedManagedInstanceVersions = "supportedManagedInstanceVersions", - /** SupportedInstancePoolEditions */ - SupportedInstancePoolEditions = "supportedInstancePoolEditions", - /** SupportedManagedInstanceEditions */ - SupportedManagedInstanceEditions = "supportedManagedInstanceEditions" +/** Known values of {@link RuleType} that the service accepts. */ +export enum KnownRuleType { + /** Binary */ + Binary = "Binary", + /** BaselineExpected */ + BaselineExpected = "BaselineExpected", + /** PositiveList */ + PositiveList = "PositiveList", + /** NegativeList */ + NegativeList = "NegativeList" } /** - * Defines values for CapabilityGroup. \ - * {@link KnownCapabilityGroup} can be used interchangeably with CapabilityGroup, + * Defines values for RuleType. \ + * {@link KnownRuleType} can be used interchangeably with RuleType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **supportedEditions** \ - * **supportedElasticPoolEditions** \ - * **supportedManagedInstanceVersions** \ - * **supportedInstancePoolEditions** \ - * **supportedManagedInstanceEditions** + * **Binary** \ + * **BaselineExpected** \ + * **PositiveList** \ + * **NegativeList** */ -export type CapabilityGroup = string; +export type RuleType = string; -/** Known values of {@link MaxSizeUnit} that the service accepts. */ -export enum KnownMaxSizeUnit { - /** Megabytes */ - Megabytes = "Megabytes", - /** Gigabytes */ - Gigabytes = "Gigabytes", - /** Terabytes */ - Terabytes = "Terabytes", - /** Petabytes */ - Petabytes = "Petabytes" +/** Known values of {@link VulnerabilityAssessmentScanTriggerType} that the service accepts. */ +export enum KnownVulnerabilityAssessmentScanTriggerType { + /** OnDemand */ + OnDemand = "OnDemand", + /** Recurring */ + Recurring = "Recurring" } /** - * Defines values for MaxSizeUnit. \ - * {@link KnownMaxSizeUnit} can be used interchangeably with MaxSizeUnit, + * Defines values for VulnerabilityAssessmentScanTriggerType. \ + * {@link KnownVulnerabilityAssessmentScanTriggerType} can be used interchangeably with VulnerabilityAssessmentScanTriggerType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** + * **OnDemand** \ + * **Recurring** */ -export type MaxSizeUnit = string; +export type VulnerabilityAssessmentScanTriggerType = string; -/** Known values of {@link LogSizeUnit} that the service accepts. */ -export enum KnownLogSizeUnit { - /** Megabytes */ - Megabytes = "Megabytes", - /** Gigabytes */ - Gigabytes = "Gigabytes", - /** Terabytes */ - Terabytes = "Terabytes", - /** Petabytes */ - Petabytes = "Petabytes", - /** Percent */ - Percent = "Percent" +/** Known values of {@link VulnerabilityAssessmentScanState} that the service accepts. */ +export enum KnownVulnerabilityAssessmentScanState { + /** Passed */ + Passed = "Passed", + /** Failed */ + Failed = "Failed", + /** FailedToRun */ + FailedToRun = "FailedToRun", + /** InProgress */ + InProgress = "InProgress" } /** - * Defines values for LogSizeUnit. \ - * {@link KnownLogSizeUnit} can be used interchangeably with LogSizeUnit, + * Defines values for VulnerabilityAssessmentScanState. \ + * {@link KnownVulnerabilityAssessmentScanState} can be used interchangeably with VulnerabilityAssessmentScanState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** \ - * **Percent** + * **Passed** \ + * **Failed** \ + * **FailedToRun** \ + * **InProgress** */ -export type LogSizeUnit = string; +export type VulnerabilityAssessmentScanState = string; -/** Known values of {@link PerformanceLevelUnit} that the service accepts. */ -export enum KnownPerformanceLevelUnit { - /** DTU */ - DTU = "DTU", - /** VCores */ - VCores = "VCores" +/** Known values of {@link SqlVulnerabilityAssessmentName} that the service accepts. */ +export enum KnownSqlVulnerabilityAssessmentName { + /** Default */ + Default = "default" } /** - * Defines values for PerformanceLevelUnit. \ - * {@link KnownPerformanceLevelUnit} can be used interchangeably with PerformanceLevelUnit, + * Defines values for SqlVulnerabilityAssessmentName. \ + * {@link KnownSqlVulnerabilityAssessmentName} can be used interchangeably with SqlVulnerabilityAssessmentName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **DTU** \ - * **VCores** + * **default** */ -export type PerformanceLevelUnit = string; +export type SqlVulnerabilityAssessmentName = string; -/** Known values of {@link PauseDelayTimeUnit} that the service accepts. */ -export enum KnownPauseDelayTimeUnit { - /** Minutes */ - Minutes = "Minutes" +/** Known values of {@link DatabaseIdentityType} that the service accepts. */ +export enum KnownDatabaseIdentityType { + /** None */ + None = "None", + /** UserAssigned */ + UserAssigned = "UserAssigned" } /** - * Defines values for PauseDelayTimeUnit. \ - * {@link KnownPauseDelayTimeUnit} can be used interchangeably with PauseDelayTimeUnit, + * Defines values for DatabaseIdentityType. \ + * {@link KnownDatabaseIdentityType} can be used interchangeably with DatabaseIdentityType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Minutes** + * **None** \ + * **UserAssigned** */ -export type PauseDelayTimeUnit = string; +export type DatabaseIdentityType = string; -/** Known values of {@link StorageCapabilityStorageAccountType} that the service accepts. */ -export enum KnownStorageCapabilityStorageAccountType { - /** GRS */ - GRS = "GRS", - /** LRS */ - LRS = "LRS", - /** ZRS */ - ZRS = "ZRS" +/** Known values of {@link CreateMode} that the service accepts. */ +export enum KnownCreateMode { + /** Default */ + Default = "Default", + /** Copy */ + Copy = "Copy", + /** Secondary */ + Secondary = "Secondary", + /** PointInTimeRestore */ + PointInTimeRestore = "PointInTimeRestore", + /** Restore */ + Restore = "Restore", + /** Recovery */ + Recovery = "Recovery", + /** RestoreExternalBackup */ + RestoreExternalBackup = "RestoreExternalBackup", + /** RestoreExternalBackupSecondary */ + RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary", + /** RestoreLongTermRetentionBackup */ + RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup", + /** OnlineSecondary */ + OnlineSecondary = "OnlineSecondary" } /** - * Defines values for StorageCapabilityStorageAccountType. \ - * {@link KnownStorageCapabilityStorageAccountType} can be used interchangeably with StorageCapabilityStorageAccountType, + * Defines values for CreateMode. \ + * {@link KnownCreateMode} can be used interchangeably with CreateMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **GRS** \ - * **LRS** \ - * **ZRS** + * **Default** \ + * **Copy** \ + * **Secondary** \ + * **PointInTimeRestore** \ + * **Restore** \ + * **Recovery** \ + * **RestoreExternalBackup** \ + * **RestoreExternalBackupSecondary** \ + * **RestoreLongTermRetentionBackup** \ + * **OnlineSecondary** */ -export type StorageCapabilityStorageAccountType = string; +export type CreateMode = string; -/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ -export enum KnownLongTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link SampleName} that the service accepts. */ +export enum KnownSampleName { + /** AdventureWorksLT */ + AdventureWorksLT = "AdventureWorksLT", + /** WideWorldImportersStd */ + WideWorldImportersStd = "WideWorldImportersStd", + /** WideWorldImportersFull */ + WideWorldImportersFull = "WideWorldImportersFull" } /** - * Defines values for LongTermRetentionPolicyName. \ - * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, + * Defines values for SampleName. \ + * {@link KnownSampleName} can be used interchangeably with SampleName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **AdventureWorksLT** \ + * **WideWorldImportersStd** \ + * **WideWorldImportersFull** */ -export type LongTermRetentionPolicyName = string; +export type SampleName = string; -/** Known values of {@link DayOfWeek} that the service accepts. */ -export enum KnownDayOfWeek { - /** Sunday */ - Sunday = "Sunday", - /** Monday */ - Monday = "Monday", - /** Tuesday */ - Tuesday = "Tuesday", - /** Wednesday */ - Wednesday = "Wednesday", - /** Thursday */ - Thursday = "Thursday", - /** Friday */ - Friday = "Friday", - /** Saturday */ - Saturday = "Saturday" +/** Known values of {@link DatabaseStatus} that the service accepts. */ +export enum KnownDatabaseStatus { + /** Online */ + Online = "Online", + /** Restoring */ + Restoring = "Restoring", + /** RecoveryPending */ + RecoveryPending = "RecoveryPending", + /** Recovering */ + Recovering = "Recovering", + /** Suspect */ + Suspect = "Suspect", + /** Offline */ + Offline = "Offline", + /** Standby */ + Standby = "Standby", + /** Shutdown */ + Shutdown = "Shutdown", + /** EmergencyMode */ + EmergencyMode = "EmergencyMode", + /** AutoClosed */ + AutoClosed = "AutoClosed", + /** Copying */ + Copying = "Copying", + /** Creating */ + Creating = "Creating", + /** Inaccessible */ + Inaccessible = "Inaccessible", + /** OfflineSecondary */ + OfflineSecondary = "OfflineSecondary", + /** Pausing */ + Pausing = "Pausing", + /** Paused */ + Paused = "Paused", + /** Resuming */ + Resuming = "Resuming", + /** Scaling */ + Scaling = "Scaling", + /** OfflineChangingDwPerformanceTiers */ + OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers", + /** OnlineChangingDwPerformanceTiers */ + OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers", + /** Disabled */ + Disabled = "Disabled", + /** Stopping */ + Stopping = "Stopping", + /** Stopped */ + Stopped = "Stopped", + /** Starting */ + Starting = "Starting" } /** - * Defines values for DayOfWeek. \ - * {@link KnownDayOfWeek} can be used interchangeably with DayOfWeek, + * Defines values for DatabaseStatus. \ + * {@link KnownDatabaseStatus} can be used interchangeably with DatabaseStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Sunday** \ - * **Monday** \ - * **Tuesday** \ - * **Wednesday** \ - * **Thursday** \ - * **Friday** \ - * **Saturday** + * **Online** \ + * **Restoring** \ + * **RecoveryPending** \ + * **Recovering** \ + * **Suspect** \ + * **Offline** \ + * **Standby** \ + * **Shutdown** \ + * **EmergencyMode** \ + * **AutoClosed** \ + * **Copying** \ + * **Creating** \ + * **Inaccessible** \ + * **OfflineSecondary** \ + * **Pausing** \ + * **Paused** \ + * **Resuming** \ + * **Scaling** \ + * **OfflineChangingDwPerformanceTiers** \ + * **OnlineChangingDwPerformanceTiers** \ + * **Disabled** \ + * **Stopping** \ + * **Stopped** \ + * **Starting** */ -export type DayOfWeek = string; +export type DatabaseStatus = string; -/** Known values of {@link ManagedShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedShortTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link CatalogCollationType} that the service accepts. */ +export enum KnownCatalogCollationType { + /** DatabaseDefault */ + DatabaseDefault = "DATABASE_DEFAULT", + /** SQLLatin1GeneralCP1CIAS */ + SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" } /** - * Defines values for ManagedShortTermRetentionPolicyName. \ - * {@link KnownManagedShortTermRetentionPolicyName} can be used interchangeably with ManagedShortTermRetentionPolicyName, + * Defines values for CatalogCollationType. \ + * {@link KnownCatalogCollationType} can be used interchangeably with CatalogCollationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **DATABASE_DEFAULT** \ + * **SQL_Latin1_General_CP1_CI_AS** */ -export type ManagedShortTermRetentionPolicyName = string; +export type CatalogCollationType = string; -/** Known values of {@link QueryTimeGrainType} that the service accepts. */ -export enum KnownQueryTimeGrainType { - /** PT1H */ - PT1H = "PT1H", - /** P1D */ - P1D = "P1D" +/** Known values of {@link DatabaseLicenseType} that the service accepts. */ +export enum KnownDatabaseLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for QueryTimeGrainType. \ - * {@link KnownQueryTimeGrainType} can be used interchangeably with QueryTimeGrainType, + * Defines values for DatabaseLicenseType. \ + * {@link KnownDatabaseLicenseType} can be used interchangeably with DatabaseLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PT1H** \ - * **P1D** + * **LicenseIncluded** \ + * **BasePrice** */ -export type QueryTimeGrainType = string; +export type DatabaseLicenseType = string; -/** Known values of {@link QueryMetricUnitType} that the service accepts. */ -export enum KnownQueryMetricUnitType { - /** Percentage */ - Percentage = "percentage", - /** KB */ - KB = "KB", - /** Microseconds */ - Microseconds = "microseconds", - /** Count */ - Count = "count" +/** Known values of {@link DatabaseReadScale} that the service accepts. */ +export enum KnownDatabaseReadScale { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for QueryMetricUnitType. \ - * {@link KnownQueryMetricUnitType} can be used interchangeably with QueryMetricUnitType, + * Defines values for DatabaseReadScale. \ + * {@link KnownDatabaseReadScale} can be used interchangeably with DatabaseReadScale, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **percentage** \ - * **KB** \ - * **microseconds** \ - * **count** + * **Enabled** \ + * **Disabled** */ -export type QueryMetricUnitType = string; +export type DatabaseReadScale = string; -/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ -export enum KnownTransparentDataEncryptionName { - /** Current */ - Current = "current" +/** Known values of {@link SecondaryType} that the service accepts. */ +export enum KnownSecondaryType { + /** Geo */ + Geo = "Geo", + /** Named */ + Named = "Named", + /** Standby */ + Standby = "Standby" } /** - * Defines values for TransparentDataEncryptionName. \ - * {@link KnownTransparentDataEncryptionName} can be used interchangeably with TransparentDataEncryptionName, + * Defines values for SecondaryType. \ + * {@link KnownSecondaryType} can be used interchangeably with SecondaryType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **current** + * **Geo** \ + * **Named** \ + * **Standby** */ -export type TransparentDataEncryptionName = string; +export type SecondaryType = string; -/** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ -export enum KnownManagedInstanceAdministratorType { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link BackupStorageRedundancy} that the service accepts. */ +export enum KnownBackupStorageRedundancy { + /** Geo */ + Geo = "Geo", + /** Local */ + Local = "Local", + /** Zone */ + Zone = "Zone", + /** GeoZone */ + GeoZone = "GeoZone" } /** - * Defines values for ManagedInstanceAdministratorType. \ - * {@link KnownManagedInstanceAdministratorType} can be used interchangeably with ManagedInstanceAdministratorType, + * Defines values for BackupStorageRedundancy. \ + * {@link KnownBackupStorageRedundancy} can be used interchangeably with BackupStorageRedundancy, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ActiveDirectory** + * **Geo** \ + * **Local** \ + * **Zone** \ + * **GeoZone** */ -export type ManagedInstanceAdministratorType = string; +export type BackupStorageRedundancy = string; -/** Known values of {@link AdministratorName} that the service accepts. */ -export enum KnownAdministratorName { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link DatabaseKeyType} that the service accepts. */ +export enum KnownDatabaseKeyType { + /** AzureKeyVault */ + AzureKeyVault = "AzureKeyVault" } /** - * Defines values for AdministratorName. \ - * {@link KnownAdministratorName} can be used interchangeably with AdministratorName, + * Defines values for DatabaseKeyType. \ + * {@link KnownDatabaseKeyType} can be used interchangeably with DatabaseKeyType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ActiveDirectory** + * **AzureKeyVault** */ -export type AdministratorName = string; +export type DatabaseKeyType = string; -/** Known values of {@link AuthenticationName} that the service accepts. */ -export enum KnownAuthenticationName { +/** Known values of {@link AlwaysEncryptedEnclaveType} that the service accepts. */ +export enum KnownAlwaysEncryptedEnclaveType { /** Default */ - Default = "Default" + Default = "Default", + /** VBS */ + VBS = "VBS" } -/** - * Defines values for AuthenticationName. \ - * {@link KnownAuthenticationName} can be used interchangeably with AuthenticationName, +/** + * Defines values for AlwaysEncryptedEnclaveType. \ + * {@link KnownAlwaysEncryptedEnclaveType} can be used interchangeably with AlwaysEncryptedEnclaveType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** + * **Default** \ + * **VBS** */ -export type AuthenticationName = string; +export type AlwaysEncryptedEnclaveType = string; -/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedInstanceLongTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link AvailabilityZoneType} that the service accepts. */ +export enum KnownAvailabilityZoneType { + /** NoPreference */ + NoPreference = "NoPreference", + /** One */ + One = "1", + /** Two */ + Two = "2", + /** Three */ + Three = "3" } /** - * Defines values for ManagedInstanceLongTermRetentionPolicyName. \ - * {@link KnownManagedInstanceLongTermRetentionPolicyName} can be used interchangeably with ManagedInstanceLongTermRetentionPolicyName, + * Defines values for AvailabilityZoneType. \ + * {@link KnownAvailabilityZoneType} can be used interchangeably with AvailabilityZoneType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **NoPreference** \ + * **1** \ + * **2** \ + * **3** */ -export type ManagedInstanceLongTermRetentionPolicyName = string; +export type AvailabilityZoneType = string; -/** Known values of {@link ManagementOperationState} that the service accepts. */ -export enum KnownManagementOperationState { - /** Pending */ - Pending = "Pending", - /** InProgress */ - InProgress = "InProgress", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** CancelInProgress */ - CancelInProgress = "CancelInProgress", - /** Cancelled */ - Cancelled = "Cancelled" +/** Known values of {@link ReplicaType} that the service accepts. */ +export enum KnownReplicaType { + /** Primary */ + Primary = "Primary", + /** ReadableSecondary */ + ReadableSecondary = "ReadableSecondary" } /** - * Defines values for ManagementOperationState. \ - * {@link KnownManagementOperationState} can be used interchangeably with ManagementOperationState, + * Defines values for ReplicaType. \ + * {@link KnownReplicaType} can be used interchangeably with ReplicaType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Pending** \ - * **InProgress** \ - * **Succeeded** \ - * **Failed** \ - * **CancelInProgress** \ - * **Cancelled** + * **Primary** \ + * **ReadableSecondary** */ -export type ManagementOperationState = string; +export type ReplicaType = string; -/** Known values of {@link UpsertManagedServerOperationStepStatus} that the service accepts. */ -export enum KnownUpsertManagedServerOperationStepStatus { - /** NotStarted */ - NotStarted = "NotStarted", - /** InProgress */ - InProgress = "InProgress", - /** SlowedDown */ - SlowedDown = "SlowedDown", - /** Completed */ - Completed = "Completed", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled" +/** Known values of {@link ReplicationModeType} that the service accepts. */ +export enum KnownReplicationModeType { + /** Async */ + Async = "Async", + /** Sync */ + Sync = "Sync" } /** - * Defines values for UpsertManagedServerOperationStepStatus. \ - * {@link KnownUpsertManagedServerOperationStepStatus} can be used interchangeably with UpsertManagedServerOperationStepStatus, + * Defines values for ReplicationModeType. \ + * {@link KnownReplicationModeType} can be used interchangeably with ReplicationModeType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotStarted** \ - * **InProgress** \ - * **SlowedDown** \ - * **Completed** \ - * **Failed** \ - * **Canceled** + * **Async** \ + * **Sync** */ -export type UpsertManagedServerOperationStepStatus = string; +export type ReplicationModeType = string; -/** Known values of {@link OperationOrigin} that the service accepts. */ -export enum KnownOperationOrigin { - /** User */ - User = "user", - /** System */ - System = "system" +/** Known values of {@link LinkRole} that the service accepts. */ +export enum KnownLinkRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for OperationOrigin. \ - * {@link KnownOperationOrigin} can be used interchangeably with OperationOrigin, + * Defines values for LinkRole. \ + * {@link KnownLinkRole} can be used interchangeably with LinkRole, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **user** \ - * **system** + * **Primary** \ + * **Secondary** */ -export type OperationOrigin = string; +export type LinkRole = string; -/** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */ -export enum KnownPrivateLinkServiceConnectionStateStatus { - /** Approved */ - Approved = "Approved", - /** Pending */ - Pending = "Pending", - /** Rejected */ - Rejected = "Rejected", - /** Disconnected */ - Disconnected = "Disconnected" +/** Known values of {@link ReplicaSynchronizationHealth} that the service accepts. */ +export enum KnownReplicaSynchronizationHealth { + /** NOTHealthy */ + NOTHealthy = "NOT_HEALTHY", + /** PartiallyHealthy */ + PartiallyHealthy = "PARTIALLY_HEALTHY", + /** Healthy */ + Healthy = "HEALTHY" } /** - * Defines values for PrivateLinkServiceConnectionStateStatus. \ - * {@link KnownPrivateLinkServiceConnectionStateStatus} can be used interchangeably with PrivateLinkServiceConnectionStateStatus, + * Defines values for ReplicaSynchronizationHealth. \ + * {@link KnownReplicaSynchronizationHealth} can be used interchangeably with ReplicaSynchronizationHealth, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Approved** \ - * **Pending** \ - * **Rejected** \ - * **Disconnected** + * **NOT_HEALTHY** \ + * **PARTIALLY_HEALTHY** \ + * **HEALTHY** */ -export type PrivateLinkServiceConnectionStateStatus = string; +export type ReplicaSynchronizationHealth = string; -/** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ -export enum KnownPrivateLinkServiceConnectionStateActionsRequire { - /** None */ - None = "None" +/** Known values of {@link ReplicaConnectedState} that the service accepts. */ +export enum KnownReplicaConnectedState { + /** Disconnected */ + Disconnected = "DISCONNECTED", + /** Connected */ + Connected = "CONNECTED" } /** - * Defines values for PrivateLinkServiceConnectionStateActionsRequire. \ - * {@link KnownPrivateLinkServiceConnectionStateActionsRequire} can be used interchangeably with PrivateLinkServiceConnectionStateActionsRequire, + * Defines values for ReplicaConnectedState. \ + * {@link KnownReplicaConnectedState} can be used interchangeably with ReplicaConnectedState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** + * **DISCONNECTED** \ + * **CONNECTED** */ -export type PrivateLinkServiceConnectionStateActionsRequire = string; +export type ReplicaConnectedState = string; -/** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointProvisioningState { - /** Approving */ - Approving = "Approving", - /** Ready */ - Ready = "Ready", - /** Dropping */ - Dropping = "Dropping", - /** Failed */ - Failed = "Failed", - /** Rejecting */ - Rejecting = "Rejecting" +/** Known values of {@link InstanceRole} that the service accepts. */ +export enum KnownInstanceRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for PrivateEndpointProvisioningState. \ - * {@link KnownPrivateEndpointProvisioningState} can be used interchangeably with PrivateEndpointProvisioningState, + * Defines values for InstanceRole. \ + * {@link KnownInstanceRole} can be used interchangeably with InstanceRole, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Approving** \ - * **Ready** \ - * **Dropping** \ - * **Failed** \ - * **Rejecting** + * **Primary** \ + * **Secondary** */ -export type PrivateEndpointProvisioningState = string; +export type InstanceRole = string; -/** Known values of {@link AdministratorType} that the service accepts. */ -export enum KnownAdministratorType { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link RoleChangeType} that the service accepts. */ +export enum KnownRoleChangeType { + /** Forced */ + Forced = "Forced", + /** Planned */ + Planned = "Planned" } /** - * Defines values for AdministratorType. \ - * {@link KnownAdministratorType} can be used interchangeably with AdministratorType, + * Defines values for RoleChangeType. \ + * {@link KnownRoleChangeType} can be used interchangeably with RoleChangeType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ActiveDirectory** + * **Forced** \ + * **Planned** */ -export type AdministratorType = string; +export type RoleChangeType = string; -/** Known values of {@link DevOpsAuditingSettingsName} that the service accepts. */ -export enum KnownDevOpsAuditingSettingsName { - /** Default */ - Default = "Default" +/** Known values of {@link ElasticPoolState} that the service accepts. */ +export enum KnownElasticPoolState { + /** Creating */ + Creating = "Creating", + /** Ready */ + Ready = "Ready", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for DevOpsAuditingSettingsName. \ - * {@link KnownDevOpsAuditingSettingsName} can be used interchangeably with DevOpsAuditingSettingsName, + * Defines values for ElasticPoolState. \ + * {@link KnownElasticPoolState} can be used interchangeably with ElasticPoolState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** + * **Creating** \ + * **Ready** \ + * **Disabled** */ -export type DevOpsAuditingSettingsName = string; +export type ElasticPoolState = string; -/** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ -export enum KnownServerTrustGroupPropertiesTrustScopesItem { - /** GlobalTransactions */ - GlobalTransactions = "GlobalTransactions", - /** ServiceBroker */ - ServiceBroker = "ServiceBroker" +/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ +export enum KnownElasticPoolLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for ServerTrustGroupPropertiesTrustScopesItem. \ - * {@link KnownServerTrustGroupPropertiesTrustScopesItem} can be used interchangeably with ServerTrustGroupPropertiesTrustScopesItem, + * Defines values for ElasticPoolLicenseType. \ + * {@link KnownElasticPoolLicenseType} can be used interchangeably with ElasticPoolLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **GlobalTransactions** \ - * **ServiceBroker** + * **LicenseIncluded** \ + * **BasePrice** */ -export type ServerTrustGroupPropertiesTrustScopesItem = string; +export type ElasticPoolLicenseType = string; -/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ -export enum KnownSqlAgentConfigurationPropertiesState { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link ServerKeyType} that the service accepts. */ +export enum KnownServerKeyType { + /** ServiceManaged */ + ServiceManaged = "ServiceManaged", + /** AzureKeyVault */ + AzureKeyVault = "AzureKeyVault" } /** - * Defines values for SqlAgentConfigurationPropertiesState. \ - * {@link KnownSqlAgentConfigurationPropertiesState} can be used interchangeably with SqlAgentConfigurationPropertiesState, + * Defines values for ServerKeyType. \ + * {@link KnownServerKeyType} can be used interchangeably with ServerKeyType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **ServiceManaged** \ + * **AzureKeyVault** */ -export type SqlAgentConfigurationPropertiesState = string; +export type ServerKeyType = string; -/** Known values of {@link SyncAgentState} that the service accepts. */ -export enum KnownSyncAgentState { - /** Online */ - Online = "Online", - /** Offline */ - Offline = "Offline", - /** NeverConnected */ - NeverConnected = "NeverConnected" +/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ +export enum KnownReadWriteEndpointFailoverPolicy { + /** Manual */ + Manual = "Manual", + /** Automatic */ + Automatic = "Automatic" } /** - * Defines values for SyncAgentState. \ - * {@link KnownSyncAgentState} can be used interchangeably with SyncAgentState, + * Defines values for ReadWriteEndpointFailoverPolicy. \ + * {@link KnownReadWriteEndpointFailoverPolicy} can be used interchangeably with ReadWriteEndpointFailoverPolicy, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Online** \ - * **Offline** \ - * **NeverConnected** + * **Manual** \ + * **Automatic** */ -export type SyncAgentState = string; +export type ReadWriteEndpointFailoverPolicy = string; -/** Known values of {@link SyncMemberDbType} that the service accepts. */ -export enum KnownSyncMemberDbType { - /** AzureSqlDatabase */ - AzureSqlDatabase = "AzureSqlDatabase", - /** SqlServerDatabase */ - SqlServerDatabase = "SqlServerDatabase" +/** Known values of {@link ReadOnlyEndpointFailoverPolicy} that the service accepts. */ +export enum KnownReadOnlyEndpointFailoverPolicy { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" } /** - * Defines values for SyncMemberDbType. \ - * {@link KnownSyncMemberDbType} can be used interchangeably with SyncMemberDbType, + * Defines values for ReadOnlyEndpointFailoverPolicy. \ + * {@link KnownReadOnlyEndpointFailoverPolicy} can be used interchangeably with ReadOnlyEndpointFailoverPolicy, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AzureSqlDatabase** \ - * **SqlServerDatabase** + * **Disabled** \ + * **Enabled** */ -export type SyncMemberDbType = string; +export type ReadOnlyEndpointFailoverPolicy = string; -/** Known values of {@link SyncGroupsType} that the service accepts. */ -export enum KnownSyncGroupsType { - /** All */ - All = "All", - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning", - /** Success */ - Success = "Success" +/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ +export enum KnownFailoverGroupReplicationRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for SyncGroupsType. \ - * {@link KnownSyncGroupsType} can be used interchangeably with SyncGroupsType, + * Defines values for FailoverGroupReplicationRole. \ + * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **All** \ - * **Error** \ - * **Warning** \ - * **Success** + * **Primary** \ + * **Secondary** */ -export type SyncGroupsType = string; +export type FailoverGroupReplicationRole = string; -/** Known values of {@link SyncGroupLogType} that the service accepts. */ -export enum KnownSyncGroupLogType { - /** All */ - All = "All", - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning", - /** Success */ - Success = "Success" +/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ +export enum KnownGeoBackupPolicyName { + /** Default */ + Default = "Default" } /** - * Defines values for SyncGroupLogType. \ - * {@link KnownSyncGroupLogType} can be used interchangeably with SyncGroupLogType, + * Defines values for GeoBackupPolicyName. \ + * {@link KnownGeoBackupPolicyName} can be used interchangeably with GeoBackupPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **All** \ - * **Error** \ - * **Warning** \ - * **Success** + * **Default** */ -export type SyncGroupLogType = string; +export type GeoBackupPolicyName = string; -/** Known values of {@link SyncConflictResolutionPolicy} that the service accepts. */ -export enum KnownSyncConflictResolutionPolicy { - /** HubWin */ - HubWin = "HubWin", - /** MemberWin */ - MemberWin = "MemberWin" +/** Known values of {@link SecondaryInstanceType} that the service accepts. */ +export enum KnownSecondaryInstanceType { + /** Geo */ + Geo = "Geo", + /** Standby */ + Standby = "Standby" } /** - * Defines values for SyncConflictResolutionPolicy. \ - * {@link KnownSyncConflictResolutionPolicy} can be used interchangeably with SyncConflictResolutionPolicy, + * Defines values for SecondaryInstanceType. \ + * {@link KnownSecondaryInstanceType} can be used interchangeably with SecondaryInstanceType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **HubWin** \ - * **MemberWin** + * **Geo** \ + * **Standby** */ -export type SyncConflictResolutionPolicy = string; +export type SecondaryInstanceType = string; -/** Known values of {@link SyncGroupState} that the service accepts. */ -export enum KnownSyncGroupState { - /** NotReady */ - NotReady = "NotReady", - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning", - /** Progressing */ - Progressing = "Progressing", - /** Good */ - Good = "Good" +/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ +export enum KnownInstanceFailoverGroupReplicationRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for SyncGroupState. \ - * {@link KnownSyncGroupState} can be used interchangeably with SyncGroupState, + * Defines values for InstanceFailoverGroupReplicationRole. \ + * {@link KnownInstanceFailoverGroupReplicationRole} can be used interchangeably with InstanceFailoverGroupReplicationRole, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotReady** \ - * **Error** \ - * **Warning** \ - * **Progressing** \ - * **Good** + * **Primary** \ + * **Secondary** */ -export type SyncGroupState = string; +export type InstanceFailoverGroupReplicationRole = string; -/** Known values of {@link SyncDirection} that the service accepts. */ -export enum KnownSyncDirection { - /** Bidirectional */ - Bidirectional = "Bidirectional", - /** OneWayMemberToHub */ - OneWayMemberToHub = "OneWayMemberToHub", - /** OneWayHubToMember */ - OneWayHubToMember = "OneWayHubToMember" +/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ +export enum KnownInstancePoolLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for SyncDirection. \ - * {@link KnownSyncDirection} can be used interchangeably with SyncDirection, + * Defines values for InstancePoolLicenseType. \ + * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Bidirectional** \ - * **OneWayMemberToHub** \ - * **OneWayHubToMember** + * **LicenseIncluded** \ + * **BasePrice** */ -export type SyncDirection = string; +export type InstancePoolLicenseType = string; -/** Known values of {@link SyncMemberState} that the service accepts. */ -export enum KnownSyncMemberState { - /** SyncInProgress */ - SyncInProgress = "SyncInProgress", - /** SyncSucceeded */ - SyncSucceeded = "SyncSucceeded", - /** SyncFailed */ - SyncFailed = "SyncFailed", - /** DisabledTombstoneCleanup */ - DisabledTombstoneCleanup = "DisabledTombstoneCleanup", - /** DisabledBackupRestore */ - DisabledBackupRestore = "DisabledBackupRestore", - /** SyncSucceededWithWarnings */ - SyncSucceededWithWarnings = "SyncSucceededWithWarnings", - /** SyncCancelling */ - SyncCancelling = "SyncCancelling", - /** SyncCancelled */ - SyncCancelled = "SyncCancelled", - /** UnProvisioned */ - UnProvisioned = "UnProvisioned", - /** Provisioning */ - Provisioning = "Provisioning", - /** Provisioned */ - Provisioned = "Provisioned", - /** ProvisionFailed */ - ProvisionFailed = "ProvisionFailed", - /** DeProvisioning */ - DeProvisioning = "DeProvisioning", - /** DeProvisioned */ - DeProvisioned = "DeProvisioned", - /** DeProvisionFailed */ - DeProvisionFailed = "DeProvisionFailed", - /** Reprovisioning */ - Reprovisioning = "Reprovisioning", - /** ReprovisionFailed */ - ReprovisionFailed = "ReprovisionFailed", - /** UnReprovisioned */ - UnReprovisioned = "UnReprovisioned" +/** Known values of {@link JobAgentState} that the service accepts. */ +export enum KnownJobAgentState { + /** Creating */ + Creating = "Creating", + /** Ready */ + Ready = "Ready", + /** Updating */ + Updating = "Updating", + /** Deleting */ + Deleting = "Deleting", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for SyncMemberState. \ - * {@link KnownSyncMemberState} can be used interchangeably with SyncMemberState, + * Defines values for JobAgentState. \ + * {@link KnownJobAgentState} can be used interchangeably with JobAgentState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SyncInProgress** \ - * **SyncSucceeded** \ - * **SyncFailed** \ - * **DisabledTombstoneCleanup** \ - * **DisabledBackupRestore** \ - * **SyncSucceededWithWarnings** \ - * **SyncCancelling** \ - * **SyncCancelled** \ - * **UnProvisioned** \ - * **Provisioning** \ - * **Provisioned** \ - * **ProvisionFailed** \ - * **DeProvisioning** \ - * **DeProvisioned** \ - * **DeProvisionFailed** \ - * **Reprovisioning** \ - * **ReprovisionFailed** \ - * **UnReprovisioned** + * **Creating** \ + * **Ready** \ + * **Updating** \ + * **Deleting** \ + * **Disabled** + */ +export type JobAgentState = string; + +/** Known values of {@link JobExecutionLifecycle} that the service accepts. */ +export enum KnownJobExecutionLifecycle { + /** Created */ + Created = "Created", + /** InProgress */ + InProgress = "InProgress", + /** WaitingForChildJobExecutions */ + WaitingForChildJobExecutions = "WaitingForChildJobExecutions", + /** WaitingForRetry */ + WaitingForRetry = "WaitingForRetry", + /** Succeeded */ + Succeeded = "Succeeded", + /** SucceededWithSkipped */ + SucceededWithSkipped = "SucceededWithSkipped", + /** Failed */ + Failed = "Failed", + /** TimedOut */ + TimedOut = "TimedOut", + /** Canceled */ + Canceled = "Canceled", + /** Skipped */ + Skipped = "Skipped" +} + +/** + * Defines values for JobExecutionLifecycle. \ + * {@link KnownJobExecutionLifecycle} can be used interchangeably with JobExecutionLifecycle, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Created** \ + * **InProgress** \ + * **WaitingForChildJobExecutions** \ + * **WaitingForRetry** \ + * **Succeeded** \ + * **SucceededWithSkipped** \ + * **Failed** \ + * **TimedOut** \ + * **Canceled** \ + * **Skipped** */ -export type SyncMemberState = string; +export type JobExecutionLifecycle = string; -/** Known values of {@link VirtualNetworkRuleState} that the service accepts. */ -export enum KnownVirtualNetworkRuleState { - /** Initializing */ - Initializing = "Initializing", +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Created */ + Created = "Created", /** InProgress */ InProgress = "InProgress", - /** Ready */ - Ready = "Ready", + /** Succeeded */ + Succeeded = "Succeeded", /** Failed */ Failed = "Failed", - /** Deleting */ - Deleting = "Deleting", - /** Unknown */ - Unknown = "Unknown" + /** Canceled */ + Canceled = "Canceled" } /** - * Defines values for VirtualNetworkRuleState. \ - * {@link KnownVirtualNetworkRuleState} can be used interchangeably with VirtualNetworkRuleState, + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Initializing** \ + * **Created** \ * **InProgress** \ - * **Ready** \ + * **Succeeded** \ * **Failed** \ - * **Deleting** \ - * **Unknown** + * **Canceled** */ -export type VirtualNetworkRuleState = string; +export type ProvisioningState = string; -/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownShortTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link JobTargetType} that the service accepts. */ +export enum KnownJobTargetType { + /** TargetGroup */ + TargetGroup = "TargetGroup", + /** SqlDatabase */ + SqlDatabase = "SqlDatabase", + /** SqlElasticPool */ + SqlElasticPool = "SqlElasticPool", + /** SqlShardMap */ + SqlShardMap = "SqlShardMap", + /** SqlServer */ + SqlServer = "SqlServer" } /** - * Defines values for ShortTermRetentionPolicyName. \ - * {@link KnownShortTermRetentionPolicyName} can be used interchangeably with ShortTermRetentionPolicyName, + * Defines values for JobTargetType. \ + * {@link KnownJobTargetType} can be used interchangeably with JobTargetType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **TargetGroup** \ + * **SqlDatabase** \ + * **SqlElasticPool** \ + * **SqlShardMap** \ + * **SqlServer** */ -export type ShortTermRetentionPolicyName = string; +export type JobTargetType = string; -/** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ -export enum KnownDiffBackupIntervalInHours { - /** Twelve */ - Twelve = 12, - /** TwentyFour */ - TwentyFour = 24 +/** Known values of {@link JobStepActionType} that the service accepts. */ +export enum KnownJobStepActionType { + /** TSql */ + TSql = "TSql" } /** - * Defines values for DiffBackupIntervalInHours. \ - * {@link KnownDiffBackupIntervalInHours} can be used interchangeably with DiffBackupIntervalInHours, + * Defines values for JobStepActionType. \ + * {@link KnownJobStepActionType} can be used interchangeably with JobStepActionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **12** \ - * **24** + * **TSql** */ -export type DiffBackupIntervalInHours = number; +export type JobStepActionType = string; -/** Known values of {@link OperationMode} that the service accepts. */ -export enum KnownOperationMode { - /** PolybaseImport */ - PolybaseImport = "PolybaseImport" +/** Known values of {@link JobStepActionSource} that the service accepts. */ +export enum KnownJobStepActionSource { + /** Inline */ + Inline = "Inline" } /** - * Defines values for OperationMode. \ - * {@link KnownOperationMode} can be used interchangeably with OperationMode, + * Defines values for JobStepActionSource. \ + * {@link KnownJobStepActionSource} can be used interchangeably with JobStepActionSource, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PolybaseImport** + * **Inline** */ -export type OperationMode = string; +export type JobStepActionSource = string; -/** Known values of {@link StorageKeyType} that the service accepts. */ -export enum KnownStorageKeyType { - /** SharedAccessKey */ - SharedAccessKey = "SharedAccessKey", - /** StorageAccessKey */ - StorageAccessKey = "StorageAccessKey" +/** Known values of {@link JobStepOutputType} that the service accepts. */ +export enum KnownJobStepOutputType { + /** SqlDatabase */ + SqlDatabase = "SqlDatabase" } /** - * Defines values for StorageKeyType. \ - * {@link KnownStorageKeyType} can be used interchangeably with StorageKeyType, + * Defines values for JobStepOutputType. \ + * {@link KnownJobStepOutputType} can be used interchangeably with JobStepOutputType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SharedAccessKey** \ - * **StorageAccessKey** + * **SqlDatabase** */ -export type StorageKeyType = string; +export type JobStepOutputType = string; /** Known values of {@link LedgerDigestUploadsName} that the service accepts. */ export enum KnownLedgerDigestUploadsName { @@ -10260,29 +10182,140 @@ export enum KnownLedgerDigestUploadsName { */ export type LedgerDigestUploadsName = string; -/** Known values of {@link BackupStorageRedundancy} that the service accepts. */ -export enum KnownBackupStorageRedundancy { - /** Geo */ - Geo = "Geo", - /** Local */ - Local = "Local", - /** Zone */ - Zone = "Zone", - /** GeoZone */ - GeoZone = "GeoZone" +/** Known values of {@link CapabilityGroup} that the service accepts. */ +export enum KnownCapabilityGroup { + /** SupportedEditions */ + SupportedEditions = "supportedEditions", + /** SupportedElasticPoolEditions */ + SupportedElasticPoolEditions = "supportedElasticPoolEditions", + /** SupportedManagedInstanceVersions */ + SupportedManagedInstanceVersions = "supportedManagedInstanceVersions", + /** SupportedInstancePoolEditions */ + SupportedInstancePoolEditions = "supportedInstancePoolEditions", + /** SupportedManagedInstanceEditions */ + SupportedManagedInstanceEditions = "supportedManagedInstanceEditions" +} + +/** + * Defines values for CapabilityGroup. \ + * {@link KnownCapabilityGroup} can be used interchangeably with CapabilityGroup, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **supportedEditions** \ + * **supportedElasticPoolEditions** \ + * **supportedManagedInstanceVersions** \ + * **supportedInstancePoolEditions** \ + * **supportedManagedInstanceEditions** + */ +export type CapabilityGroup = string; + +/** Known values of {@link MaxSizeUnit} that the service accepts. */ +export enum KnownMaxSizeUnit { + /** Megabytes */ + Megabytes = "Megabytes", + /** Gigabytes */ + Gigabytes = "Gigabytes", + /** Terabytes */ + Terabytes = "Terabytes", + /** Petabytes */ + Petabytes = "Petabytes" +} + +/** + * Defines values for MaxSizeUnit. \ + * {@link KnownMaxSizeUnit} can be used interchangeably with MaxSizeUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Megabytes** \ + * **Gigabytes** \ + * **Terabytes** \ + * **Petabytes** + */ +export type MaxSizeUnit = string; + +/** Known values of {@link LogSizeUnit} that the service accepts. */ +export enum KnownLogSizeUnit { + /** Megabytes */ + Megabytes = "Megabytes", + /** Gigabytes */ + Gigabytes = "Gigabytes", + /** Terabytes */ + Terabytes = "Terabytes", + /** Petabytes */ + Petabytes = "Petabytes", + /** Percent */ + Percent = "Percent" +} + +/** + * Defines values for LogSizeUnit. \ + * {@link KnownLogSizeUnit} can be used interchangeably with LogSizeUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Megabytes** \ + * **Gigabytes** \ + * **Terabytes** \ + * **Petabytes** \ + * **Percent** + */ +export type LogSizeUnit = string; + +/** Known values of {@link PerformanceLevelUnit} that the service accepts. */ +export enum KnownPerformanceLevelUnit { + /** DTU */ + DTU = "DTU", + /** VCores */ + VCores = "VCores" +} + +/** + * Defines values for PerformanceLevelUnit. \ + * {@link KnownPerformanceLevelUnit} can be used interchangeably with PerformanceLevelUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **DTU** \ + * **VCores** + */ +export type PerformanceLevelUnit = string; + +/** Known values of {@link PauseDelayTimeUnit} that the service accepts. */ +export enum KnownPauseDelayTimeUnit { + /** Minutes */ + Minutes = "Minutes" +} + +/** + * Defines values for PauseDelayTimeUnit. \ + * {@link KnownPauseDelayTimeUnit} can be used interchangeably with PauseDelayTimeUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Minutes** + */ +export type PauseDelayTimeUnit = string; + +/** Known values of {@link StorageCapabilityStorageAccountType} that the service accepts. */ +export enum KnownStorageCapabilityStorageAccountType { + /** GRS */ + GRS = "GRS", + /** LRS */ + LRS = "LRS", + /** ZRS */ + ZRS = "ZRS", + /** Gzrs */ + Gzrs = "GZRS" } /** - * Defines values for BackupStorageRedundancy. \ - * {@link KnownBackupStorageRedundancy} can be used interchangeably with BackupStorageRedundancy, + * Defines values for StorageCapabilityStorageAccountType. \ + * {@link KnownStorageCapabilityStorageAccountType} can be used interchangeably with StorageCapabilityStorageAccountType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Geo** \ - * **Local** \ - * **Zone** \ - * **GeoZone** + * **GRS** \ + * **LRS** \ + * **ZRS** \ + * **GZRS** */ -export type BackupStorageRedundancy = string; +export type StorageCapabilityStorageAccountType = string; /** Known values of {@link DatabaseState} that the service accepts. */ export enum KnownDatabaseState { @@ -10305,254 +10338,278 @@ export enum KnownDatabaseState { */ export type DatabaseState = string; -/** Known values of {@link ConnectionPolicyName} that the service accepts. */ -export enum KnownConnectionPolicyName { +/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ +export enum KnownLongTermRetentionPolicyName { /** Default */ Default = "default" } /** - * Defines values for ConnectionPolicyName. \ - * {@link KnownConnectionPolicyName} can be used interchangeably with ConnectionPolicyName, + * Defines values for LongTermRetentionPolicyName. \ + * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **default** */ -export type ConnectionPolicyName = string; +export type LongTermRetentionPolicyName = string; -/** Known values of {@link ServerConnectionType} that the service accepts. */ -export enum KnownServerConnectionType { - /** Default */ - Default = "Default", - /** Redirect */ - Redirect = "Redirect", - /** Proxy */ - Proxy = "Proxy" +/** Known values of {@link DayOfWeek} that the service accepts. */ +export enum KnownDayOfWeek { + /** Sunday */ + Sunday = "Sunday", + /** Monday */ + Monday = "Monday", + /** Tuesday */ + Tuesday = "Tuesday", + /** Wednesday */ + Wednesday = "Wednesday", + /** Thursday */ + Thursday = "Thursday", + /** Friday */ + Friday = "Friday", + /** Saturday */ + Saturday = "Saturday" } /** - * Defines values for ServerConnectionType. \ - * {@link KnownServerConnectionType} can be used interchangeably with ServerConnectionType, + * Defines values for DayOfWeek. \ + * {@link KnownDayOfWeek} can be used interchangeably with DayOfWeek, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** \ - * **Redirect** \ - * **Proxy** + * **Sunday** \ + * **Monday** \ + * **Tuesday** \ + * **Wednesday** \ + * **Thursday** \ + * **Friday** \ + * **Saturday** */ -export type ServerConnectionType = string; +export type DayOfWeek = string; -/** Known values of {@link ReplicationMode} that the service accepts. */ -export enum KnownReplicationMode { - /** Async */ - Async = "Async", - /** Sync */ - Sync = "Sync" +/** Known values of {@link ManagedShortTermRetentionPolicyName} that the service accepts. */ +export enum KnownManagedShortTermRetentionPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for ReplicationMode. \ - * {@link KnownReplicationMode} can be used interchangeably with ReplicationMode, + * Defines values for ManagedShortTermRetentionPolicyName. \ + * {@link KnownManagedShortTermRetentionPolicyName} can be used interchangeably with ManagedShortTermRetentionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Async** \ - * **Sync** + * **default** */ -export type ReplicationMode = string; +export type ManagedShortTermRetentionPolicyName = string; -/** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */ -export enum KnownAdvancedThreatProtectionName { - /** Default */ - Default = "Default" +/** Known values of {@link MoveOperationMode} that the service accepts. */ +export enum KnownMoveOperationMode { + /** Move */ + Move = "Move", + /** Copy */ + Copy = "Copy" } /** - * Defines values for AdvancedThreatProtectionName. \ - * {@link KnownAdvancedThreatProtectionName} can be used interchangeably with AdvancedThreatProtectionName, + * Defines values for MoveOperationMode. \ + * {@link KnownMoveOperationMode} can be used interchangeably with MoveOperationMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** + * **Move** \ + * **Copy** */ -export type AdvancedThreatProtectionName = string; +export type MoveOperationMode = string; -/** Known values of {@link BaselineName} that the service accepts. */ -export enum KnownBaselineName { - /** Default */ - Default = "default" +/** Known values of {@link QueryTimeGrainType} that the service accepts. */ +export enum KnownQueryTimeGrainType { + /** PT1H */ + PT1H = "PT1H", + /** P1D */ + P1D = "P1D" } /** - * Defines values for BaselineName. \ - * {@link KnownBaselineName} can be used interchangeably with BaselineName, + * Defines values for QueryTimeGrainType. \ + * {@link KnownQueryTimeGrainType} can be used interchangeably with QueryTimeGrainType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **PT1H** \ + * **P1D** */ -export type BaselineName = string; +export type QueryTimeGrainType = string; -/** Known values of {@link SQLVulnerabilityAssessmentName} that the service accepts. */ -export enum KnownSQLVulnerabilityAssessmentName { - /** Default */ - Default = "default" +/** Known values of {@link QueryMetricUnitType} that the service accepts. */ +export enum KnownQueryMetricUnitType { + /** Percentage */ + Percentage = "percentage", + /** KB */ + KB = "KB", + /** Microseconds */ + Microseconds = "microseconds", + /** Count */ + Count = "count" } /** - * Defines values for SQLVulnerabilityAssessmentName. \ - * {@link KnownSQLVulnerabilityAssessmentName} can be used interchangeably with SQLVulnerabilityAssessmentName, + * Defines values for QueryMetricUnitType. \ + * {@link KnownQueryMetricUnitType} can be used interchangeably with QueryMetricUnitType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **percentage** \ + * **KB** \ + * **microseconds** \ + * **count** */ -export type SQLVulnerabilityAssessmentName = string; +export type QueryMetricUnitType = string; -/** Known values of {@link RuleStatus} that the service accepts. */ -export enum KnownRuleStatus { - /** NonFinding */ - NonFinding = "NonFinding", - /** Finding */ - Finding = "Finding", - /** InternalError */ - InternalError = "InternalError" +/** Known values of {@link RestoreDetailsName} that the service accepts. */ +export enum KnownRestoreDetailsName { + /** Default */ + Default = "Default" } /** - * Defines values for RuleStatus. \ - * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, + * Defines values for RestoreDetailsName. \ + * {@link KnownRestoreDetailsName} can be used interchangeably with RestoreDetailsName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NonFinding** \ - * **Finding** \ - * **InternalError** + * **Default** */ -export type RuleStatus = string; +export type RestoreDetailsName = string; -/** Known values of {@link RuleSeverity} that the service accepts. */ -export enum KnownRuleSeverity { - /** High */ - High = "High", - /** Medium */ - Medium = "Medium", - /** Low */ - Low = "Low", - /** Informational */ - Informational = "Informational", - /** Obsolete */ - Obsolete = "Obsolete" +/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ +export enum KnownTransparentDataEncryptionName { + /** Current */ + Current = "current" } /** - * Defines values for RuleSeverity. \ - * {@link KnownRuleSeverity} can be used interchangeably with RuleSeverity, + * Defines values for TransparentDataEncryptionName. \ + * {@link KnownTransparentDataEncryptionName} can be used interchangeably with TransparentDataEncryptionName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **High** \ - * **Medium** \ - * **Low** \ - * **Informational** \ - * **Obsolete** + * **current** */ -export type RuleSeverity = string; +export type TransparentDataEncryptionName = string; -/** Known values of {@link RuleType} that the service accepts. */ -export enum KnownRuleType { - /** Binary */ - Binary = "Binary", - /** BaselineExpected */ - BaselineExpected = "BaselineExpected", - /** PositiveList */ - PositiveList = "PositiveList", - /** NegativeList */ - NegativeList = "NegativeList" +/** Known values of {@link ManagedDatabaseStatus} that the service accepts. */ +export enum KnownManagedDatabaseStatus { + /** Online */ + Online = "Online", + /** Offline */ + Offline = "Offline", + /** Shutdown */ + Shutdown = "Shutdown", + /** Creating */ + Creating = "Creating", + /** Inaccessible */ + Inaccessible = "Inaccessible", + /** Restoring */ + Restoring = "Restoring", + /** Updating */ + Updating = "Updating", + /** Stopping */ + Stopping = "Stopping", + /** Stopped */ + Stopped = "Stopped", + /** Starting */ + Starting = "Starting", + /** DbMoving */ + DbMoving = "DbMoving", + /** DbCopying */ + DbCopying = "DbCopying" } /** - * Defines values for RuleType. \ - * {@link KnownRuleType} can be used interchangeably with RuleType, + * Defines values for ManagedDatabaseStatus. \ + * {@link KnownManagedDatabaseStatus} can be used interchangeably with ManagedDatabaseStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Binary** \ - * **BaselineExpected** \ - * **PositiveList** \ - * **NegativeList** + * **Online** \ + * **Offline** \ + * **Shutdown** \ + * **Creating** \ + * **Inaccessible** \ + * **Restoring** \ + * **Updating** \ + * **Stopping** \ + * **Stopped** \ + * **Starting** \ + * **DbMoving** \ + * **DbCopying** */ -export type RuleType = string; +export type ManagedDatabaseStatus = string; -/** Known values of {@link SqlVulnerabilityAssessmentName} that the service accepts. */ -export enum KnownSqlVulnerabilityAssessmentName { +/** Known values of {@link ManagedDatabaseCreateMode} that the service accepts. */ +export enum KnownManagedDatabaseCreateMode { /** Default */ - Default = "default" + Default = "Default", + /** RestoreExternalBackup */ + RestoreExternalBackup = "RestoreExternalBackup", + /** PointInTimeRestore */ + PointInTimeRestore = "PointInTimeRestore", + /** Recovery */ + Recovery = "Recovery", + /** RestoreLongTermRetentionBackup */ + RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup" } /** - * Defines values for SqlVulnerabilityAssessmentName. \ - * {@link KnownSqlVulnerabilityAssessmentName} can be used interchangeably with SqlVulnerabilityAssessmentName, + * Defines values for ManagedDatabaseCreateMode. \ + * {@link KnownManagedDatabaseCreateMode} can be used interchangeably with ManagedDatabaseCreateMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **Default** \ + * **RestoreExternalBackup** \ + * **PointInTimeRestore** \ + * **Recovery** \ + * **RestoreLongTermRetentionBackup** */ -export type SqlVulnerabilityAssessmentName = string; +export type ManagedDatabaseCreateMode = string; -/** Known values of {@link ReplicationState} that the service accepts. */ -export enum KnownReplicationState { - /** Pending */ - Pending = "PENDING", - /** Seeding */ - Seeding = "SEEDING", - /** CatchUP */ - CatchUP = "CATCH_UP", - /** Suspended */ - Suspended = "SUSPENDED" +/** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ +export enum KnownManagedInstanceAdministratorType { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for ReplicationState. \ - * {@link KnownReplicationState} can be used interchangeably with ReplicationState, + * Defines values for ManagedInstanceAdministratorType. \ + * {@link KnownManagedInstanceAdministratorType} can be used interchangeably with ManagedInstanceAdministratorType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PENDING** \ - * **SEEDING** \ - * **CATCH_UP** \ - * **SUSPENDED** + * **ActiveDirectory** */ -export type ReplicationState = string; +export type ManagedInstanceAdministratorType = string; -/** Known values of {@link ReplicationLinkType} that the service accepts. */ -export enum KnownReplicationLinkType { - /** GEO */ - GEO = "GEO", - /** Named */ - Named = "NAMED", - /** Standby */ - Standby = "STANDBY" +/** Known values of {@link AdministratorName} that the service accepts. */ +export enum KnownAdministratorName { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for ReplicationLinkType. \ - * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType, + * Defines values for AdministratorName. \ + * {@link KnownAdministratorName} can be used interchangeably with AdministratorName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **GEO** \ - * **NAMED** \ - * **STANDBY** + * **ActiveDirectory** */ -export type ReplicationLinkType = string; +export type AdministratorName = string; -/** Known values of {@link MoveOperationMode} that the service accepts. */ -export enum KnownMoveOperationMode { - /** Move */ - Move = "Move", - /** Copy */ - Copy = "Copy" +/** Known values of {@link AuthenticationName} that the service accepts. */ +export enum KnownAuthenticationName { + /** Default */ + Default = "Default" } /** - * Defines values for MoveOperationMode. \ - * {@link KnownMoveOperationMode} can be used interchangeably with MoveOperationMode, + * Defines values for AuthenticationName. \ + * {@link KnownAuthenticationName} can be used interchangeably with AuthenticationName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Move** \ - * **Copy** + * **Default** */ -export type MoveOperationMode = string; +export type AuthenticationName = string; /** Known values of {@link DtcName} that the service accepts. */ export enum KnownDtcName { @@ -10569,356 +10626,296 @@ export enum KnownDtcName { */ export type DtcName = string; -/** Known values of {@link DNSRefreshOperationStatus} that the service accepts. */ -export enum KnownDNSRefreshOperationStatus { - /** Succeeded */ - Succeeded = "Succeeded", +/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ +export enum KnownManagedInstanceLongTermRetentionPolicyName { + /** Default */ + Default = "default" +} + +/** + * Defines values for ManagedInstanceLongTermRetentionPolicyName. \ + * {@link KnownManagedInstanceLongTermRetentionPolicyName} can be used interchangeably with ManagedInstanceLongTermRetentionPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type ManagedInstanceLongTermRetentionPolicyName = string; + +/** Known values of {@link Status} that the service accepts. */ +export enum KnownStatus { + /** NotStarted */ + NotStarted = "NotStarted", + /** InProgress */ + InProgress = "InProgress", + /** SlowedDown */ + SlowedDown = "SlowedDown", + /** Completed */ + Completed = "Completed", /** Failed */ Failed = "Failed", - /** InProgress */ - InProgress = "InProgress" + /** Canceled */ + Canceled = "Canceled" } /** - * Defines values for DNSRefreshOperationStatus. \ - * {@link KnownDNSRefreshOperationStatus} can be used interchangeably with DNSRefreshOperationStatus, + * Defines values for Status. \ + * {@link KnownStatus} can be used interchangeably with Status, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ + * **NotStarted** \ + * **InProgress** \ + * **SlowedDown** \ + * **Completed** \ * **Failed** \ - * **InProgress** + * **Canceled** */ -export type DNSRefreshOperationStatus = string; +export type Status = string; -/** Known values of {@link SecondaryInstanceType} that the service accepts. */ -export enum KnownSecondaryInstanceType { - /** Geo */ - Geo = "Geo", - /** Standby */ - Standby = "Standby" +/** Known values of {@link IdentityType} that the service accepts. */ +export enum KnownIdentityType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" } /** - * Defines values for SecondaryInstanceType. \ - * {@link KnownSecondaryInstanceType} can be used interchangeably with SecondaryInstanceType, + * Defines values for IdentityType. \ + * {@link KnownIdentityType} can be used interchangeably with IdentityType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Geo** \ - * **Standby** + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned,UserAssigned** */ -export type SecondaryInstanceType = string; +export type IdentityType = string; -/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ -export enum KnownInstanceFailoverGroupReplicationRole { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ +export enum KnownManagedServerCreateMode { + /** Default */ + Default = "Default", + /** PointInTimeRestore */ + PointInTimeRestore = "PointInTimeRestore" } /** - * Defines values for InstanceFailoverGroupReplicationRole. \ - * {@link KnownInstanceFailoverGroupReplicationRole} can be used interchangeably with InstanceFailoverGroupReplicationRole, + * Defines values for ManagedServerCreateMode. \ + * {@link KnownManagedServerCreateMode} can be used interchangeably with ManagedServerCreateMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Primary** \ - * **Secondary** + * **Default** \ + * **PointInTimeRestore** */ -export type InstanceFailoverGroupReplicationRole = string; +export type ManagedServerCreateMode = string; -/** Known values of {@link RestoreDetailsName} that the service accepts. */ -export enum KnownRestoreDetailsName { - /** Default */ - Default = "Default" +/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ +export enum KnownManagedInstanceLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for RestoreDetailsName. \ - * {@link KnownRestoreDetailsName} can be used interchangeably with RestoreDetailsName, + * Defines values for ManagedInstanceLicenseType. \ + * {@link KnownManagedInstanceLicenseType} can be used interchangeably with ManagedInstanceLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** + * **LicenseIncluded** \ + * **BasePrice** */ -export type RestoreDetailsName = string; +export type ManagedInstanceLicenseType = string; -/** Known values of {@link ManagedDatabaseStatus} that the service accepts. */ -export enum KnownManagedDatabaseStatus { - /** Online */ - Online = "Online", - /** Offline */ - Offline = "Offline", - /** Shutdown */ - Shutdown = "Shutdown", - /** Creating */ - Creating = "Creating", - /** Inaccessible */ - Inaccessible = "Inaccessible", - /** Restoring */ - Restoring = "Restoring", - /** Updating */ - Updating = "Updating", - /** Stopping */ - Stopping = "Stopping", - /** Stopped */ - Stopped = "Stopped", - /** Starting */ - Starting = "Starting", - /** DbMoving */ - DbMoving = "DbMoving", - /** DbCopying */ - DbCopying = "DbCopying" +/** Known values of {@link HybridSecondaryUsage} that the service accepts. */ +export enum KnownHybridSecondaryUsage { + /** Active */ + Active = "Active", + /** Passive */ + Passive = "Passive" } /** - * Defines values for ManagedDatabaseStatus. \ - * {@link KnownManagedDatabaseStatus} can be used interchangeably with ManagedDatabaseStatus, + * Defines values for HybridSecondaryUsage. \ + * {@link KnownHybridSecondaryUsage} can be used interchangeably with HybridSecondaryUsage, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Online** \ - * **Offline** \ - * **Shutdown** \ - * **Creating** \ - * **Inaccessible** \ - * **Restoring** \ - * **Updating** \ - * **Stopping** \ - * **Stopped** \ - * **Starting** \ - * **DbMoving** \ - * **DbCopying** + * **Active** \ + * **Passive** */ -export type ManagedDatabaseStatus = string; +export type HybridSecondaryUsage = string; -/** Known values of {@link CatalogCollationType} that the service accepts. */ -export enum KnownCatalogCollationType { - /** DatabaseDefault */ - DatabaseDefault = "DATABASE_DEFAULT", - /** SQLLatin1GeneralCP1CIAS */ - SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" +/** Known values of {@link HybridSecondaryUsageDetected} that the service accepts. */ +export enum KnownHybridSecondaryUsageDetected { + /** Active */ + Active = "Active", + /** Passive */ + Passive = "Passive" +} + +/** + * Defines values for HybridSecondaryUsageDetected. \ + * {@link KnownHybridSecondaryUsageDetected} can be used interchangeably with HybridSecondaryUsageDetected, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Active** \ + * **Passive** + */ +export type HybridSecondaryUsageDetected = string; + +/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ +export enum KnownManagedInstanceProxyOverride { + /** Proxy */ + Proxy = "Proxy", + /** Redirect */ + Redirect = "Redirect", + /** Default */ + Default = "Default" } /** - * Defines values for CatalogCollationType. \ - * {@link KnownCatalogCollationType} can be used interchangeably with CatalogCollationType, + * Defines values for ManagedInstanceProxyOverride. \ + * {@link KnownManagedInstanceProxyOverride} can be used interchangeably with ManagedInstanceProxyOverride, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **DATABASE_DEFAULT** \ - * **SQL_Latin1_General_CP1_CI_AS** + * **Proxy** \ + * **Redirect** \ + * **Default** */ -export type CatalogCollationType = string; +export type ManagedInstanceProxyOverride = string; -/** Known values of {@link ManagedDatabaseCreateMode} that the service accepts. */ -export enum KnownManagedDatabaseCreateMode { - /** Default */ - Default = "Default", - /** RestoreExternalBackup */ - RestoreExternalBackup = "RestoreExternalBackup", - /** PointInTimeRestore */ - PointInTimeRestore = "PointInTimeRestore", - /** Recovery */ - Recovery = "Recovery", - /** RestoreLongTermRetentionBackup */ - RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup" +/** Known values of {@link AdministratorType} that the service accepts. */ +export enum KnownAdministratorType { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for ManagedDatabaseCreateMode. \ - * {@link KnownManagedDatabaseCreateMode} can be used interchangeably with ManagedDatabaseCreateMode, + * Defines values for AdministratorType. \ + * {@link KnownAdministratorType} can be used interchangeably with AdministratorType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** \ - * **RestoreExternalBackup** \ - * **PointInTimeRestore** \ - * **Recovery** \ - * **RestoreLongTermRetentionBackup** + * **ActiveDirectory** */ -export type ManagedDatabaseCreateMode = string; +export type AdministratorType = string; -/** Known values of {@link DatabaseIdentityType} that the service accepts. */ -export enum KnownDatabaseIdentityType { - /** None */ - None = "None", - /** UserAssigned */ - UserAssigned = "UserAssigned" +/** Known values of {@link PrincipalType} that the service accepts. */ +export enum KnownPrincipalType { + /** User */ + User = "User", + /** Group */ + Group = "Group", + /** Application */ + Application = "Application" } /** - * Defines values for DatabaseIdentityType. \ - * {@link KnownDatabaseIdentityType} can be used interchangeably with DatabaseIdentityType, + * Defines values for PrincipalType. \ + * {@link KnownPrincipalType} can be used interchangeably with PrincipalType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **UserAssigned** + * **User** \ + * **Group** \ + * **Application** */ -export type DatabaseIdentityType = string; +export type PrincipalType = string; -/** Known values of {@link CreateMode} that the service accepts. */ -export enum KnownCreateMode { - /** Default */ - Default = "Default", - /** Copy */ - Copy = "Copy", - /** Secondary */ - Secondary = "Secondary", - /** PointInTimeRestore */ - PointInTimeRestore = "PointInTimeRestore", - /** Restore */ - Restore = "Restore", - /** Recovery */ - Recovery = "Recovery", - /** RestoreExternalBackup */ - RestoreExternalBackup = "RestoreExternalBackup", - /** RestoreExternalBackupSecondary */ - RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary", - /** RestoreLongTermRetentionBackup */ - RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup", - /** OnlineSecondary */ - OnlineSecondary = "OnlineSecondary" +/** Known values of {@link ServicePrincipalType} that the service accepts. */ +export enum KnownServicePrincipalType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned" } /** - * Defines values for CreateMode. \ - * {@link KnownCreateMode} can be used interchangeably with CreateMode, + * Defines values for ServicePrincipalType. \ + * {@link KnownServicePrincipalType} can be used interchangeably with ServicePrincipalType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** \ - * **Copy** \ - * **Secondary** \ - * **PointInTimeRestore** \ - * **Restore** \ - * **Recovery** \ - * **RestoreExternalBackup** \ - * **RestoreExternalBackupSecondary** \ - * **RestoreLongTermRetentionBackup** \ - * **OnlineSecondary** + * **None** \ + * **SystemAssigned** */ -export type CreateMode = string; +export type ServicePrincipalType = string; -/** Known values of {@link SampleName} that the service accepts. */ -export enum KnownSampleName { - /** AdventureWorksLT */ - AdventureWorksLT = "AdventureWorksLT", - /** WideWorldImportersStd */ - WideWorldImportersStd = "WideWorldImportersStd", - /** WideWorldImportersFull */ - WideWorldImportersFull = "WideWorldImportersFull" +/** Known values of {@link ExternalGovernanceStatus} that the service accepts. */ +export enum KnownExternalGovernanceStatus { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for SampleName. \ - * {@link KnownSampleName} can be used interchangeably with SampleName, + * Defines values for ExternalGovernanceStatus. \ + * {@link KnownExternalGovernanceStatus} can be used interchangeably with ExternalGovernanceStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AdventureWorksLT** \ - * **WideWorldImportersStd** \ - * **WideWorldImportersFull** + * **Enabled** \ + * **Disabled** */ -export type SampleName = string; +export type ExternalGovernanceStatus = string; -/** Known values of {@link DatabaseStatus} that the service accepts. */ -export enum KnownDatabaseStatus { - /** Online */ - Online = "Online", - /** Restoring */ - Restoring = "Restoring", - /** RecoveryPending */ - RecoveryPending = "RecoveryPending", - /** Recovering */ - Recovering = "Recovering", - /** Suspect */ - Suspect = "Suspect", - /** Offline */ - Offline = "Offline", - /** Standby */ - Standby = "Standby", - /** Shutdown */ - Shutdown = "Shutdown", - /** EmergencyMode */ - EmergencyMode = "EmergencyMode", - /** AutoClosed */ - AutoClosed = "AutoClosed", - /** Copying */ - Copying = "Copying", - /** Creating */ - Creating = "Creating", - /** Inaccessible */ - Inaccessible = "Inaccessible", - /** OfflineSecondary */ - OfflineSecondary = "OfflineSecondary", - /** Pausing */ - Pausing = "Pausing", - /** Paused */ - Paused = "Paused", - /** Resuming */ - Resuming = "Resuming", - /** Scaling */ - Scaling = "Scaling", - /** OfflineChangingDwPerformanceTiers */ - OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers", - /** OnlineChangingDwPerformanceTiers */ - OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers", - /** Disabled */ - Disabled = "Disabled", - /** Stopping */ - Stopping = "Stopping", - /** Stopped */ - Stopped = "Stopped", - /** Starting */ - Starting = "Starting" +/** Known values of {@link AggregationFunctionType} that the service accepts. */ +export enum KnownAggregationFunctionType { + /** Avg */ + Avg = "avg", + /** Min */ + Min = "min", + /** Max */ + Max = "max", + /** Stdev */ + Stdev = "stdev", + /** Sum */ + Sum = "sum" } /** - * Defines values for DatabaseStatus. \ - * {@link KnownDatabaseStatus} can be used interchangeably with DatabaseStatus, + * Defines values for AggregationFunctionType. \ + * {@link KnownAggregationFunctionType} can be used interchangeably with AggregationFunctionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Online** \ - * **Restoring** \ - * **RecoveryPending** \ - * **Recovering** \ - * **Suspect** \ - * **Offline** \ - * **Standby** \ - * **Shutdown** \ - * **EmergencyMode** \ - * **AutoClosed** \ - * **Copying** \ - * **Creating** \ - * **Inaccessible** \ - * **OfflineSecondary** \ - * **Pausing** \ - * **Paused** \ - * **Resuming** \ - * **Scaling** \ - * **OfflineChangingDwPerformanceTiers** \ - * **OnlineChangingDwPerformanceTiers** \ - * **Disabled** \ - * **Stopping** \ - * **Stopped** \ - * **Starting** + * **avg** \ + * **min** \ + * **max** \ + * **stdev** \ + * **sum** */ -export type DatabaseStatus = string; +export type AggregationFunctionType = string; -/** Known values of {@link DatabaseLicenseType} that the service accepts. */ -export enum KnownDatabaseLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link MetricType} that the service accepts. */ +export enum KnownMetricType { + /** Cpu */ + Cpu = "cpu", + /** Io */ + Io = "io", + /** LogIo */ + LogIo = "logIo", + /** Duration */ + Duration = "duration", + /** Dtu */ + Dtu = "dtu" } /** - * Defines values for DatabaseLicenseType. \ - * {@link KnownDatabaseLicenseType} can be used interchangeably with DatabaseLicenseType, + * Defines values for MetricType. \ + * {@link KnownMetricType} can be used interchangeably with MetricType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **LicenseIncluded** \ - * **BasePrice** + * **cpu** \ + * **io** \ + * **logIo** \ + * **duration** \ + * **dtu** */ -export type DatabaseLicenseType = string; +export type MetricType = string; -/** Known values of {@link DatabaseReadScale} that the service accepts. */ -export enum KnownDatabaseReadScale { +/** Known values of {@link ManagedLedgerDigestUploadsState} that the service accepts. */ +export enum KnownManagedLedgerDigestUploadsState { /** Enabled */ Enabled = "Enabled", /** Disabled */ @@ -10926,383 +10923,317 @@ export enum KnownDatabaseReadScale { } /** - * Defines values for DatabaseReadScale. \ - * {@link KnownDatabaseReadScale} can be used interchangeably with DatabaseReadScale, + * Defines values for ManagedLedgerDigestUploadsState. \ + * {@link KnownManagedLedgerDigestUploadsState} can be used interchangeably with ManagedLedgerDigestUploadsState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Enabled** \ * **Disabled** */ -export type DatabaseReadScale = string; +export type ManagedLedgerDigestUploadsState = string; -/** Known values of {@link SecondaryType} that the service accepts. */ -export enum KnownSecondaryType { - /** Geo */ - Geo = "Geo", - /** Named */ - Named = "Named", - /** Standby */ - Standby = "Standby" +/** Known values of {@link ManagedLedgerDigestUploadsName} that the service accepts. */ +export enum KnownManagedLedgerDigestUploadsName { + /** Current */ + Current = "current" } /** - * Defines values for SecondaryType. \ - * {@link KnownSecondaryType} can be used interchangeably with SecondaryType, + * Defines values for ManagedLedgerDigestUploadsName. \ + * {@link KnownManagedLedgerDigestUploadsName} can be used interchangeably with ManagedLedgerDigestUploadsName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Geo** \ - * **Named** \ - * **Standby** + * **current** */ -export type SecondaryType = string; +export type ManagedLedgerDigestUploadsName = string; -/** Known values of {@link DatabaseKeyType} that the service accepts. */ -export enum KnownDatabaseKeyType { - /** AzureKeyVault */ - AzureKeyVault = "AzureKeyVault" +/** Known values of {@link SecurityAlertPolicyNameAutoGenerated} that the service accepts. */ +export enum KnownSecurityAlertPolicyNameAutoGenerated { + /** Default */ + Default = "Default" } /** - * Defines values for DatabaseKeyType. \ - * {@link KnownDatabaseKeyType} can be used interchangeably with DatabaseKeyType, + * Defines values for SecurityAlertPolicyNameAutoGenerated. \ + * {@link KnownSecurityAlertPolicyNameAutoGenerated} can be used interchangeably with SecurityAlertPolicyNameAutoGenerated, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AzureKeyVault** + * **Default** */ -export type DatabaseKeyType = string; +export type SecurityAlertPolicyNameAutoGenerated = string; -/** Known values of {@link AlwaysEncryptedEnclaveType} that the service accepts. */ -export enum KnownAlwaysEncryptedEnclaveType { - /** Default */ - Default = "Default", - /** VBS */ - VBS = "VBS" +/** Known values of {@link OperationOrigin} that the service accepts. */ +export enum KnownOperationOrigin { + /** User */ + User = "user", + /** System */ + System = "system" } /** - * Defines values for AlwaysEncryptedEnclaveType. \ - * {@link KnownAlwaysEncryptedEnclaveType} can be used interchangeably with AlwaysEncryptedEnclaveType, + * Defines values for OperationOrigin. \ + * {@link KnownOperationOrigin} can be used interchangeably with OperationOrigin, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** \ - * **VBS** + * **user** \ + * **system** */ -export type AlwaysEncryptedEnclaveType = string; +export type OperationOrigin = string; -/** Known values of {@link AvailabilityZoneType} that the service accepts. */ -export enum KnownAvailabilityZoneType { - /** NoPreference */ - NoPreference = "NoPreference", - /** One */ - One = "1", - /** Two */ - Two = "2", - /** Three */ - Three = "3" +/** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */ +export enum KnownPrivateLinkServiceConnectionStateStatus { + /** Approved */ + Approved = "Approved", + /** Pending */ + Pending = "Pending", + /** Rejected */ + Rejected = "Rejected", + /** Disconnected */ + Disconnected = "Disconnected" } /** - * Defines values for AvailabilityZoneType. \ - * {@link KnownAvailabilityZoneType} can be used interchangeably with AvailabilityZoneType, + * Defines values for PrivateLinkServiceConnectionStateStatus. \ + * {@link KnownPrivateLinkServiceConnectionStateStatus} can be used interchangeably with PrivateLinkServiceConnectionStateStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NoPreference** \ - * **1** \ - * **2** \ - * **3** + * **Approved** \ + * **Pending** \ + * **Rejected** \ + * **Disconnected** */ -export type AvailabilityZoneType = string; +export type PrivateLinkServiceConnectionStateStatus = string; -/** Known values of {@link ReplicaType} that the service accepts. */ -export enum KnownReplicaType { - /** Primary */ - Primary = "Primary", - /** ReadableSecondary */ - ReadableSecondary = "ReadableSecondary" +/** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ +export enum KnownPrivateLinkServiceConnectionStateActionsRequire { + /** None */ + None = "None" } /** - * Defines values for ReplicaType. \ - * {@link KnownReplicaType} can be used interchangeably with ReplicaType, + * Defines values for PrivateLinkServiceConnectionStateActionsRequire. \ + * {@link KnownPrivateLinkServiceConnectionStateActionsRequire} can be used interchangeably with PrivateLinkServiceConnectionStateActionsRequire, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Primary** \ - * **ReadableSecondary** + * **None** */ -export type ReplicaType = string; +export type PrivateLinkServiceConnectionStateActionsRequire = string; -/** Known values of {@link ElasticPoolState} that the service accepts. */ -export enum KnownElasticPoolState { - /** Creating */ - Creating = "Creating", +/** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointProvisioningState { + /** Approving */ + Approving = "Approving", /** Ready */ Ready = "Ready", - /** Disabled */ - Disabled = "Disabled" + /** Dropping */ + Dropping = "Dropping", + /** Failed */ + Failed = "Failed", + /** Rejecting */ + Rejecting = "Rejecting" } /** - * Defines values for ElasticPoolState. \ - * {@link KnownElasticPoolState} can be used interchangeably with ElasticPoolState, + * Defines values for PrivateEndpointProvisioningState. \ + * {@link KnownPrivateEndpointProvisioningState} can be used interchangeably with PrivateEndpointProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ + * **Approving** \ * **Ready** \ - * **Disabled** + * **Dropping** \ + * **Failed** \ + * **Rejecting** */ -export type ElasticPoolState = string; +export type PrivateEndpointProvisioningState = string; -/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ -export enum KnownElasticPoolLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link ReplicationState} that the service accepts. */ +export enum KnownReplicationState { + /** Pending */ + Pending = "PENDING", + /** Seeding */ + Seeding = "SEEDING", + /** CatchUP */ + CatchUP = "CATCH_UP", + /** Suspended */ + Suspended = "SUSPENDED" } /** - * Defines values for ElasticPoolLicenseType. \ - * {@link KnownElasticPoolLicenseType} can be used interchangeably with ElasticPoolLicenseType, + * Defines values for ReplicationState. \ + * {@link KnownReplicationState} can be used interchangeably with ReplicationState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **LicenseIncluded** \ - * **BasePrice** + * **PENDING** \ + * **SEEDING** \ + * **CATCH_UP** \ + * **SUSPENDED** */ -export type ElasticPoolLicenseType = string; +export type ReplicationState = string; -/** Known values of {@link IdentityType} that the service accepts. */ -export enum KnownIdentityType { - /** None */ - None = "None", - /** SystemAssigned */ - SystemAssigned = "SystemAssigned", - /** UserAssigned */ - UserAssigned = "UserAssigned", - /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" +/** Known values of {@link ReplicationLinkType} that the service accepts. */ +export enum KnownReplicationLinkType { + /** GEO */ + GEO = "GEO", + /** Named */ + Named = "NAMED", + /** Standby */ + Standby = "STANDBY" } /** - * Defines values for IdentityType. \ - * {@link KnownIdentityType} can be used interchangeably with IdentityType, + * Defines values for ReplicationLinkType. \ + * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned,UserAssigned** + * **GEO** \ + * **NAMED** \ + * **STANDBY** */ -export type IdentityType = string; +export type ReplicationLinkType = string; -/** Known values of {@link ManagedInstancePropertiesProvisioningState} that the service accepts. */ -export enum KnownManagedInstancePropertiesProvisioningState { - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Updating */ - Updating = "Updating", - /** Unknown */ - Unknown = "Unknown", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Accepted */ - Accepted = "Accepted", - /** Created */ - Created = "Created", - /** Deleted */ - Deleted = "Deleted", - /** Unrecognized */ - Unrecognized = "Unrecognized", - /** Running */ - Running = "Running", - /** Canceled */ - Canceled = "Canceled", - /** NotSpecified */ - NotSpecified = "NotSpecified", - /** Registering */ - Registering = "Registering", - /** TimedOut */ - TimedOut = "TimedOut" +/** Known values of {@link ServerConfigurationOptionName} that the service accepts. */ +export enum KnownServerConfigurationOptionName { + /** AllowPolybaseExport */ + AllowPolybaseExport = "allowPolybaseExport" } /** - * Defines values for ManagedInstancePropertiesProvisioningState. \ - * {@link KnownManagedInstancePropertiesProvisioningState} can be used interchangeably with ManagedInstancePropertiesProvisioningState, + * Defines values for ServerConfigurationOptionName. \ + * {@link KnownServerConfigurationOptionName} can be used interchangeably with ServerConfigurationOptionName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ - * **Deleting** \ - * **Updating** \ - * **Unknown** \ - * **Succeeded** \ - * **Failed** \ - * **Accepted** \ - * **Created** \ - * **Deleted** \ - * **Unrecognized** \ - * **Running** \ - * **Canceled** \ - * **NotSpecified** \ - * **Registering** \ - * **TimedOut** + * **allowPolybaseExport** */ -export type ManagedInstancePropertiesProvisioningState = string; +export type ServerConfigurationOptionName = string; -/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ -export enum KnownManagedServerCreateMode { +/** Known values of {@link ServerConnectionType} that the service accepts. */ +export enum KnownServerConnectionType { /** Default */ Default = "Default", - /** PointInTimeRestore */ - PointInTimeRestore = "PointInTimeRestore" + /** Redirect */ + Redirect = "Redirect", + /** Proxy */ + Proxy = "Proxy" } /** - * Defines values for ManagedServerCreateMode. \ - * {@link KnownManagedServerCreateMode} can be used interchangeably with ManagedServerCreateMode, + * Defines values for ServerConnectionType. \ + * {@link KnownServerConnectionType} can be used interchangeably with ServerConnectionType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** \ - * **PointInTimeRestore** + * **Redirect** \ + * **Proxy** */ -export type ManagedServerCreateMode = string; +export type ServerConnectionType = string; -/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ -export enum KnownManagedInstanceLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link ConnectionPolicyName} that the service accepts. */ +export enum KnownConnectionPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for ManagedInstanceLicenseType. \ - * {@link KnownManagedInstanceLicenseType} can be used interchangeably with ManagedInstanceLicenseType, + * Defines values for ConnectionPolicyName. \ + * {@link KnownConnectionPolicyName} can be used interchangeably with ConnectionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **LicenseIncluded** \ - * **BasePrice** + * **default** */ -export type ManagedInstanceLicenseType = string; +export type ConnectionPolicyName = string; -/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ -export enum KnownManagedInstanceProxyOverride { - /** Proxy */ - Proxy = "Proxy", - /** Redirect */ - Redirect = "Redirect", +/** Known values of {@link DevOpsAuditingSettingsName} that the service accepts. */ +export enum KnownDevOpsAuditingSettingsName { /** Default */ Default = "Default" } /** - * Defines values for ManagedInstanceProxyOverride. \ - * {@link KnownManagedInstanceProxyOverride} can be used interchangeably with ManagedInstanceProxyOverride, + * Defines values for DevOpsAuditingSettingsName. \ + * {@link KnownDevOpsAuditingSettingsName} can be used interchangeably with DevOpsAuditingSettingsName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Proxy** \ - * **Redirect** \ * **Default** */ -export type ManagedInstanceProxyOverride = string; +export type DevOpsAuditingSettingsName = string; -/** Known values of {@link PrincipalType} that the service accepts. */ -export enum KnownPrincipalType { - /** User */ - User = "User", - /** Group */ - Group = "Group", - /** Application */ - Application = "Application" +/** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ +export enum KnownServerTrustGroupPropertiesTrustScopesItem { + /** GlobalTransactions */ + GlobalTransactions = "GlobalTransactions", + /** ServiceBroker */ + ServiceBroker = "ServiceBroker" } /** - * Defines values for PrincipalType. \ - * {@link KnownPrincipalType} can be used interchangeably with PrincipalType, + * Defines values for ServerTrustGroupPropertiesTrustScopesItem. \ + * {@link KnownServerTrustGroupPropertiesTrustScopesItem} can be used interchangeably with ServerTrustGroupPropertiesTrustScopesItem, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **User** \ - * **Group** \ - * **Application** + * **GlobalTransactions** \ + * **ServiceBroker** */ -export type PrincipalType = string; +export type ServerTrustGroupPropertiesTrustScopesItem = string; -/** Known values of {@link ServicePrincipalType} that the service accepts. */ -export enum KnownServicePrincipalType { - /** None */ - None = "None", - /** SystemAssigned */ - SystemAssigned = "SystemAssigned" +/** Known values of {@link ServerPublicNetworkAccessFlag} that the service accepts. */ +export enum KnownServerPublicNetworkAccessFlag { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", + /** SecuredByPerimeter */ + SecuredByPerimeter = "SecuredByPerimeter" } /** - * Defines values for ServicePrincipalType. \ - * {@link KnownServicePrincipalType} can be used interchangeably with ServicePrincipalType, + * Defines values for ServerPublicNetworkAccessFlag. \ + * {@link KnownServerPublicNetworkAccessFlag} can be used interchangeably with ServerPublicNetworkAccessFlag, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **SystemAssigned** + * **Enabled** \ + * **Disabled** \ + * **SecuredByPerimeter** */ -export type ServicePrincipalType = string; +export type ServerPublicNetworkAccessFlag = string; -/** Known values of {@link AggregationFunctionType} that the service accepts. */ -export enum KnownAggregationFunctionType { - /** Avg */ - Avg = "avg", - /** Min */ - Min = "min", - /** Max */ - Max = "max", - /** Stdev */ - Stdev = "stdev", - /** Sum */ - Sum = "sum" +/** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ +export enum KnownServerWorkspaceFeature { + /** Connected */ + Connected = "Connected", + /** Disconnected */ + Disconnected = "Disconnected" } /** - * Defines values for AggregationFunctionType. \ - * {@link KnownAggregationFunctionType} can be used interchangeably with AggregationFunctionType, + * Defines values for ServerWorkspaceFeature. \ + * {@link KnownServerWorkspaceFeature} can be used interchangeably with ServerWorkspaceFeature, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **avg** \ - * **min** \ - * **max** \ - * **stdev** \ - * **sum** + * **Connected** \ + * **Disconnected** */ -export type AggregationFunctionType = string; +export type ServerWorkspaceFeature = string; -/** Known values of {@link MetricType} that the service accepts. */ -export enum KnownMetricType { - /** Cpu */ - Cpu = "cpu", - /** Io */ - Io = "io", - /** LogIo */ - LogIo = "logIo", - /** Duration */ - Duration = "duration", - /** Dtu */ - Dtu = "dtu" +/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ +export enum KnownServerNetworkAccessFlag { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for MetricType. \ - * {@link KnownMetricType} can be used interchangeably with MetricType, + * Defines values for ServerNetworkAccessFlag. \ + * {@link KnownServerNetworkAccessFlag} can be used interchangeably with ServerNetworkAccessFlag, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **cpu** \ - * **io** \ - * **logIo** \ - * **duration** \ - * **dtu** + * **Enabled** \ + * **Disabled** */ -export type MetricType = string; +export type ServerNetworkAccessFlag = string; -/** Known values of {@link ManagedLedgerDigestUploadsState} that the service accepts. */ -export enum KnownManagedLedgerDigestUploadsState { +/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ +export enum KnownSqlAgentConfigurationPropertiesState { /** Enabled */ Enabled = "Enabled", /** Disabled */ @@ -11310,345 +11241,305 @@ export enum KnownManagedLedgerDigestUploadsState { } /** - * Defines values for ManagedLedgerDigestUploadsState. \ - * {@link KnownManagedLedgerDigestUploadsState} can be used interchangeably with ManagedLedgerDigestUploadsState, + * Defines values for SqlAgentConfigurationPropertiesState. \ + * {@link KnownSqlAgentConfigurationPropertiesState} can be used interchangeably with SqlAgentConfigurationPropertiesState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Enabled** \ * **Disabled** */ -export type ManagedLedgerDigestUploadsState = string; +export type SqlAgentConfigurationPropertiesState = string; -/** Known values of {@link ManagedLedgerDigestUploadsName} that the service accepts. */ -export enum KnownManagedLedgerDigestUploadsName { - /** Current */ - Current = "current" +/** Known values of {@link StartStopScheduleName} that the service accepts. */ +export enum KnownStartStopScheduleName { + /** Default */ + Default = "default" } /** - * Defines values for ManagedLedgerDigestUploadsName. \ - * {@link KnownManagedLedgerDigestUploadsName} can be used interchangeably with ManagedLedgerDigestUploadsName, + * Defines values for StartStopScheduleName. \ + * {@link KnownStartStopScheduleName} can be used interchangeably with StartStopScheduleName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **current** + * **default** */ -export type ManagedLedgerDigestUploadsName = string; +export type StartStopScheduleName = string; -/** Known values of {@link ServerConfigurationOptionName} that the service accepts. */ -export enum KnownServerConfigurationOptionName { - /** AllowPolybaseExport */ - AllowPolybaseExport = "allowPolybaseExport" +/** Known values of {@link SyncAgentState} that the service accepts. */ +export enum KnownSyncAgentState { + /** Online */ + Online = "Online", + /** Offline */ + Offline = "Offline", + /** NeverConnected */ + NeverConnected = "NeverConnected" +} + +/** + * Defines values for SyncAgentState. \ + * {@link KnownSyncAgentState} can be used interchangeably with SyncAgentState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Online** \ + * **Offline** \ + * **NeverConnected** + */ +export type SyncAgentState = string; + +/** Known values of {@link SyncMemberDbType} that the service accepts. */ +export enum KnownSyncMemberDbType { + /** AzureSqlDatabase */ + AzureSqlDatabase = "AzureSqlDatabase", + /** SqlServerDatabase */ + SqlServerDatabase = "SqlServerDatabase" +} + +/** + * Defines values for SyncMemberDbType. \ + * {@link KnownSyncMemberDbType} can be used interchangeably with SyncMemberDbType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureSqlDatabase** \ + * **SqlServerDatabase** + */ +export type SyncMemberDbType = string; + +/** Known values of {@link SyncConflictResolutionPolicy} that the service accepts. */ +export enum KnownSyncConflictResolutionPolicy { + /** HubWin */ + HubWin = "HubWin", + /** MemberWin */ + MemberWin = "MemberWin" +} + +/** + * Defines values for SyncConflictResolutionPolicy. \ + * {@link KnownSyncConflictResolutionPolicy} can be used interchangeably with SyncConflictResolutionPolicy, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **HubWin** \ + * **MemberWin** + */ +export type SyncConflictResolutionPolicy = string; + +/** Known values of {@link SyncGroupState} that the service accepts. */ +export enum KnownSyncGroupState { + /** NotReady */ + NotReady = "NotReady", + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning", + /** Progressing */ + Progressing = "Progressing", + /** Good */ + Good = "Good" } /** - * Defines values for ServerConfigurationOptionName. \ - * {@link KnownServerConfigurationOptionName} can be used interchangeably with ServerConfigurationOptionName, + * Defines values for SyncGroupState. \ + * {@link KnownSyncGroupState} can be used interchangeably with SyncGroupState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **allowPolybaseExport** + * **NotReady** \ + * **Error** \ + * **Warning** \ + * **Progressing** \ + * **Good** */ -export type ServerConfigurationOptionName = string; +export type SyncGroupState = string; -/** Known values of {@link ServerPublicNetworkAccessFlag} that the service accepts. */ -export enum KnownServerPublicNetworkAccessFlag { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", - /** SecuredByPerimeter */ - SecuredByPerimeter = "SecuredByPerimeter" +/** Known values of {@link SyncGroupsType} that the service accepts. */ +export enum KnownSyncGroupsType { + /** All */ + All = "All", + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning", + /** Success */ + Success = "Success" } /** - * Defines values for ServerPublicNetworkAccessFlag. \ - * {@link KnownServerPublicNetworkAccessFlag} can be used interchangeably with ServerPublicNetworkAccessFlag, + * Defines values for SyncGroupsType. \ + * {@link KnownSyncGroupsType} can be used interchangeably with SyncGroupsType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** \ - * **SecuredByPerimeter** + * **All** \ + * **Error** \ + * **Warning** \ + * **Success** */ -export type ServerPublicNetworkAccessFlag = string; +export type SyncGroupsType = string; -/** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ -export enum KnownServerWorkspaceFeature { - /** Connected */ - Connected = "Connected", - /** Disconnected */ - Disconnected = "Disconnected" +/** Known values of {@link SyncGroupLogType} that the service accepts. */ +export enum KnownSyncGroupLogType { + /** All */ + All = "All", + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning", + /** Success */ + Success = "Success" } /** - * Defines values for ServerWorkspaceFeature. \ - * {@link KnownServerWorkspaceFeature} can be used interchangeably with ServerWorkspaceFeature, + * Defines values for SyncGroupLogType. \ + * {@link KnownSyncGroupLogType} can be used interchangeably with SyncGroupLogType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Connected** \ - * **Disconnected** + * **All** \ + * **Error** \ + * **Warning** \ + * **Success** */ -export type ServerWorkspaceFeature = string; +export type SyncGroupLogType = string; -/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ -export enum KnownServerNetworkAccessFlag { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link SyncDirection} that the service accepts. */ +export enum KnownSyncDirection { + /** Bidirectional */ + Bidirectional = "Bidirectional", + /** OneWayMemberToHub */ + OneWayMemberToHub = "OneWayMemberToHub", + /** OneWayHubToMember */ + OneWayHubToMember = "OneWayHubToMember" } /** - * Defines values for ServerNetworkAccessFlag. \ - * {@link KnownServerNetworkAccessFlag} can be used interchangeably with ServerNetworkAccessFlag, + * Defines values for SyncDirection. \ + * {@link KnownSyncDirection} can be used interchangeably with SyncDirection, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **Bidirectional** \ + * **OneWayMemberToHub** \ + * **OneWayHubToMember** */ -export type ServerNetworkAccessFlag = string; +export type SyncDirection = string; -/** Known values of {@link ExternalGovernanceStatus} that the service accepts. */ -export enum KnownExternalGovernanceStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link SyncMemberState} that the service accepts. */ +export enum KnownSyncMemberState { + /** SyncInProgress */ + SyncInProgress = "SyncInProgress", + /** SyncSucceeded */ + SyncSucceeded = "SyncSucceeded", + /** SyncFailed */ + SyncFailed = "SyncFailed", + /** DisabledTombstoneCleanup */ + DisabledTombstoneCleanup = "DisabledTombstoneCleanup", + /** DisabledBackupRestore */ + DisabledBackupRestore = "DisabledBackupRestore", + /** SyncSucceededWithWarnings */ + SyncSucceededWithWarnings = "SyncSucceededWithWarnings", + /** SyncCancelling */ + SyncCancelling = "SyncCancelling", + /** SyncCancelled */ + SyncCancelled = "SyncCancelled", + /** UnProvisioned */ + UnProvisioned = "UnProvisioned", + /** Provisioning */ + Provisioning = "Provisioning", + /** Provisioned */ + Provisioned = "Provisioned", + /** ProvisionFailed */ + ProvisionFailed = "ProvisionFailed", + /** DeProvisioning */ + DeProvisioning = "DeProvisioning", + /** DeProvisioned */ + DeProvisioned = "DeProvisioned", + /** DeProvisionFailed */ + DeProvisionFailed = "DeProvisionFailed", + /** Reprovisioning */ + Reprovisioning = "Reprovisioning", + /** ReprovisionFailed */ + ReprovisionFailed = "ReprovisionFailed", + /** UnReprovisioned */ + UnReprovisioned = "UnReprovisioned" } /** - * Defines values for ExternalGovernanceStatus. \ - * {@link KnownExternalGovernanceStatus} can be used interchangeably with ExternalGovernanceStatus, + * Defines values for SyncMemberState. \ + * {@link KnownSyncMemberState} can be used interchangeably with SyncMemberState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **SyncInProgress** \ + * **SyncSucceeded** \ + * **SyncFailed** \ + * **DisabledTombstoneCleanup** \ + * **DisabledBackupRestore** \ + * **SyncSucceededWithWarnings** \ + * **SyncCancelling** \ + * **SyncCancelled** \ + * **UnProvisioned** \ + * **Provisioning** \ + * **Provisioned** \ + * **ProvisionFailed** \ + * **DeProvisioning** \ + * **DeProvisioned** \ + * **DeProvisionFailed** \ + * **Reprovisioning** \ + * **ReprovisionFailed** \ + * **UnReprovisioned** */ -export type ExternalGovernanceStatus = string; +export type SyncMemberState = string; -/** Known values of {@link StartStopScheduleName} that the service accepts. */ -export enum KnownStartStopScheduleName { - /** Default */ - Default = "default" +/** Known values of {@link DNSRefreshOperationStatus} that the service accepts. */ +export enum KnownDNSRefreshOperationStatus { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** InProgress */ + InProgress = "InProgress" } /** - * Defines values for StartStopScheduleName. \ - * {@link KnownStartStopScheduleName} can be used interchangeably with StartStopScheduleName, + * Defines values for DNSRefreshOperationStatus. \ + * {@link KnownDNSRefreshOperationStatus} can be used interchangeably with DNSRefreshOperationStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **Succeeded** \ + * **Failed** \ + * **InProgress** */ -export type StartStopScheduleName = string; +export type DNSRefreshOperationStatus = string; -/** Known values of {@link ServiceObjectiveName} that the service accepts. */ -export enum KnownServiceObjectiveName { - /** System */ - System = "System", - /** System0 */ - System0 = "System0", - /** System1 */ - System1 = "System1", - /** System2 */ - System2 = "System2", - /** System3 */ - System3 = "System3", - /** System4 */ - System4 = "System4", - /** System2L */ - System2L = "System2L", - /** System3L */ - System3L = "System3L", - /** System4L */ - System4L = "System4L", - /** Free */ - Free = "Free", - /** Basic */ - Basic = "Basic", - /** S0 */ - S0 = "S0", - /** S1 */ - S1 = "S1", - /** S2 */ - S2 = "S2", - /** S3 */ - S3 = "S3", - /** S4 */ - S4 = "S4", - /** S6 */ - S6 = "S6", - /** S7 */ - S7 = "S7", - /** S9 */ - S9 = "S9", - /** S12 */ - S12 = "S12", - /** P1 */ - P1 = "P1", - /** P2 */ - P2 = "P2", - /** P3 */ - P3 = "P3", - /** P4 */ - P4 = "P4", - /** P6 */ - P6 = "P6", - /** P11 */ - P11 = "P11", - /** P15 */ - P15 = "P15", - /** PRS1 */ - PRS1 = "PRS1", - /** PRS2 */ - PRS2 = "PRS2", - /** PRS4 */ - PRS4 = "PRS4", - /** PRS6 */ - PRS6 = "PRS6", - /** DW100 */ - DW100 = "DW100", - /** DW200 */ - DW200 = "DW200", - /** DW300 */ - DW300 = "DW300", - /** DW400 */ - DW400 = "DW400", - /** DW500 */ - DW500 = "DW500", - /** DW600 */ - DW600 = "DW600", - /** DW1000 */ - DW1000 = "DW1000", - /** DW1200 */ - DW1200 = "DW1200", - /** DW1000C */ - DW1000C = "DW1000c", - /** DW1500 */ - DW1500 = "DW1500", - /** DW1500C */ - DW1500C = "DW1500c", - /** DW2000 */ - DW2000 = "DW2000", - /** DW2000C */ - DW2000C = "DW2000c", - /** DW3000 */ - DW3000 = "DW3000", - /** DW2500C */ - DW2500C = "DW2500c", - /** DW3000C */ - DW3000C = "DW3000c", - /** DW6000 */ - DW6000 = "DW6000", - /** DW5000C */ - DW5000C = "DW5000c", - /** DW6000C */ - DW6000C = "DW6000c", - /** DW7500C */ - DW7500C = "DW7500c", - /** DW10000C */ - DW10000C = "DW10000c", - /** DW15000C */ - DW15000C = "DW15000c", - /** DW30000C */ - DW30000C = "DW30000c", - /** DS100 */ - DS100 = "DS100", - /** DS200 */ - DS200 = "DS200", - /** DS300 */ - DS300 = "DS300", - /** DS400 */ - DS400 = "DS400", - /** DS500 */ - DS500 = "DS500", - /** DS600 */ - DS600 = "DS600", - /** DS1000 */ - DS1000 = "DS1000", - /** DS1200 */ - DS1200 = "DS1200", - /** DS1500 */ - DS1500 = "DS1500", - /** DS2000 */ - DS2000 = "DS2000", - /** ElasticPool */ - ElasticPool = "ElasticPool" +/** Known values of {@link VirtualNetworkRuleState} that the service accepts. */ +export enum KnownVirtualNetworkRuleState { + /** Initializing */ + Initializing = "Initializing", + /** InProgress */ + InProgress = "InProgress", + /** Ready */ + Ready = "Ready", + /** Failed */ + Failed = "Failed", + /** Deleting */ + Deleting = "Deleting", + /** Unknown */ + Unknown = "Unknown" } /** - * Defines values for ServiceObjectiveName. \ - * {@link KnownServiceObjectiveName} can be used interchangeably with ServiceObjectiveName, + * Defines values for VirtualNetworkRuleState. \ + * {@link KnownVirtualNetworkRuleState} can be used interchangeably with VirtualNetworkRuleState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **System** \ - * **System0** \ - * **System1** \ - * **System2** \ - * **System3** \ - * **System4** \ - * **System2L** \ - * **System3L** \ - * **System4L** \ - * **Free** \ - * **Basic** \ - * **S0** \ - * **S1** \ - * **S2** \ - * **S3** \ - * **S4** \ - * **S6** \ - * **S7** \ - * **S9** \ - * **S12** \ - * **P1** \ - * **P2** \ - * **P3** \ - * **P4** \ - * **P6** \ - * **P11** \ - * **P15** \ - * **PRS1** \ - * **PRS2** \ - * **PRS4** \ - * **PRS6** \ - * **DW100** \ - * **DW200** \ - * **DW300** \ - * **DW400** \ - * **DW500** \ - * **DW600** \ - * **DW1000** \ - * **DW1200** \ - * **DW1000c** \ - * **DW1500** \ - * **DW1500c** \ - * **DW2000** \ - * **DW2000c** \ - * **DW3000** \ - * **DW2500c** \ - * **DW3000c** \ - * **DW6000** \ - * **DW5000c** \ - * **DW6000c** \ - * **DW7500c** \ - * **DW10000c** \ - * **DW15000c** \ - * **DW30000c** \ - * **DS100** \ - * **DS200** \ - * **DS300** \ - * **DS400** \ - * **DS500** \ - * **DS600** \ - * **DS1000** \ - * **DS1200** \ - * **DS1500** \ - * **DS2000** \ - * **ElasticPool** + * **Initializing** \ + * **InProgress** \ + * **Ready** \ + * **Failed** \ + * **Deleting** \ + * **Unknown** */ -export type ServiceObjectiveName = string; +export type VirtualNetworkRuleState = string; +/** Defines values for BlobAuditingPolicyState. */ +export type BlobAuditingPolicyState = "Enabled" | "Disabled"; /** Defines values for DataMaskingState. */ -export type DataMaskingState = "Disabled" | "Enabled"; +export type DataMaskingState = "Enabled" | "Disabled"; /** Defines values for DataMaskingRuleState. */ -export type DataMaskingRuleState = "Disabled" | "Enabled"; +export type DataMaskingRuleState = "Enabled" | "Disabled"; /** Defines values for DataMaskingFunction. */ export type DataMaskingFunction = | "Default" @@ -11657,8 +11548,8 @@ export type DataMaskingFunction = | "Number" | "SSN" | "Text"; -/** Defines values for GeoBackupPolicyState. */ -export type GeoBackupPolicyState = "Disabled" | "Enabled"; +/** Defines values for AdvancedThreatProtectionState. */ +export type AdvancedThreatProtectionState = "New" | "Enabled" | "Disabled"; /** Defines values for AdvisorStatus. */ export type AdvisorStatus = | "GA" @@ -11697,38 +11588,27 @@ export type AutomaticTuningDisabledReason = | "NotSupported"; /** Defines values for SecurityAlertsPolicyState. */ export type SecurityAlertsPolicyState = "Enabled" | "Disabled"; +/** Defines values for SqlVulnerabilityAssessmentState. */ +export type SqlVulnerabilityAssessmentState = "Enabled" | "Disabled"; /** Defines values for VulnerabilityAssessmentPolicyBaselineName. */ export type VulnerabilityAssessmentPolicyBaselineName = "master" | "default"; -/** Defines values for JobScheduleType. */ -export type JobScheduleType = "Once" | "Recurring"; +/** Defines values for GeoBackupPolicyState. */ +export type GeoBackupPolicyState = "Enabled" | "Disabled"; /** Defines values for JobTargetGroupMembershipType. */ export type JobTargetGroupMembershipType = "Include" | "Exclude"; -/** Defines values for CapabilityStatus. */ -export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled"; -/** Defines values for SecurityAlertPolicyState. */ -export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; -/** Defines values for SecurityEventType. */ -export type SecurityEventType = - | "Undefined" - | "SqlInjectionVulnerability" - | "SqlInjectionExploit"; -/** Defines values for TransparentDataEncryptionState. */ -export type TransparentDataEncryptionState = "Enabled" | "Disabled"; -/** Defines values for RestorePointType. */ -export type RestorePointType = "CONTINUOUS" | "DISCRETE"; -/** Defines values for AutomaticTuningServerMode. */ -export type AutomaticTuningServerMode = "Custom" | "Auto" | "Unspecified"; -/** Defines values for AutomaticTuningServerReason. */ -export type AutomaticTuningServerReason = - | "Default" - | "Disabled" - | "AutoConfigured"; -/** Defines values for BlobAuditingPolicyState. */ -export type BlobAuditingPolicyState = "Enabled" | "Disabled"; +/** Defines values for JobScheduleType. */ +export type JobScheduleType = "Once" | "Recurring"; /** Defines values for LedgerDigestUploadsState. */ export type LedgerDigestUploadsState = "Enabled" | "Disabled"; -/** Defines values for SensitivityLabelSource. */ -export type SensitivityLabelSource = "current" | "recommended"; +/** Defines values for CapabilityStatus. */ +export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled"; +/** Defines values for SecurityAlertPolicyState. */ +export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; +/** Defines values for SecurityEventType. */ +export type SecurityEventType = + | "Undefined" + | "SqlInjectionVulnerability" + | "SqlInjectionExploit"; /** Defines values for SensitivityLabelRank. */ export type SensitivityLabelRank = | "None" @@ -11740,10 +11620,10 @@ export type SensitivityLabelRank = export type SensitivityLabelUpdateKind = "set" | "remove"; /** Defines values for RecommendedSensitivityLabelUpdateKind. */ export type RecommendedSensitivityLabelUpdateKind = "enable" | "disable"; -/** Defines values for AdvancedThreatProtectionState. */ -export type AdvancedThreatProtectionState = "New" | "Enabled" | "Disabled"; -/** Defines values for SqlVulnerabilityAssessmentState. */ -export type SqlVulnerabilityAssessmentState = "Enabled" | "Disabled"; +/** Defines values for SensitivityLabelSource. */ +export type SensitivityLabelSource = "current" | "recommended"; +/** Defines values for TransparentDataEncryptionState. */ +export type TransparentDataEncryptionState = "Enabled" | "Disabled"; /** Defines values for ReplicationRole. */ export type ReplicationRole = | "Primary" @@ -11751,15 +11631,184 @@ export type ReplicationRole = | "NonReadableSecondary" | "Source" | "Copy"; +/** Defines values for RestorePointType. */ +export type RestorePointType = "CONTINUOUS" | "DISCRETE"; +/** Defines values for AutomaticTuningServerMode. */ +export type AutomaticTuningServerMode = "Custom" | "Auto" | "Unspecified"; +/** Defines values for AutomaticTuningServerReason. */ +export type AutomaticTuningServerReason = + | "Default" + | "Disabled" + | "AutoConfigured"; /** Defines values for CheckNameAvailabilityReason. */ export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists"; /** Optional parameters. */ -export interface DataMaskingPoliciesCreateOrUpdateOptionalParams +export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; + +/** Optional parameters. */ +export interface BackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; + +/** Optional parameters. */ +export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + /** Contains response data for the createOrUpdate operation. */ -export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; +export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; + +/** Optional parameters. */ +export interface BackupShortTermRetentionPoliciesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; + +/** Optional parameters. */ +export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; + +/** Optional parameters. */ +export interface ServerBlobAuditingPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface ServerBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface DatabaseBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; + +/** Optional parameters. */ +export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; + +/** Optional parameters. */ +export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; /** Optional parameters. */ export interface DataMaskingPoliciesGetOptionalParams @@ -11769,11 +11818,11 @@ export interface DataMaskingPoliciesGetOptionalParams export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; /** Optional parameters. */ -export interface DataMaskingRulesCreateOrUpdateOptionalParams +export interface DataMaskingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; +export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; /** Optional parameters. */ export interface DataMaskingRulesListByDatabaseOptionalParams @@ -11783,75 +11832,157 @@ export interface DataMaskingRulesListByDatabaseOptionalParams export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; /** Optional parameters. */ -export interface GeoBackupPoliciesCreateOrUpdateOptionalParams +export interface DataMaskingRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; + +/** Optional parameters. */ +export interface DataMaskingRulesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DataMaskingRulesListByDatabaseNextResponse = DataMaskingRuleListResult; + +/** Optional parameters. */ +export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; + +/** Optional parameters. */ +export interface DataWarehouseUserActivitiesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; + +/** Optional parameters. */ +export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = DatabaseAdvancedThreatProtectionListResult; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseAdvancedThreatProtectionSettingsGetResponse = DatabaseAdvancedThreatProtection; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = DatabaseAdvancedThreatProtection; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = DatabaseAdvancedThreatProtectionListResult; + +/** Optional parameters. */ +export interface DatabaseAdvisorsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseAdvisorsListByDatabaseResponse = Advisor[]; /** Optional parameters. */ -export interface GeoBackupPoliciesGetOptionalParams +export interface DatabaseAdvisorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; +export type DatabaseAdvisorsGetResponse = Advisor; /** Optional parameters. */ -export interface GeoBackupPoliciesListByDatabaseOptionalParams +export interface DatabaseAdvisorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; +/** Contains response data for the update operation. */ +export type DatabaseAdvisorsUpdateResponse = Advisor; /** Optional parameters. */ -export interface DatabasesListMetricsOptionalParams +export interface DatabaseAutomaticTuningGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type DatabasesListMetricsResponse = MetricListResult; +/** Contains response data for the get operation. */ +export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning; /** Optional parameters. */ -export interface DatabasesListMetricDefinitionsOptionalParams +export interface DatabaseAutomaticTuningUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetricDefinitions operation. */ -export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; +/** Contains response data for the update operation. */ +export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning; /** Optional parameters. */ -export interface DatabasesListByServerOptionalParams +export interface DatabaseColumnsListByDatabaseOptionalParams extends coreClient.OperationOptions { - skipToken?: string; + /** Array of Get3ItemsItem */ + schema?: string[]; + /** Array of Get4ItemsItem */ + table?: string[]; + /** Array of Get5ItemsItem */ + column?: string[]; + /** Array of Get6ItemsItem */ + orderBy?: string[]; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; } -/** Contains response data for the listByServer operation. */ -export type DatabasesListByServerResponse = DatabaseListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface DatabasesGetOptionalParams +export interface DatabaseColumnsListByTableOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; /** An OData filter expression that filters elements in the collection. */ filter?: string; } +/** Contains response data for the listByTable operation. */ +export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; + +/** Optional parameters. */ +export interface DatabaseColumnsGetOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the get operation. */ -export type DatabasesGetResponse = Database; +export type DatabaseColumnsGetResponse = DatabaseColumn; /** Optional parameters. */ -export interface DatabasesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatabaseColumnsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabasesCreateOrUpdateResponse = Database; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface DatabasesDeleteOptionalParams +export interface DatabaseColumnsListByTableNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTableNext operation. */ +export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; + +/** Optional parameters. */ +export interface DatabaseEncryptionProtectorsRevalidateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11860,7 +11991,7 @@ export interface DatabasesDeleteOptionalParams } /** Optional parameters. */ -export interface DatabasesUpdateOptionalParams +export interface DatabaseEncryptionProtectorsRevertOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11868,11 +11999,19 @@ export interface DatabasesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type DatabasesUpdateResponse = Database; +/** Optional parameters. */ +export interface DatabaseExtensionsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; /** Optional parameters. */ -export interface DatabasesExportOptionalParams +export interface DatabaseExtensionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatabaseExtensionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11880,50 +12019,137 @@ export interface DatabasesExportOptionalParams resumeFrom?: string; } -/** Contains response data for the export operation. */ -export type DatabasesExportResponse = ImportExportOperationResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; /** Optional parameters. */ -export interface DatabasesFailoverOptionalParams - extends coreClient.OperationOptions { - /** The type of replica to be failed over. */ - replicaType?: ReplicaType; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatabaseExtensionsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; /** Optional parameters. */ -export interface DatabasesImportOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatabaseOperationsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the import operation. */ -export type DatabasesImportResponse = ImportExportOperationResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; /** Optional parameters. */ -export interface DatabasesRenameOptionalParams +export interface DatabaseOperationsCancelOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DatabasesPauseOptionalParams +export interface DatabaseOperationsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; + +/** Optional parameters. */ +export interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseAdvisor operation. */ +export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; + +/** Optional parameters. */ +export interface DatabaseRecommendedActionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseRecommendedActionsGetResponse = RecommendedAction; + +/** Optional parameters. */ +export interface DatabaseRecommendedActionsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type DatabaseRecommendedActionsUpdateResponse = RecommendedAction; + +/** Optional parameters. */ +export interface DatabaseSchemasListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the pause operation. */ -export type DatabasesPauseResponse = Database; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface DatabasesResumeOptionalParams +export interface DatabaseSchemasGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseSchemasGetResponse = DatabaseSchema; + +/** Optional parameters. */ +export interface DatabaseSchemasListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; + +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; + +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; + +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; + +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11931,434 +12157,450 @@ export interface DatabasesResumeOptionalParams resumeFrom?: string; } -/** Contains response data for the resume operation. */ -export type DatabasesResumeResponse = Database; +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByBaseline operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface DatabasesUpgradeDataWarehouseOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DatabasesListByElasticPoolOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type DatabasesListByElasticPoolResponse = DatabaseListResult; +/** Contains response data for the listByBaselineNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ -export interface DatabasesListInaccessibleByServerOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByServer operation. */ -export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; +/** Contains response data for the listByScan operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ -export interface DatabasesListByServerNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type DatabasesListByServerNextResponse = DatabaseListResult; +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; /** Optional parameters. */ -export interface DatabasesListByElasticPoolNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPoolNext operation. */ -export type DatabasesListByElasticPoolNextResponse = DatabaseListResult; +/** Contains response data for the listByScanNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ -export interface DatabasesListInaccessibleByServerNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByServerNext operation. */ -export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; +/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface ElasticPoolsListMetricsOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type ElasticPoolsListMetricsResponse = MetricListResult; +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface ElasticPoolsListMetricDefinitionsOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetricDefinitions operation. */ -export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult; +/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface ElasticPoolsListByServerOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; -} +export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ElasticPoolsListByServerResponse = ElasticPoolListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse = SqlVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ElasticPoolsGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ElasticPoolsGetResponse = ElasticPool; +export type DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; /** Optional parameters. */ -export interface ElasticPoolsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ElasticPoolsCreateOrUpdateResponse = ElasticPool; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse = SqlVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ElasticPoolsDeleteOptionalParams +export interface DatabaseTablesListBySchemaOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } +/** Contains response data for the listBySchema operation. */ +export type DatabaseTablesListBySchemaResponse = DatabaseTableListResult; + /** Optional parameters. */ -export interface ElasticPoolsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatabaseTablesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ElasticPoolsUpdateResponse = ElasticPool; +/** Contains response data for the get operation. */ +export type DatabaseTablesGetResponse = DatabaseTable; /** Optional parameters. */ -export interface ElasticPoolsFailoverOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatabaseTablesListBySchemaNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySchemaNext operation. */ +export type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface ElasticPoolsListByServerNextOptionalParams +export interface DatabaseUsagesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; /** Optional parameters. */ -export interface ServerCommunicationLinksDeleteOptionalParams +export interface DatabaseUsagesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; + /** Optional parameters. */ -export interface ServerCommunicationLinksGetOptionalParams +export interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerCommunicationLinksGetResponse = ServerCommunicationLink; +export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface ServerCommunicationLinksCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; +export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface ServerCommunicationLinksListByServerOptionalParams +export interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; - /** Optional parameters. */ -export interface ServiceObjectivesGetOptionalParams +export interface DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServiceObjectivesGetResponse = ServiceObjective; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface ServiceObjectivesListByServerOptionalParams +export interface DatabaseVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; +/** Contains response data for the get operation. */ +export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface ElasticPoolActivitiesListByElasticPoolOptionalParams +export interface DatabaseVulnerabilityAssessmentScansExportOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; +/** Contains response data for the export operation. */ +export type DatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ -export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; +export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ServerUsagesListByServerOptionalParams +export interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerUsagesListByServerResponse = ServerUsageListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface DatabaseAdvisorsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type DatabaseAdvisorsListByDatabaseResponse = Advisor[]; +export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface DatabaseAdvisorsGetOptionalParams +export interface DatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseAdvisorsGetResponse = Advisor; +export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface DatabaseAdvisorsUpdateOptionalParams +export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseAdvisorsUpdateResponse = Advisor; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface DatabaseAutomaticTuningGetOptionalParams +export interface DatabaseVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning; - /** Optional parameters. */ -export interface DatabaseAutomaticTuningUpdateOptionalParams +export interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface DatabaseColumnsListByDatabaseOptionalParams +export interface DatabasesListByServerOptionalParams extends coreClient.OperationOptions { - /** Array of Get3ItemsItem */ - schema?: string[]; - /** Array of Get4ItemsItem */ - table?: string[]; - /** Array of Get5ItemsItem */ - column?: string[]; - /** Array of Get6ItemsItem */ - orderBy?: string[]; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; + skipToken?: string; } -/** Contains response data for the listByDatabase operation. */ -export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; +/** Contains response data for the listByServer operation. */ +export type DatabasesListByServerResponse = DatabaseListResult; /** Optional parameters. */ -export interface DatabaseColumnsListByTableOptionalParams +export interface DatabasesGetOptionalParams extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; /** An OData filter expression that filters elements in the collection. */ filter?: string; } -/** Contains response data for the listByTable operation. */ -export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; +/** Contains response data for the get operation. */ +export type DatabasesGetResponse = Database; /** Optional parameters. */ -export interface DatabaseColumnsGetOptionalParams - extends coreClient.OperationOptions {} +export interface DatabasesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type DatabaseColumnsGetResponse = DatabaseColumn; +/** Contains response data for the createOrUpdate operation. */ +export type DatabasesCreateOrUpdateResponse = Database; /** Optional parameters. */ -export interface DatabaseColumnsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface DatabasesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Optional parameters. */ +export interface DatabasesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type DatabasesUpdateResponse = Database; /** Optional parameters. */ -export interface DatabaseColumnsListByTableNextOptionalParams - extends coreClient.OperationOptions {} +export interface DatabasesExportOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByTableNext operation. */ -export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; +/** Contains response data for the export operation. */ +export type DatabasesExportResponse = ImportExportOperationResult; /** Optional parameters. */ -export interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseAdvisor operation. */ -export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; +export interface DatabasesFailoverOptionalParams + extends coreClient.OperationOptions { + /** The type of replica to be failed over. */ + replicaType?: ReplicaType; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DatabaseRecommendedActionsGetOptionalParams - extends coreClient.OperationOptions {} +export interface DatabasesImportOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type DatabaseRecommendedActionsGetResponse = RecommendedAction; +/** Contains response data for the import operation. */ +export type DatabasesImportResponse = ImportExportOperationResult; /** Optional parameters. */ -export interface DatabaseRecommendedActionsUpdateOptionalParams +export interface DatabasesRenameOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseRecommendedActionsUpdateResponse = RecommendedAction; - /** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseOptionalParams +export interface DatabasesPauseOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +/** Contains response data for the pause operation. */ +export type DatabasesPauseResponse = Database; /** Optional parameters. */ -export interface DatabaseSchemasGetOptionalParams - extends coreClient.OperationOptions {} +export interface DatabasesResumeOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type DatabaseSchemasGetResponse = DatabaseSchema; +/** Contains response data for the resume operation. */ +export type DatabasesResumeResponse = Database; /** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; +export interface DatabasesUpgradeDataWarehouseOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesGetOptionalParams +export interface DatabasesListByElasticPoolOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; +/** Contains response data for the listByElasticPool operation. */ +export type DatabasesListByElasticPoolResponse = DatabaseListResult; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface DatabasesListInaccessibleByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; +/** Contains response data for the listInaccessibleByServer operation. */ +export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams +export interface DatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; +/** Contains response data for the listByServerNext operation. */ +export type DatabasesListByServerNextResponse = DatabaseListResult; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams +export interface DatabasesListByElasticPoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; +/** Contains response data for the listByElasticPoolNext operation. */ +export type DatabasesListByElasticPoolNextResponse = DatabaseListResult; /** Optional parameters. */ -export interface DatabaseTablesListBySchemaOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface DatabasesListInaccessibleByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listBySchema operation. */ -export type DatabaseTablesListBySchemaResponse = DatabaseTableListResult; +/** Contains response data for the listInaccessibleByServerNext operation. */ +export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; /** Optional parameters. */ -export interface DatabaseTablesGetOptionalParams +export interface DeletedServersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseTablesGetResponse = DatabaseTable; +/** Contains response data for the list operation. */ +export type DeletedServersListResponse = DeletedServerListResult; /** Optional parameters. */ -export interface DatabaseTablesListBySchemaNextOptionalParams +export interface DeletedServersListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySchemaNext operation. */ -export type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; +/** Contains response data for the listByLocation operation. */ +export type DeletedServersListByLocationResponse = DeletedServerListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams +export interface DeletedServersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type DeletedServersGetResponse = DeletedServer; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export interface DeletedServersRecoverOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the recover operation. */ +export type DeletedServersRecoverResponse = DeletedServer; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsGetOptionalParams +export interface DeletedServersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +/** Contains response data for the listNext operation. */ +export type DeletedServersListNextResponse = DeletedServerListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface DeletedServersListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; - -/** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByLocationNext operation. */ +export type DeletedServersListByLocationNextResponse = DeletedServerListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams +export interface DistributedAvailabilityGroupsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the listByInstance operation. */ +export type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams +export interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the get operation. */ +export type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams +export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12366,78 +12608,86 @@ export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; +export interface DistributedAvailabilityGroupsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansExportOptionalParams - extends coreClient.OperationOptions {} +export interface DistributedAvailabilityGroupsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the export operation. */ -export type DatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; +/** Contains response data for the update operation. */ +export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface DistributedAvailabilityGroupsSetRoleOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the setRole operation. */ +export type DistributedAvailabilityGroupsSetRoleResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesGetOptionalParams +export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; +/** Contains response data for the listByInstanceNext operation. */ +export type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams +export interface ElasticPoolOperationsListByElasticPoolOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; +/** Contains response data for the listByElasticPool operation. */ +export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams +export interface ElasticPoolOperationsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; - /** Optional parameters. */ -export interface DeletedServersListOptionalParams +export interface ElasticPoolOperationsListByElasticPoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DeletedServersListResponse = DeletedServerListResult; +/** Contains response data for the listByElasticPoolNext operation. */ +export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; /** Optional parameters. */ -export interface DeletedServersGetOptionalParams - extends coreClient.OperationOptions {} +export interface ElasticPoolsListByServerOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; +} -/** Contains response data for the get operation. */ -export type DeletedServersGetResponse = DeletedServer; +/** Contains response data for the listByServer operation. */ +export type ElasticPoolsListByServerResponse = ElasticPoolListResult; /** Optional parameters. */ -export interface DeletedServersListByLocationOptionalParams +export interface ElasticPoolsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type DeletedServersListByLocationResponse = DeletedServerListResult; +/** Contains response data for the get operation. */ +export type ElasticPoolsGetResponse = ElasticPool; /** Optional parameters. */ -export interface DeletedServersRecoverOptionalParams +export interface ElasticPoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12445,40 +12695,45 @@ export interface DeletedServersRecoverOptionalParams resumeFrom?: string; } -/** Contains response data for the recover operation. */ -export type DeletedServersRecoverResponse = DeletedServer; +/** Contains response data for the createOrUpdate operation. */ +export type ElasticPoolsCreateOrUpdateResponse = ElasticPool; /** Optional parameters. */ -export interface DeletedServersListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type DeletedServersListNextResponse = DeletedServerListResult; +export interface ElasticPoolsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DeletedServersListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type DeletedServersListByLocationNextResponse = DeletedServerListResult; +export interface ElasticPoolsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Optional parameters. */ -export interface ElasticPoolOperationsCancelOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type ElasticPoolsUpdateResponse = ElasticPool; /** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; +export interface ElasticPoolsFailoverOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolNextOptionalParams +export interface ElasticPoolsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPoolNext operation. */ -export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; +/** Contains response data for the listByServerNext operation. */ +export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; /** Optional parameters. */ export interface EncryptionProtectorsListByServerOptionalParams @@ -12522,6 +12777,34 @@ export interface EncryptionProtectorsListByServerNextOptionalParams /** Contains response data for the listByServerNext operation. */ export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult; +/** Optional parameters. */ +export interface EndpointCertificatesListByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstance operation. */ +export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; + +/** Optional parameters. */ +export interface EndpointCertificatesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type EndpointCertificatesGetResponse = EndpointCertificate; + +/** Optional parameters. */ +export interface EndpointCertificatesListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstanceNext operation. */ +export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; + +/** Optional parameters. */ +export interface FailoverGroupsListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type FailoverGroupsListByServerResponse = FailoverGroupListResult; + /** Optional parameters. */ export interface FailoverGroupsGetOptionalParams extends coreClient.OperationOptions {} @@ -12562,13 +12845,6 @@ export interface FailoverGroupsUpdateOptionalParams /** Contains response data for the update operation. */ export type FailoverGroupsUpdateResponse = FailoverGroup; -/** Optional parameters. */ -export interface FailoverGroupsListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type FailoverGroupsListByServerResponse = FailoverGroupListResult; - /** Optional parameters. */ export interface FailoverGroupsFailoverOptionalParams extends coreClient.OperationOptions { @@ -12593,6 +12869,18 @@ export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams /** Contains response data for the forceFailoverAllowDataLoss operation. */ export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; +/** Optional parameters. */ +export interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the tryPlannedBeforeForcedFailover operation. */ +export type FailoverGroupsTryPlannedBeforeForcedFailoverResponse = FailoverGroup; + /** Optional parameters. */ export interface FailoverGroupsListByServerNextOptionalParams extends coreClient.OperationOptions {} @@ -12600,6 +12888,20 @@ export interface FailoverGroupsListByServerNextOptionalParams /** Contains response data for the listByServerNext operation. */ export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; +/** Optional parameters. */ +export interface FirewallRulesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type FirewallRulesListByServerResponse = FirewallRuleListResult; + +/** Optional parameters. */ +export interface FirewallRulesReplaceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the replace operation. */ +export type FirewallRulesReplaceResponse = FirewallRule; + /** Optional parameters. */ export interface FirewallRulesGetOptionalParams extends coreClient.OperationOptions {} @@ -12619,35 +12921,88 @@ export interface FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface FirewallRulesListByServerOptionalParams +export interface FirewallRulesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; + +/** Optional parameters. */ +export interface GeoBackupPoliciesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type GeoBackupPoliciesListResponse = GeoBackupPolicyListResult; + +/** Optional parameters. */ +export interface GeoBackupPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; + +/** Optional parameters. */ +export interface GeoBackupPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; + +/** Optional parameters. */ +export interface GeoBackupPoliciesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type GeoBackupPoliciesListNextResponse = GeoBackupPolicyListResult; + +/** Optional parameters. */ +export interface IPv6FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type FirewallRulesListByServerResponse = FirewallRuleListResult; +export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface FirewallRulesReplaceOptionalParams +export interface IPv6FirewallRulesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the replace operation. */ -export type FirewallRulesReplaceResponse = FirewallRule; +/** Contains response data for the get operation. */ +export type IPv6FirewallRulesGetResponse = IPv6FirewallRule; /** Optional parameters. */ -export interface FirewallRulesListByServerNextOptionalParams +export interface IPv6FirewallRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; + +/** Optional parameters. */ +export interface IPv6FirewallRulesDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface IPv6FirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; +export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface InstancePoolsGetOptionalParams +export interface InstanceFailoverGroupsListByLocationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocation operation. */ +export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; + +/** Optional parameters. */ +export interface InstanceFailoverGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type InstancePoolsGetResponse = InstancePool; +export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface InstancePoolsCreateOrUpdateOptionalParams +export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12656,10 +13011,10 @@ export interface InstancePoolsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type InstancePoolsCreateOrUpdateResponse = InstancePool; +export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface InstancePoolsDeleteOptionalParams +export interface InstanceFailoverGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12668,7 +13023,7 @@ export interface InstancePoolsDeleteOptionalParams } /** Optional parameters. */ -export interface InstancePoolsUpdateOptionalParams +export interface InstanceFailoverGroupsFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12676,15 +13031,27 @@ export interface InstancePoolsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type InstancePoolsUpdateResponse = InstancePool; +/** Contains response data for the failover operation. */ +export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface InstancePoolsListByResourceGroupOptionalParams +export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the forceFailoverAllowDataLoss operation. */ +export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; + +/** Optional parameters. */ +export interface InstanceFailoverGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; +/** Contains response data for the listByLocationNext operation. */ +export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; /** Optional parameters. */ export interface InstancePoolsListOptionalParams @@ -12694,11 +13061,51 @@ export interface InstancePoolsListOptionalParams export type InstancePoolsListResponse = InstancePoolListResult; /** Optional parameters. */ -export interface InstancePoolsListByResourceGroupNextOptionalParams +export interface InstancePoolsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; + +/** Optional parameters. */ +export interface InstancePoolsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type InstancePoolsGetResponse = InstancePool; + +/** Optional parameters. */ +export interface InstancePoolsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type InstancePoolsCreateOrUpdateResponse = InstancePool; + +/** Optional parameters. */ +export interface InstancePoolsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface InstancePoolsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type InstancePoolsUpdateResponse = InstancePool; /** Optional parameters. */ export interface InstancePoolsListNextOptionalParams @@ -12707,6 +13114,13 @@ export interface InstancePoolsListNextOptionalParams /** Contains response data for the listNext operation. */ export type InstancePoolsListNextResponse = InstancePoolListResult; +/** Optional parameters. */ +export interface InstancePoolsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; + /** Optional parameters. */ export interface JobAgentsListByServerOptionalParams extends coreClient.OperationOptions {} @@ -12815,22 +13229,6 @@ export interface JobExecutionsListByAgentOptionalParams /** Contains response data for the listByAgent operation. */ export type JobExecutionsListByAgentResponse = JobExecutionListResult; -/** Optional parameters. */ -export interface JobExecutionsCancelOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface JobExecutionsCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the create operation. */ -export type JobExecutionsCreateResponse = JobExecution; - /** Optional parameters. */ export interface JobExecutionsListByJobOptionalParams extends coreClient.OperationOptions { @@ -12873,48 +13271,34 @@ export interface JobExecutionsCreateOrUpdateOptionalParams export type JobExecutionsCreateOrUpdateResponse = JobExecution; /** Optional parameters. */ -export interface JobExecutionsListByAgentNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAgentNext operation. */ -export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; - -/** Optional parameters. */ -export interface JobExecutionsListByJobNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByJobNext operation. */ -export type JobExecutionsListByJobNextResponse = JobExecutionListResult; - -/** Optional parameters. */ -export interface JobsListByAgentOptionalParams +export interface JobExecutionsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgent operation. */ -export type JobsListByAgentResponse = JobListResult; - /** Optional parameters. */ -export interface JobsGetOptionalParams extends coreClient.OperationOptions {} +export interface JobExecutionsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type JobsGetResponse = Job; +/** Contains response data for the create operation. */ +export type JobExecutionsCreateResponse = JobExecution; /** Optional parameters. */ -export interface JobsCreateOrUpdateOptionalParams +export interface JobExecutionsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type JobsCreateOrUpdateResponse = Job; - -/** Optional parameters. */ -export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByAgentNext operation. */ +export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface JobsListByAgentNextOptionalParams +export interface JobExecutionsListByJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobsListByAgentNextResponse = JobListResult; +/** Contains response data for the listByJobNext operation. */ +export type JobExecutionsListByJobNextResponse = JobExecutionListResult; /** Optional parameters. */ export interface JobStepExecutionsListByJobExecutionOptionalParams @@ -12952,20 +13336,6 @@ export interface JobStepExecutionsListByJobExecutionNextOptionalParams /** Contains response data for the listByJobExecutionNext operation. */ export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult; -/** Optional parameters. */ -export interface JobStepsListByVersionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByVersion operation. */ -export type JobStepsListByVersionResponse = JobStepListResult; - -/** Optional parameters. */ -export interface JobStepsGetByVersionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getByVersion operation. */ -export type JobStepsGetByVersionResponse = JobStep; - /** Optional parameters. */ export interface JobStepsListByJobOptionalParams extends coreClient.OperationOptions {} @@ -12992,11 +13362,18 @@ export interface JobStepsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JobStepsListByVersionNextOptionalParams +export interface JobStepsListByVersionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByVersionNext operation. */ -export type JobStepsListByVersionNextResponse = JobStepListResult; +/** Contains response data for the listByVersion operation. */ +export type JobStepsListByVersionResponse = JobStepListResult; + +/** Optional parameters. */ +export interface JobStepsGetByVersionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByVersion operation. */ +export type JobStepsGetByVersionResponse = JobStep; /** Optional parameters. */ export interface JobStepsListByJobNextOptionalParams @@ -13006,7 +13383,14 @@ export interface JobStepsListByJobNextOptionalParams export type JobStepsListByJobNextResponse = JobStepListResult; /** Optional parameters. */ -export interface JobTargetExecutionsListByJobExecutionOptionalParams +export interface JobStepsListByVersionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByVersionNext operation. */ +export type JobStepsListByVersionNextResponse = JobStepListResult; + +/** Optional parameters. */ +export interface JobTargetExecutionsListByStepOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; @@ -13024,11 +13408,18 @@ export interface JobTargetExecutionsListByJobExecutionOptionalParams top?: number; } -/** Contains response data for the listByJobExecution operation. */ -export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; +/** Contains response data for the listByStep operation. */ +export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; /** Optional parameters. */ -export interface JobTargetExecutionsListByStepOptionalParams +export interface JobTargetExecutionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type JobTargetExecutionsGetResponse = JobExecution; + +/** Optional parameters. */ +export interface JobTargetExecutionsListByJobExecutionOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; @@ -13046,15 +13437,15 @@ export interface JobTargetExecutionsListByStepOptionalParams top?: number; } -/** Contains response data for the listByStep operation. */ -export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; +/** Contains response data for the listByJobExecution operation. */ +export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; /** Optional parameters. */ -export interface JobTargetExecutionsGetOptionalParams +export interface JobTargetExecutionsListByStepNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JobTargetExecutionsGetResponse = JobExecution; +/** Contains response data for the listByStepNext operation. */ +export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; /** Optional parameters. */ export interface JobTargetExecutionsListByJobExecutionNextOptionalParams @@ -13063,13 +13454,6 @@ export interface JobTargetExecutionsListByJobExecutionNextOptionalParams /** Contains response data for the listByJobExecutionNext operation. */ export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; -/** Optional parameters. */ -export interface JobTargetExecutionsListByStepNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByStepNext operation. */ -export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; - /** Optional parameters. */ export interface JobTargetGroupsListByAgentOptionalParams extends coreClient.OperationOptions {} @@ -13124,367 +13508,317 @@ export interface JobVersionsListByJobNextOptionalParams export type JobVersionsListByJobNextResponse = JobVersionListResult; /** Optional parameters. */ -export interface CapabilitiesListByLocationOptionalParams - extends coreClient.OperationOptions { - /** If specified, restricts the response to only include the selected item. */ - include?: CapabilityGroup; -} - -/** Contains response data for the listByLocation operation. */ -export type CapabilitiesListByLocationResponse = LocationCapabilities; - -/** Optional parameters. */ -export interface LongTermRetentionPoliciesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; - -/** Optional parameters. */ -export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; - -/** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface MaintenanceWindowOptionsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; - -/** Optional parameters. */ -export interface MaintenanceWindowsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type MaintenanceWindowsGetResponse = MaintenanceWindows; - -/** Optional parameters. */ -export interface MaintenanceWindowsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; - -/** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; - -/** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; - -/** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface JobsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Array of Get3ItemsItem */ - schema?: string[]; - /** Array of Get4ItemsItem */ - table?: string[]; - /** Array of Get5ItemsItem */ - column?: string[]; - /** Array of Get6ItemsItem */ - orderBy?: string[]; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; -} - -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; +/** Contains response data for the listByAgent operation. */ +export type JobsListByAgentResponse = JobListResult; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface JobsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTable operation. */ -export type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult; +/** Contains response data for the get operation. */ +export type JobsGetResponse = Job; /** Optional parameters. */ -export interface ManagedDatabaseColumnsGetOptionalParams +export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; +/** Contains response data for the createOrUpdate operation. */ +export type JobsCreateOrUpdateResponse = Job; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface JobsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Contains response data for the listByAgentNext operation. */ +export type JobsListByAgentNextResponse = JobListResult; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableNextOptionalParams +export interface LedgerDigestUploadsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTableNext operation. */ -export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; +/** Contains response data for the listByDatabase operation. */ +export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ -export interface ManagedDatabaseQueriesGetOptionalParams +export interface LedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; +export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryOptionalParams +export interface LedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Start time for observed period. */ - startTime?: string; - /** End time for observed period. */ - endTime?: string; - /** The time step to be used to summarize the metric values. */ - interval?: QueryTimeGrainType; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByQuery operation. */ -export type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics; - -/** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByQueryNext operation. */ -export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; +/** Contains response data for the createOrUpdate operation. */ +export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseOptionalParams +export interface LedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +/** Contains response data for the disable operation. */ +export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedDatabaseSchemasGetOptionalParams +export interface LedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; +/** Contains response data for the listByDatabaseNext operation. */ +export type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface CapabilitiesListByLocationOptionalParams + extends coreClient.OperationOptions { + /** If specified, restricts the response to only include the selected item. */ + include?: CapabilityGroup; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; +/** Contains response data for the listByLocation operation. */ +export type CapabilitiesListByLocationResponse = LocationCapabilities; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByLocationOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the get operation. */ -export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByServerOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; +/** Contains response data for the listByServer operation. */ +export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} /** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; +export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams +export interface LongTermRetentionBackupsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; +/** Contains response data for the get operation. */ +export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams +export interface LongTermRetentionBackupsDeleteOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** The number of elements in the collection to skip. */ - skip?: number; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; - /** The number of elements to return from the collection. */ - top?: number; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; +/** Optional parameters. */ +export interface LongTermRetentionBackupsCopyOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the copy operation. */ +export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; +/** Contains response data for the update operation. */ +export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } -/** Contains response data for the listBySchema operation. */ -export type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult; +/** Contains response data for the listByResourceGroupLocation operation. */ +export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseTablesGetOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupServerOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the get operation. */ -export type ManagedDatabaseTablesGetResponse = DatabaseTable; +/** Contains response data for the listByResourceGroupServer operation. */ +export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listBySchemaNext operation. */ -export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; +/** Contains response data for the listByResourceGroupDatabase operation. */ +export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams +export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; +/** Contains response data for the getByResourceGroup operation. */ +export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; +/** Optional parameters. */ +export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the copyByResourceGroup operation. */ +export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; +/** Contains response data for the updateByResourceGroup operation. */ +export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams +export interface LongTermRetentionBackupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; - +/** Contains response data for the listByLocationNext operation. */ +export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; + /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams +export interface LongTermRetentionBackupsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listByServerNext operation. */ +export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams +export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroupLocationNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; + /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +/** Contains response data for the listByResourceGroupServerNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; +/** Contains response data for the listByResourceGroupDatabaseNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} + +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} /** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; +export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams +export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the get operation. */ +export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams +export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13493,49 +13827,50 @@ export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptional } /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the export operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; - -/** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; +/** Contains response data for the listByInstance operation. */ +export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByResourceGroupLocation operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; +/** Contains response data for the listByResourceGroupDatabase operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; +/** Contains response data for the getByResourceGroup operation. */ +export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13543,92 +13878,76 @@ export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; - /** Optional parameters. */ -export interface ManagedInstanceAdministratorsDeleteOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } +/** Contains response data for the listByResourceGroupInstance operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; + /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; +/** Contains response data for the listByLocationNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; +export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the listByInstanceNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; +/** Contains response data for the listByResourceGroupLocationNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; +/** Contains response data for the listByResourceGroupDatabaseNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupInstanceNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams +export interface LongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsGetOptionalParams +export interface LongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; +export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams +export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13637,69 +13956,49 @@ export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; +export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams +export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; - -/** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} - -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysGetOptionalParams +export interface MaintenanceWindowOptionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; +export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; /** Optional parameters. */ -export interface ManagedInstanceKeysCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface MaintenanceWindowsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; +/** Contains response data for the get operation. */ +export type MaintenanceWindowsGetResponse = MaintenanceWindows; /** Optional parameters. */ -export interface ManagedInstanceKeysDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface MaintenanceWindowsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceNextOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; +export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13708,453 +14007,485 @@ export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalP } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; +export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabase operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; +/** Contains response data for the update operation. */ +export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = ManagedDatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ManagedInstanceOperationsGetOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; - -/** Optional parameters. */ -export interface ManagedInstanceOperationsCancelOptionalParams - extends coreClient.OperationOptions {} +export type ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse = ManagedDatabaseAdvancedThreatProtection; /** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedDatabaseAdvancedThreatProtection; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = ManagedDatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface ManagedDatabaseColumnsListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Array of Get3ItemsItem */ + schema?: string[]; + /** Array of Get4ItemsItem */ + table?: string[]; + /** Array of Get5ItemsItem */ + column?: string[]; + /** Array of Get6ItemsItem */ + orderBy?: string[]; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams +export interface ManagedDatabaseColumnsListByTableOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } +/** Contains response data for the listByTable operation. */ +export type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult; + /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams +export interface ManagedDatabaseColumnsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams +export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams +export interface ManagedDatabaseColumnsListByTableNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; +/** Contains response data for the listByTableNext operation. */ +export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesGetOptionalParams +export interface ManagedDatabaseMoveOperationsListByLocationOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** Whether or not to only get the latest operation for each database. Has higher priority than $filter. */ + onlyLatestPerDatabase?: boolean; +} + +/** Contains response data for the listByLocation operation. */ +export type ManagedDatabaseMoveOperationsListByLocationResponse = ManagedDatabaseMoveOperationListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseMoveOperationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; +export type ManagedDatabaseMoveOperationsGetResponse = ManagedDatabaseMoveOperationResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams +export interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; +/** Contains response data for the listByLocationNext operation. */ +export type ManagedDatabaseMoveOperationsListByLocationNextResponse = ManagedDatabaseMoveOperationListResult; /** Optional parameters. */ -export interface ManagedInstanceTdeCertificatesCreateOptionalParams +export interface ManagedDatabaseQueriesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; + +/** Optional parameters. */ +export interface ManagedDatabaseQueriesListByQueryOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Start time for observed period. */ + startTime?: string; + /** End time for observed period. */ + endTime?: string; + /** The time step to be used to summarize the metric values. */ + interval?: QueryTimeGrainType; } +/** Contains response data for the listByQuery operation. */ +export type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics; + /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams +export interface ManagedDatabaseQueriesListByQueryNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; +/** Contains response data for the listByQueryNext operation. */ +export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface ManagedDatabaseRestoreDetailsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; +/** Contains response data for the get operation. */ +export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams +export interface ManagedDatabaseSchemasListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} + +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseSchemasGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; + /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams +export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; +export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; +export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** The number of elements to return from the collection. */ + top?: number; } -/** Contains response data for the update operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams +export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRestorableDroppedDatabase operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + skipToken?: string; + count?: boolean; +} -/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the listCurrentByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesGetOptionalParams +export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; - /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + skipToken?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; +/** Contains response data for the listRecommendedByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams +export interface ManagedDatabaseSensitivityLabelsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; - /** Optional parameters. */ -export interface OperationsListNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; - /** Optional parameters. */ -export interface PrivateEndpointConnectionsGetOptionalParams +export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; - /** Optional parameters. */ -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsListByServerOptionalParams +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsListByServerNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface PrivateLinkResourcesListByServerOptionalParams +export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; +/** Optional parameters. */ +export interface ManagedDatabaseTablesListBySchemaOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} + +/** Contains response data for the listBySchema operation. */ +export type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface PrivateLinkResourcesGetOptionalParams +export interface ManagedDatabaseTablesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource; +export type ManagedDatabaseTablesGetResponse = DatabaseTable; /** Optional parameters. */ -export interface PrivateLinkResourcesListByServerNextOptionalParams +export interface ManagedDatabaseTablesListBySchemaNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; +/** Contains response data for the listBySchemaNext operation. */ +export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface RecoverableManagedDatabasesListByInstanceOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface RecoverableManagedDatabasesGetOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; +export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; /** Optional parameters. */ -export interface RecoverableManagedDatabasesListByInstanceNextOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; /** Optional parameters. */ -export interface RestorePointsListByDatabaseOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type RestorePointsListByDatabaseResponse = RestorePointListResult; - -/** Optional parameters. */ -export interface RestorePointsCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the create operation. */ -export type RestorePointsCreateResponse = RestorePoint; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface RestorePointsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RestorePointsGetResponse = RestorePoint; +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated; /** Optional parameters. */ -export interface RestorePointsDeleteOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated; + /** Optional parameters. */ -export interface RestorePointsListByDatabaseNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; - /** Optional parameters. */ -export interface ServerAdvisorsListByServerOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerAdvisorsListByServerResponse = Advisor[]; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface ServerAdvisorsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerAdvisorsGetResponse = Advisor; +export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface ServerAdvisorsUpdateOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ServerAdvisorsUpdateResponse = Advisor; +/** Contains response data for the export operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ -export interface ServerAutomaticTuningGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface ServerAutomaticTuningUpdateOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ServerAzureADAdministratorsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; +export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; +export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface ServerAzureADAdministratorsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ServerAzureADAdministratorsListByServerOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ServerAzureADAdministratorsListByServerNextOptionalParams +export interface ManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsGetOptionalParams +export interface ManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; +export type ManagedDatabasesGetResponse = ManagedDatabase; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams +export interface ManagedDatabasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14163,10 +14494,10 @@ export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; +export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams +export interface ManagedDatabasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14175,35 +14506,7 @@ export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams } /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; - -/** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; - -/** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; - -/** Optional parameters. */ -export interface ServerDevOpsAuditSettingsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; - -/** Optional parameters. */ -export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams +export interface ManagedDatabasesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14211,25 +14514,11 @@ export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; - -/** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; - -/** Optional parameters. */ -export interface ServerDnsAliasesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ServerDnsAliasesGetResponse = ServerDnsAlias; +/** Contains response data for the update operation. */ +export type ManagedDatabasesUpdateResponse = ManagedDatabase; /** Optional parameters. */ -export interface ServerDnsAliasesCreateOrUpdateOptionalParams +export interface ManagedDatabasesCancelMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14237,11 +14526,8 @@ export interface ServerDnsAliasesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; - /** Optional parameters. */ -export interface ServerDnsAliasesDeleteOptionalParams +export interface ManagedDatabasesCompleteMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14250,14 +14536,16 @@ export interface ServerDnsAliasesDeleteOptionalParams } /** Optional parameters. */ -export interface ServerDnsAliasesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; +export interface ManagedDatabasesCompleteRestoreOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ServerDnsAliasesAcquireOptionalParams +export interface ManagedDatabasesStartMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14265,32 +14553,43 @@ export interface ServerDnsAliasesAcquireOptionalParams resumeFrom?: string; } -/** Contains response data for the acquire operation. */ -export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; +/** Optional parameters. */ +export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listInaccessibleByInstance operation. */ +export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface ServerDnsAliasesListByServerNextOptionalParams +export interface ManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface ServerKeysListByServerOptionalParams +export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerKeysListByServerResponse = ServerKeyListResult; +/** Contains response data for the listInaccessibleByInstanceNext operation. */ +export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface ServerKeysGetOptionalParams +export interface ManagedInstanceAdministratorsListByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; + +/** Optional parameters. */ +export interface ManagedInstanceAdministratorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerKeysGetResponse = ServerKey; +export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface ServerKeysCreateOrUpdateOptionalParams +export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14299,10 +14598,10 @@ export interface ServerKeysCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerKeysCreateOrUpdateResponse = ServerKey; +export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface ServerKeysDeleteOptionalParams +export interface ManagedInstanceAdministratorsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14311,35 +14610,28 @@ export interface ServerKeysDeleteOptionalParams } /** Optional parameters. */ -export interface ServerKeysListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ServerKeysListByServerNextResponse = ServerKeyListResult; - -/** Optional parameters. */ -export interface ServerOperationsListByServerOptionalParams +export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerOperationsListByServerResponse = ServerOperationListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; /** Optional parameters. */ -export interface ServerOperationsListByServerNextOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerOperationsListByServerNextResponse = ServerOperationListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse = ManagedInstanceAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesGetOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; +export type ManagedInstanceAdvancedThreatProtectionSettingsGetResponse = ManagedInstanceAdvancedThreatProtection; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14348,31 +14640,31 @@ export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; +export type ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedInstanceAdvancedThreatProtection; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ServerTrustGroupsGetOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerTrustGroupsGetResponse = ServerTrustGroup; +export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ServerTrustGroupsCreateOrUpdateOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14381,10 +14673,10 @@ export interface ServerTrustGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; +export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ServerTrustGroupsDeleteOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14393,109 +14685,148 @@ export interface ServerTrustGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface ServerTrustGroupsListByLocationOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceOptionalParams +export interface ManagedInstanceDtcsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstanceDtcsListByManagedInstanceResponse = ManagedInstanceDtcListResult; /** Optional parameters. */ -export interface ServerTrustGroupsListByLocationNextOptionalParams +export interface ManagedInstanceDtcsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceDtcsGetResponse = ManagedInstanceDtc; /** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceNextOptionalParams +export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceDtcsCreateOrUpdateResponse = ManagedInstanceDtc; + +/** Optional parameters. */ +export interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstanceDtcsListByManagedInstanceNextResponse = ManagedInstanceDtcListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsGetOptionalParams +export interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface ManagedInstanceEncryptionProtectorsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; + +/** Optional parameters. */ +export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + /** Contains response data for the createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; +export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerOptionalParams +export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstanceKeysListByInstanceOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByServerNext operation. */ -export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; /** Optional parameters. */ -export interface SqlAgentGetOptionalParams +export interface ManagedInstanceKeysGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlAgentGetResponse = SqlAgentConfiguration; +export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; /** Optional parameters. */ -export interface SqlAgentCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstanceKeysCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; +export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; +export interface ManagedInstanceKeysDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface SubscriptionUsagesGetOptionalParams +export interface ManagedInstanceKeysListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SubscriptionUsagesGetResponse = SubscriptionUsage; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationNextOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface SyncAgentsGetOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SyncAgentsGetResponse = SyncAgent; +export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; /** Optional parameters. */ -export interface SyncAgentsCreateOrUpdateOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14504,10 +14835,10 @@ export interface SyncAgentsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SyncAgentsCreateOrUpdateResponse = SyncAgent; +export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; /** Optional parameters. */ -export interface SyncAgentsDeleteOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14515,50 +14846,57 @@ export interface SyncAgentsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type ManagedInstanceLongTermRetentionPoliciesDeleteResponse = ManagedInstanceLongTermRetentionPolicy; + /** Optional parameters. */ -export interface SyncAgentsListByServerOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type SyncAgentsListByServerResponse = SyncAgentListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface SyncAgentsGenerateKeyOptionalParams +export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateKey operation. */ -export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; /** Optional parameters. */ -export interface SyncAgentsListLinkedDatabasesOptionalParams +export interface ManagedInstanceOperationsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLinkedDatabases operation. */ -export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; /** Optional parameters. */ -export interface SyncAgentsListByServerNextOptionalParams +export interface ManagedInstanceOperationsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type SyncAgentsListByServerNextResponse = SyncAgentListResult; +/** Optional parameters. */ +export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; /** Optional parameters. */ -export interface SyncAgentsListLinkedDatabasesNextOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLinkedDatabasesNext operation. */ -export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface SyncGroupsListSyncDatabaseIdsOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSyncDatabaseIds operation. */ -export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; +/** Contains response data for the get operation. */ +export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface SyncGroupsRefreshHubSchemaOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14566,52 +14904,48 @@ export interface SyncGroupsRefreshHubSchemaOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface SyncGroupsListHubSchemasOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listHubSchemas operation. */ -export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface SyncGroupsListLogsOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { - /** The continuation token for this operation. */ - continuationToken?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listLogs operation. */ -export type SyncGroupsListLogsResponse = SyncGroupLogListResult; - /** Optional parameters. */ -export interface SyncGroupsCancelSyncOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; + /** Optional parameters. */ -export interface SyncGroupsTriggerSyncOptionalParams +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; + /** Optional parameters. */ -export interface SyncGroupsGetOptionalParams +export interface ManagedInstancePrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SyncGroupsGetResponse = SyncGroup; +export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; /** Optional parameters. */ -export interface SyncGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SyncGroupsCreateOrUpdateResponse = SyncGroup; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; /** Optional parameters. */ -export interface SyncGroupsDeleteOptionalParams +export interface ManagedInstanceTdeCertificatesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14620,61 +14954,79 @@ export interface SyncGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface SyncGroupsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type SyncGroupsUpdateResponse = SyncGroup; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface SyncGroupsListByDatabaseOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSyncDatabaseIdsNext operation. */ -export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface SyncGroupsListHubSchemasNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listHubSchemasNext operation. */ -export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; - /** Optional parameters. */ -export interface SyncGroupsListLogsNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLogsNext operation. */ -export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface SyncGroupsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; +/** Contains response data for the list operation. */ +export type ManagedInstancesListResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface SyncMembersGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListByInstancePoolOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByInstancePool operation. */ +export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; + +/** Optional parameters. */ +export interface ManagedInstancesListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByResourceGroup operation. */ +export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; + +/** Optional parameters. */ +export interface ManagedInstancesGetOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} /** Contains response data for the get operation. */ -export type SyncMembersGetResponse = SyncMember; +export type ManagedInstancesGetResponse = ManagedInstance; /** Optional parameters. */ -export interface SyncMembersCreateOrUpdateOptionalParams +export interface ManagedInstancesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14683,10 +15035,10 @@ export interface SyncMembersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SyncMembersCreateOrUpdateResponse = SyncMember; +export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance; /** Optional parameters. */ -export interface SyncMembersDeleteOptionalParams +export interface ManagedInstancesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14695,7 +15047,7 @@ export interface SyncMembersDeleteOptionalParams } /** Optional parameters. */ -export interface SyncMembersUpdateOptionalParams +export interface ManagedInstancesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14704,24 +15056,28 @@ export interface SyncMembersUpdateOptionalParams } /** Contains response data for the update operation. */ -export type SyncMembersUpdateResponse = SyncMember; +export type ManagedInstancesUpdateResponse = ManagedInstance; /** Optional parameters. */ -export interface SyncMembersListBySyncGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySyncGroup operation. */ -export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; +export interface ManagedInstancesFailoverOptionalParams + extends coreClient.OperationOptions { + /** The type of replica to be failed over. */ + replicaType?: ReplicaType; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface SyncMembersListMemberSchemasOptionalParams +export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMemberSchemas operation. */ -export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the listOutboundNetworkDependenciesByManagedInstance operation. */ +export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse = OutboundEnvironmentEndpointCollection; /** Optional parameters. */ -export interface SyncMembersRefreshMemberSchemaOptionalParams +export interface ManagedInstancesRefreshStatusOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14729,22 +15085,23 @@ export interface SyncMembersRefreshMemberSchemaOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface SyncMembersListBySyncGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySyncGroupNext operation. */ -export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; +/** Contains response data for the refreshStatus operation. */ +export type ManagedInstancesRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResultMI; /** Optional parameters. */ -export interface SyncMembersListMemberSchemasNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesStartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listMemberSchemasNext operation. */ -export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the start operation. */ +export type ManagedInstancesStartResponse = ManagedInstance; /** Optional parameters. */ -export interface TdeCertificatesCreateOptionalParams +export interface ManagedInstancesStopOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14752,78 +15109,82 @@ export interface TdeCertificatesCreateOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface TimeZonesListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type TimeZonesListByLocationResponse = TimeZoneListResult; +/** Contains response data for the stop operation. */ +export type ManagedInstancesStopResponse = ManagedInstance; /** Optional parameters. */ -export interface TimeZonesGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListByManagedInstanceOptionalParams + extends coreClient.OperationOptions { + /** Start time for observed period. */ + startTime?: string; + /** End time for observed period. */ + endTime?: string; + /** The time step to be used to summarize the metric values. Default value is PT1H */ + interval?: QueryTimeGrainType; + /** How many 'top queries' to return. Default is 5. */ + numberOfQueries?: number; + /** Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified. */ + databases?: string; + /** Aggregation function to be used, default value is 'sum' */ + aggregationFunction?: AggregationFunctionType; + /** Metric to be used for ranking top queries. Default is 'cpu' */ + observationMetric?: MetricType; +} -/** Contains response data for the get operation. */ -export type TimeZonesGetResponse = TimeZone; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; /** Optional parameters. */ -export interface TimeZonesListByLocationNextOptionalParams +export interface ManagedInstancesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type TimeZonesListByLocationNextResponse = TimeZoneListResult; +/** Contains response data for the listNext operation. */ +export type ManagedInstancesListNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesGetOptionalParams +export interface ManagedInstancesListByInstancePoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type VirtualNetworkRulesGetResponse = VirtualNetworkRule; +/** Contains response data for the listByInstancePoolNext operation. */ +export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedInstancesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listOutboundNetworkDependenciesByManagedInstanceNext operation. */ +export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse = OutboundEnvironmentEndpointCollection; /** Optional parameters. */ -export interface VirtualNetworkRulesListByServerOptionalParams +export interface ManagedInstancesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesListByServerNextOptionalParams +export interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedLedgerDigestUploadsListByDatabaseResponse = ManagedLedgerDigestUploadsListResult; /** Optional parameters. */ -export interface WorkloadClassifiersGetOptionalParams +export interface ManagedLedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkloadClassifiersGetResponse = WorkloadClassifier; +export type ManagedLedgerDigestUploadsGetResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ -export interface WorkloadClassifiersCreateOrUpdateOptionalParams +export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14832,10 +15193,10 @@ export interface WorkloadClassifiersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; +export type ManagedLedgerDigestUploadsCreateOrUpdateResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ -export interface WorkloadClassifiersDeleteOptionalParams +export interface ManagedLedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14843,29 +15204,32 @@ export interface WorkloadClassifiersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the disable operation. */ +export type ManagedLedgerDigestUploadsDisableResponse = ManagedLedgerDigestUploads; + /** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupOptionalParams +export interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByWorkloadGroup operation. */ -export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedLedgerDigestUploadsListByDatabaseNextResponse = ManagedLedgerDigestUploadsListResult; /** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByWorkloadGroupNext operation. */ -export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; +/** Contains response data for the listByRestorableDroppedDatabase operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface WorkloadGroupsGetOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkloadGroupsGetResponse = WorkloadGroup; +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface WorkloadGroupsCreateOrUpdateOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14874,10 +15238,10 @@ export interface WorkloadGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface WorkloadGroupsDeleteOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14885,29 +15249,32 @@ export interface WorkloadGroupsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; + /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; +/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseNextOptionalParams +export interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesGetOptionalParams +export interface ManagedServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; +export type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14916,10 +15283,10 @@ export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; +export type ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesUpdateOptionalParams +export interface ManagedServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14927,29 +15294,8 @@ export interface BackupShortTermRetentionPoliciesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; - -/** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface DatabaseExtensionsGetOptionalParams - extends coreClient.OperationOptions {} - /** Optional parameters. */ -export interface DatabaseExtensionsCreateOrUpdateOptionalParams +export interface ManagedServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14957,64 +15303,32 @@ export interface DatabaseExtensionsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; - -/** Optional parameters. */ -export interface DatabaseExtensionsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; - -/** Optional parameters. */ -export interface DatabaseExtensionsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; - -/** Optional parameters. */ -export interface DatabaseOperationsCancelOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; - -/** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; +/** Contains response data for the acquire operation. */ +export type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface DatabaseUsagesListByDatabaseOptionalParams +export interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ -export interface DatabaseUsagesListByDatabaseNextOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface LedgerDigestUploadsGetOptionalParams +export interface ManagedServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; +export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface LedgerDigestUploadsCreateOrUpdateOptionalParams +export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15023,43 +15337,31 @@ export interface LedgerDigestUploadsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; +export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface LedgerDigestUploadsListByDatabaseOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; - -/** Optional parameters. */ -export interface LedgerDigestUploadsDisableOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the disable operation. */ -export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface LedgerDigestUploadsListByDatabaseNextOptionalParams +export interface NetworkSecurityPerimeterConfigurationsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; +/** Contains response data for the listByServer operation. */ +export type NetworkSecurityPerimeterConfigurationsListByServerResponse = NetworkSecurityPerimeterConfigurationListResult; /** Optional parameters. */ -export interface OutboundFirewallRulesGetOptionalParams +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type OutboundFirewallRulesGetResponse = OutboundFirewallRule; +export type NetworkSecurityPerimeterConfigurationsGetResponse = NetworkSecurityPerimeterConfiguration; /** Optional parameters. */ -export interface OutboundFirewallRulesCreateOrUpdateOptionalParams +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15067,63 +15369,46 @@ export interface OutboundFirewallRulesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; - -/** Optional parameters. */ -export interface OutboundFirewallRulesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the reconcile operation. */ +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = NetworkSecurityPerimeterConfiguration; /** Optional parameters. */ -export interface OutboundFirewallRulesListByServerOptionalParams +export interface NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; +/** Contains response data for the listByServerNext operation. */ +export type NetworkSecurityPerimeterConfigurationsListByServerNextResponse = NetworkSecurityPerimeterConfigurationListResult; /** Optional parameters. */ -export interface OutboundFirewallRulesListByServerNextOptionalParams +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface UsagesListByInstancePoolOptionalParams - extends coreClient.OperationOptions { - /** Optional request parameter to include managed instance usages within the instance pool. */ - expandChildren?: boolean; -} +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePool operation. */ -export type UsagesListByInstancePoolResponse = UsageListResult; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; /** Optional parameters. */ -export interface UsagesListByInstancePoolNextOptionalParams +export interface OutboundFirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePoolNext operation. */ -export type UsagesListByInstancePoolNextResponse = UsageListResult; +/** Contains response data for the listByServer operation. */ +export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsCopyOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface OutboundFirewallRulesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the copy operation. */ -export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the get operation. */ +export type OutboundFirewallRulesGetResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface LongTermRetentionBackupsUpdateOptionalParams +export interface OutboundFirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15131,18 +15416,11 @@ export interface LongTermRetentionBackupsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; - -/** Optional parameters. */ -export interface LongTermRetentionBackupsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; +/** Contains response data for the createOrUpdate operation. */ +export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface LongTermRetentionBackupsDeleteOptionalParams +export interface OutboundFirewallRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15151,43 +15429,28 @@ export interface LongTermRetentionBackupsDeleteOptionalParams } /** Optional parameters. */ -export interface LongTermRetentionBackupsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface OutboundFirewallRulesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByLocationOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface PrivateEndpointConnectionsListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByServerOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface PrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15195,11 +15458,11 @@ export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams resumeFrom?: string; } -/** Contains response data for the copyByResourceGroup operation. */ -export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15207,112 +15470,97 @@ export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams resumeFrom?: string; } -/** Contains response data for the updateByResourceGroup operation. */ -export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; - /** Optional parameters. */ -export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams +export interface PrivateEndpointConnectionsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; +/** Contains response data for the listByServerNext operation. */ +export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface PrivateLinkResourcesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface PrivateLinkResourcesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabase operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type PrivateLinkResourcesGetResponse = PrivateLinkResource; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface PrivateLinkResourcesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupServerOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface RecoverableDatabasesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupServer operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface RecoverableDatabasesGetOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type RecoverableDatabasesGetResponse = RecoverableDatabase; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByLocationNextOptionalParams +export interface RecoverableDatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type RecoverableDatabasesListByServerNextResponse = RecoverableDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByServerNextOptionalParams +export interface RecoverableManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByInstance operation. */ +export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams +export interface RecoverableManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams +export interface RecoverableManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams +export interface ReplicationLinksListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupServerNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByDatabase operation. */ +export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams +export interface ReplicationLinksGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; +export type ReplicationLinksGetResponse = ReplicationLink; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams +export interface ReplicationLinksDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15321,50 +15569,7 @@ export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams } /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams +export interface ReplicationLinksFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15372,83 +15577,67 @@ export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOpt resumeFrom?: string; } -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByResourceGroupDatabase operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByResourceGroupInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the failover operation. */ +export type ReplicationLinksFailoverResponse = ReplicationLink; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams +export interface ReplicationLinksFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the failoverAllowDataLoss operation. */ +export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams +export interface ReplicationLinksListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams +export interface ReplicationLinksListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams +export interface ReplicationLinksListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams +export interface RestorableDroppedDatabasesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams - extends coreClient.OperationOptions {} +export interface RestorableDroppedDatabasesGetOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByResourceGroupInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams +export interface RestorableDroppedDatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ export interface RestorableDroppedManagedDatabasesListByInstanceOptionalParams @@ -15472,14 +15661,14 @@ export interface RestorableDroppedManagedDatabasesListByInstanceNextOptionalPara export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; /** Optional parameters. */ -export interface ServerConnectionPoliciesGetOptionalParams +export interface RestorePointsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; +/** Contains response data for the listByDatabase operation. */ +export type RestorePointsListByDatabaseResponse = RestorePointListResult; /** Optional parameters. */ -export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams +export interface RestorePointsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15487,334 +15676,321 @@ export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; - -/** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; +/** Contains response data for the create operation. */ +export type RestorePointsCreateResponse = RestorePoint; /** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerNextOptionalParams +export interface RestorePointsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; +/** Contains response data for the get operation. */ +export type RestorePointsGetResponse = RestorePoint; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsListByInstanceOptionalParams +export interface RestorePointsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; - /** Optional parameters. */ -export interface DistributedAvailabilityGroupsGetOptionalParams +export interface RestorePointsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; +/** Contains response data for the listByDatabaseNext operation. */ +export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams +export interface SensitivityLabelsListCurrentByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + skipToken?: string; + count?: boolean; } -/** Contains response data for the createOrUpdate operation. */ -export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; +/** Contains response data for the listCurrentByDatabase operation. */ +export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DistributedAvailabilityGroupsUpdateOptionalParams +export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + skipToken?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; } -/** Contains response data for the update operation. */ -export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; - -/** Optional parameters. */ -export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstanceNext operation. */ -export type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; - -/** Optional parameters. */ -export interface ServerTrustCertificatesListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; +/** Contains response data for the listRecommendedByDatabase operation. */ +export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ServerTrustCertificatesGetOptionalParams +export interface SensitivityLabelsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; +export type SensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface ServerTrustCertificatesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SensitivityLabelsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; - -/** Optional parameters. */ -export interface ServerTrustCertificatesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface ServerTrustCertificatesListByInstanceNextOptionalParams +export interface SensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; - /** Optional parameters. */ -export interface IPv6FirewallRulesListByServerOptionalParams +export interface SensitivityLabelsDisableRecommendationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; - /** Optional parameters. */ -export interface IPv6FirewallRulesGetOptionalParams +export interface SensitivityLabelsEnableRecommendationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type IPv6FirewallRulesGetResponse = IPv6FirewallRule; - /** Optional parameters. */ -export interface IPv6FirewallRulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SensitivityLabelsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; +/** Contains response data for the listByDatabase operation. */ +export type SensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface IPv6FirewallRulesDeleteOptionalParams +export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; + /** Optional parameters. */ -export interface IPv6FirewallRulesListByServerNextOptionalParams +export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface EndpointCertificatesListByInstanceOptionalParams +export interface SensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type SensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface EndpointCertificatesGetOptionalParams +export interface RecommendedSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type EndpointCertificatesGetResponse = EndpointCertificate; - /** Optional parameters. */ -export interface EndpointCertificatesListByInstanceNextOptionalParams +export interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAdvancedThreatProtectionSettingsListByServerResponse = LogicalServerAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsGetOptionalParams +export interface ServerAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; +export type ServerAdvancedThreatProtectionSettingsGetResponse = ServerAdvancedThreatProtection; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; - -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams - extends coreClient.OperationOptions {} +export type ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ServerAdvancedThreatProtection; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams +export interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type ServerAdvancedThreatProtectionSettingsListByServerNextResponse = LogicalServerAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams +export interface ServerAdvisorsListByServerOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; + /** The child resources to include in the response. */ + expand?: string; } -/** Contains response data for the listCurrentByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAdvisorsListByServerResponse = Advisor[]; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams +export interface ServerAdvisorsGetOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** Specifies whether to include disabled recommendations or not. */ - includeDisabledRecommendations?: boolean; -} - -/** Contains response data for the listRecommendedByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the get operation. */ +export type ServerAdvisorsGetResponse = Advisor; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams +export interface ServerAdvisorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the update operation. */ +export type ServerAdvisorsUpdateResponse = Advisor; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams +export interface ServerAutomaticTuningGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listRecommendedByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the get operation. */ +export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; /** Optional parameters. */ -export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams +export interface ServerAutomaticTuningUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; + /** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; -} +export interface ServerAzureADAdministratorsListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabase operation. */ -export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; /** Optional parameters. */ -export interface SensitivityLabelsUpdateOptionalParams +export interface ServerAzureADAdministratorsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; + /** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams +export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** Specifies whether to include disabled recommendations or not. */ - includeDisabledRecommendations?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listRecommendedByDatabase operation. */ -export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; /** Optional parameters. */ -export interface SensitivityLabelsEnableRecommendationOptionalParams +export interface ServerAzureADAdministratorsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ServerAzureADAdministratorsListByServerNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; + /** Optional parameters. */ -export interface SensitivityLabelsDisableRecommendationOptionalParams +export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServer operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; + /** Optional parameters. */ -export interface SensitivityLabelsGetOptionalParams +export interface ServerAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SensitivityLabelsGetResponse = SensitivityLabel; +export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface SensitivityLabelsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; +export type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface SensitivityLabelsDeleteOptionalParams +export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; + /** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams +export interface ServerConfigurationOptionsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ServerConfigurationOptionsListByManagedInstanceResponse = ServerConfigurationOptionListResult; /** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams +export interface ServerConfigurationOptionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listRecommendedByDatabaseNext operation. */ -export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the get operation. */ +export type ServerConfigurationOptionsGetResponse = ServerConfigurationOption; /** Optional parameters. */ -export interface RecommendedSensitivityLabelsUpdateOptionalParams +export interface ServerConfigurationOptionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ServerConfigurationOptionsCreateOrUpdateResponse = ServerConfigurationOption; + +/** Optional parameters. */ +export interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ServerConfigurationOptionsListByManagedInstanceNextResponse = ServerConfigurationOptionListResult; + /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerOptionalParams +export interface ServerConnectionPoliciesListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; +export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesGetOptionalParams +export interface ServerConnectionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; +export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15823,87 +15999,118 @@ export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; +export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams +export interface ServerConnectionPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; +export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams +export interface ServerDevOpsAuditSettingsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByServer operation. */ +export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesGetOptionalParams +export interface ServerDevOpsAuditSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; +export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; +export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams +export interface ServerDnsAliasesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByServer operation. */ +export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams +export interface ServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; +export type ServerDnsAliasesGetResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ServerDnsAliasesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; +export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface ServerDnsAliasesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ServerDnsAliasesAcquireOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the acquire operation. */ +export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; + +/** Optional parameters. */ +export interface ServerDnsAliasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams +export interface ServerKeysListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; +export type ServerKeysListByServerResponse = ServerKeyListResult; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams +export interface ServerKeysGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; +export type ServerKeysGetResponse = ServerKey; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface ServerKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15912,59 +16119,54 @@ export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; - -/** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; +export type ServerKeysCreateOrUpdateResponse = ServerKey; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = DatabaseAdvancedThreatProtectionListResult; +export interface ServerKeysDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams +export interface ServerKeysListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseAdvancedThreatProtectionSettingsGetResponse = DatabaseAdvancedThreatProtection; +/** Contains response data for the listByServerNext operation. */ +export type ServerKeysListByServerNextResponse = ServerKeyListResult; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams +export interface ServerOperationsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = DatabaseAdvancedThreatProtection; +/** Contains response data for the listByServer operation. */ +export type ServerOperationsListByServerResponse = ServerOperationListResult; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams +export interface ServerOperationsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = DatabaseAdvancedThreatProtectionListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerOperationsListByServerNextResponse = ServerOperationListResult; /** Optional parameters. */ -export interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams +export interface ServerSecurityAlertPoliciesListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ServerAdvancedThreatProtectionSettingsListByServerResponse = LogicalServerAdvancedThreatProtectionListResult; +export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ServerAdvancedThreatProtectionSettingsGetOptionalParams +export interface ServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerAdvancedThreatProtectionSettingsGetResponse = ServerAdvancedThreatProtection; +export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams +export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15973,31 +16175,31 @@ export interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalPar } /** Contains response data for the createOrUpdate operation. */ -export type ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ServerAdvancedThreatProtection; +export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams +export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ServerAdvancedThreatProtectionSettingsListByServerNextResponse = LogicalServerAdvancedThreatProtectionListResult; +export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams +export interface ServerTrustCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; +/** Contains response data for the listByInstance operation. */ +export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ -export interface ManagedServerDnsAliasesGetOptionalParams +export interface ServerTrustCertificatesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; +export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; /** Optional parameters. */ -export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams +export interface ServerTrustCertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16006,19 +16208,10 @@ export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; - -/** Optional parameters. */ -export interface ManagedServerDnsAliasesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; /** Optional parameters. */ -export interface ManagedServerDnsAliasesAcquireOptionalParams +export interface ServerTrustCertificatesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16026,46 +16219,29 @@ export interface ManagedServerDnsAliasesAcquireOptionalParams resumeFrom?: string; } -/** Contains response data for the acquire operation. */ -export type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; - /** Optional parameters. */ -export interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams +export interface ServerTrustCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams +export interface ServerTrustGroupsListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; +/** Contains response data for the listByLocation operation. */ +export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams +export interface ServerTrustGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; +export type ServerTrustGroupsGetResponse = ServerTrustGroup; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams +export interface ServerTrustGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16073,145 +16249,122 @@ export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalPar resumeFrom?: string; } -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByBaseline operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - /** Contains response data for the createOrUpdate operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByBaselineNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; +export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByScan operation. */ -export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; +export interface ServerTrustGroupsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams +export interface ServerTrustGroupsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; +/** Contains response data for the listByInstance operation. */ +export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams +export interface ServerTrustGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByScanNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; +/** Contains response data for the listByLocationNext operation. */ +export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams +export interface ServerTrustGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ -export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams +export interface ServerUsagesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; +/** Contains response data for the listByServer operation. */ +export type ServerUsagesListByServerResponse = ServerUsageListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams +export interface ServerUsagesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerUsagesListByServerNextResponse = ServerUsageListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams +export interface ServerVulnerabilityAssessmentsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse = SqlVulnerabilityAssessmentListResult; +/** Contains response data for the listByServer operation. */ +export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams +export interface ServerVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; +export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams +export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse = SqlVulnerabilityAssessmentListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams +export interface ServerVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = ManagedDatabaseAdvancedThreatProtectionListResult; - /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams +export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse = ManagedDatabaseAdvancedThreatProtection; +/** Contains response data for the listByServerNext operation. */ +export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams +export interface ServersCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedDatabaseAdvancedThreatProtection; +/** Contains response data for the checkNameAvailability operation. */ +export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface ServersListOptionalParams extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = ManagedDatabaseAdvancedThreatProtectionListResult; +/** Contains response data for the list operation. */ +export type ServersListResponse = ServerListResult; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams - extends coreClient.OperationOptions {} +export interface ServersListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse = ManagedInstanceAdvancedThreatProtectionListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type ServersListByResourceGroupResponse = ServerListResult; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ServersGetOptionalParams extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} /** Contains response data for the get operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsGetResponse = ManagedInstanceAdvancedThreatProtection; +export type ServersGetResponse = Server; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams +export interface ServersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16220,31 +16373,19 @@ export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOp } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedInstanceAdvancedThreatProtection; - -/** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult; - -/** Optional parameters. */ -export interface ReplicationLinksListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; +export type ServersCreateOrUpdateResponse = Server; /** Optional parameters. */ -export interface ReplicationLinksGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ReplicationLinksGetResponse = ReplicationLink; +export interface ServersDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ReplicationLinksDeleteOptionalParams +export interface ServersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16252,8 +16393,11 @@ export interface ReplicationLinksDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type ServersUpdateResponse = Server; + /** Optional parameters. */ -export interface ReplicationLinksFailoverOptionalParams +export interface ServersImportDatabaseOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16261,11 +16405,11 @@ export interface ReplicationLinksFailoverOptionalParams resumeFrom?: string; } -/** Contains response data for the failover operation. */ -export type ReplicationLinksFailoverResponse = ReplicationLink; +/** Contains response data for the importDatabase operation. */ +export type ServersImportDatabaseResponse = ImportExportOperationResult; /** Optional parameters. */ -export interface ReplicationLinksFailoverAllowDataLossOptionalParams +export interface ServersRefreshStatusOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16273,29 +16417,36 @@ export interface ReplicationLinksFailoverAllowDataLossOptionalParams resumeFrom?: string; } -/** Contains response data for the failoverAllowDataLoss operation. */ -export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink; +/** Contains response data for the refreshStatus operation. */ +export type ServersRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResult; /** Optional parameters. */ -export interface ReplicationLinksListByServerOptionalParams +export interface ServersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; +/** Contains response data for the listNext operation. */ +export type ServersListNextResponse = ServerListResult; /** Optional parameters. */ -export interface ReplicationLinksListByDatabaseNextOptionalParams +export interface ServersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ServersListByResourceGroupNextResponse = ServerListResult; /** Optional parameters. */ -export interface ReplicationLinksListByServerNextOptionalParams +export interface SqlAgentGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; +/** Contains response data for the get operation. */ +export type SqlAgentGetResponse = SqlAgentConfiguration; + +/** Optional parameters. */ +export interface SqlAgentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; /** Optional parameters. */ export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams @@ -16441,286 +16592,88 @@ export interface SqlVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedDatabaseMoveOperationsListByLocationOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** Whether or not to only get the latest operation for each database. Has higher priority than $filter. */ - onlyLatestPerDatabase?: boolean; -} - -/** Contains response data for the listByLocation operation. */ -export type ManagedDatabaseMoveOperationsListByLocationResponse = ManagedDatabaseMoveOperationListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseMoveOperationsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedDatabaseMoveOperationsGetResponse = ManagedDatabaseMoveOperationResult; - -/** Optional parameters. */ -export interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type ManagedDatabaseMoveOperationsListByLocationNextResponse = ManagedDatabaseMoveOperationListResult; - -/** Optional parameters. */ -export interface ManagedInstanceDtcsListByManagedInstanceOptionalParams +export interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstanceDtcsListByManagedInstanceResponse = ManagedInstanceDtcListResult; +/** Contains response data for the listByInstance operation. */ +export type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopManagedInstanceScheduleListResult; /** Optional parameters. */ -export interface ManagedInstanceDtcsGetOptionalParams +export interface StartStopManagedInstanceSchedulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceDtcsGetResponse = ManagedInstanceDtc; - -/** Optional parameters. */ -export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceDtcsCreateOrUpdateResponse = ManagedInstanceDtc; - -/** Optional parameters. */ -export interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstanceDtcsListByManagedInstanceNextResponse = ManagedInstanceDtcListResult; - -/** Optional parameters. */ -export interface SynapseLinkWorkspacesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type SynapseLinkWorkspacesListByDatabaseResponse = SynapseLinkWorkspaceListResult; - -/** Optional parameters. */ -export interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type SynapseLinkWorkspacesListByDatabaseNextResponse = SynapseLinkWorkspaceListResult; - -/** Optional parameters. */ -export interface VirtualClustersListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type VirtualClustersListResponse = VirtualClusterListResult; - -/** Optional parameters. */ -export interface VirtualClustersListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; +export type StartStopManagedInstanceSchedulesGetResponse = StartStopManagedInstanceSchedule; /** Optional parameters. */ -export interface VirtualClustersGetOptionalParams +export interface StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type VirtualClustersGetResponse = VirtualCluster; - -/** Optional parameters. */ -export interface VirtualClustersDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface VirtualClustersUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type VirtualClustersUpdateResponse = VirtualCluster; - -/** Optional parameters. */ -export interface VirtualClustersUpdateDnsServersOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the updateDnsServers operation. */ -export type VirtualClustersUpdateDnsServersResponse = UpdateVirtualClusterDnsServersOperation; +/** Contains response data for the createOrUpdate operation. */ +export type StartStopManagedInstanceSchedulesCreateOrUpdateResponse = StartStopManagedInstanceSchedule; /** Optional parameters. */ -export interface VirtualClustersListNextOptionalParams +export interface StartStopManagedInstanceSchedulesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type VirtualClustersListNextResponse = VirtualClusterListResult; - /** Optional parameters. */ -export interface VirtualClustersListByResourceGroupNextOptionalParams +export interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type StartStopManagedInstanceSchedulesListByInstanceNextResponse = StartStopManagedInstanceScheduleListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationOptionalParams +export interface SubscriptionUsagesListByLocationOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ -export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; +export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsGetOptionalParams +export interface SubscriptionUsagesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; - -/** Optional parameters. */ -export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; - -/** Optional parameters. */ -export interface InstanceFailoverGroupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface InstanceFailoverGroupsFailoverOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the failover operation. */ -export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; - -/** Optional parameters. */ -export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the forceFailoverAllowDataLoss operation. */ -export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; +export type SubscriptionUsagesGetResponse = SubscriptionUsage; /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationNextOptionalParams +export interface SubscriptionUsagesListByLocationNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ -export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseRestoreDetailsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; - -/** Optional parameters. */ -export interface ManagedDatabasesListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; +export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; /** Optional parameters. */ -export interface ManagedDatabasesGetOptionalParams +export interface SynapseLinkWorkspacesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabasesGetResponse = ManagedDatabase; - -/** Optional parameters. */ -export interface ManagedDatabasesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; +/** Contains response data for the listByDatabase operation. */ +export type SynapseLinkWorkspacesListByDatabaseResponse = SynapseLinkWorkspaceListResult; /** Optional parameters. */ -export interface ManagedDatabasesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type SynapseLinkWorkspacesListByDatabaseNextResponse = SynapseLinkWorkspaceListResult; /** Optional parameters. */ -export interface ManagedDatabasesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SyncAgentsListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ManagedDatabasesUpdateResponse = ManagedDatabase; +/** Contains response data for the listByServer operation. */ +export type SyncAgentsListByServerResponse = SyncAgentListResult; /** Optional parameters. */ -export interface ManagedDatabasesCancelMoveOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SyncAgentsGetOptionalParams + extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedDatabasesCompleteMoveOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the get operation. */ +export type SyncAgentsGetResponse = SyncAgent; /** Optional parameters. */ -export interface ManagedDatabasesCompleteRestoreOptionalParams +export interface SyncAgentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16728,8 +16681,11 @@ export interface ManagedDatabasesCompleteRestoreOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type SyncAgentsCreateOrUpdateResponse = SyncAgent; + /** Optional parameters. */ -export interface ManagedDatabasesStartMoveOptionalParams +export interface SyncAgentsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16738,86 +16694,56 @@ export interface ManagedDatabasesStartMoveOptionalParams } /** Optional parameters. */ -export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams +export interface SyncAgentsGenerateKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByInstance operation. */ -export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; +/** Contains response data for the generateKey operation. */ +export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; /** Optional parameters. */ -export interface ManagedDatabasesListByInstanceNextOptionalParams +export interface SyncAgentsListLinkedDatabasesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; +/** Contains response data for the listLinkedDatabases operation. */ +export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; /** Optional parameters. */ -export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams +export interface SyncAgentsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByInstanceNext operation. */ -export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; - -/** Optional parameters. */ -export interface DatabaseEncryptionProtectorsRevalidateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface DatabaseEncryptionProtectorsRevertOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the listByServerNext operation. */ +export type SyncAgentsListByServerNextResponse = SyncAgentListResult; /** Optional parameters. */ -export interface ManagedInstancesListOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface SyncAgentsListLinkedDatabasesNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ManagedInstancesListResponse = ManagedInstanceListResult; +/** Contains response data for the listLinkedDatabasesNext operation. */ +export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; /** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface SyncGroupsListSyncDatabaseIdsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePool operation. */ -export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; +/** Contains response data for the listSyncDatabaseIds operation. */ +export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; /** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface SyncGroupsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; +/** Contains response data for the listByDatabase operation. */ +export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; /** Optional parameters. */ -export interface ManagedInstancesGetOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface SyncGroupsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancesGetResponse = ManagedInstance; +export type SyncGroupsGetResponse = SyncGroup; /** Optional parameters. */ -export interface ManagedInstancesCreateOrUpdateOptionalParams +export interface SyncGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16826,10 +16752,10 @@ export interface ManagedInstancesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance; +export type SyncGroupsCreateOrUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface ManagedInstancesDeleteOptionalParams +export interface SyncGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16838,7 +16764,7 @@ export interface ManagedInstancesDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstancesUpdateOptionalParams +export interface SyncGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16847,37 +16773,31 @@ export interface ManagedInstancesUpdateOptionalParams } /** Contains response data for the update operation. */ -export type ManagedInstancesUpdateResponse = ManagedInstance; +export type SyncGroupsUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface ManagedInstancesFailoverOptionalParams - extends coreClient.OperationOptions { - /** The type of replica to be failed over. */ - replicaType?: ReplicaType; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SyncGroupsCancelSyncOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams +export interface SyncGroupsListHubSchemasOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listOutboundNetworkDependenciesByManagedInstance operation. */ -export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse = OutboundEnvironmentEndpointCollection; +/** Contains response data for the listHubSchemas operation. */ +export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ManagedInstancesStartOptionalParams +export interface SyncGroupsListLogsOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The continuation token for this operation. */ + continuationToken?: string; } +/** Contains response data for the listLogs operation. */ +export type SyncGroupsListLogsResponse = SyncGroupLogListResult; + /** Optional parameters. */ -export interface ManagedInstancesStopOptionalParams +export interface SyncGroupsRefreshHubSchemaOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16886,78 +16806,53 @@ export interface ManagedInstancesStopOptionalParams } /** Optional parameters. */ -export interface ManagedInstancesListByManagedInstanceOptionalParams - extends coreClient.OperationOptions { - /** Start time for observed period. */ - startTime?: string; - /** End time for observed period. */ - endTime?: string; - /** The time step to be used to summarize the metric values. Default value is PT1H */ - interval?: QueryTimeGrainType; - /** How many 'top queries' to return. Default is 5. */ - numberOfQueries?: number; - /** Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified. */ - databases?: string; - /** Aggregation function to be used, default value is 'sum' */ - aggregationFunction?: AggregationFunctionType; - /** Metric to be used for ranking top queries. Default is 'cpu' */ - observationMetric?: MetricType; -} - -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; - -/** Optional parameters. */ -export interface ManagedInstancesListNextOptionalParams +export interface SyncGroupsTriggerSyncOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ManagedInstancesListNextResponse = ManagedInstanceListResult; - /** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolNextOptionalParams +export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePoolNext operation. */ -export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; +/** Contains response data for the listSyncDatabaseIdsNext operation. */ +export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; /** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupNextOptionalParams +export interface SyncGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; /** Optional parameters. */ -export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams +export interface SyncGroupsListHubSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listOutboundNetworkDependenciesByManagedInstanceNext operation. */ -export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse = OutboundEnvironmentEndpointCollection; +/** Contains response data for the listHubSchemasNext operation. */ +export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ManagedInstancesListByManagedInstanceNextOptionalParams +export interface SyncGroupsListLogsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; +/** Contains response data for the listLogsNext operation. */ +export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams +export interface SyncMembersListBySyncGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedLedgerDigestUploadsListByDatabaseResponse = ManagedLedgerDigestUploadsListResult; +/** Contains response data for the listBySyncGroup operation. */ +export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsGetOptionalParams +export interface SyncMembersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedLedgerDigestUploadsGetResponse = ManagedLedgerDigestUploads; +export type SyncMembersGetResponse = SyncMember; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams +export interface SyncMembersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16966,10 +16861,31 @@ export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedLedgerDigestUploadsCreateOrUpdateResponse = ManagedLedgerDigestUploads; +export type SyncMembersCreateOrUpdateResponse = SyncMember; + +/** Optional parameters. */ +export interface SyncMembersDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface SyncMembersUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type SyncMembersUpdateResponse = SyncMember; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsDisableOptionalParams +export interface SyncMembersRefreshMemberSchemaOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16977,84 +16893,73 @@ export interface ManagedLedgerDigestUploadsDisableOptionalParams resumeFrom?: string; } -/** Contains response data for the disable operation. */ -export type ManagedLedgerDigestUploadsDisableResponse = ManagedLedgerDigestUploads; +/** Optional parameters. */ +export interface SyncMembersListMemberSchemasOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listMemberSchemas operation. */ +export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams +export interface SyncMembersListBySyncGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedLedgerDigestUploadsListByDatabaseNextResponse = ManagedLedgerDigestUploadsListResult; +/** Contains response data for the listBySyncGroupNext operation. */ +export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; /** Optional parameters. */ -export interface RecoverableDatabasesListByServerOptionalParams +export interface SyncMembersListMemberSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; +/** Contains response data for the listMemberSchemasNext operation. */ +export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface RecoverableDatabasesGetOptionalParams +export interface TdeCertificatesCreateOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the get operation. */ -export type RecoverableDatabasesGetResponse = RecoverableDatabase; - /** Optional parameters. */ -export interface RecoverableDatabasesListByServerNextOptionalParams +export interface TimeZonesListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type RecoverableDatabasesListByServerNextResponse = RecoverableDatabaseListResult; +/** Contains response data for the listByLocation operation. */ +export type TimeZonesListByLocationResponse = TimeZoneListResult; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerOptionalParams +export interface TimeZonesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; - -/** Optional parameters. */ -export interface RestorableDroppedDatabasesGetOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} - /** Contains response data for the get operation. */ -export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; +export type TimeZonesGetResponse = TimeZone; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerNextOptionalParams +export interface TimeZonesListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; +/** Contains response data for the listByLocationNext operation. */ +export type TimeZonesListByLocationNextResponse = TimeZoneListResult; /** Optional parameters. */ -export interface ServerConfigurationOptionsListByManagedInstanceOptionalParams +export interface TransparentDataEncryptionsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ServerConfigurationOptionsListByManagedInstanceResponse = ServerConfigurationOptionListResult; +/** Contains response data for the listByDatabase operation. */ +export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface ServerConfigurationOptionsGetOptionalParams +export interface TransparentDataEncryptionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerConfigurationOptionsGetResponse = ServerConfigurationOption; +export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface ServerConfigurationOptionsCreateOrUpdateOptionalParams +export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17063,52 +16968,55 @@ export interface ServerConfigurationOptionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerConfigurationOptionsCreateOrUpdateResponse = ServerConfigurationOption; +export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams +export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ServerConfigurationOptionsListByManagedInstanceNextResponse = ServerConfigurationOptionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface ServersCheckNameAvailabilityOptionalParams +export interface UsagesListByInstancePoolOptionalParams + extends coreClient.OperationOptions { + /** Optional request parameter to include managed instance usages within the instance pool. */ + expandChildren?: boolean; +} + +/** Contains response data for the listByInstancePool operation. */ +export type UsagesListByInstancePoolResponse = UsageListResult; + +/** Optional parameters. */ +export interface UsagesListByInstancePoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkNameAvailability operation. */ -export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; +/** Contains response data for the listByInstancePoolNext operation. */ +export type UsagesListByInstancePoolNextResponse = UsageListResult; /** Optional parameters. */ -export interface ServersListOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface VirtualClustersListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ServersListResponse = ServerListResult; +export type VirtualClustersListResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServersListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface VirtualClustersListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type ServersListByResourceGroupResponse = ServerListResult; +export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServersGetOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface VirtualClustersGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServersGetResponse = Server; +export type VirtualClustersGetResponse = VirtualCluster; /** Optional parameters. */ -export interface ServersCreateOrUpdateOptionalParams +export interface VirtualClustersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17116,11 +17024,8 @@ export interface ServersCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServersCreateOrUpdateResponse = Server; - /** Optional parameters. */ -export interface ServersDeleteOptionalParams +export interface VirtualClustersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17128,8 +17033,11 @@ export interface ServersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type VirtualClustersUpdateResponse = VirtualCluster; + /** Optional parameters. */ -export interface ServersUpdateOptionalParams +export interface VirtualClustersUpdateDnsServersOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17137,11 +17045,39 @@ export interface ServersUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ServersUpdateResponse = Server; +/** Contains response data for the updateDnsServers operation. */ +export type VirtualClustersUpdateDnsServersResponse = UpdateVirtualClusterDnsServersOperation; /** Optional parameters. */ -export interface ServersImportDatabaseOptionalParams +export interface VirtualClustersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type VirtualClustersListNextResponse = VirtualClusterListResult; + +/** Optional parameters. */ +export interface VirtualClustersListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; + +/** Optional parameters. */ +export interface VirtualNetworkRulesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; + +/** Optional parameters. */ +export interface VirtualNetworkRulesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type VirtualNetworkRulesGetResponse = VirtualNetworkRule; + +/** Optional parameters. */ +export interface VirtualNetworkRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17149,11 +17085,11 @@ export interface ServersImportDatabaseOptionalParams resumeFrom?: string; } -/** Contains response data for the importDatabase operation. */ -export type ServersImportDatabaseResponse = ImportExportOperationResult; +/** Contains response data for the createOrUpdate operation. */ +export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; /** Optional parameters. */ -export interface ServersRefreshStatusOptionalParams +export interface VirtualNetworkRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17161,71 +17097,71 @@ export interface ServersRefreshStatusOptionalParams resumeFrom?: string; } -/** Contains response data for the refreshStatus operation. */ -export type ServersRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResult; - -/** Optional parameters. */ -export interface ServersListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ServersListNextResponse = ServerListResult; - /** Optional parameters. */ -export interface ServersListByResourceGroupNextOptionalParams +export interface VirtualNetworkRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ServersListByResourceGroupNextResponse = ServerListResult; +/** Contains response data for the listByServerNext operation. */ +export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams +export interface WorkloadClassifiersListByWorkloadGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopManagedInstanceScheduleListResult; +/** Contains response data for the listByWorkloadGroup operation. */ +export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesGetOptionalParams +export interface WorkloadClassifiersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type StartStopManagedInstanceSchedulesGetResponse = StartStopManagedInstanceSchedule; +export type WorkloadClassifiersGetResponse = WorkloadClassifier; /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadClassifiersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type StartStopManagedInstanceSchedulesCreateOrUpdateResponse = StartStopManagedInstanceSchedule; +export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadClassifiersDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams +export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type StartStopManagedInstanceSchedulesListByInstanceNextResponse = StartStopManagedInstanceScheduleListResult; +/** Contains response data for the listByWorkloadGroupNext operation. */ +export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseOptionalParams +export interface WorkloadGroupsListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; +export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsGetOptionalParams +export interface WorkloadGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; +export type WorkloadGroupsGetResponse = WorkloadGroup; /** Optional parameters. */ -export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams +export interface WorkloadGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17234,20 +17170,31 @@ export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; +export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams +export interface WorkloadGroupsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface WorkloadGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; +export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; /** Optional parameters. */ export interface SqlManagementClientOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; + /** Api Version */ + apiVersion?: string; /** Overrides client endpoint. */ endpoint?: string; } diff --git a/sdk/sql/arm-sql/src/models/mappers.ts b/sdk/sql/arm-sql/src/models/mappers.ts index 49fe7ed3686f..ea42f1e9eea9 100644 --- a/sdk/sql/arm-sql/src/models/mappers.ts +++ b/sdk/sql/arm-sql/src/models/mappers.ts @@ -8,6 +8,35 @@ import * as coreClient from "@azure/core-client"; +export const BackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BackupShortTermRetentionPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackupShortTermRetentionPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -38,141 +67,142 @@ export const Resource: coreClient.CompositeMapper = { } }; -export const DataMaskingRuleListResult: coreClient.CompositeMapper = { +export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingRuleListResult", + className: "ServerBlobAuditingPolicyListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DataMaskingRule" + className: "ServerBlobAuditingPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const GeoBackupPolicyListResult: coreClient.CompositeMapper = { +export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GeoBackupPolicyListResult", + className: "DatabaseBlobAuditingPolicyListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GeoBackupPolicy" + className: "DatabaseBlobAuditingPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const MetricListResult: coreClient.CompositeMapper = { +export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricListResult", + className: "ExtendedDatabaseBlobAuditingPolicyListResult", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Metric" + className: "ExtendedDatabaseBlobAuditingPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const Metric: coreClient.CompositeMapper = { +export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Metric", + className: "ExtendedServerBlobAuditingPolicyListResult", modelProperties: { - startTime: { - serializedName: "startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - timeGrain: { - serializedName: "timeGrain", - readOnly: true, - type: { - name: "String" - } - }, - unit: { - serializedName: "unit", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "Composite", - className: "MetricName" - } - }, - metricValues: { - serializedName: "metricValues", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricValue" + className: "ExtendedServerBlobAuditingPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const MetricName: coreClient.CompositeMapper = { +export const DataMaskingRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricName", + className: "DataMaskingRuleListResult", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataMaskingRule" + } + } } }, - localizedValue: { - serializedName: "localizedValue", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -182,368 +212,158 @@ export const MetricName: coreClient.CompositeMapper = { } }; -export const MetricValue: coreClient.CompositeMapper = { +export const DataWarehouseUserActivitiesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricValue", + className: "DataWarehouseUserActivitiesListResult", modelProperties: { - count: { - serializedName: "count", - readOnly: true, - type: { - name: "Number" - } - }, - average: { - serializedName: "average", - readOnly: true, - type: { - name: "Number" - } - }, - maximum: { - serializedName: "maximum", - readOnly: true, - type: { - name: "Number" - } - }, - minimum: { - serializedName: "minimum", - readOnly: true, - type: { - name: "Number" - } - }, - timestamp: { - serializedName: "timestamp", + value: { + serializedName: "value", readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataWarehouseUserActivities" + } + } } }, - total: { - serializedName: "total", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const MetricDefinitionListResult: coreClient.CompositeMapper = { +export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDefinitionListResult", + className: "DatabaseAdvancedThreatProtectionListResult", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricDefinition" + className: "DatabaseAdvancedThreatProtection" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const MetricDefinition: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDefinition", + className: "SystemData", modelProperties: { - name: { - serializedName: "name", + createdBy: { + serializedName: "createdBy", type: { - name: "Composite", - className: "MetricName" + name: "String" } }, - primaryAggregationType: { - serializedName: "primaryAggregationType", - readOnly: true, + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - resourceUri: { - serializedName: "resourceUri", - readOnly: true, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } }, - metricAvailabilities: { - serializedName: "metricAvailabilities", - readOnly: true, + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricAvailability" - } - } + name: "DateTime" } } } } }; -export const MetricAvailability: coreClient.CompositeMapper = { +export const RecommendedActionStateInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricAvailability", + className: "RecommendedActionStateInfo", modelProperties: { - retention: { - serializedName: "retention", - readOnly: true, + currentValue: { + serializedName: "currentValue", + required: true, type: { name: "String" } }, - timeGrain: { - serializedName: "timeGrain", + actionInitiatedBy: { + serializedName: "actionInitiatedBy", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["User", "System"] + } + }, + lastModified: { + serializedName: "lastModified", + readOnly: true, + type: { + name: "DateTime" } } } } }; -export const ServerCommunicationLinkListResult: coreClient.CompositeMapper = { +export const RecommendedActionImplementationInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerCommunicationLinkListResult", + className: "RecommendedActionImplementationInfo", modelProperties: { - value: { - serializedName: "value", + method: { + serializedName: "method", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerCommunicationLink" - } - } - } - } - } - } -}; - -export const ServiceObjectiveListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceObjectiveListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceObjective" - } - } - } - } - } - } -}; - -export const ElasticPoolActivityListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPoolActivityListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolActivity" - } - } - } - } - } - } -}; - -export const ElasticPoolDatabaseActivityListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPoolDatabaseActivityListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolDatabaseActivity" - } - } - } - } - } - } -}; - -export const ServerUsageListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerUsageListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerUsage" - } - } - } - } - } - } -}; - -export const ServerUsage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerUsage", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - resourceName: { - serializedName: "resourceName", - readOnly: true, - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - readOnly: true, - type: { - name: "String" - } - }, - currentValue: { - serializedName: "currentValue", - readOnly: true, - type: { - name: "Number" - } - }, - limit: { - serializedName: "limit", - readOnly: true, - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", - readOnly: true, - type: { - name: "String" - } - }, - nextResetTime: { - serializedName: "nextResetTime", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const RecommendedActionStateInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedActionStateInfo", - modelProperties: { - currentValue: { - serializedName: "currentValue", - required: true, - type: { - name: "String" - } - }, - actionInitiatedBy: { - serializedName: "actionInitiatedBy", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["User", "System"] - } - }, - lastModified: { - serializedName: "lastModified", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const RecommendedActionImplementationInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedActionImplementationInfo", - modelProperties: { - method: { - serializedName: "method", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["TSql", "AzurePowerShell"] - } - }, - script: { - serializedName: "script", - readOnly: true, - type: { - name: "String" + name: "Enum", + allowedValues: ["TSql", "AzurePowerShell"] + } + }, + script: { + serializedName: "script", + readOnly: true, + type: { + name: "String" } } } @@ -738,10 +558,10 @@ export const DatabaseColumnListResult: coreClient.CompositeMapper = { } }; -export const DatabaseSchemaListResult: coreClient.CompositeMapper = { +export const ImportExportExtensionsOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSchemaListResult", + className: "ImportExportExtensionsOperationListResult", modelProperties: { value: { serializedName: "value", @@ -751,7 +571,7 @@ export const DatabaseSchemaListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DatabaseSchema" + className: "ImportExportExtensionsOperationResult" } } } @@ -767,55 +587,61 @@ export const DatabaseSchemaListResult: coreClient.CompositeMapper = { } }; -export const SystemData: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionRequestStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "PrivateEndpointConnectionRequestStatus", modelProperties: { - createdBy: { - serializedName: "createdBy", + privateLinkServiceId: { + serializedName: "privateLinkServiceId", + readOnly: true, type: { name: "String" } }, - createdByType: { - serializedName: "createdByType", + privateEndpointConnectionName: { + serializedName: "privateEndpointConnectionName", + readOnly: true, type: { name: "String" } }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + } + } + } +}; + +export const NetworkIsolationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkIsolationSettings", + modelProperties: { + storageAccountResourceId: { + serializedName: "storageAccountResourceId", type: { name: "String" } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + sqlServerResourceId: { + serializedName: "sqlServerResourceId", type: { - name: "DateTime" + name: "String" } } } } }; -export const DatabaseSecurityAlertListResult: coreClient.CompositeMapper = { +export const DatabaseOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSecurityAlertListResult", + className: "DatabaseOperationListResult", modelProperties: { value: { serializedName: "value", @@ -825,7 +651,7 @@ export const DatabaseSecurityAlertListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DatabaseSecurityAlertPolicy" + className: "DatabaseOperation" } } } @@ -841,93 +667,63 @@ export const DatabaseSecurityAlertListResult: coreClient.CompositeMapper = { } }; -export const DatabaseTableListResult: coreClient.CompositeMapper = { +export const PhaseDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseTableListResult", + className: "PhaseDetails", modelProperties: { - value: { - serializedName: "value", + phase: { + serializedName: "phase", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseTable" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + phaseInformation: { + serializedName: "phaseInformation", readOnly: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const DatabaseVulnerabilityAssessmentRuleBaselineItem: coreClient.CompositeMapper = { +export const DatabaseSchemaListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem", + className: "DatabaseSchemaListResult", modelProperties: { - result: { - serializedName: "result", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DatabaseSchema" } } } - } - } - } -}; - -export const VulnerabilityAssessmentRecurringScansProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties", - modelProperties: { - isEnabled: { - serializedName: "isEnabled", - type: { - name: "Boolean" - } - }, - emailSubscriptionAdmins: { - defaultValue: true, - serializedName: "emailSubscriptionAdmins", - type: { - name: "Boolean" - } }, - emails: { - serializedName: "emails", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const DatabaseVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { +export const DatabaseSecurityAlertListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentListResult", + className: "DatabaseSecurityAlertListResult", modelProperties: { value: { serializedName: "value", @@ -937,7 +733,7 @@ export const DatabaseVulnerabilityAssessmentListResult: coreClient.CompositeMapp element: { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessment" + className: "DatabaseSecurityAlertPolicy" } } } @@ -953,10 +749,10 @@ export const DatabaseVulnerabilityAssessmentListResult: coreClient.CompositeMapp } }; -export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecordListResult", + className: "DatabaseSqlVulnerabilityAssessmentBaselineSetListResult", modelProperties: { value: { serializedName: "value", @@ -966,7 +762,7 @@ export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMa element: { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecord" + className: "DatabaseSqlVulnerabilityAssessmentBaselineSet" } } } @@ -982,20 +778,26 @@ export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMa } }; -export const VulnerabilityAssessmentScanError: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentScanError", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult", modelProperties: { - code: { - serializedName: "code", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline" + } + } } }, - message: { - serializedName: "message", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -1005,10 +807,10 @@ export const VulnerabilityAssessmentScanError: coreClient.CompositeMapper = { } }; -export const DataWarehouseUserActivitiesListResult: coreClient.CompositeMapper = { +export const SQLVulnerabilityAssessmentScanListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataWarehouseUserActivitiesListResult", + className: "SQLVulnerabilityAssessmentScanListResult", modelProperties: { value: { serializedName: "value", @@ -1018,7 +820,7 @@ export const DataWarehouseUserActivitiesListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "DataWarehouseUserActivities" + className: "SqlVulnerabilityAssessmentScanResults" } } } @@ -1034,26 +836,39 @@ export const DataWarehouseUserActivitiesListResult: coreClient.CompositeMapper = } }; -export const DeletedServerListResult: coreClient.CompositeMapper = { +export const Remediation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeletedServerListResult", + className: "Remediation", modelProperties: { - value: { - serializedName: "value", + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + }, + scripts: { + serializedName: "scripts", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DeletedServer" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + automated: { + serializedName: "automated", + readOnly: true, + type: { + name: "Boolean" + } + }, + portalLink: { + serializedName: "portalLink", readOnly: true, type: { name: "String" @@ -1063,164 +878,166 @@ export const DeletedServerListResult: coreClient.CompositeMapper = { } }; -export const ElasticPoolOperationListResult: coreClient.CompositeMapper = { +export const BaselineAdjustedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolOperationListResult", + className: "BaselineAdjustedResult", modelProperties: { - value: { - serializedName: "value", + baseline: { + serializedName: "baseline", + type: { + name: "Composite", + className: "Baseline" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + }, + resultsNotInBaseline: { + serializedName: "resultsNotInBaseline", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ElasticPoolOperation" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } }, - nextLink: { - serializedName: "nextLink", + resultsOnlyInBaseline: { + serializedName: "resultsOnlyInBaseline", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const EncryptionProtectorListResult: coreClient.CompositeMapper = { +export const Baseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtectorListResult", + className: "Baseline", modelProperties: { - value: { - serializedName: "value", + expectedResults: { + serializedName: "expectedResults", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "EncryptionProtector" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } }, - nextLink: { - serializedName: "nextLink", + updatedTime: { + serializedName: "updatedTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { +export const VaRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupReadWriteEndpoint", + className: "VaRule", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - required: true, + ruleId: { + serializedName: "ruleId", + readOnly: true, type: { name: "String" } }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", + severity: { + serializedName: "severity", + readOnly: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", + }, + category: { + serializedName: "category", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PartnerInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartnerInfo", - modelProperties: { - id: { - serializedName: "id", - required: true, + }, + ruleType: { + serializedName: "ruleType", + readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", + title: { + serializedName: "title", readOnly: true, type: { name: "String" } }, - replicationRole: { - serializedName: "replicationRole", + description: { + serializedName: "description", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const FailoverGroupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", + rationale: { + serializedName: "rationale", + readOnly: true, type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" + name: "String" } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + queryCheck: { + serializedName: "queryCheck", type: { name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" + className: "QueryCheck" } }, - databases: { - serializedName: "properties.databases", + benchmarkReferences: { + serializedName: "benchmarkReferences", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "BenchmarkReference" } } } @@ -1229,55 +1046,65 @@ export const FailoverGroupUpdate: coreClient.CompositeMapper = { } }; -export const FailoverGroupListResult: coreClient.CompositeMapper = { +export const QueryCheck: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupListResult", + className: "QueryCheck", modelProperties: { - value: { - serializedName: "value", + query: { + serializedName: "query", + readOnly: true, + type: { + name: "String" + } + }, + expectedResult: { + serializedName: "expectedResult", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "FailoverGroup" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } }, - nextLink: { - serializedName: "nextLink", + columnNames: { + serializedName: "columnNames", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ResourceWithWritableName: coreClient.CompositeMapper = { +export const BenchmarkReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceWithWritableName", + className: "BenchmarkReference", modelProperties: { - id: { - serializedName: "id", + benchmark: { + serializedName: "benchmark", readOnly: true, type: { name: "String" } }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", + reference: { + serializedName: "reference", readOnly: true, type: { name: "String" @@ -1287,10 +1114,10 @@ export const ResourceWithWritableName: coreClient.CompositeMapper = { } }; -export const FirewallRuleListResult: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirewallRuleListResult", + className: "SqlVulnerabilityAssessmentScanRecordListResult", modelProperties: { value: { serializedName: "value", @@ -1300,7 +1127,7 @@ export const FirewallRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "FirewallRule" + className: "SqlVulnerabilityAssessmentScanRecord" } } } @@ -1316,87 +1143,33 @@ export const FirewallRuleListResult: coreClient.CompositeMapper = { } }; -export const FirewallRuleList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FirewallRuleList", - modelProperties: { - values: { - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FirewallRule" - } - } - } - } - } - } -}; - -export const Sku: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "SqlVulnerabilityAssessmentScanError", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", - type: { - name: "String" - } - }, - size: { - serializedName: "size", + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - family: { - serializedName: "family", + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } - }, - capacity: { - serializedName: "capacity", - type: { - name: "Number" - } - } - } - } -}; - -export const InstancePoolUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InstancePoolUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } } } } }; -export const InstancePoolListResult: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolListResult", + className: "SqlVulnerabilityAssessmentListResult", modelProperties: { value: { serializedName: "value", @@ -1406,7 +1179,7 @@ export const InstancePoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstancePool" + className: "SqlVulnerabilityAssessment" } } } @@ -1422,10 +1195,10 @@ export const InstancePoolListResult: coreClient.CompositeMapper = { } }; -export const JobAgentListResult: coreClient.CompositeMapper = { +export const DatabaseTableListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobAgentListResult", + className: "DatabaseTableListResult", modelProperties: { value: { serializedName: "value", @@ -1435,7 +1208,7 @@ export const JobAgentListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobAgent" + className: "DatabaseTable" } } } @@ -1451,26 +1224,10 @@ export const JobAgentListResult: coreClient.CompositeMapper = { } }; -export const JobAgentUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobAgentUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const JobCredentialListResult: coreClient.CompositeMapper = { +export const DatabaseUsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobCredentialListResult", + className: "DatabaseUsageListResult", modelProperties: { value: { serializedName: "value", @@ -1480,7 +1237,7 @@ export const JobCredentialListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobCredential" + className: "DatabaseUsage" } } } @@ -1496,10 +1253,31 @@ export const JobCredentialListResult: coreClient.CompositeMapper = { } }; -export const JobExecutionListResult: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentRuleBaselineItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobExecutionListResult", + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem", + modelProperties: { + result: { + serializedName: "result", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanRecordListResult", modelProperties: { value: { serializedName: "value", @@ -1509,7 +1287,7 @@ export const JobExecutionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobExecution" + className: "VulnerabilityAssessmentScanRecord" } } } @@ -1525,27 +1303,20 @@ export const JobExecutionListResult: coreClient.CompositeMapper = { } }; -export const JobExecutionTarget: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentScanError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobExecutionTarget", + className: "VulnerabilityAssessmentScanError", modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - serverName: { - serializedName: "serverName", + code: { + serializedName: "code", readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "databaseName", + message: { + serializedName: "message", readOnly: true, type: { name: "String" @@ -1555,10 +1326,10 @@ export const JobExecutionTarget: coreClient.CompositeMapper = { } }; -export const JobListResult: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobListResult", + className: "DatabaseVulnerabilityAssessmentListResult", modelProperties: { value: { serializedName: "value", @@ -1568,7 +1339,7 @@ export const JobListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Job" + className: "DatabaseVulnerabilityAssessment" } } } @@ -1584,53 +1355,43 @@ export const JobListResult: coreClient.CompositeMapper = { } }; -export const JobSchedule: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentRecurringScansProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobSchedule", + className: "VulnerabilityAssessmentRecurringScansProperties", modelProperties: { - startTime: { - defaultValue: "0001-01-01T00:00:00+00:00", - serializedName: "startTime", + isEnabled: { + serializedName: "isEnabled", type: { - name: "DateTime" + name: "Boolean" } }, - endTime: { - defaultValue: "9999-12-31T11:59:59+00:00", - serializedName: "endTime", - type: { - name: "DateTime" - } - }, - type: { - defaultValue: "Once", - serializedName: "type", - type: { - name: "Enum", - allowedValues: ["Once", "Recurring"] - } - }, - enabled: { - serializedName: "enabled", + emailSubscriptionAdmins: { + defaultValue: true, + serializedName: "emailSubscriptionAdmins", type: { name: "Boolean" } }, - interval: { - serializedName: "interval", + emails: { + serializedName: "emails", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const JobStepListResult: coreClient.CompositeMapper = { +export const DatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStepListResult", + className: "DatabaseListResult", modelProperties: { value: { serializedName: "value", @@ -1640,7 +1401,7 @@ export const JobStepListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobStep" + className: "Database" } } } @@ -1656,163 +1417,128 @@ export const JobStepListResult: coreClient.CompositeMapper = { } }; -export const JobStepAction: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStepAction", + className: "Sku", modelProperties: { - type: { - defaultValue: "TSql", - serializedName: "type", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - source: { - defaultValue: "Inline", - serializedName: "source", + tier: { + serializedName: "tier", type: { name: "String" } }, - value: { - serializedName: "value", - required: true, + size: { + serializedName: "size", + type: { + name: "String" + } + }, + family: { + serializedName: "family", type: { name: "String" } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } } } } }; -export const JobStepOutput: coreClient.CompositeMapper = { +export const DatabaseIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStepOutput", + className: "DatabaseIdentity", modelProperties: { type: { - defaultValue: "SqlDatabase", serializedName: "type", type: { name: "String" } }, - subscriptionId: { - serializedName: "subscriptionId", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { name: "Uuid" } }, - resourceGroupName: { - serializedName: "resourceGroupName", - type: { - name: "String" - } - }, - serverName: { - serializedName: "serverName", - required: true, - type: { - name: "String" - } - }, - databaseName: { - serializedName: "databaseName", - required: true, - type: { - name: "String" - } - }, - schemaName: { - defaultValue: "dbo", - serializedName: "schemaName", - type: { - name: "String" - } - }, - tableName: { - serializedName: "tableName", - required: true, - type: { - name: "String" - } - }, - credential: { - serializedName: "credential", - required: true, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Composite", className: "DatabaseUserIdentity" } + } } } } } }; -export const JobStepExecutionOptions: coreClient.CompositeMapper = { +export const DatabaseUserIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStepExecutionOptions", + className: "DatabaseUserIdentity", modelProperties: { - timeoutSeconds: { - defaultValue: 43200, - serializedName: "timeoutSeconds", - type: { - name: "Number" - } - }, - retryAttempts: { - defaultValue: 10, - serializedName: "retryAttempts", - type: { - name: "Number" - } - }, - initialRetryIntervalSeconds: { - defaultValue: 1, - serializedName: "initialRetryIntervalSeconds", - type: { - name: "Number" - } - }, - maximumRetryIntervalSeconds: { - defaultValue: 120, - serializedName: "maximumRetryIntervalSeconds", + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - retryIntervalBackoffMultiplier: { - defaultValue: 2, - serializedName: "retryIntervalBackoffMultiplier", + clientId: { + serializedName: "clientId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } } } } }; -export const JobTargetGroupListResult: coreClient.CompositeMapper = { +export const DatabaseKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobTargetGroupListResult", + className: "DatabaseKey", modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobTargetGroup" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + thumbprint: { + serializedName: "thumbprint", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + subregion: { + serializedName: "subregion", readOnly: true, type: { name: "String" @@ -1822,491 +1548,431 @@ export const JobTargetGroupListResult: coreClient.CompositeMapper = { } }; -export const JobTarget: coreClient.CompositeMapper = { +export const DatabaseUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobTarget", + className: "DatabaseUpdate", modelProperties: { - membershipType: { - defaultValue: "Include", - serializedName: "membershipType", + sku: { + serializedName: "sku", type: { - name: "Enum", - allowedValues: ["Include", "Exclude"] + name: "Composite", + className: "Sku" } }, - type: { - serializedName: "type", - required: true, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "DatabaseIdentity" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + createMode: { + serializedName: "properties.createMode", type: { name: "String" } }, - serverName: { - serializedName: "serverName", + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - databaseName: { - serializedName: "databaseName", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + type: { + name: "Number" + } + }, + sampleName: { + serializedName: "properties.sampleName", type: { name: "String" } }, - elasticPoolName: { - serializedName: "elasticPoolName", + elasticPoolId: { + serializedName: "properties.elasticPoolId", type: { name: "String" } }, - shardMapName: { - serializedName: "shardMapName", + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { name: "String" } }, - refreshCredential: { - serializedName: "refreshCredential", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const JobVersionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobVersionListResult", - modelProperties: { - value: { - serializedName: "value", + }, + databaseId: { + serializedName: "properties.databaseId", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobVersion" - } - } + name: "Uuid" } }, - nextLink: { - serializedName: "nextLink", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const LocationCapabilities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LocationCapabilities", - modelProperties: { - name: { - serializedName: "name", + }, + currentServiceObjectiveName: { + serializedName: "properties.currentServiceObjectiveName", readOnly: true, type: { name: "String" } }, - supportedServerVersions: { - serializedName: "supportedServerVersions", + requestedServiceObjectiveName: { + serializedName: "properties.requestedServiceObjectiveName", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVersionCapability" - } - } + name: "String" } }, - supportedManagedInstanceVersions: { - serializedName: "supportedManagedInstanceVersions", + defaultSecondaryLocation: { + serializedName: "properties.defaultSecondaryLocation", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceVersionCapability" - } - } + name: "String" } }, - status: { - serializedName: "status", + failoverGroupId: { + serializedName: "properties.failoverGroupId", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } - } - } - } -}; - -export const ServerVersionCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerVersionCapability", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + }, + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "String" + name: "DateTime" } }, - supportedEditions: { - serializedName: "supportedEditions", - readOnly: true, + sourceDatabaseDeletionDate: { + serializedName: "properties.sourceDatabaseDeletionDate", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EditionCapability" - } - } + name: "DateTime" } }, - supportedElasticPoolEditions: { - serializedName: "supportedElasticPoolEditions", - readOnly: true, + recoveryServicesRecoveryPointId: { + serializedName: "properties.recoveryServicesRecoveryPointId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolEditionCapability" - } - } + name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { name: "String" } - } - } - } -}; - -export const EditionCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EditionCapability", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { name: "String" } }, - supportedServiceLevelObjectives: { - serializedName: "supportedServiceLevelObjectives", - readOnly: true, + catalogCollation: { + serializedName: "properties.catalogCollation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceObjectiveCapability" - } - } + name: "String" } }, zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, + serializedName: "properties.zoneRedundant", type: { name: "Boolean" } }, - readScale: { - serializedName: "readScale", + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Composite", - className: "ReadScaleCapability" + name: "String" } }, - supportedStorageCapabilities: { - serializedName: "supportedStorageCapabilities", + maxLogSizeBytes: { + serializedName: "properties.maxLogSizeBytes", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StorageCapability" - } - } + name: "Number" } }, - status: { - serializedName: "status", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "DateTime" } }, - reason: { - serializedName: "reason", + readScale: { + serializedName: "properties.readScale", type: { name: "String" } - } - } - } -}; - -export const ServiceObjectiveCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceObjectiveCapability", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "Uuid" - } }, - name: { - serializedName: "name", - readOnly: true, + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", type: { - name: "String" + name: "Number" } }, - supportedMaxSizes: { - serializedName: "supportedMaxSizes", - readOnly: true, + secondaryType: { + serializedName: "properties.secondaryType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } + name: "String" } }, - performanceLevel: { - serializedName: "performanceLevel", + currentSku: { + serializedName: "properties.currentSku", type: { name: "Composite", - className: "PerformanceLevelCapability" + className: "Sku" } }, - sku: { - serializedName: "sku", + autoPauseDelay: { + serializedName: "properties.autoPauseDelay", type: { - name: "Composite", - className: "Sku" + name: "Number" } }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", + currentBackupStorageRedundancy: { + serializedName: "properties.currentBackupStorageRedundancy", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } + name: "String" } }, - includedMaxSize: { - serializedName: "includedMaxSize", + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, + minCapacity: { + serializedName: "properties.minCapacity", type: { - name: "Boolean" + name: "Number" } }, - supportedAutoPauseDelay: { - serializedName: "supportedAutoPauseDelay", + pausedDate: { + serializedName: "properties.pausedDate", + readOnly: true, type: { - name: "Composite", - className: "AutoPauseDelayTimeRange" + name: "DateTime" } }, - supportedMinCapacities: { - serializedName: "supportedMinCapacities", + resumedDate: { + serializedName: "properties.resumedDate", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MinCapacityCapability" - } - } + name: "DateTime" } }, - computeModel: { - serializedName: "computeModel", - readOnly: true, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } }, - supportedMaintenanceConfigurations: { - serializedName: "supportedMaintenanceConfigurations", - readOnly: true, + isLedgerOn: { + serializedName: "properties.isLedgerOn", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceConfigurationCapability" - } - } + name: "Boolean" } }, - status: { - serializedName: "status", + isInfraEncryptionEnabled: { + serializedName: "properties.isInfraEncryptionEnabled", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "Boolean" } }, - reason: { - serializedName: "reason", + federatedClientId: { + serializedName: "properties.federatedClientId", + type: { + name: "Uuid" + } + }, + keys: { + serializedName: "properties.keys", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "DatabaseKey" } } + } + }, + encryptionProtector: { + serializedName: "properties.encryptionProtector", + type: { + name: "String" + } + }, + preferredEnclaveType: { + serializedName: "properties.preferredEnclaveType", type: { name: "String" } + }, + manualCutover: { + serializedName: "properties.manualCutover", + type: { + name: "Boolean" + } + }, + performCutover: { + serializedName: "properties.performCutover", + type: { + name: "Boolean" + } } } } }; -export const MaxSizeRangeCapability: coreClient.CompositeMapper = { +export const ExportDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaxSizeRangeCapability", + className: "ExportDatabaseDefinition", modelProperties: { - minValue: { - serializedName: "minValue", + storageKeyType: { + serializedName: "storageKeyType", + required: true, type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - maxValue: { - serializedName: "maxValue", + storageKey: { + serializedName: "storageKey", + required: true, type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - scaleSize: { - serializedName: "scaleSize", + storageUri: { + serializedName: "storageUri", + required: true, type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - logSize: { - serializedName: "logSize", + administratorLogin: { + serializedName: "administratorLogin", + required: true, type: { - name: "Composite", - className: "LogSizeCapability" + name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + administratorLoginPassword: { + serializedName: "administratorLoginPassword", + required: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + authenticationType: { + serializedName: "authenticationType", type: { name: "String" } + }, + networkIsolation: { + serializedName: "networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" + } } } } }; -export const MaxSizeCapability: coreClient.CompositeMapper = { +export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaxSizeCapability", + className: "ImportExistingDatabaseDefinition", modelProperties: { - limit: { - serializedName: "limit", - readOnly: true, + storageKeyType: { + serializedName: "storageKeyType", + required: true, type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + storageKey: { + serializedName: "storageKey", + required: true, + type: { + name: "String" + } + }, + storageUri: { + serializedName: "storageUri", + required: true, + type: { + name: "String" + } + }, + administratorLogin: { + serializedName: "administratorLogin", + required: true, + type: { + name: "String" + } + }, + administratorLoginPassword: { + serializedName: "administratorLoginPassword", + required: true, + type: { + name: "String" + } + }, + authenticationType: { + serializedName: "authenticationType", type: { name: "String" } + }, + networkIsolation: { + serializedName: "networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" + } } } } }; -export const LogSizeCapability: coreClient.CompositeMapper = { +export const ResourceMoveDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogSizeCapability", + className: "ResourceMoveDefinition", modelProperties: { - limit: { - serializedName: "limit", - readOnly: true, - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", - readOnly: true, + id: { + serializedName: "id", + required: true, type: { name: "String" } @@ -2315,20 +1981,26 @@ export const LogSizeCapability: coreClient.CompositeMapper = { } }; -export const PerformanceLevelCapability: coreClient.CompositeMapper = { +export const DeletedServerListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PerformanceLevelCapability", + className: "DeletedServerListResult", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeletedServer" + } + } } }, - unit: { - serializedName: "unit", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -2338,28 +2010,27 @@ export const PerformanceLevelCapability: coreClient.CompositeMapper = { } }; -export const LicenseTypeCapability: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LicenseTypeCapability", + className: "DistributedAvailabilityGroupsListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DistributedAvailabilityGroup" + } + } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2368,226 +2039,216 @@ export const LicenseTypeCapability: coreClient.CompositeMapper = { } }; -export const AutoPauseDelayTimeRange: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroupDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoPauseDelayTimeRange", + className: "DistributedAvailabilityGroupDatabase", modelProperties: { - minValue: { - serializedName: "minValue", + databaseName: { + serializedName: "databaseName", readOnly: true, type: { - name: "Number" + name: "String" } }, - maxValue: { - serializedName: "maxValue", + instanceReplicaId: { + serializedName: "instanceReplicaId", readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - stepSize: { - serializedName: "stepSize", + partnerReplicaId: { + serializedName: "partnerReplicaId", readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - default: { - serializedName: "default", + replicaState: { + serializedName: "replicaState", readOnly: true, type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "unit", + synchronizationHealth: { + serializedName: "synchronizationHealth", readOnly: true, type: { name: "String" } }, - doNotPauseValue: { - serializedName: "doNotPauseValue", + connectedState: { + serializedName: "connectedState", readOnly: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const MinCapacityCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MinCapacityCapability", - modelProperties: { - value: { - serializedName: "value", + }, + lastReceivedLsn: { + serializedName: "lastReceivedLsn", readOnly: true, type: { - name: "Number" + name: "String" } }, - status: { - serializedName: "status", + lastReceivedTime: { + serializedName: "lastReceivedTime", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "DateTime" } }, - reason: { - serializedName: "reason", + lastSentLsn: { + serializedName: "lastSentLsn", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const MaintenanceConfigurationCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MaintenanceConfigurationCapability", - modelProperties: { - name: { - serializedName: "name", + }, + lastSentTime: { + serializedName: "lastSentTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - zoneRedundant: { - serializedName: "zoneRedundant", + lastCommitLsn: { + serializedName: "lastCommitLsn", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - status: { - serializedName: "status", + lastCommitTime: { + serializedName: "lastCommitTime", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "DateTime" } }, - reason: { - serializedName: "reason", + lastHardenedLsn: { + serializedName: "lastHardenedLsn", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ReadScaleCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ReadScaleCapability", - modelProperties: { - maxNumberOfReplicas: { - serializedName: "maxNumberOfReplicas", + }, + lastHardenedTime: { + serializedName: "lastHardenedTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - status: { - serializedName: "status", + lastBackupLsn: { + serializedName: "lastBackupLsn", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + lastBackupTime: { + serializedName: "lastBackupTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + mostRecentLinkError: { + serializedName: "mostRecentLinkError", + readOnly: true, type: { name: "String" } + }, + partnerAuthCertValidity: { + serializedName: "partnerAuthCertValidity", + type: { + name: "Composite", + className: "CertificateInfo" + } + }, + instanceSendReplicationLagSeconds: { + serializedName: "instanceSendReplicationLagSeconds", + readOnly: true, + type: { + name: "Number" + } + }, + instanceRedoReplicationLagSeconds: { + serializedName: "instanceRedoReplicationLagSeconds", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const StorageCapability: coreClient.CompositeMapper = { +export const CertificateInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageCapability", + className: "CertificateInfo", modelProperties: { - storageAccountType: { - serializedName: "storageAccountType", + certificateName: { + serializedName: "certificateName", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + certificateId: { + serializedName: "certificateId", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "Uuid" } }, - reason: { - serializedName: "reason", + expiryDate: { + serializedName: "expiryDate", + readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const ElasticPoolEditionCapability: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroupsCreateOrUpdateRequestBody: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolEditionCapability", + className: "DistributedAvailabilityGroupsCreateOrUpdateRequestBody", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + targetDatabase: { + serializedName: "properties.targetDatabase", type: { name: "String" } }, - supportedElasticPoolPerformanceLevels: { - serializedName: "supportedElasticPoolPerformanceLevels", - readOnly: true, + sourceEndpoint: { + serializedName: "properties.sourceEndpoint", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolPerformanceLevelCapability" - } - } + name: "String" } }, - zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, + primaryAvailabilityGroupName: { + serializedName: "properties.primaryAvailabilityGroupName", type: { - name: "Boolean" + name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + secondaryAvailabilityGroupName: { + serializedName: "properties.secondaryAvailabilityGroupName", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + replicationMode: { + serializedName: "properties.replicationMode", type: { name: "String" } @@ -2596,208 +2257,178 @@ export const ElasticPoolEditionCapability: coreClient.CompositeMapper = { } }; -export const ElasticPoolPerformanceLevelCapability: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroupSetRole: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerformanceLevelCapability", + className: "DistributedAvailabilityGroupSetRole", modelProperties: { - performanceLevel: { - serializedName: "performanceLevel", + instanceRole: { + serializedName: "instanceRole", + required: true, type: { - name: "Composite", - className: "PerformanceLevelCapability" + name: "String" } }, - sku: { - serializedName: "sku", + roleChangeType: { + serializedName: "roleChangeType", + required: true, type: { - name: "Composite", - className: "Sku" + name: "String" } - }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", + } + } + } +}; + +export const ElasticPoolOperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPoolOperationListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "LicenseTypeCapability" + className: "ElasticPoolOperation" } } } }, - maxDatabaseCount: { - serializedName: "maxDatabaseCount", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" - } - }, - includedMaxSize: { - serializedName: "includedMaxSize", - type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } - }, - supportedMaxSizes: { - serializedName: "supportedMaxSizes", + } + } + } +}; + +export const ElasticPoolListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPoolListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MaxSizeRangeCapability" + className: "ElasticPool" } } } }, - supportedPerDatabaseMaxSizes: { - serializedName: "supportedPerDatabaseMaxSizes", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } + name: "String" } - }, - supportedPerDatabaseMaxPerformanceLevels: { - serializedName: "supportedPerDatabaseMaxPerformanceLevels", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability" - } - } - } - }, - zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, - type: { - name: "Boolean" - } - }, - supportedMaintenanceConfigurations: { - serializedName: "supportedMaintenanceConfigurations", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceConfigurationCapability" - } - } - } - }, - status: { - serializedName: "status", - readOnly: true, + } + } + } +}; + +export const ElasticPoolPerDatabaseSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPoolPerDatabaseSettings", + modelProperties: { + minCapacity: { + serializedName: "minCapacity", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "Number" } }, - reason: { - serializedName: "reason", + maxCapacity: { + serializedName: "maxCapacity", type: { - name: "String" + name: "Number" } } } } }; -export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: coreClient.CompositeMapper = { +export const ElasticPoolUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", + className: "ElasticPoolUpdate", modelProperties: { - limit: { - serializedName: "limit", - readOnly: true, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { name: "Number" } }, - unit: { - serializedName: "unit", - readOnly: true, + minCapacity: { + serializedName: "properties.minCapacity", type: { - name: "String" + name: "Number" } }, - supportedPerDatabaseMinPerformanceLevels: { - serializedName: "supportedPerDatabaseMinPerformanceLevels", - readOnly: true, + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability" - } - } + name: "Composite", + className: "ElasticPoolPerDatabaseSettings" } }, - status: { - serializedName: "status", - readOnly: true, + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "Boolean" } }, - reason: { - serializedName: "reason", + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } - } - } - } -}; - -export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", - modelProperties: { - limit: { - serializedName: "limit", - readOnly: true, + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", type: { - name: "String" + name: "Number" } }, - status: { - serializedName: "status", - readOnly: true, + preferredEnclaveType: { + serializedName: "properties.preferredEnclaveType", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + availabilityZone: { + serializedName: "properties.availabilityZone", type: { name: "String" } @@ -2806,54 +2437,27 @@ export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: coreClient.Com } }; -export const ManagedInstanceVersionCapability: coreClient.CompositeMapper = { +export const EncryptionProtectorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVersionCapability", + className: "EncryptionProtectorListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - supportedEditions: { - serializedName: "supportedEditions", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceEditionCapability" - } - } - } - }, - supportedInstancePoolEditions: { - serializedName: "supportedInstancePoolEditions", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstancePoolEditionCapability" + className: "EncryptionProtector" } } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2862,61 +2466,56 @@ export const ManagedInstanceVersionCapability: coreClient.CompositeMapper = { } }; -export const ManagedInstanceEditionCapability: coreClient.CompositeMapper = { +export const EndpointCertificateListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEditionCapability", + className: "EndpointCertificateListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - supportedFamilies: { - serializedName: "supportedFamilies", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceFamilyCapability" + className: "EndpointCertificate" } } } }, - supportedStorageCapabilities: { - serializedName: "supportedStorageCapabilities", + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const FailoverGroupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroupListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageCapability" + className: "FailoverGroup" } } } }, - zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, - type: { - name: "Boolean" - } - }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2925,61 +2524,71 @@ export const ManagedInstanceEditionCapability: coreClient.CompositeMapper = { } }; -export const ManagedInstanceFamilyCapability: coreClient.CompositeMapper = { +export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceFamilyCapability", + className: "FailoverGroupReadWriteEndpoint", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + failoverPolicy: { + serializedName: "failoverPolicy", + required: true, type: { name: "String" } }, - sku: { - serializedName: "sku", - readOnly: true, + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", + type: { + name: "Number" + } + } + } + } +}; + +export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", type: { name: "String" } }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", - readOnly: true, + targetServer: { + serializedName: "targetServer", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } + name: "String" } - }, - supportedVcoresValues: { - serializedName: "supportedVcoresValues", - readOnly: true, + } + } + } +}; + +export const PartnerInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartnerInfo", + modelProperties: { + id: { + serializedName: "id", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceVcoresCapability" - } - } + name: "String" } }, - status: { - serializedName: "status", + location: { + serializedName: "location", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + replicationRole: { + serializedName: "replicationRole", + readOnly: true, type: { name: "String" } @@ -2988,82 +2597,80 @@ export const ManagedInstanceFamilyCapability: coreClient.CompositeMapper = { } }; -export const ManagedInstanceVcoresCapability: coreClient.CompositeMapper = { +export const FailoverGroupUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVcoresCapability", + className: "FailoverGroupUpdate", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - value: { - serializedName: "value", - readOnly: true, + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { - name: "Number" + name: "Composite", + className: "FailoverGroupReadWriteEndpoint" } }, - includedMaxSize: { - serializedName: "includedMaxSize", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { name: "Composite", - className: "MaxSizeCapability" + className: "FailoverGroupReadOnlyEndpoint" } }, - supportedStorageSizes: { - serializedName: "supportedStorageSizes", - readOnly: true, + databases: { + serializedName: "properties.databases", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "MaxSizeRangeCapability" + name: "String" } } } }, - instancePoolSupported: { - serializedName: "instancePoolSupported", - readOnly: true, - type: { - name: "Boolean" - } - }, - standaloneSupported: { - serializedName: "standaloneSupported", - readOnly: true, + partnerServers: { + serializedName: "properties.partnerServers", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartnerInfo" + } + } } - }, - supportedMaintenanceConfigurations: { - serializedName: "supportedMaintenanceConfigurations", + } + } + } +}; + +export const FirewallRuleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FirewallRuleListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceMaintenanceConfigurationCapability" + className: "FirewallRule" } } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -3072,28 +2679,27 @@ export const ManagedInstanceVcoresCapability: coreClient.CompositeMapper = { } }; -export const ManagedInstanceMaintenanceConfigurationCapability: coreClient.CompositeMapper = { +export const ResourceWithWritableName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceMaintenanceConfigurationCapability", + className: "ResourceWithWritableName", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + name: { + serializedName: "name", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } @@ -3102,97 +2708,77 @@ export const ManagedInstanceMaintenanceConfigurationCapability: coreClient.Compo } }; -export const InstancePoolEditionCapability: coreClient.CompositeMapper = { +export const FirewallRuleList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolEditionCapability", + className: "FirewallRuleList", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - supportedFamilies: { - serializedName: "supportedFamilies", - readOnly: true, + values: { + serializedName: "values", type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstancePoolFamilyCapability" + className: "FirewallRule" } } } - }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } } } } }; -export const InstancePoolFamilyCapability: coreClient.CompositeMapper = { +export const GeoBackupPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolFamilyCapability", + className: "GeoBackupPolicyListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "LicenseTypeCapability" + className: "GeoBackupPolicy" } } } }, - supportedVcoresValues: { - serializedName: "supportedVcoresValues", + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IPv6FirewallRuleListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstancePoolVcoresCapability" + className: "IPv6FirewallRule" } } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -3201,42 +2787,64 @@ export const InstancePoolFamilyCapability: coreClient.CompositeMapper = { } }; -export const InstancePoolVcoresCapability: coreClient.CompositeMapper = { +export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolVcoresCapability", + className: "InstanceFailoverGroupListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceFailoverGroup" + } + } } }, - value: { - serializedName: "value", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } - }, - storageLimit: { - serializedName: "storageLimit", + } + } + } +}; + +export const InstanceFailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceFailoverGroupReadWriteEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", + required: true, type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "Number" } - }, - reason: { - serializedName: "reason", + } + } + } +}; + +export const InstanceFailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceFailoverGroupReadOnlyEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", type: { name: "String" } @@ -3245,26 +2853,19 @@ export const InstancePoolVcoresCapability: coreClient.CompositeMapper = { } }; -export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const PartnerRegionInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionPolicyListResult", + className: "PartnerRegionInfo", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LongTermRetentionPolicy" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + replicationRole: { + serializedName: "replicationRole", readOnly: true, type: { name: "String" @@ -3274,25 +2875,19 @@ export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { } }; -export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { +export const ManagedInstancePairInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindowTimeRange", + className: "ManagedInstancePairInfo", modelProperties: { - dayOfWeek: { - serializedName: "dayOfWeek", - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", + primaryManagedInstanceId: { + serializedName: "primaryManagedInstanceId", type: { name: "String" } }, - duration: { - serializedName: "duration", + partnerManagedInstanceId: { + serializedName: "partnerManagedInstanceId", type: { name: "String" } @@ -3301,10 +2896,10 @@ export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { } }; -export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const InstancePoolListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicyListResult", + className: "InstancePoolListResult", modelProperties: { value: { serializedName: "value", @@ -3314,7 +2909,7 @@ export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.Composi element: { type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy" + className: "InstancePool" } } } @@ -3330,10 +2925,26 @@ export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.Composi } }; -export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { +export const InstancePoolUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceQueryStatistics", + className: "InstancePoolUpdate", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const JobAgentListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobAgentListResult", modelProperties: { value: { serializedName: "value", @@ -3343,7 +2954,7 @@ export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryStatistics" + className: "JobAgent" } } } @@ -3359,202 +2970,280 @@ export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { } }; -export const QueryStatisticsProperties: coreClient.CompositeMapper = { +export const JobAgentUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStatisticsProperties", + className: "JobAgentUpdate", modelProperties: { - databaseName: { - serializedName: "databaseName", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - queryId: { - serializedName: "queryId", + } + } + } +}; + +export const JobCredentialListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobCredentialListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobCredential" + } + } } }, - startTime: { - serializedName: "startTime", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - endTime: { - serializedName: "endTime", + } + } + } +}; + +export const JobExecutionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobExecutionListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - type: { - name: "String" - } - }, - intervals: { - serializedName: "intervals", type: { name: "Sequence", element: { type: { name: "Composite", - className: "QueryMetricInterval" + className: "JobExecution" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const QueryMetricInterval: coreClient.CompositeMapper = { +export const JobExecutionTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryMetricInterval", + className: "JobExecutionTarget", modelProperties: { - intervalStartTime: { - serializedName: "intervalStartTime", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - intervalType: { - serializedName: "intervalType", + serverName: { + serializedName: "serverName", readOnly: true, type: { name: "String" } }, - executionCount: { - serializedName: "executionCount", + databaseName: { + serializedName: "databaseName", readOnly: true, type: { - name: "Number" + name: "String" } - }, - metrics: { - serializedName: "metrics", + } + } + } +}; + +export const JobStepListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobStepListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "QueryMetricProperties" + className: "JobStep" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const QueryMetricProperties: coreClient.CompositeMapper = { +export const JobStepAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryMetricProperties", + className: "JobStepAction", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + type: { + defaultValue: "TSql", + serializedName: "type", type: { name: "String" } }, - displayName: { - serializedName: "displayName", - readOnly: true, + source: { + defaultValue: "Inline", + serializedName: "source", type: { name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + value: { + serializedName: "value", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const JobStepOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobStepOutput", + modelProperties: { + type: { + defaultValue: "SqlDatabase", + serializedName: "type", type: { name: "String" } }, - value: { - serializedName: "value", - readOnly: true, + subscriptionId: { + serializedName: "subscriptionId", type: { - name: "Number" + name: "Uuid" } }, - min: { - serializedName: "min", - readOnly: true, + resourceGroupName: { + serializedName: "resourceGroupName", type: { - name: "Number" + name: "String" } }, - max: { - serializedName: "max", - readOnly: true, + serverName: { + serializedName: "serverName", + required: true, type: { - name: "Number" + name: "String" } }, - avg: { - serializedName: "avg", - readOnly: true, + databaseName: { + serializedName: "databaseName", + required: true, type: { - name: "Number" + name: "String" } }, - sum: { - serializedName: "sum", - readOnly: true, + schemaName: { + defaultValue: "dbo", + serializedName: "schemaName", type: { - name: "Number" + name: "String" } }, - stdev: { - serializedName: "stdev", - readOnly: true, + tableName: { + serializedName: "tableName", + required: true, type: { - name: "Number" + name: "String" + } + }, + credential: { + serializedName: "credential", + required: true, + type: { + name: "String" } } } } }; -export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeMapper = { +export const JobStepExecutionOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicyListResult", + className: "JobStepExecutionOptions", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + timeoutSeconds: { + defaultValue: 43200, + serializedName: "timeoutSeconds", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + retryAttempts: { + defaultValue: 10, + serializedName: "retryAttempts", type: { - name: "String" + name: "Number" + } + }, + initialRetryIntervalSeconds: { + defaultValue: 1, + serializedName: "initialRetryIntervalSeconds", + type: { + name: "Number" + } + }, + maximumRetryIntervalSeconds: { + defaultValue: 120, + serializedName: "maximumRetryIntervalSeconds", + type: { + name: "Number" + } + }, + retryIntervalBackoffMultiplier: { + defaultValue: 2, + serializedName: "retryIntervalBackoffMultiplier", + type: { + name: "Number" } } } } }; -export const SecurityEventCollection: coreClient.CompositeMapper = { +export const JobTargetGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEventCollection", + className: "JobTargetGroupListResult", modelProperties: { value: { serializedName: "value", @@ -3564,7 +3253,7 @@ export const SecurityEventCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityEvent" + className: "JobTargetGroup" } } } @@ -3580,56 +3269,52 @@ export const SecurityEventCollection: coreClient.CompositeMapper = { } }; -export const SecurityEventSqlInjectionAdditionalProperties: coreClient.CompositeMapper = { +export const JobTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEventSqlInjectionAdditionalProperties", + className: "JobTarget", modelProperties: { - threatId: { - serializedName: "threatId", - readOnly: true, + membershipType: { + defaultValue: "Include", + serializedName: "membershipType", type: { - name: "String" + name: "Enum", + allowedValues: ["Include", "Exclude"] } }, - statement: { - serializedName: "statement", - readOnly: true, + type: { + serializedName: "type", + required: true, type: { name: "String" } }, - statementHighlightOffset: { - serializedName: "statementHighlightOffset", - readOnly: true, + serverName: { + serializedName: "serverName", type: { - name: "Number" + name: "String" } }, - statementHighlightLength: { - serializedName: "statementHighlightLength", - readOnly: true, + databaseName: { + serializedName: "databaseName", type: { - name: "Number" + name: "String" } }, - errorCode: { - serializedName: "errorCode", - readOnly: true, + elasticPoolName: { + serializedName: "elasticPoolName", type: { - name: "Number" + name: "String" } }, - errorSeverity: { - serializedName: "errorSeverity", - readOnly: true, + shardMapName: { + serializedName: "shardMapName", type: { - name: "Number" + name: "String" } }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, + refreshCredential: { + serializedName: "refreshCredential", type: { name: "String" } @@ -3638,10 +3323,10 @@ export const SecurityEventSqlInjectionAdditionalProperties: coreClient.Composite } }; -export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMapper = { +export const JobVersionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedTransparentDataEncryptionListResult", + className: "JobVersionListResult", modelProperties: { value: { serializedName: "value", @@ -3651,7 +3336,7 @@ export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ManagedTransparentDataEncryption" + className: "JobVersion" } } } @@ -3667,10 +3352,10 @@ export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMap } }; -export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper = { +export const JobListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdministratorListResult", + className: "JobListResult", modelProperties: { value: { serializedName: "value", @@ -3680,7 +3365,7 @@ export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "ManagedInstanceAdministrator" + className: "Job" } } } @@ -3696,27 +3381,41 @@ export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper } }; -export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMapper = { +export const JobSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthListResult", + className: "JobSchedule", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + startTime: { + defaultValue: "0001-01-01T16:00:00-08:00", + serializedName: "startTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthentication" - } - } + name: "DateTime" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + endTime: { + defaultValue: "9999-12-31T03:59:59-08:00", + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + type: { + defaultValue: "Once", + serializedName: "type", + type: { + name: "Enum", + allowedValues: ["Once", "Recurring"] + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + interval: { + serializedName: "interval", type: { name: "String" } @@ -3725,10 +3424,10 @@ export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMappe } }; -export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeMapper = { +export const LedgerDigestUploadsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtectorListResult", + className: "LedgerDigestUploadsListResult", modelProperties: { value: { serializedName: "value", @@ -3738,7 +3437,7 @@ export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector" + className: "LedgerDigestUploads" } } } @@ -3754,56 +3453,54 @@ export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeM } }; -export const ManagedInstanceKeyListResult: coreClient.CompositeMapper = { +export const LocationCapabilities: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceKeyListResult", + className: "LocationCapabilities", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedServerVersions: { + serializedName: "supportedServerVersions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceKey" + className: "ServerVersionCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceLongTermRetentionPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicyListResult", - modelProperties: { - value: { - serializedName: "value", + supportedManagedInstanceVersions: { + serializedName: "supportedManagedInstanceVersions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicy" + className: "ManagedInstanceVersionCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -3812,176 +3509,131 @@ export const ManagedInstanceLongTermRetentionPolicyListResult: coreClient.Compos } }; -export const ManagedInstanceOperationListResult: coreClient.CompositeMapper = { +export const ServerVersionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceOperationListResult", + className: "ServerVersionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedEditions: { + serializedName: "supportedEditions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceOperation" + className: "EditionCapability" } } } }, - nextLink: { - serializedName: "nextLink", + supportedElasticPoolEditions: { + serializedName: "supportedElasticPoolEditions", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ElasticPoolEditionCapability" + } + } } - } - } - } -}; - -export const ManagedInstanceOperationParametersPair: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceOperationParametersPair", - modelProperties: { - currentParameters: { - serializedName: "currentParameters", + }, + status: { + serializedName: "status", + readOnly: true, type: { - name: "Composite", - className: "UpsertManagedServerOperationParameters" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - requestedParameters: { - serializedName: "requestedParameters", + reason: { + serializedName: "reason", type: { - name: "Composite", - className: "UpsertManagedServerOperationParameters" + name: "String" } } } } }; -export const UpsertManagedServerOperationParameters: coreClient.CompositeMapper = { +export const EditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpsertManagedServerOperationParameters", + className: "EditionCapability", modelProperties: { - family: { - serializedName: "family", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - vCores: { - serializedName: "vCores", + supportedServiceLevelObjectives: { + serializedName: "supportedServiceLevelObjectives", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceObjectiveCapability" + } + } } }, - storageSizeInGB: { - serializedName: "storageSizeInGB", - type: { - name: "Number" - } - } - } - } -}; - -export const ManagedInstanceOperationSteps: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceOperationSteps", - modelProperties: { - totalSteps: { - serializedName: "totalSteps", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - currentStep: { - serializedName: "currentStep", - readOnly: true, + readScale: { + serializedName: "readScale", type: { - name: "Number" + name: "Composite", + className: "ReadScaleCapability" } }, - stepsList: { - serializedName: "stepsList", + supportedStorageCapabilities: { + serializedName: "supportedStorageCapabilities", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "UpsertManagedServerOperationStep" + className: "StorageCapability" } } } - } - } - } -}; - -export const UpsertManagedServerOperationStep: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpsertManagedServerOperationStep", - modelProperties: { - order: { - serializedName: "order", - type: { - name: "Number" - } }, - name: { - serializedName: "name", + zonePinning: { + serializedName: "zonePinning", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, status: { serializedName: "status", + readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstancePrivateEndpointConnectionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionProperties", - modelProperties: { - privateEndpoint: { - serializedName: "privateEndpoint", - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointProperty" - } - }, - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -3990,216 +3642,136 @@ export const ManagedInstancePrivateEndpointConnectionProperties: coreClient.Comp } }; -export const ManagedInstancePrivateEndpointProperty: coreClient.CompositeMapper = { +export const ServiceObjectiveCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePrivateEndpointProperty", + className: "ServiceObjectiveCapability", modelProperties: { id: { serializedName: "id", + readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstancePrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty", - modelProperties: { - status: { - serializedName: "status", - required: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - required: true, - type: { - name: "String" + name: "Uuid" } }, - actionsRequired: { - serializedName: "actionsRequired", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedInstancePrivateEndpointConnectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMaxSizes: { + serializedName: "supportedMaxSizes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstancePrivateEndpointConnection" + className: "MaxSizeRangeCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + performanceLevel: { + serializedName: "performanceLevel", type: { - name: "String" + name: "Composite", + className: "PerformanceLevelCapability" } - } - } - } -}; - -export const ManagedInstancePrivateLinkListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkListResult", - modelProperties: { - value: { - serializedName: "value", + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstancePrivateLink" + className: "LicenseTypeCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + includedMaxSize: { + serializedName: "includedMaxSize", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } - } - } - } -}; - -export const ManagedInstancePrivateLinkProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkProperties", - modelProperties: { - groupId: { - serializedName: "groupId", + }, + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - requiredMembers: { - serializedName: "requiredMembers", - readOnly: true, + supportedAutoPauseDelay: { + serializedName: "supportedAutoPauseDelay", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "AutoPauseDelayTimeRange" } - } - } - } -}; - -export const ManagedInstanceVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceVulnerabilityAssessmentListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMinCapacities: { + serializedName: "supportedMinCapacities", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment" + className: "MinCapacityCapability" } } } }, - nextLink: { - serializedName: "nextLink", + computeModel: { + serializedName: "computeModel", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedServerSecurityAlertPolicyListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMaintenanceConfigurations: { + serializedName: "supportedMaintenanceConfigurations", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicy" + className: "MaintenanceConfigurationCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zonePinning: { + serializedName: "zonePinning", readOnly: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const OperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - serializedName: "value", + }, + status: { + serializedName: "status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4208,74 +3780,71 @@ export const OperationListResult: coreClient.CompositeMapper = { } }; -export const Operation: coreClient.CompositeMapper = { +export const MaxSizeRangeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "MaxSizeRangeCapability", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + minValue: { + serializedName: "minValue", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } }, - display: { - serializedName: "display", + maxValue: { + serializedName: "maxValue", type: { name: "Composite", - className: "OperationDisplay" + className: "MaxSizeCapability" } }, - origin: { - serializedName: "origin", - readOnly: true, + scaleSize: { + serializedName: "scaleSize", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } }, - properties: { - serializedName: "properties", + logSize: { + serializedName: "logSize", + type: { + name: "Composite", + className: "LogSizeCapability" + } + }, + status: { + serializedName: "status", readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const MaxSizeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "MaxSizeCapability", modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - readOnly: true, - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "description", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" @@ -4285,13 +3854,21 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const PrivateEndpointProperty: coreClient.CompositeMapper = { +export const LogSizeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointProperty", + className: "LogSizeCapability", modelProperties: { - id: { - serializedName: "id", + limit: { + serializedName: "limit", + readOnly: true, + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } @@ -4300,27 +3877,20 @@ export const PrivateEndpointProperty: coreClient.CompositeMapper = { } }; -export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { +export const PerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty", + className: "PerformanceLevelCapability", modelProperties: { - status: { - serializedName: "status", - required: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Number" } }, - actionsRequired: { - serializedName: "actionsRequired", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" @@ -4330,56 +3900,28 @@ export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapp } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const LicenseTypeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "LicenseTypeCapability", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "value", + }, + status: { + serializedName: "status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkResource" - } - } + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4388,112 +3930,79 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; -export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { +export const AutoPauseDelayTimeRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceProperties", + className: "AutoPauseDelayTimeRange", modelProperties: { - groupId: { - serializedName: "groupId", + minValue: { + serializedName: "minValue", readOnly: true, type: { - name: "String" + name: "Number" } }, - requiredMembers: { - serializedName: "requiredMembers", + maxValue: { + serializedName: "maxValue", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - requiredZoneNames: { - serializedName: "requiredZoneNames", + stepSize: { + serializedName: "stepSize", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } - } - } - } -}; - -export const RecoverableManagedDatabaseListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecoverableManagedDatabaseListResult", - modelProperties: { - value: { - serializedName: "value", + }, + default: { + serializedName: "default", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecoverableManagedDatabase" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" } + }, + doNotPauseValue: { + serializedName: "doNotPauseValue", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const RestorePointListResult: coreClient.CompositeMapper = { +export const MinCapacityCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointListResult", + className: "MinCapacityCapability", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorePoint" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } - } - } - } -}; - -export const CreateDatabaseRestorePointDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CreateDatabaseRestorePointDefinition", - modelProperties: { - restorePointLabel: { - serializedName: "restorePointLabel", - required: true, + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4502,66 +4011,65 @@ export const CreateDatabaseRestorePointDefinition: coreClient.CompositeMapper = } }; -export const AutomaticTuningServerOptions: coreClient.CompositeMapper = { +export const MaintenanceConfigurationCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomaticTuningServerOptions", + className: "MaintenanceConfigurationCapability", modelProperties: { - desiredState: { - serializedName: "desiredState", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Off", "On", "Default"] + name: "String" } }, - actualState: { - serializedName: "actualState", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "Enum", - allowedValues: ["Off", "On"] + name: "Boolean" } }, - reasonCode: { - serializedName: "reasonCode", + status: { + serializedName: "status", readOnly: true, type: { - name: "Number" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - reasonDesc: { - serializedName: "reasonDesc", - readOnly: true, + reason: { + serializedName: "reason", type: { - name: "Enum", - allowedValues: ["Default", "Disabled", "AutoConfigured"] + name: "String" } } } } }; -export const AdministratorListResult: coreClient.CompositeMapper = { +export const ReadScaleCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdministratorListResult", + className: "ReadScaleCapability", modelProperties: { - value: { - serializedName: "value", + maxNumberOfReplicas: { + serializedName: "maxNumberOfReplicas", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerAzureADAdministrator" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4570,27 +4078,28 @@ export const AdministratorListResult: coreClient.CompositeMapper = { } }; -export const AzureADOnlyAuthListResult: coreClient.CompositeMapper = { +export const StorageCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureADOnlyAuthListResult", + className: "StorageCapability", modelProperties: { - value: { - serializedName: "value", + storageAccountType: { + serializedName: "storageAccountType", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerAzureADOnlyAuthentication" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4599,27 +4108,55 @@ export const AzureADOnlyAuthListResult: coreClient.CompositeMapper = { } }; -export const ServerDevOpsAuditSettingsListResult: coreClient.CompositeMapper = { +export const ElasticPoolEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDevOpsAuditSettingsListResult", + className: "ElasticPoolEditionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedElasticPoolPerformanceLevels: { + serializedName: "supportedElasticPoolPerformanceLevels", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerDevOpsAuditingSettings" + className: "ElasticPoolPerformanceLevelCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, + type: { + name: "Boolean" + } + }, + zonePinning: { + serializedName: "zonePinning", + readOnly: true, + type: { + name: "Boolean" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4628,130 +4165,121 @@ export const ServerDevOpsAuditSettingsListResult: coreClient.CompositeMapper = { } }; -export const ServerDnsAliasListResult: coreClient.CompositeMapper = { +export const ElasticPoolPerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDnsAliasListResult", + className: "ElasticPoolPerformanceLevelCapability", modelProperties: { - value: { - serializedName: "value", + performanceLevel: { + serializedName: "performanceLevel", + type: { + name: "Composite", + className: "PerformanceLevelCapability" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerDnsAlias" + className: "LicenseTypeCapability" } } } }, - nextLink: { - serializedName: "nextLink", + maxDatabaseCount: { + serializedName: "maxDatabaseCount", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const ServerDnsAliasAcquisition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerDnsAliasAcquisition", - modelProperties: { - oldServerDnsAliasId: { - serializedName: "oldServerDnsAliasId", - required: true, + }, + includedMaxSize: { + serializedName: "includedMaxSize", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } - } - } - } -}; - -export const ServerKeyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerKeyListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMaxSizes: { + serializedName: "supportedMaxSizes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerKey" + className: "MaxSizeRangeCapability" } } } }, - nextLink: { - serializedName: "nextLink", + supportedPerDatabaseMaxSizes: { + serializedName: "supportedPerDatabaseMaxSizes", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaxSizeRangeCapability" + } + } } - } - } - } -}; - -export const ServerOperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerOperationListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedPerDatabaseMaxPerformanceLevels: { + serializedName: "supportedPerDatabaseMaxPerformanceLevels", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerOperation" + className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const LogicalServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LogicalServerSecurityAlertPolicyListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMaintenanceConfigurations: { + serializedName: "supportedMaintenanceConfigurations", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerSecurityAlertPolicy" + className: "MaintenanceConfigurationCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4760,43 +4288,48 @@ export const LogicalServerSecurityAlertPolicyListResult: coreClient.CompositeMap } }; -export const ServerInfo: coreClient.CompositeMapper = { +export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerInfo", + className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", modelProperties: { - serverId: { - serializedName: "serverId", - required: true, + limit: { + serializedName: "limit", + readOnly: true, + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ServerTrustGroupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerTrustGroupListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedPerDatabaseMinPerformanceLevels: { + serializedName: "supportedPerDatabaseMinPerformanceLevels", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerTrustGroup" + className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4805,27 +4338,35 @@ export const ServerTrustGroupListResult: coreClient.CompositeMapper = { } }; -export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { +export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerVulnerabilityAssessmentListResult", + className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", modelProperties: { - value: { - serializedName: "value", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4834,56 +4375,54 @@ export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper } }; -export const SubscriptionUsageListResult: coreClient.CompositeMapper = { +export const ManagedInstanceVersionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubscriptionUsageListResult", + className: "ManagedInstanceVersionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedEditions: { + serializedName: "supportedEditions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubscriptionUsage" + className: "ManagedInstanceEditionCapability" } } } }, - nextLink: { - serializedName: "nextLink", + supportedInstancePoolEditions: { + serializedName: "supportedInstancePoolEditions", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstancePoolEditionCapability" + } + } } - } - } - } -}; - -export const SyncAgentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncAgentListResult", - modelProperties: { - value: { - serializedName: "value", + }, + status: { + serializedName: "status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncAgent" - } - } + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4892,88 +4431,61 @@ export const SyncAgentListResult: coreClient.CompositeMapper = { } }; -export const SyncAgentKeyProperties: coreClient.CompositeMapper = { +export const ManagedInstanceEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgentKeyProperties", + className: "ManagedInstanceEditionCapability", modelProperties: { - syncAgentKey: { - serializedName: "syncAgentKey", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SyncAgentLinkedDatabaseListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncAgentLinkedDatabaseListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedFamilies: { + serializedName: "supportedFamilies", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncAgentLinkedDatabase" + className: "ManagedInstanceFamilyCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SyncDatabaseIdListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncDatabaseIdListResult", - modelProperties: { - value: { - serializedName: "value", + supportedStorageCapabilities: { + serializedName: "supportedStorageCapabilities", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncDatabaseIdProperties" + className: "StorageCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const SyncDatabaseIdProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncDatabaseIdProperties", - modelProperties: { - id: { - serializedName: "id", + }, + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4982,106 +4494,61 @@ export const SyncDatabaseIdProperties: coreClient.CompositeMapper = { } }; -export const SyncFullSchemaPropertiesListResult: coreClient.CompositeMapper = { +export const ManagedInstanceFamilyCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncFullSchemaPropertiesListResult", + className: "ManagedInstanceFamilyCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncFullSchemaProperties" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + sku: { + serializedName: "sku", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SyncFullSchemaProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncFullSchemaProperties", - modelProperties: { - tables: { - serializedName: "tables", + }, + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncFullSchemaTable" + className: "LicenseTypeCapability" } } } }, - lastUpdateTime: { - serializedName: "lastUpdateTime", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const SyncFullSchemaTable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncFullSchemaTable", - modelProperties: { - columns: { - serializedName: "columns", + supportedVcoresValues: { + serializedName: "supportedVcoresValues", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncFullSchemaTableColumn" + className: "ManagedInstanceVcoresCapability" } } } }, - errorId: { - serializedName: "errorId", - readOnly: true, - type: { - name: "String" - } - }, - hasError: { - serializedName: "hasError", - readOnly: true, - type: { - name: "Boolean" - } - }, - name: { - serializedName: "name", + status: { + serializedName: "status", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - quotedName: { - serializedName: "quotedName", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5090,56 +4557,82 @@ export const SyncFullSchemaTable: coreClient.CompositeMapper = { } }; -export const SyncFullSchemaTableColumn: coreClient.CompositeMapper = { +export const ManagedInstanceVcoresCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncFullSchemaTableColumn", + className: "ManagedInstanceVcoresCapability", modelProperties: { - dataSize: { - serializedName: "dataSize", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - dataType: { - serializedName: "dataType", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Number" } }, - errorId: { - serializedName: "errorId", + includedMaxSize: { + serializedName: "includedMaxSize", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + supportedStorageSizes: { + serializedName: "supportedStorageSizes", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaxSizeRangeCapability" + } + } } }, - hasError: { - serializedName: "hasError", + instancePoolSupported: { + serializedName: "instancePoolSupported", readOnly: true, type: { name: "Boolean" } }, - isPrimaryKey: { - serializedName: "isPrimaryKey", + standaloneSupported: { + serializedName: "standaloneSupported", readOnly: true, type: { name: "Boolean" } }, - name: { - serializedName: "name", + supportedMaintenanceConfigurations: { + serializedName: "supportedMaintenanceConfigurations", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceMaintenanceConfigurationCapability" + } + } } }, - quotedName: { - serializedName: "quotedName", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5148,27 +4641,28 @@ export const SyncFullSchemaTableColumn: coreClient.CompositeMapper = { } }; -export const SyncGroupLogListResult: coreClient.CompositeMapper = { +export const ManagedInstanceMaintenanceConfigurationCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupLogListResult", + className: "ManagedInstanceMaintenanceConfigurationCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncGroupLogProperties" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5177,49 +4671,41 @@ export const SyncGroupLogListResult: coreClient.CompositeMapper = { } }; -export const SyncGroupLogProperties: coreClient.CompositeMapper = { +export const InstancePoolEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupLogProperties", + className: "InstancePoolEditionCapability", modelProperties: { - timestamp: { - serializedName: "timestamp", - readOnly: true, - type: { - name: "DateTime" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - source: { - serializedName: "source", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - details: { - serializedName: "details", + supportedFamilies: { + serializedName: "supportedFamilies", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstancePoolFamilyCapability" + } + } } }, - tracingId: { - serializedName: "tracingId", + status: { + serializedName: "status", readOnly: true, type: { - name: "Uuid" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - operationStatus: { - serializedName: "operationStatus", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5228,52 +4714,54 @@ export const SyncGroupLogProperties: coreClient.CompositeMapper = { } }; -export const SyncGroupSchema: coreClient.CompositeMapper = { +export const InstancePoolFamilyCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupSchema", + className: "InstancePoolFamilyCapability", modelProperties: { - tables: { - serializedName: "tables", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncGroupSchemaTable" + className: "LicenseTypeCapability" } } } }, - masterSyncMemberName: { - serializedName: "masterSyncMemberName", - type: { - name: "String" - } - } - } - } -}; - -export const SyncGroupSchemaTable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncGroupSchemaTable", - modelProperties: { - columns: { - serializedName: "columns", + supportedVcoresValues: { + serializedName: "supportedVcoresValues", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncGroupSchemaTableColumn" + className: "InstancePoolVcoresCapability" } } } }, - quotedName: { - serializedName: "quotedName", + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5282,25 +4770,42 @@ export const SyncGroupSchemaTable: coreClient.CompositeMapper = { } }; -export const SyncGroupSchemaTableColumn: coreClient.CompositeMapper = { +export const InstancePoolVcoresCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupSchemaTableColumn", + className: "InstancePoolVcoresCapability", modelProperties: { - quotedName: { - serializedName: "quotedName", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - dataSize: { - serializedName: "dataSize", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Number" } }, - dataType: { - serializedName: "dataType", + storageLimit: { + serializedName: "storageLimit", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5309,10 +4814,10 @@ export const SyncGroupSchemaTableColumn: coreClient.CompositeMapper = { } }; -export const SyncGroupListResult: coreClient.CompositeMapper = { +export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupListResult", + className: "LongTermRetentionBackupListResult", modelProperties: { value: { serializedName: "value", @@ -5322,7 +4827,7 @@ export const SyncGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncGroup" + className: "LongTermRetentionBackup" } } } @@ -5338,27 +4843,43 @@ export const SyncGroupListResult: coreClient.CompositeMapper = { } }; -export const SyncMemberListResult: coreClient.CompositeMapper = { +export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncMemberListResult", + className: "CopyLongTermRetentionBackupParameters", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + targetSubscriptionId: { + serializedName: "properties.targetSubscriptionId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncMember" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + targetResourceGroup: { + serializedName: "properties.targetResourceGroup", + type: { + name: "String" + } + }, + targetServerResourceId: { + serializedName: "properties.targetServerResourceId", + type: { + name: "String" + } + }, + targetServerFullyQualifiedDomainName: { + serializedName: "properties.targetServerFullyQualifiedDomainName", + type: { + name: "String" + } + }, + targetDatabaseName: { + serializedName: "properties.targetDatabaseName", + type: { + name: "String" + } + }, + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", type: { name: "String" } @@ -5367,27 +4888,13 @@ export const SyncMemberListResult: coreClient.CompositeMapper = { } }; -export const TimeZoneListResult: coreClient.CompositeMapper = { +export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeZoneListResult", + className: "UpdateLongTermRetentionBackupParameters", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TimeZone" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { name: "String" } @@ -5396,10 +4903,10 @@ export const TimeZoneListResult: coreClient.CompositeMapper = { } }; -export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkRuleListResult", + className: "ManagedInstanceLongTermRetentionBackupListResult", modelProperties: { value: { serializedName: "value", @@ -5409,7 +4916,7 @@ export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualNetworkRule" + className: "ManagedInstanceLongTermRetentionBackup" } } } @@ -5425,10 +4932,10 @@ export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { } }; -export const WorkloadClassifierListResult: coreClient.CompositeMapper = { +export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadClassifierListResult", + className: "LongTermRetentionPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -5438,7 +4945,7 @@ export const WorkloadClassifierListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WorkloadClassifier" + className: "LongTermRetentionPolicy" } } } @@ -5454,27 +4961,25 @@ export const WorkloadClassifierListResult: coreClient.CompositeMapper = { } }; -export const WorkloadGroupListResult: coreClient.CompositeMapper = { +export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadGroupListResult", + className: "MaintenanceWindowTimeRange", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + dayOfWeek: { + serializedName: "dayOfWeek", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkloadGroup" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + startTime: { + serializedName: "startTime", + type: { + name: "String" + } + }, + duration: { + serializedName: "duration", type: { name: "String" } @@ -5483,10 +4988,10 @@ export const WorkloadGroupListResult: coreClient.CompositeMapper = { } }; -export const BackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupShortTermRetentionPolicyListResult", + className: "ManagedBackupShortTermRetentionPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -5496,7 +5001,7 @@ export const BackupShortTermRetentionPolicyListResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "BackupShortTermRetentionPolicy" + className: "ManagedBackupShortTermRetentionPolicy" } } } @@ -5512,10 +5017,10 @@ export const BackupShortTermRetentionPolicyListResult: coreClient.CompositeMappe } }; -export const ImportExportExtensionsOperationListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExportExtensionsOperationListResult", + className: "ManagedDatabaseAdvancedThreatProtectionListResult", modelProperties: { value: { serializedName: "value", @@ -5525,7 +5030,7 @@ export const ImportExportExtensionsOperationListResult: coreClient.CompositeMapp element: { type: { name: "Composite", - className: "ImportExportExtensionsOperationResult" + className: "ManagedDatabaseAdvancedThreatProtection" } } } @@ -5541,10 +5046,10 @@ export const ImportExportExtensionsOperationListResult: coreClient.CompositeMapp } }; -export const DatabaseOperationListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseOperationListResult", + className: "ManagedDatabaseMoveOperationListResult", modelProperties: { value: { serializedName: "value", @@ -5554,7 +5059,7 @@ export const DatabaseOperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DatabaseOperation" + className: "ManagedDatabaseMoveOperationResult" } } } @@ -5570,10 +5075,10 @@ export const DatabaseOperationListResult: coreClient.CompositeMapper = { } }; -export const DatabaseUsageListResult: coreClient.CompositeMapper = { +export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUsageListResult", + className: "ManagedInstanceQueryStatistics", modelProperties: { value: { serializedName: "value", @@ -5583,7 +5088,7 @@ export const DatabaseUsageListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DatabaseUsage" + className: "QueryStatistics" } } } @@ -5599,114 +5104,111 @@ export const DatabaseUsageListResult: coreClient.CompositeMapper = { } }; -export const LedgerDigestUploadsListResult: coreClient.CompositeMapper = { +export const QueryStatisticsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LedgerDigestUploadsListResult", + className: "QueryStatisticsProperties", modelProperties: { - value: { - serializedName: "value", + databaseName: { + serializedName: "databaseName", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LedgerDigestUploads" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + queryId: { + serializedName: "queryId", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OutboundFirewallRuleListResult", - modelProperties: { - value: { - serializedName: "value", + }, + startTime: { + serializedName: "startTime", + readOnly: true, + type: { + name: "String" + } + }, + endTime: { + serializedName: "endTime", readOnly: true, + type: { + name: "String" + } + }, + intervals: { + serializedName: "intervals", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OutboundFirewallRule" + className: "QueryMetricInterval" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const UsageListResult: coreClient.CompositeMapper = { +export const QueryMetricInterval: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageListResult", + className: "QueryMetricInterval", modelProperties: { - value: { - serializedName: "value", + intervalStartTime: { + serializedName: "intervalStartTime", + readOnly: true, + type: { + name: "String" + } + }, + intervalType: { + serializedName: "intervalType", + readOnly: true, + type: { + name: "String" + } + }, + executionCount: { + serializedName: "executionCount", readOnly: true, + type: { + name: "Number" + } + }, + metrics: { + serializedName: "metrics", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Usage" + className: "QueryMetricProperties" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const Usage: coreClient.CompositeMapper = { +export const QueryMetricProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "QueryMetricProperties", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, name: { serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "Name" + name: "String" } }, - type: { - serializedName: "type", + displayName: { + serializedName: "displayName", readOnly: true, type: { name: "String" @@ -5719,104 +5221,111 @@ export const Usage: coreClient.CompositeMapper = { name: "String" } }, - currentValue: { - serializedName: "currentValue", + value: { + serializedName: "value", readOnly: true, type: { name: "Number" } }, - limit: { - serializedName: "limit", + min: { + serializedName: "min", readOnly: true, type: { name: "Number" } }, - requestedLimit: { - serializedName: "requestedLimit", + max: { + serializedName: "max", readOnly: true, type: { name: "Number" } - } - } - } -}; - -export const Name: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Name", - modelProperties: { - value: { - serializedName: "value", + }, + avg: { + serializedName: "avg", + readOnly: true, type: { - name: "String" + name: "Number" } }, - localizedValue: { - serializedName: "localizedValue", + sum: { + serializedName: "sum", + readOnly: true, type: { - name: "String" + name: "Number" + } + }, + stdev: { + serializedName: "stdev", + readOnly: true, + type: { + name: "Number" } } } } }; -export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsBackupSetProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CopyLongTermRetentionBackupParameters", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties", modelProperties: { - targetSubscriptionId: { - serializedName: "properties.targetSubscriptionId", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } }, - targetResourceGroup: { - serializedName: "properties.targetResourceGroup", + firstStripeName: { + serializedName: "firstStripeName", + readOnly: true, type: { name: "String" } }, - targetServerResourceId: { - serializedName: "properties.targetServerResourceId", + numberOfStripes: { + serializedName: "numberOfStripes", + readOnly: true, type: { - name: "String" + name: "Number" } }, - targetServerFullyQualifiedDomainName: { - serializedName: "properties.targetServerFullyQualifiedDomainName", + backupSizeMB: { + serializedName: "backupSizeMB", + readOnly: true, type: { - name: "String" + name: "Number" } }, - targetDatabaseName: { - serializedName: "properties.targetDatabaseName", + restoreStartedTimestampUtc: { + serializedName: "restoreStartedTimestampUtc", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - targetBackupStorageRedundancy: { - serializedName: "properties.targetBackupStorageRedundancy", + restoreFinishedTimestampUtc: { + serializedName: "restoreFinishedTimestampUtc", + readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsUnrestorableFileProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateLongTermRetentionBackupParameters", + className: "ManagedDatabaseRestoreDetailsUnrestorableFileProperties", modelProperties: { - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } @@ -5825,10 +5334,10 @@ export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper } }; -export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackupListResult", + className: "ManagedDatabaseSecurityAlertPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -5838,7 +5347,7 @@ export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LongTermRetentionBackup" + className: "ManagedDatabaseSecurityAlertPolicy" } } } @@ -5854,10 +5363,10 @@ export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { } }; -export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.CompositeMapper = { +export const SecurityEventCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackupListResult", + className: "SecurityEventCollection", modelProperties: { value: { serializedName: "value", @@ -5867,7 +5376,7 @@ export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.Compos element: { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackup" + className: "SecurityEvent" } } } @@ -5883,171 +5392,55 @@ export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.Compos } }; -export const RestorableDroppedManagedDatabaseListResult: coreClient.CompositeMapper = { +export const SecurityEventSqlInjectionAdditionalProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedManagedDatabaseListResult", + className: "SecurityEventSqlInjectionAdditionalProperties", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableDroppedManagedDatabase" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + threatId: { + serializedName: "threatId", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerConnectionPolicyListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerConnectionPolicy" - } - } - } }, - nextLink: { - serializedName: "nextLink", + statement: { + serializedName: "statement", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DistributedAvailabilityGroupsListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DistributedAvailabilityGroup" - } - } - } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServerTrustCertificatesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerTrustCertificatesListResult", - modelProperties: { - value: { - serializedName: "value", + statementHighlightOffset: { + serializedName: "statementHighlightOffset", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerTrustCertificate" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IPv6FirewallRuleListResult", - modelProperties: { - value: { - serializedName: "value", + statementHighlightLength: { + serializedName: "statementHighlightLength", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IPv6FirewallRule" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + errorCode: { + serializedName: "errorCode", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const EndpointCertificateListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EndpointCertificateListResult", - modelProperties: { - value: { - serializedName: "value", + }, + errorSeverity: { + serializedName: "errorSeverity", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EndpointCertificate" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + errorMessage: { + serializedName: "errorMessage", readOnly: true, type: { name: "String" @@ -6128,10 +5521,10 @@ export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = } }; -export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerBlobAuditingPolicyListResult", + className: "ManagedTransparentDataEncryptionListResult", modelProperties: { value: { serializedName: "value", @@ -6141,7 +5534,7 @@ export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerBlobAuditingPolicy" + className: "ManagedTransparentDataEncryption" } } } @@ -6157,10 +5550,10 @@ export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { } }; -export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicyListResult", + className: "ManagedDatabaseListResult", modelProperties: { value: { serializedName: "value", @@ -6170,7 +5563,7 @@ export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicy" + className: "ManagedDatabase" } } } @@ -6186,143 +5579,168 @@ export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = } }; -export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicyListResult", + className: "ManagedDatabaseUpdate", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + collation: { + serializedName: "properties.collation", type: { name: "String" } - } - } - } -}; - -export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtendedServerBlobAuditingPolicyListResult", - modelProperties: { - value: { - serializedName: "value", + }, + status: { + serializedName: "properties.status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExtendedServerBlobAuditingPolicy" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseAdvancedThreatProtectionListResult", - modelProperties: { - value: { - serializedName: "value", + }, + earliestRestorePoint: { + serializedName: "properties.earliestRestorePoint", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseAdvancedThreatProtection" - } - } + name: "DateTime" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const LogicalServerAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LogicalServerAdvancedThreatProtectionListResult", - modelProperties: { - value: { - serializedName: "value", + }, + defaultSecondaryLocation: { + serializedName: "properties.defaultSecondaryLocation", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerAdvancedThreatProtection" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + catalogCollation: { + serializedName: "properties.catalogCollation", + type: { + name: "String" + } + }, + createMode: { + serializedName: "properties.createMode", + type: { + name: "String" + } + }, + storageContainerUri: { + serializedName: "properties.storageContainerUri", + type: { + name: "String" + } + }, + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", + type: { + name: "String" + } + }, + crossSubscriptionSourceDatabaseId: { + serializedName: "properties.crossSubscriptionSourceDatabaseId", + type: { + name: "String" + } + }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", + type: { + name: "String" + } + }, + crossSubscriptionRestorableDroppedDatabaseId: { + serializedName: + "properties.crossSubscriptionRestorableDroppedDatabaseId", + type: { + name: "String" + } + }, + storageContainerIdentity: { + serializedName: "properties.storageContainerIdentity", + type: { + name: "String" + } + }, + storageContainerSasToken: { + serializedName: "properties.storageContainerSasToken", + type: { + name: "String" + } + }, + failoverGroupId: { + serializedName: "properties.failoverGroupId", readOnly: true, type: { name: "String" } + }, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", + type: { + name: "String" + } + }, + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", + type: { + name: "String" + } + }, + autoCompleteRestore: { + serializedName: "properties.autoCompleteRestore", + type: { + name: "Boolean" + } + }, + lastBackupName: { + serializedName: "properties.lastBackupName", + type: { + name: "String" + } + }, + crossSubscriptionTargetManagedInstanceId: { + serializedName: "properties.crossSubscriptionTargetManagedInstanceId", + type: { + name: "String" + } + }, + isLedgerOn: { + serializedName: "properties.isLedgerOn", + type: { + name: "Boolean" + } } } } }; -export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAliasListResult", + className: "ManagedDatabaseMoveDefinition", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedServerDnsAlias" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + destinationManagedDatabaseId: { + serializedName: "destinationManagedDatabaseId", + required: true, type: { name: "String" } @@ -6331,42 +5749,48 @@ export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { } }; -export const ManagedServerDnsAliasCreation: coreClient.CompositeMapper = { +export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAliasCreation", + className: "CompleteDatabaseRestoreDefinition", modelProperties: { - createDnsRecord: { - defaultValue: true, - serializedName: "createDnsRecord", + lastBackupName: { + serializedName: "lastBackupName", + required: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ManagedServerDnsAliasAcquisition: coreClient.CompositeMapper = { +export const ManagedDatabaseStartMoveDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAliasAcquisition", + className: "ManagedDatabaseStartMoveDefinition", modelProperties: { - oldManagedServerDnsAliasResourceId: { - serializedName: "oldManagedServerDnsAliasResourceId", + destinationManagedDatabaseId: { + serializedName: "destinationManagedDatabaseId", required: true, type: { name: "String" } + }, + operationMode: { + serializedName: "operationMode", + type: { + name: "String" + } } } } }; -export const DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient.CompositeMapper = { +export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentBaselineSetListResult", + className: "ManagedInstanceAdministratorListResult", modelProperties: { value: { serializedName: "value", @@ -6376,7 +5800,7 @@ export const DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient element: { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentBaselineSet" + className: "ManagedInstanceAdministrator" } } } @@ -6392,10 +5816,10 @@ export const DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient } }; -export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClient.CompositeMapper = { +export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult", + className: "ManagedInstanceAdvancedThreatProtectionListResult", modelProperties: { value: { serializedName: "value", @@ -6405,7 +5829,7 @@ export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClien element: { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline" + className: "ManagedInstanceAdvancedThreatProtection" } } } @@ -6421,10 +5845,10 @@ export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClien } }; -export const SQLVulnerabilityAssessmentScanListResult: coreClient.CompositeMapper = { +export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SQLVulnerabilityAssessmentScanListResult", + className: "ManagedInstanceAzureADOnlyAuthListResult", modelProperties: { value: { serializedName: "value", @@ -6434,7 +5858,7 @@ export const SQLVulnerabilityAssessmentScanListResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanResults" + className: "ManagedInstanceAzureADOnlyAuthentication" } } } @@ -6450,39 +5874,26 @@ export const SQLVulnerabilityAssessmentScanListResult: coreClient.CompositeMappe } }; -export const Remediation: coreClient.CompositeMapper = { +export const ManagedInstanceDtcListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Remediation", + className: "ManagedInstanceDtcListResult", modelProperties: { - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String" - } - }, - scripts: { - serializedName: "scripts", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ManagedInstanceDtc" } } } }, - automated: { - serializedName: "automated", - readOnly: true, - type: { - name: "Boolean" - } - }, - portalLink: { - serializedName: "portalLink", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -6492,233 +5903,93 @@ export const Remediation: coreClient.CompositeMapper = { } }; -export const BaselineAdjustedResult: coreClient.CompositeMapper = { +export const ManagedInstanceDtcSecuritySettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BaselineAdjustedResult", + className: "ManagedInstanceDtcSecuritySettings", modelProperties: { - baseline: { - serializedName: "baseline", + transactionManagerCommunicationSettings: { + serializedName: "transactionManagerCommunicationSettings", type: { name: "Composite", - className: "Baseline" + className: "ManagedInstanceDtcTransactionManagerCommunicationSettings" } }, - status: { - serializedName: "status", - readOnly: true, + xaTransactionsEnabled: { + serializedName: "xaTransactionsEnabled", type: { - name: "String" + name: "Boolean" } }, - resultsNotInBaseline: { - serializedName: "resultsNotInBaseline", - readOnly: true, + snaLu6Point2TransactionsEnabled: { + serializedName: "snaLu6point2TransactionsEnabled", type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "Boolean" } }, - resultsOnlyInBaseline: { - serializedName: "resultsOnlyInBaseline", - readOnly: true, + xaTransactionsDefaultTimeout: { + serializedName: "xaTransactionsDefaultTimeout", type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } - } - } -}; - -export const Baseline: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Baseline", - modelProperties: { - expectedResults: { - serializedName: "expectedResults", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "Number" } }, - updatedTime: { - serializedName: "updatedTime", - readOnly: true, + xaTransactionsMaximumTimeout: { + serializedName: "xaTransactionsMaximumTimeout", type: { - name: "DateTime" + name: "Number" } } } } }; -export const VaRule: coreClient.CompositeMapper = { +export const ManagedInstanceDtcTransactionManagerCommunicationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VaRule", + className: "ManagedInstanceDtcTransactionManagerCommunicationSettings", modelProperties: { - ruleId: { - serializedName: "ruleId", - readOnly: true, - type: { - name: "String" - } - }, - severity: { - serializedName: "severity", - readOnly: true, - type: { - name: "String" - } - }, - category: { - serializedName: "category", - readOnly: true, - type: { - name: "String" - } - }, - ruleType: { - serializedName: "ruleType", - readOnly: true, - type: { - name: "String" - } - }, - title: { - serializedName: "title", - readOnly: true, + allowInboundEnabled: { + serializedName: "allowInboundEnabled", type: { - name: "String" + name: "Boolean" } }, - description: { - serializedName: "description", - readOnly: true, + allowOutboundEnabled: { + serializedName: "allowOutboundEnabled", type: { - name: "String" + name: "Boolean" } }, - rationale: { - serializedName: "rationale", - readOnly: true, + authentication: { + serializedName: "authentication", type: { name: "String" } - }, - queryCheck: { - serializedName: "queryCheck", - type: { - name: "Composite", - className: "QueryCheck" - } - }, - benchmarkReferences: { - serializedName: "benchmarkReferences", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BenchmarkReference" - } - } - } } } } }; -export const QueryCheck: coreClient.CompositeMapper = { +export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryCheck", + className: "ManagedInstanceEncryptionProtectorListResult", modelProperties: { - query: { - serializedName: "query", - readOnly: true, - type: { - name: "String" - } - }, - expectedResult: { - serializedName: "expectedResult", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - }, - columnNames: { - serializedName: "columnNames", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ManagedInstanceEncryptionProtector" } } } - } - } - } -}; - -export const BenchmarkReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BenchmarkReference", - modelProperties: { - benchmark: { - serializedName: "benchmark", - readOnly: true, - type: { - name: "String" - } }, - reference: { - serializedName: "reference", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -6728,10 +5999,10 @@ export const BenchmarkReference: coreClient.CompositeMapper = { } }; -export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { +export const ManagedInstanceKeyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanRecordListResult", + className: "ManagedInstanceKeyListResult", modelProperties: { value: { serializedName: "value", @@ -6741,7 +6012,7 @@ export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.Composit element: { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanRecord" + className: "ManagedInstanceKey" } } } @@ -6757,33 +6028,10 @@ export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.Composit } }; -export const SqlVulnerabilityAssessmentScanError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlVulnerabilityAssessmentScanError", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentListResult", + className: "ManagedInstanceLongTermRetentionPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -6793,7 +6041,7 @@ export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "SqlVulnerabilityAssessment" + className: "ManagedInstanceLongTermRetentionPolicy" } } } @@ -6809,10 +6057,10 @@ export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = } }; -export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const ManagedInstanceOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseAdvancedThreatProtectionListResult", + className: "ManagedInstanceOperationListResult", modelProperties: { value: { serializedName: "value", @@ -6822,7 +6070,7 @@ export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.Compo element: { type: { name: "Composite", - className: "ManagedDatabaseAdvancedThreatProtection" + className: "ManagedInstanceOperation" } } } @@ -6838,85 +6086,136 @@ export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.Compo } }; -export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const ManagedInstanceOperationParametersPair: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdvancedThreatProtectionListResult", + className: "ManagedInstanceOperationParametersPair", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + currentParameters: { + serializedName: "currentParameters", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceAdvancedThreatProtection" - } - } + name: "Composite", + className: "UpsertManagedServerOperationParameters" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + requestedParameters: { + serializedName: "requestedParameters", type: { - name: "String" + name: "Composite", + className: "UpsertManagedServerOperationParameters" } } } } }; -export const ReplicationLinkListResult: coreClient.CompositeMapper = { +export const UpsertManagedServerOperationParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationLinkListResult", + className: "UpsertManagedServerOperationParameters", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + family: { + serializedName: "family", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReplicationLink" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + tier: { + serializedName: "tier", type: { name: "String" } + }, + vCores: { + serializedName: "vCores", + type: { + name: "Number" + } + }, + storageSizeInGB: { + serializedName: "storageSizeInGB", + type: { + name: "Number" + } } } } }; -export const ManagedDatabaseMoveOperationListResult: coreClient.CompositeMapper = { +export const ManagedInstanceOperationSteps: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseMoveOperationListResult", + className: "ManagedInstanceOperationSteps", modelProperties: { - value: { - serializedName: "value", + totalSteps: { + serializedName: "totalSteps", + readOnly: true, + type: { + name: "String" + } + }, + currentStep: { + serializedName: "currentStep", + readOnly: true, + type: { + name: "Number" + } + }, + stepsList: { + serializedName: "stepsList", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedDatabaseMoveOperationResult" + className: + "UpsertManagedServerOperationStepWithEstimatesAndDuration" } } } + } + } + } +}; + +export const UpsertManagedServerOperationStepWithEstimatesAndDuration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpsertManagedServerOperationStepWithEstimatesAndDuration", + modelProperties: { + stepStartTime: { + serializedName: "stepStartTime", + type: { + name: "DateTime" + } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + stepEndTime: { + serializedName: "stepEndTime", + type: { + name: "DateTime" + } + }, + timeElapsed: { + serializedName: "timeElapsed", + type: { + name: "String" + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + status: { + serializedName: "status", type: { name: "String" } @@ -6925,10 +6224,10 @@ export const ManagedDatabaseMoveOperationListResult: coreClient.CompositeMapper } }; -export const ManagedInstanceDtcListResult: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceDtcListResult", + className: "ManagedInstancePrivateEndpointConnectionListResult", modelProperties: { value: { serializedName: "value", @@ -6938,7 +6237,7 @@ export const ManagedInstanceDtcListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedInstanceDtc" + className: "ManagedInstancePrivateEndpointConnection" } } } @@ -6954,65 +6253,43 @@ export const ManagedInstanceDtcListResult: coreClient.CompositeMapper = { } }; -export const ManagedInstanceDtcSecuritySettings: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointConnectionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceDtcSecuritySettings", + className: "ManagedInstancePrivateEndpointConnectionProperties", modelProperties: { - transactionManagerCommunicationSettings: { - serializedName: "transactionManagerCommunicationSettings", + privateEndpoint: { + serializedName: "privateEndpoint", type: { name: "Composite", - className: "ManagedInstanceDtcTransactionManagerCommunicationSettings" - } - }, - xaTransactionsEnabled: { - serializedName: "xaTransactionsEnabled", - type: { - name: "Boolean" - } - }, - snaLu6Point2TransactionsEnabled: { - serializedName: "snaLu6point2TransactionsEnabled", - type: { - name: "Boolean" + className: "ManagedInstancePrivateEndpointProperty" } }, - xaTransactionsDefaultTimeout: { - serializedName: "xaTransactionsDefaultTimeout", + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", type: { - name: "Number" + name: "Composite", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" } }, - xaTransactionsMaximumTimeout: { - serializedName: "xaTransactionsMaximumTimeout", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const ManagedInstanceDtcTransactionManagerCommunicationSettings: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceDtcTransactionManagerCommunicationSettings", + className: "ManagedInstancePrivateEndpointProperty", modelProperties: { - allowInboundEnabled: { - serializedName: "allowInboundEnabled", - type: { - name: "Boolean" - } - }, - allowOutboundEnabled: { - serializedName: "allowOutboundEnabled", - type: { - name: "Boolean" - } - }, - authentication: { - serializedName: "authentication", + id: { + serializedName: "id", type: { name: "String" } @@ -7021,48 +6298,28 @@ export const ManagedInstanceDtcTransactionManagerCommunicationSettings: coreClie } }; -export const SynapseLinkWorkspaceListResult: coreClient.CompositeMapper = { +export const ManagedInstancePrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseLinkWorkspaceListResult", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SynapseLinkWorkspace" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + status: { + serializedName: "status", + required: true, type: { name: "String" } - } - } - } -}; - -export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SynapseLinkWorkspaceInfoProperties", - modelProperties: { - workspaceId: { - serializedName: "workspaceId", + }, + description: { + serializedName: "description", + required: true, type: { name: "String" } }, - linkConnectionName: { - serializedName: "linkConnectionName", + actionsRequired: { + serializedName: "actionsRequired", + readOnly: true, type: { name: "String" } @@ -7071,10 +6328,10 @@ export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { } }; -export const VirtualClusterListResult: coreClient.CompositeMapper = { +export const ManagedInstancePrivateLinkListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualClusterListResult", + className: "ManagedInstancePrivateLinkListResult", modelProperties: { value: { serializedName: "value", @@ -7084,7 +6341,7 @@ export const VirtualClusterListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualCluster" + className: "ManagedInstancePrivateLink" } } } @@ -7100,33 +6357,32 @@ export const VirtualClusterListResult: coreClient.CompositeMapper = { } }; -export const VirtualClusterUpdate: coreClient.CompositeMapper = { +export const ManagedInstancePrivateLinkProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualClusterUpdate", + className: "ManagedInstancePrivateLinkProperties", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - subnetId: { - serializedName: "properties.subnetId", + groupId: { + serializedName: "groupId", readOnly: true, type: { name: "String" } }, - version: { - serializedName: "properties.version", + requiredMembers: { + serializedName: "requiredMembers", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - childResources: { - serializedName: "properties.childResources", + requiredZoneNames: { + serializedName: "requiredZoneNames", readOnly: true, type: { name: "Sequence", @@ -7141,10 +6397,10 @@ export const VirtualClusterUpdate: coreClient.CompositeMapper = { } }; -export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { +export const ManagedInstanceVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroupListResult", + className: "ManagedInstanceVulnerabilityAssessmentListResult", modelProperties: { value: { serializedName: "value", @@ -7154,7 +6410,7 @@ export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceFailoverGroup" + className: "ManagedInstanceVulnerabilityAssessment" } } } @@ -7170,187 +6426,217 @@ export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { } }; -export const InstanceFailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { +export const ManagedInstanceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint", + className: "ManagedInstanceListResult", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstance" + } + } } }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const InstanceFailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { +export const ResourceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint", + className: "ResourceIdentity", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "Composite", className: "UserIdentity" } } + } + }, + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "Uuid" + } } } } }; -export const PartnerRegionInfo: coreClient.CompositeMapper = { +export const UserIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartnerRegionInfo", + className: "UserIdentity", modelProperties: { - location: { - serializedName: "location", + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "String" + name: "Uuid" } }, - replicationRole: { - serializedName: "replicationRole", + clientId: { + serializedName: "clientId", readOnly: true, type: { - name: "String" + name: "Uuid" } } } } }; -export const ManagedInstancePairInfo: coreClient.CompositeMapper = { +export const ManagedInstancePecProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePairInfo", + className: "ManagedInstancePecProperty", modelProperties: { - primaryManagedInstanceId: { - serializedName: "primaryManagedInstanceId", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - partnerManagedInstanceId: { - serializedName: "partnerManagedInstanceId", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ManagedInstancePrivateEndpointConnectionProperties" } } } } }; -export const ManagedDatabaseRestoreDetailsBackupSetProperties: coreClient.CompositeMapper = { +export const ManagedInstanceExternalAdministrator: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties", + className: "ManagedInstanceExternalAdministrator", modelProperties: { - status: { - serializedName: "status", - readOnly: true, + administratorType: { + serializedName: "administratorType", type: { name: "String" } }, - firstStripeName: { - serializedName: "firstStripeName", - readOnly: true, + principalType: { + serializedName: "principalType", type: { name: "String" } }, - numberOfStripes: { - serializedName: "numberOfStripes", - readOnly: true, + login: { + serializedName: "login", type: { - name: "Number" + name: "String" } }, - backupSizeMB: { - serializedName: "backupSizeMB", - readOnly: true, + sid: { + serializedName: "sid", type: { - name: "Number" + name: "Uuid" } }, - restoreStartedTimestampUtc: { - serializedName: "restoreStartedTimestampUtc", - readOnly: true, + tenantId: { + serializedName: "tenantId", type: { - name: "DateTime" + name: "Uuid" } }, - restoreFinishedTimestampUtc: { - serializedName: "restoreFinishedTimestampUtc", - readOnly: true, + azureADOnlyAuthentication: { + serializedName: "azureADOnlyAuthentication", type: { - name: "DateTime" + name: "Boolean" } } } } }; -export const ManagedDatabaseRestoreDetailsUnrestorableFileProperties: coreClient.CompositeMapper = { +export const ServicePrincipal: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsUnrestorableFileProperties", + className: "ServicePrincipal", modelProperties: { - name: { - serializedName: "name", + principalId: { + serializedName: "principalId", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedDatabaseListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDatabaseListResult", - modelProperties: { - value: { - serializedName: "value", + }, + clientId: { + serializedName: "clientId", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabase" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + tenantId: { + serializedName: "tenantId", readOnly: true, type: { name: "String" } + }, + type: { + serializedName: "type", + type: { + name: "String" + } } } } }; -export const ManagedDatabaseUpdate: coreClient.CompositeMapper = { +export const ManagedInstanceUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseUpdate", + className: "ManagedInstanceUpdate", modelProperties: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, tags: { serializedName: "tags", type: { @@ -7358,188 +6644,235 @@ export const ManagedDatabaseUpdate: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - collation: { - serializedName: "properties.collation", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", - readOnly: true, + managedInstanceCreateMode: { + serializedName: "properties.managedInstanceCreateMode", type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - earliestRestorePoint: { - serializedName: "properties.earliestRestorePoint", - readOnly: true, + isGeneralPurposeV2: { + serializedName: "properties.isGeneralPurposeV2", type: { - name: "DateTime" + name: "Boolean" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + administratorLogin: { + serializedName: "properties.administratorLogin", type: { - name: "DateTime" + name: "String" } }, - defaultSecondaryLocation: { - serializedName: "properties.defaultSecondaryLocation", - readOnly: true, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { name: "String" } }, - catalogCollation: { - serializedName: "properties.catalogCollation", + subnetId: { + serializedName: "properties.subnetId", type: { name: "String" } }, - createMode: { - serializedName: "properties.createMode", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + hybridSecondaryUsage: { + serializedName: "properties.hybridSecondaryUsage", type: { name: "String" } }, - crossSubscriptionSourceDatabaseId: { - serializedName: "properties.crossSubscriptionSourceDatabaseId", + hybridSecondaryUsageDetected: { + serializedName: "properties.hybridSecondaryUsageDetected", + readOnly: true, type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + vCores: { + serializedName: "properties.vCores", type: { - name: "String" + name: "Number" } }, - crossSubscriptionRestorableDroppedDatabaseId: { - serializedName: - "properties.crossSubscriptionRestorableDroppedDatabaseId", + storageSizeInGB: { + serializedName: "properties.storageSizeInGB", type: { - name: "String" + name: "Number" } }, - storageContainerIdentity: { - serializedName: "properties.storageContainerIdentity", + storageIOps: { + serializedName: "properties.storageIOps", type: { - name: "String" + name: "Number" } }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", + storageThroughputMBps: { + serializedName: "properties.storageThroughputMBps", type: { - name: "String" + name: "Number" } }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", - readOnly: true, + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + dnsZone: { + serializedName: "properties.dnsZone", + readOnly: true, type: { name: "String" } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + dnsZonePartner: { + serializedName: "properties.dnsZonePartner", type: { name: "String" } }, - autoCompleteRestore: { - serializedName: "properties.autoCompleteRestore", + publicDataEndpointEnabled: { + serializedName: "properties.publicDataEndpointEnabled", type: { name: "Boolean" } }, - lastBackupName: { - serializedName: "properties.lastBackupName", + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", type: { name: "String" } }, - crossSubscriptionTargetManagedInstanceId: { - serializedName: "properties.crossSubscriptionTargetManagedInstanceId", + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const ManagedDatabaseMoveDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDatabaseMoveDefinition", - modelProperties: { - destinationManagedDatabaseId: { - serializedName: "destinationManagedDatabaseId", - required: true, + }, + proxyOverride: { + serializedName: "properties.proxyOverride", type: { name: "String" } - } - } - } -}; - -export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CompleteDatabaseRestoreDefinition", - modelProperties: { - lastBackupName: { - serializedName: "lastBackupName", - required: true, + }, + timezoneId: { + serializedName: "properties.timezoneId", type: { name: "String" } - } - } - } -}; - -export const ManagedDatabaseStartMoveDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDatabaseStartMoveDefinition", - modelProperties: { - destinationManagedDatabaseId: { - serializedName: "destinationManagedDatabaseId", - required: true, + }, + instancePoolId: { + serializedName: "properties.instancePoolId", type: { name: "String" } }, - operationMode: { - serializedName: "operationMode", + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstancePecProperty" + } + } + } + }, + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", + type: { + name: "String" + } + }, + currentBackupStorageRedundancy: { + serializedName: "properties.currentBackupStorageRedundancy", + readOnly: true, + type: { + name: "String" + } + }, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", + type: { + name: "String" + } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", + type: { + name: "String" + } + }, + keyId: { + serializedName: "properties.keyId", + type: { + name: "String" + } + }, + administrators: { + serializedName: "properties.administrators", + type: { + name: "Composite", + className: "ManagedInstanceExternalAdministrator" + } + }, + servicePrincipal: { + serializedName: "properties.servicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipal" + } + }, + virtualClusterId: { + serializedName: "properties.virtualClusterId", + readOnly: true, + type: { + name: "String" + } + }, + externalGovernanceStatus: { + serializedName: "properties.externalGovernanceStatus", + readOnly: true, type: { name: "String" } @@ -7548,10 +6881,10 @@ export const ManagedDatabaseStartMoveDefinition: coreClient.CompositeMapper = { } }; -export const DatabaseListResult: coreClient.CompositeMapper = { +export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseListResult", + className: "OutboundEnvironmentEndpointCollection", modelProperties: { value: { serializedName: "value", @@ -7561,7 +6894,7 @@ export const DatabaseListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Database" + className: "OutboundEnvironmentEndpoint" } } } @@ -7577,30 +6910,57 @@ export const DatabaseListResult: coreClient.CompositeMapper = { } }; -export const DatabaseIdentity: coreClient.CompositeMapper = { +export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseIdentity", + className: "OutboundEnvironmentEndpoint", modelProperties: { - type: { - serializedName: "type", + category: { + serializedName: "category", + readOnly: true, type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + endpoints: { + serializedName: "endpoints", readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointDependency" + } + } + } + } + } + } +}; + +export const EndpointDependency: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointDependency", + modelProperties: { + domainName: { + serializedName: "domainName", + readOnly: true, + type: { + name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + endpointDetails: { + serializedName: "endpointDetails", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "DatabaseUserIdentity" } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointDetail" + } } } } @@ -7608,439 +6968,1334 @@ export const DatabaseIdentity: coreClient.CompositeMapper = { } }; -export const DatabaseUserIdentity: coreClient.CompositeMapper = { +export const EndpointDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUserIdentity", + className: "EndpointDetail", modelProperties: { - principalId: { - serializedName: "principalId", + port: { + serializedName: "port", readOnly: true, type: { - name: "Uuid" + name: "Number" } - }, - clientId: { - serializedName: "clientId", - readOnly: true, + } + } + } +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", type: { - name: "Uuid" + name: "Composite", + className: "ErrorDetail" } } } } }; -export const DatabaseKey: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseKey", + className: "ErrorDetail", modelProperties: { - type: { - serializedName: "type", + code: { + serializedName: "code", readOnly: true, type: { name: "String" } }, - thumbprint: { - serializedName: "thumbprint", + message: { + serializedName: "message", readOnly: true, type: { name: "String" } }, - creationDate: { - serializedName: "creationDate", + target: { + serializedName: "target", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - subregion: { - serializedName: "subregion", + details: { + serializedName: "details", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } } } } } }; -export const DatabaseUpdate: coreClient.CompositeMapper = { +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUpdate", + className: "ErrorAdditionalInfo", modelProperties: { - sku: { - serializedName: "sku", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "String" } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "DatabaseIdentity" - } - }, - tags: { - serializedName: "tags", + info: { + serializedName: "info", + readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } + value: { type: { name: "any" } } } - }, - createMode: { - serializedName: "properties.createMode", + } + } + } +}; + +export const TopQueriesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TopQueriesListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopQueries" + } + } } }, - collation: { - serializedName: "properties.collation", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + } + } + } +}; + +export const TopQueries: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TopQueries", + modelProperties: { + numberOfQueries: { + serializedName: "numberOfQueries", + readOnly: true, type: { name: "Number" } }, - sampleName: { - serializedName: "properties.sampleName", + aggregationFunction: { + serializedName: "aggregationFunction", + readOnly: true, type: { name: "String" } }, - elasticPoolId: { - serializedName: "properties.elasticPoolId", + observationMetric: { + serializedName: "observationMetric", + readOnly: true, type: { name: "String" } }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + intervalType: { + serializedName: "intervalType", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + startTime: { + serializedName: "startTime", readOnly: true, type: { name: "String" } }, - databaseId: { - serializedName: "properties.databaseId", + endTime: { + serializedName: "endTime", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + queries: { + serializedName: "queries", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryStatisticsProperties" + } + } } - }, - currentServiceObjectiveName: { - serializedName: "properties.currentServiceObjectiveName", + } + } + } +}; + +export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedLedgerDigestUploadsListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedLedgerDigestUploads" + } + } } }, - requestedServiceObjectiveName: { - serializedName: "properties.requestedServiceObjectiveName", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - defaultSecondaryLocation: { - serializedName: "properties.defaultSecondaryLocation", + } + } + } +}; + +export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerDnsAliasListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedServerDnsAlias" + } + } } }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + } + } + } +}; + +export const ManagedServerDnsAliasCreation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerDnsAliasCreation", + modelProperties: { + createDnsRecord: { + defaultValue: true, + serializedName: "createDnsRecord", type: { - name: "DateTime" + name: "Boolean" } - }, - sourceDatabaseDeletionDate: { - serializedName: "properties.sourceDatabaseDeletionDate", + } + } + } +}; + +export const ManagedServerDnsAliasAcquisition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerDnsAliasAcquisition", + modelProperties: { + oldManagedServerDnsAliasResourceId: { + serializedName: "oldManagedServerDnsAliasResourceId", + required: true, type: { - name: "DateTime" + name: "String" } - }, - recoveryServicesRecoveryPointId: { - serializedName: "properties.recoveryServicesRecoveryPointId", + } + } + } +}; + +export const ManagedServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerSecurityAlertPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedServerSecurityAlertPolicy" + } + } } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + } + } + } +}; + +export const NetworkSecurityPerimeterConfigurationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration" + } + } } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - catalogCollation: { - serializedName: "properties.catalogCollation", + } + } + } +}; + +export const NSPConfigPerimeter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigPerimeter", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + perimeterGuid: { + serializedName: "perimeterGuid", type: { - name: "Boolean" + name: "String" } }, - licenseType: { - serializedName: "properties.licenseType", + location: { + serializedName: "location", type: { name: "String" } - }, - maxLogSizeBytes: { - serializedName: "properties.maxLogSizeBytes", - readOnly: true, + } + } + } +}; + +export const NSPConfigAssociation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigAssociation", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", - readOnly: true, + accessMode: { + serializedName: "accessMode", type: { - name: "DateTime" + name: "String" } - }, - readScale: { - serializedName: "properties.readScale", + } + } + } +}; + +export const NSPConfigProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigProfile", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - highAvailabilityReplicaCount: { - serializedName: "properties.highAvailabilityReplicaCount", + accessRulesVersion: { + serializedName: "accessRulesVersion", type: { - name: "Number" + name: "String" } }, - secondaryType: { - serializedName: "properties.secondaryType", + accessRules: { + serializedName: "accessRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPConfigAccessRule" + } + } + } + } + } + } +}; + +export const NSPConfigAccessRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigAccessRule", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - currentSku: { - serializedName: "properties.currentSku", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "Sku" + className: "NSPConfigAccessRuleProperties" } - }, - autoPauseDelay: { - serializedName: "properties.autoPauseDelay", + } + } + } +}; + +export const NSPConfigAccessRuleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigAccessRuleProperties", + modelProperties: { + direction: { + serializedName: "direction", type: { - name: "Number" + name: "String" } }, - currentBackupStorageRedundancy: { - serializedName: "properties.currentBackupStorageRedundancy", - readOnly: true, + addressPrefixes: { + serializedName: "addressPrefixes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + fullyQualifiedDomainNames: { + serializedName: "fullyQualifiedDomainNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - minCapacity: { - serializedName: "properties.minCapacity", + subscriptions: { + serializedName: "subscriptions", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - pausedDate: { - serializedName: "properties.pausedDate", - readOnly: true, + networkSecurityPerimeters: { + serializedName: "networkSecurityPerimeters", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPConfigNetworkSecurityPerimeterRule" + } + } } - }, - resumedDate: { - serializedName: "properties.resumedDate", - readOnly: true, + } + } + } +}; + +export const NSPConfigNetworkSecurityPerimeterRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigNetworkSecurityPerimeterRule", + modelProperties: { + id: { + serializedName: "id", type: { - name: "DateTime" + name: "String" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + perimeterGuid: { + serializedName: "perimeterGuid", type: { name: "String" } }, - isLedgerOn: { - serializedName: "properties.isLedgerOn", + location: { + serializedName: "location", type: { - name: "Boolean" + name: "String" } - }, - isInfraEncryptionEnabled: { - serializedName: "properties.isInfraEncryptionEnabled", - readOnly: true, + } + } + } +}; + +export const NSPProvisioningIssue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPProvisioningIssue", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Boolean" + name: "String" } }, - federatedClientId: { - serializedName: "properties.federatedClientId", + properties: { + serializedName: "properties", type: { - name: "Uuid" + name: "Composite", + className: "NSPProvisioningIssueProperties" } - }, - keys: { - serializedName: "properties.keys", + } + } + } +}; + +export const NSPProvisioningIssueProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPProvisioningIssueProperties", + modelProperties: { + issueType: { + serializedName: "issueType", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } + name: "String" } }, - encryptionProtector: { - serializedName: "properties.encryptionProtector", + severity: { + serializedName: "severity", type: { name: "String" } }, - preferredEnclaveType: { - serializedName: "properties.preferredEnclaveType", + description: { + serializedName: "description", type: { name: "String" } }, - manualCutover: { - serializedName: "properties.manualCutover", + suggestedResourceIds: { + serializedName: "suggestedResourceIds", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - performCutover: { - serializedName: "properties.performCutover", + suggestedAccessRules: { + serializedName: "suggestedAccessRules", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ExportDatabaseDefinition: coreClient.CompositeMapper = { +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExportDatabaseDefinition", + className: "OperationListResult", modelProperties: { - storageKeyType: { - serializedName: "storageKeyType", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } } }, - storageKey: { - serializedName: "storageKey", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - storageUri: { - serializedName: "storageUri", - required: true, + } + } + } +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - administratorLogin: { - serializedName: "administratorLogin", - required: true, + display: { + serializedName: "display", type: { - name: "String" + name: "Composite", + className: "OperationDisplay" } }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - required: true, - type: { + origin: { + serializedName: "origin", + readOnly: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + readOnly: true, + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + readOnly: true, + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + readOnly: true, + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundFirewallRuleListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundFirewallRule" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + modelProperties: { + privateEndpoint: { + serializedName: "privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointProperty" + } + }, + groupIds: { + serializedName: "groupIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointProperty", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + serializedName: "status", + required: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + required: true, + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceProperties", + modelProperties: { + groupId: { + serializedName: "groupId", + readOnly: true, + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "requiredMembers", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "requiredZoneNames", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecoverableDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoverableDatabase" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RecoverableManagedDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecoverableManagedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoverableManagedDatabase" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ReplicationLinkListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReplicationLinkListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicationLink" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableDroppedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableDroppedDatabase" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RestorableDroppedManagedDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabase" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RestorePointListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorePointListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorePoint" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const CreateDatabaseRestorePointDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CreateDatabaseRestorePointDefinition", + modelProperties: { + restorePointLabel: { + serializedName: "restorePointLabel", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const LogicalServerAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogicalServerAdvancedThreatProtectionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerAdvancedThreatProtection" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AutomaticTuningServerOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomaticTuningServerOptions", + modelProperties: { + desiredState: { + serializedName: "desiredState", + type: { + name: "Enum", + allowedValues: ["Off", "On", "Default"] + } + }, + actualState: { + serializedName: "actualState", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Off", "On"] + } + }, + reasonCode: { + serializedName: "reasonCode", + readOnly: true, + type: { + name: "Number" + } + }, + reasonDesc: { + serializedName: "reasonDesc", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Default", "Disabled", "AutoConfigured"] + } + } + } + } +}; + +export const AdministratorListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdministratorListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerAzureADAdministrator" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureADOnlyAuthListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureADOnlyAuthListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerAzureADOnlyAuthentication" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerConfigurationOptionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerConfigurationOption" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { name: "String" } + } + } + } +}; + +export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerConnectionPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerConnectionPolicy" + } + } + } }, - authenticationType: { - serializedName: "authenticationType", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - networkIsolation: { - serializedName: "networkIsolation", - type: { - name: "Composite", - className: "NetworkIsolationSettings" - } } } } }; -export const NetworkIsolationSettings: coreClient.CompositeMapper = { +export const ServerDevOpsAuditSettingsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkIsolationSettings", + className: "ServerDevOpsAuditSettingsListResult", modelProperties: { - storageAccountResourceId: { - serializedName: "storageAccountResourceId", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerDevOpsAuditingSettings" + } + } } }, - sqlServerResourceId: { - serializedName: "sqlServerResourceId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -8049,27 +8304,26 @@ export const NetworkIsolationSettings: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionRequestStatus: coreClient.CompositeMapper = { +export const ServerDnsAliasListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionRequestStatus", + className: "ServerDnsAliasListResult", modelProperties: { - privateLinkServiceId: { - serializedName: "privateLinkServiceId", - readOnly: true, - type: { - name: "String" - } - }, - privateEndpointConnectionName: { - serializedName: "privateEndpointConnectionName", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerDnsAlias" + } + } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -8079,71 +8333,101 @@ export const PrivateEndpointConnectionRequestStatus: coreClient.CompositeMapper } }; -export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { +export const ServerDnsAliasAcquisition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExistingDatabaseDefinition", + className: "ServerDnsAliasAcquisition", modelProperties: { - storageKeyType: { - serializedName: "storageKeyType", - required: true, - type: { - name: "String" - } - }, - storageKey: { - serializedName: "storageKey", + oldServerDnsAliasId: { + serializedName: "oldServerDnsAliasId", required: true, type: { name: "String" } - }, - storageUri: { - serializedName: "storageUri", - required: true, + } + } + } +}; + +export const ServerKeyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerKeyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerKey" + } + } } }, - administratorLogin: { - serializedName: "administratorLogin", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - required: true, + } + } + } +}; + +export const ServerOperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerOperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerOperation" + } + } } }, - authenticationType: { - serializedName: "authenticationType", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - networkIsolation: { - serializedName: "networkIsolation", - type: { - name: "Composite", - className: "NetworkIsolationSettings" - } } } } }; -export const ResourceMoveDefinition: coreClient.CompositeMapper = { +export const LogicalServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceMoveDefinition", + className: "LogicalServerSecurityAlertPolicyListResult", modelProperties: { - id: { - serializedName: "id", - required: true, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerSecurityAlertPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -8152,10 +8436,10 @@ export const ResourceMoveDefinition: coreClient.CompositeMapper = { } }; -export const ElasticPoolListResult: coreClient.CompositeMapper = { +export const ServerTrustCertificatesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolListResult", + className: "ServerTrustCertificatesListResult", modelProperties: { value: { serializedName: "value", @@ -8165,7 +8449,7 @@ export const ElasticPoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ElasticPool" + className: "ServerTrustCertificate" } } } @@ -8181,91 +8465,84 @@ export const ElasticPoolListResult: coreClient.CompositeMapper = { } }; -export const ElasticPoolPerDatabaseSettings: coreClient.CompositeMapper = { +export const ServerTrustGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseSettings", + className: "ServerTrustGroupListResult", modelProperties: { - minCapacity: { - serializedName: "minCapacity", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerTrustGroup" + } + } } }, - maxCapacity: { - serializedName: "maxCapacity", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const ElasticPoolUpdate: coreClient.CompositeMapper = { +export const ServerInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolUpdate", + className: "ServerInfo", modelProperties: { - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", - type: { - name: "Number" - } - }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" - } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", - type: { - name: "Boolean" - } - }, - licenseType: { - serializedName: "properties.licenseType", + serverId: { + serializedName: "serverId", + required: true, type: { name: "String" } - }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + } + } + } +}; + +export const ServerUsageListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerUsageListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerUsage" + } + } } }, - highAvailabilityReplicaCount: { - serializedName: "properties.highAvailabilityReplicaCount", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const ManagedInstanceListResult: coreClient.CompositeMapper = { +export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceListResult", + className: "ServerVulnerabilityAssessmentListResult", modelProperties: { value: { serializedName: "value", @@ -8275,7 +8552,7 @@ export const ManagedInstanceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedInstance" + className: "ServerVulnerabilityAssessment" } } } @@ -8291,69 +8568,101 @@ export const ManagedInstanceListResult: coreClient.CompositeMapper = { } }; -export const ResourceIdentity: coreClient.CompositeMapper = { +export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceIdentity", + className: "CheckNameAvailabilityRequest", modelProperties: { - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + name: { + serializedName: "name", + required: true, type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "UserIdentity" } } + name: "String" } }, - principalId: { - serializedName: "principalId", + type: { + defaultValue: "Microsoft.Sql/servers", + isConstant: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CheckNameAvailabilityResponse", + modelProperties: { + name: { + serializedName: "name", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - type: { - serializedName: "type", + available: { + serializedName: "available", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - tenantId: { - serializedName: "tenantId", + reason: { + serializedName: "reason", readOnly: true, type: { - name: "Uuid" + name: "Enum", + allowedValues: ["Invalid", "AlreadyExists"] + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" } } } } }; -export const UserIdentity: coreClient.CompositeMapper = { +export const ServerListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserIdentity", + className: "ServerListResult", modelProperties: { - principalId: { - serializedName: "principalId", + value: { + serializedName: "value", readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Server" + } + } } }, - clientId: { - serializedName: "clientId", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Uuid" + name: "String" } } } } }; -export const ManagedInstancePecProperty: coreClient.CompositeMapper = { +export const ServerPrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePecProperty", + className: "ServerPrivateEndpointConnection", modelProperties: { id: { serializedName: "id", @@ -8366,17 +8675,17 @@ export const ManagedInstancePecProperty: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionProperties" + className: "PrivateEndpointConnectionProperties" } } } } }; -export const ManagedInstanceExternalAdministrator: coreClient.CompositeMapper = { +export const ServerExternalAdministrator: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceExternalAdministrator", + className: "ServerExternalAdministrator", modelProperties: { administratorType: { serializedName: "administratorType", @@ -8418,54 +8727,11 @@ export const ManagedInstanceExternalAdministrator: coreClient.CompositeMapper = } }; -export const ServicePrincipal: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServicePrincipal", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", - readOnly: true, - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceUpdate: coreClient.CompositeMapper = { +export const ServerUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceUpdate", + className: "ServerUpdate", modelProperties: { - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, identity: { serializedName: "identity", type: { @@ -8480,26 +8746,6 @@ export const ManagedInstanceUpdate: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - managedInstanceCreateMode: { - serializedName: "properties.managedInstanceCreateMode", - type: { - name: "String" - } - }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", - readOnly: true, - type: { - name: "String" - } - }, administratorLogin: { serializedName: "properties.administratorLogin", type: { @@ -8512,8 +8758,8 @@ export const ManagedInstanceUpdate: coreClient.CompositeMapper = { name: "String" } }, - subnetId: { - serializedName: "properties.subnetId", + version: { + serializedName: "properties.version", type: { name: "String" } @@ -8525,157 +8771,172 @@ export const ManagedInstanceUpdate: coreClient.CompositeMapper = { name: "String" } }, - licenseType: { - serializedName: "properties.licenseType", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", + readOnly: true, type: { name: "String" } }, - vCores: { - serializedName: "properties.vCores", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerPrivateEndpointConnection" + } + } } }, - storageSizeInGB: { - serializedName: "properties.storageSizeInGB", + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", type: { - name: "Number" + name: "String" } }, - collation: { - serializedName: "properties.collation", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, - dnsZone: { - serializedName: "properties.dnsZone", + workspaceFeature: { + serializedName: "properties.workspaceFeature", readOnly: true, type: { name: "String" } }, - dnsZonePartner: { - serializedName: "properties.dnsZonePartner", + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", type: { name: "String" } }, - publicDataEndpointEnabled: { - serializedName: "properties.publicDataEndpointEnabled", + federatedClientId: { + serializedName: "properties.federatedClientId", type: { - name: "Boolean" + name: "Uuid" } }, - sourceManagedInstanceId: { - serializedName: "properties.sourceManagedInstanceId", + keyId: { + serializedName: "properties.keyId", type: { name: "String" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + administrators: { + serializedName: "properties.administrators", type: { - name: "DateTime" + name: "Composite", + className: "ServerExternalAdministrator" } }, - proxyOverride: { - serializedName: "properties.proxyOverride", + restrictOutboundNetworkAccess: { + serializedName: "properties.restrictOutboundNetworkAccess", type: { name: "String" } }, - timezoneId: { - serializedName: "properties.timezoneId", + externalGovernanceStatus: { + serializedName: "properties.externalGovernanceStatus", + readOnly: true, type: { name: "String" } - }, - instancePoolId: { - serializedName: "properties.instancePoolId", + } + } + } +}; + +export const ImportNewDatabaseDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImportNewDatabaseDefinition", + modelProperties: { + databaseName: { + serializedName: "databaseName", type: { name: "String" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + edition: { + serializedName: "edition", type: { name: "String" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + serviceObjectiveName: { + serializedName: "serviceObjectiveName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstancePecProperty" - } - } + name: "String" } }, - minimalTlsVersion: { - serializedName: "properties.minimalTlsVersion", + maxSizeBytes: { + serializedName: "maxSizeBytes", type: { name: "String" } }, - currentBackupStorageRedundancy: { - serializedName: "properties.currentBackupStorageRedundancy", - readOnly: true, + storageKeyType: { + serializedName: "storageKeyType", + required: true, type: { name: "String" } }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + storageKey: { + serializedName: "storageKey", + required: true, type: { name: "String" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + storageUri: { + serializedName: "storageUri", + required: true, type: { - name: "Boolean" + name: "String" } }, - primaryUserAssignedIdentityId: { - serializedName: "properties.primaryUserAssignedIdentityId", + administratorLogin: { + serializedName: "administratorLogin", + required: true, type: { name: "String" } }, - keyId: { - serializedName: "properties.keyId", + administratorLoginPassword: { + serializedName: "administratorLoginPassword", + required: true, type: { name: "String" } }, - administrators: { - serializedName: "properties.administrators", + authenticationType: { + serializedName: "authenticationType", type: { - name: "Composite", - className: "ManagedInstanceExternalAdministrator" + name: "String" } }, - servicePrincipal: { - serializedName: "properties.servicePrincipal", + networkIsolation: { + serializedName: "networkIsolation", type: { name: "Composite", - className: "ServicePrincipal" + className: "NetworkIsolationSettings" } } } } }; -export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { +export const StartStopManagedInstanceScheduleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundEnvironmentEndpointCollection", + className: "StartStopManagedInstanceScheduleListResult", modelProperties: { value: { serializedName: "value", @@ -8685,7 +8946,7 @@ export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "OutboundEnvironmentEndpoint" + className: "StartStopManagedInstanceSchedule" } } } @@ -8701,84 +8962,76 @@ export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = } }; -export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { +export const ScheduleItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundEnvironmentEndpoint", + className: "ScheduleItem", modelProperties: { - category: { - serializedName: "category", - readOnly: true, + startDay: { + serializedName: "startDay", + required: true, type: { name: "String" } }, - endpoints: { - serializedName: "endpoints", - readOnly: true, + startTime: { + serializedName: "startTime", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EndpointDependency" - } - } + name: "String" + } + }, + stopDay: { + serializedName: "stopDay", + required: true, + type: { + name: "String" + } + }, + stopTime: { + serializedName: "stopTime", + required: true, + type: { + name: "String" } } } } }; -export const EndpointDependency: coreClient.CompositeMapper = { +export const SubscriptionUsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointDependency", + className: "SubscriptionUsageListResult", modelProperties: { - domainName: { - serializedName: "domainName", - readOnly: true, - type: { - name: "String" - } - }, - endpointDetails: { - serializedName: "endpointDetails", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "EndpointDetail" + className: "SubscriptionUsage" } } } - } - } - } -}; - -export const EndpointDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EndpointDetail", - modelProperties: { - port: { - serializedName: "port", + }, + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const TopQueriesListResult: coreClient.CompositeMapper = { +export const SynapseLinkWorkspaceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopQueriesListResult", + className: "SynapseLinkWorkspaceListResult", modelProperties: { value: { serializedName: "value", @@ -8788,7 +9041,7 @@ export const TopQueriesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TopQueries" + className: "SynapseLinkWorkspace" } } } @@ -8804,73 +9057,105 @@ export const TopQueriesListResult: coreClient.CompositeMapper = { } }; -export const TopQueries: coreClient.CompositeMapper = { +export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopQueries", + className: "SynapseLinkWorkspaceInfoProperties", modelProperties: { - numberOfQueries: { - serializedName: "numberOfQueries", - readOnly: true, - type: { - name: "Number" - } - }, - aggregationFunction: { - serializedName: "aggregationFunction", - readOnly: true, + workspaceId: { + serializedName: "workspaceId", type: { name: "String" } }, - observationMetric: { - serializedName: "observationMetric", - readOnly: true, + linkConnectionName: { + serializedName: "linkConnectionName", type: { name: "String" } - }, - intervalType: { - serializedName: "intervalType", + } + } + } +}; + +export const SyncAgentListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncAgentListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncAgent" + } + } } }, - startTime: { - serializedName: "startTime", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - endTime: { - serializedName: "endTime", + } + } + } +}; + +export const SyncAgentKeyProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncAgentKeyProperties", + modelProperties: { + syncAgentKey: { + serializedName: "syncAgentKey", readOnly: true, type: { name: "String" } - }, - queries: { - serializedName: "queries", + } + } + } +}; + +export const SyncAgentLinkedDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncAgentLinkedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "QueryStatisticsProperties" + className: "SyncAgentLinkedDatabase" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = { +export const SyncDatabaseIdListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedLedgerDigestUploadsListResult", + className: "SyncDatabaseIdListResult", modelProperties: { value: { serializedName: "value", @@ -8880,7 +9165,7 @@ export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "ManagedLedgerDigestUploads" + className: "SyncDatabaseIdProperties" } } } @@ -8896,10 +9181,26 @@ export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = } }; -export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { +export const SyncDatabaseIdProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncDatabaseIdProperties", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SyncGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableDatabaseListResult", + className: "SyncGroupListResult", modelProperties: { value: { serializedName: "value", @@ -8909,7 +9210,7 @@ export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RecoverableDatabase" + className: "SyncGroup" } } } @@ -8925,27 +9226,25 @@ export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { } }; -export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { +export const SyncGroupSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedDatabaseListResult", + className: "SyncGroupSchema", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + tables: { + serializedName: "tables", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RestorableDroppedDatabase" + className: "SyncGroupSchemaTable" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + masterSyncMemberName: { + serializedName: "masterSyncMemberName", type: { name: "String" } @@ -8954,27 +9253,25 @@ export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { } }; -export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { +export const SyncGroupSchemaTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConfigurationOptionListResult", + className: "SyncGroupSchemaTable", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + columns: { + serializedName: "columns", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerConfigurationOption" + className: "SyncGroupSchemaTableColumn" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + quotedName: { + serializedName: "quotedName", type: { name: "String" } @@ -8983,60 +9280,25 @@ export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { } }; -export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { +export const SyncGroupSchemaTableColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityRequest", + className: "SyncGroupSchemaTableColumn", modelProperties: { - name: { - serializedName: "name", - required: true, + quotedName: { + serializedName: "quotedName", type: { name: "String" } }, - type: { - defaultValue: "Microsoft.Sql/servers", - isConstant: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CheckNameAvailabilityResponse", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + dataSize: { + serializedName: "dataSize", type: { name: "String" } }, - available: { - serializedName: "available", - readOnly: true, - type: { - name: "Boolean" - } - }, - reason: { - serializedName: "reason", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Invalid", "AlreadyExists"] - } - }, - message: { - serializedName: "message", - readOnly: true, + dataType: { + serializedName: "dataType", type: { name: "String" } @@ -9045,10 +9307,10 @@ export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { } }; -export const ServerListResult: coreClient.CompositeMapper = { +export const SyncFullSchemaPropertiesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerListResult", + className: "SyncFullSchemaPropertiesListResult", modelProperties: { value: { serializedName: "value", @@ -9058,7 +9320,7 @@ export const ServerListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Server" + className: "SyncFullSchemaProperties" } } } @@ -9074,62 +9336,76 @@ export const ServerListResult: coreClient.CompositeMapper = { } }; -export const ServerPrivateEndpointConnection: coreClient.CompositeMapper = { +export const SyncFullSchemaProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerPrivateEndpointConnection", + className: "SyncFullSchemaProperties", modelProperties: { - id: { - serializedName: "id", + tables: { + serializedName: "tables", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncFullSchemaTable" + } + } } }, - properties: { - serializedName: "properties", + lastUpdateTime: { + serializedName: "lastUpdateTime", + readOnly: true, type: { - name: "Composite", - className: "PrivateEndpointConnectionProperties" + name: "DateTime" } } } } }; -export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { +export const SyncFullSchemaTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionProperties", + className: "SyncFullSchemaTable", modelProperties: { - privateEndpoint: { - serializedName: "privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpointProperty" - } - }, - groupIds: { - serializedName: "groupIds", + columns: { + serializedName: "columns", readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SyncFullSchemaTableColumn" } } } }, - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", + errorId: { + serializedName: "errorId", + readOnly: true, type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" + name: "String" } }, - provisioningState: { - serializedName: "provisioningState", + hasError: { + serializedName: "hasError", + readOnly: true, + type: { + name: "Boolean" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + quotedName: { + serializedName: "quotedName", readOnly: true, type: { name: "String" @@ -9139,167 +9415,251 @@ export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { } }; -export const ServerExternalAdministrator: coreClient.CompositeMapper = { +export const SyncFullSchemaTableColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerExternalAdministrator", + className: "SyncFullSchemaTableColumn", modelProperties: { - administratorType: { - serializedName: "administratorType", + dataSize: { + serializedName: "dataSize", + readOnly: true, type: { name: "String" } }, - principalType: { - serializedName: "principalType", + dataType: { + serializedName: "dataType", + readOnly: true, type: { name: "String" } }, - login: { - serializedName: "login", + errorId: { + serializedName: "errorId", + readOnly: true, type: { name: "String" } }, - sid: { - serializedName: "sid", + hasError: { + serializedName: "hasError", + readOnly: true, type: { - name: "Uuid" + name: "Boolean" } }, - tenantId: { - serializedName: "tenantId", + isPrimaryKey: { + serializedName: "isPrimaryKey", + readOnly: true, type: { - name: "Uuid" + name: "Boolean" } }, - azureADOnlyAuthentication: { - serializedName: "azureADOnlyAuthentication", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + quotedName: { + serializedName: "quotedName", + readOnly: true, + type: { + name: "String" } } } } }; -export const ServerUpdate: coreClient.CompositeMapper = { +export const SyncGroupLogListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerUpdate", + className: "SyncGroupLogListResult", modelProperties: { - identity: { - serializedName: "identity", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Composite", - className: "ResourceIdentity" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupLogProperties" + } + } } }, - tags: { - serializedName: "tags", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } - }, - administratorLogin: { - serializedName: "properties.administratorLogin", + } + } + } +}; + +export const SyncGroupLogProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncGroupLogProperties", + modelProperties: { + timestamp: { + serializedName: "timestamp", + readOnly: true, + type: { + name: "DateTime" + } + }, + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", + source: { + serializedName: "source", + readOnly: true, type: { name: "String" } }, - version: { - serializedName: "properties.version", + details: { + serializedName: "details", + readOnly: true, type: { name: "String" } }, - state: { - serializedName: "properties.state", + tracingId: { + serializedName: "tracingId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", + operationStatus: { + serializedName: "operationStatus", readOnly: true, type: { name: "String" } - }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", + } + } + } +}; + +export const SyncMemberListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncMemberListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerPrivateEndpointConnection" + className: "SyncMember" } } } }, - minimalTlsVersion: { - serializedName: "properties.minimalTlsVersion", - type: { - name: "String" - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - workspaceFeature: { - serializedName: "properties.workspaceFeature", + } + } + } +}; + +export const TimeZoneListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TimeZoneListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimeZone" + } + } } }, - primaryUserAssignedIdentityId: { - serializedName: "properties.primaryUserAssignedIdentityId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - federatedClientId: { - serializedName: "properties.federatedClientId", + } + } + } +}; + +export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogicalDatabaseTransparentDataEncryptionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogicalDatabaseTransparentDataEncryption" + } + } } }, - keyId: { - serializedName: "properties.keyId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - administrators: { - serializedName: "properties.administrators", - type: { - name: "Composite", - className: "ServerExternalAdministrator" - } - }, - restrictOutboundNetworkAccess: { - serializedName: "properties.restrictOutboundNetworkAccess", + } + } + } +}; + +export const UsageListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UsageListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } } }, - externalGovernanceStatus: { - serializedName: "properties.externalGovernanceStatus", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -9309,91 +9669,89 @@ export const ServerUpdate: coreClient.CompositeMapper = { } }; -export const ImportNewDatabaseDefinition: coreClient.CompositeMapper = { +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportNewDatabaseDefinition", + className: "Usage", modelProperties: { - databaseName: { - serializedName: "databaseName", - type: { - name: "String" - } - }, - edition: { - serializedName: "edition", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - serviceObjectiveName: { - serializedName: "serviceObjectiveName", + name: { + serializedName: "name", type: { - name: "String" + name: "Composite", + className: "Name" } }, - maxSizeBytes: { - serializedName: "maxSizeBytes", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - storageKeyType: { - serializedName: "storageKeyType", - required: true, + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } }, - storageKey: { - serializedName: "storageKey", - required: true, + currentValue: { + serializedName: "currentValue", + readOnly: true, type: { - name: "String" + name: "Number" } }, - storageUri: { - serializedName: "storageUri", - required: true, + limit: { + serializedName: "limit", + readOnly: true, type: { - name: "String" + name: "Number" } }, - administratorLogin: { - serializedName: "administratorLogin", - required: true, + requestedLimit: { + serializedName: "requestedLimit", + readOnly: true, type: { - name: "String" + name: "Number" } - }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - required: true, + } + } + } +}; + +export const Name: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Name", + modelProperties: { + value: { + serializedName: "value", type: { name: "String" } }, - authenticationType: { - serializedName: "authenticationType", + localizedValue: { + serializedName: "localizedValue", type: { name: "String" } - }, - networkIsolation: { - serializedName: "networkIsolation", - type: { - name: "Composite", - className: "NetworkIsolationSettings" - } } } } }; -export const StartStopManagedInstanceScheduleListResult: coreClient.CompositeMapper = { +export const VirtualClusterListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StartStopManagedInstanceScheduleListResult", + className: "VirtualClusterListResult", modelProperties: { value: { serializedName: "value", @@ -9403,7 +9761,7 @@ export const StartStopManagedInstanceScheduleListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "StartStopManagedInstanceSchedule" + className: "VirtualCluster" } } } @@ -9419,47 +9777,51 @@ export const StartStopManagedInstanceScheduleListResult: coreClient.CompositeMap } }; -export const ScheduleItem: coreClient.CompositeMapper = { +export const VirtualClusterUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleItem", + className: "VirtualClusterUpdate", modelProperties: { - startDay: { - serializedName: "startDay", - required: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - startTime: { - serializedName: "startTime", - required: true, + subnetId: { + serializedName: "properties.subnetId", + readOnly: true, type: { name: "String" } }, - stopDay: { - serializedName: "stopDay", - required: true, + version: { + serializedName: "properties.version", type: { name: "String" } }, - stopTime: { - serializedName: "stopTime", - required: true, + childResources: { + serializedName: "properties.childResources", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.CompositeMapper = { +export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicalDatabaseTransparentDataEncryptionListResult", + className: "VirtualNetworkRuleListResult", modelProperties: { value: { serializedName: "value", @@ -9469,7 +9831,7 @@ export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.Comp element: { type: { name: "Composite", - className: "LogicalDatabaseTransparentDataEncryption" + className: "VirtualNetworkRule" } } } @@ -9485,68 +9847,59 @@ export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.Comp } }; -export const SloUsageMetric: coreClient.CompositeMapper = { +export const WorkloadClassifierListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SloUsageMetric", + className: "WorkloadClassifierListResult", modelProperties: { - serviceLevelObjective: { - serializedName: "serviceLevelObjective", - readOnly: true, - type: { - name: "String" - } - }, - serviceLevelObjectiveId: { - serializedName: "serviceLevelObjectiveId", + value: { + serializedName: "value", readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadClassifier" + } + } } }, - inRangeTimeRatio: { - serializedName: "inRangeTimeRatio", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const OperationImpact: coreClient.CompositeMapper = { +export const WorkloadGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationImpact", + className: "WorkloadGroupListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadGroup" + } + } } }, - unit: { - serializedName: "unit", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - changeValueAbsolute: { - serializedName: "changeValueAbsolute", - readOnly: true, - type: { - name: "Number" - } - }, - changeValueRelative: { - serializedName: "changeValueRelative", - readOnly: true, - type: { - name: "Number" - } } } } @@ -9617,160 +9970,114 @@ export const ProxyResourceWithWritableName: coreClient.CompositeMapper = { } }; -export const DataMaskingPolicy: coreClient.CompositeMapper = { +export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingPolicy", + className: "BackupShortTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, - kind: { - serializedName: "kind", - readOnly: true, - type: { - name: "String" - } - }, - dataMaskingState: { - serializedName: "properties.dataMaskingState", - type: { - name: "Enum", - allowedValues: ["Disabled", "Enabled"] - } - }, - exemptPrincipals: { - serializedName: "properties.exemptPrincipals", - type: { - name: "String" - } - }, - applicationPrincipals: { - serializedName: "properties.applicationPrincipals", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - maskingLevel: { - serializedName: "properties.maskingLevel", - readOnly: true, + diffBackupIntervalInHours: { + serializedName: "properties.diffBackupIntervalInHours", type: { - name: "String" + name: "Number" } } } } }; -export const DataMaskingRule: coreClient.CompositeMapper = { +export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingRule", + className: "ServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, - kind: { - serializedName: "kind", - readOnly: true, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { - name: "String" + name: "Boolean" } }, - idPropertiesId: { - serializedName: "properties.id", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - aliasName: { - serializedName: "properties.aliasName", + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - ruleState: { - serializedName: "properties.ruleState", + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Enum", - allowedValues: ["Disabled", "Enabled"] + name: "Boolean" } }, - schemaName: { - serializedName: "properties.schemaName", + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - tableName: { - serializedName: "properties.tableName", + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - columnName: { - serializedName: "properties.columnName", + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "String" + name: "Boolean" } }, - maskingFunction: { - serializedName: "properties.maskingFunction", + state: { + serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"] - } - }, - numberFrom: { - serializedName: "properties.numberFrom", - type: { - name: "String" - } - }, - numberTo: { - serializedName: "properties.numberTo", - type: { - name: "String" + allowedValues: ["Enabled", "Disabled"] } }, - prefixSize: { - serializedName: "properties.prefixSize", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - suffixSize: { - serializedName: "properties.suffixSize", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - replacementString: { - serializedName: "properties.replacementString", + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } } } } }; -export const GeoBackupPolicy: coreClient.CompositeMapper = { +export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GeoBackupPolicy", + className: "DatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, kind: { @@ -9780,385 +10087,438 @@ export const GeoBackupPolicy: coreClient.CompositeMapper = { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" + } + }, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", + type: { + name: "Boolean" + } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } + }, + queueDelayMs: { + serializedName: "properties.queueDelayMs", + type: { + name: "Number" + } + }, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", + type: { + name: "Boolean" } }, state: { serializedName: "properties.state", - required: true, type: { name: "Enum", - allowedValues: ["Disabled", "Enabled"] + allowedValues: ["Enabled", "Disabled"] } }, - storageType: { - serializedName: "properties.storageType", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" + } } } } }; -export const ServerCommunicationLink: coreClient.CompositeMapper = { +export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerCommunicationLink", + className: "ExtendedDatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + predicateExpression: { + serializedName: "properties.predicateExpression", type: { name: "String" } }, - kind: { - serializedName: "kind", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - state: { - serializedName: "properties.state", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - partnerServer: { - serializedName: "properties.partnerServer", + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const ServiceObjective: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceObjective", - modelProperties: { - ...ProxyResource.type.modelProperties, - serviceObjectiveName: { - serializedName: "properties.serviceObjectiveName", - readOnly: true, + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - isDefault: { - serializedName: "properties.isDefault", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "Boolean" + name: "Number" } }, - isSystem: { - serializedName: "properties.isSystem", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { name: "Boolean" } }, - description: { - serializedName: "properties.description", - readOnly: true, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - enabled: { - serializedName: "properties.enabled", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Boolean" + name: "String" + } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" } } } } }; -export const ElasticPoolActivity: coreClient.CompositeMapper = { +export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolActivity", + className: "ExtendedServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { - name: "Number" + name: "Boolean" } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + predicateExpression: { + serializedName: "properties.predicateExpression", type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - operation: { - serializedName: "properties.operation", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - operationId: { - serializedName: "properties.operationId", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Uuid" + name: "Boolean" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "Number" + name: "Boolean" } }, - requestedDatabaseDtuMax: { - serializedName: "properties.requestedDatabaseDtuMax", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { name: "Number" } }, - requestedDatabaseDtuMin: { - serializedName: "properties.requestedDatabaseDtuMin", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "Number" + name: "Boolean" } }, - requestedDtu: { - serializedName: "properties.requestedDtu", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - requestedElasticPoolName: { - serializedName: "properties.requestedElasticPoolName", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - requestedStorageLimitInGB: { - serializedName: "properties.requestedStorageLimitInGB", - readOnly: true, - type: { - name: "Number" - } - }, - elasticPoolName: { - serializedName: "properties.elasticPoolName", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } - }, - startTime: { - serializedName: "properties.startTime", + } + } + } +}; + +export const DataMaskingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataMaskingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - requestedStorageLimitInMB: { - serializedName: "properties.requestedStorageLimitInMB", - readOnly: true, + dataMaskingState: { + serializedName: "properties.dataMaskingState", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - requestedDatabaseDtuGuarantee: { - serializedName: "properties.requestedDatabaseDtuGuarantee", - readOnly: true, + exemptPrincipals: { + serializedName: "properties.exemptPrincipals", type: { - name: "Number" + name: "String" } }, - requestedDatabaseDtuCap: { - serializedName: "properties.requestedDatabaseDtuCap", + applicationPrincipals: { + serializedName: "properties.applicationPrincipals", readOnly: true, type: { - name: "Number" + name: "String" } }, - requestedDtuGuarantee: { - serializedName: "properties.requestedDtuGuarantee", + maskingLevel: { + serializedName: "properties.maskingLevel", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const ElasticPoolDatabaseActivity: coreClient.CompositeMapper = { +export const DataMaskingRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolDatabaseActivity", + className: "DataMaskingRule", modelProperties: { ...ProxyResource.type.modelProperties, location: { serializedName: "location", + readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - endTime: { - serializedName: "properties.endTime", + idPropertiesId: { + serializedName: "properties.id", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + ruleState: { + serializedName: "properties.ruleState", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } - }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + }, + schemaName: { + serializedName: "properties.schemaName", type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + tableName: { + serializedName: "properties.tableName", type: { - name: "Number" + name: "String" } }, - operation: { - serializedName: "properties.operation", - readOnly: true, + columnName: { + serializedName: "properties.columnName", type: { name: "String" } }, - operationId: { - serializedName: "properties.operationId", - readOnly: true, + aliasName: { + serializedName: "properties.aliasName", type: { - name: "Uuid" + name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, + maskingFunction: { + serializedName: "properties.maskingFunction", type: { - name: "Number" + name: "Enum", + allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"] } }, - requestedElasticPoolName: { - serializedName: "properties.requestedElasticPoolName", - readOnly: true, + numberFrom: { + serializedName: "properties.numberFrom", type: { name: "String" } }, - currentElasticPoolName: { - serializedName: "properties.currentElasticPoolName", - readOnly: true, + numberTo: { + serializedName: "properties.numberTo", type: { name: "String" } }, - currentServiceObjective: { - serializedName: "properties.currentServiceObjective", - readOnly: true, + prefixSize: { + serializedName: "properties.prefixSize", type: { name: "String" } }, - requestedServiceObjective: { - serializedName: "properties.requestedServiceObjective", - readOnly: true, + suffixSize: { + serializedName: "properties.suffixSize", type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + replacementString: { + serializedName: "properties.replacementString", type: { name: "String" } - }, - startTime: { - serializedName: "properties.startTime", + } + } + } +}; + +export const DataWarehouseUserActivities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataWarehouseUserActivities", + modelProperties: { + ...ProxyResource.type.modelProperties, + activeQueriesCount: { + serializedName: "properties.activeQueriesCount", readOnly: true, type: { - name: "DateTime" + name: "Number" + } + } + } + } +}; + +export const DatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseAdvancedThreatProtection", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" } }, state: { serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] + } + }, + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } @@ -10245,7 +10605,7 @@ export const RecommendedAction: coreClient.CompositeMapper = { serializedName: "properties.executeActionDuration", readOnly: true, type: { - name: "String" + name: "TimeSpan" } }, revertActionStartTime: { @@ -10259,7 +10619,7 @@ export const RecommendedAction: coreClient.CompositeMapper = { serializedName: "properties.revertActionDuration", readOnly: true, type: { - name: "String" + name: "TimeSpan" } }, executeActionInitiatedBy: { @@ -10518,337 +10878,190 @@ export const DatabaseColumn: coreClient.CompositeMapper = { memoryOptimized: { serializedName: "properties.memoryOptimized", type: { - name: "Boolean" - } - }, - isComputed: { - serializedName: "properties.isComputed", - type: { - name: "Boolean" - } - } - } - } -}; - -export const DatabaseSchema: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSchema", - modelProperties: { - ...ProxyResource.type.modelProperties - } - } -}; - -export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSecurityAlertPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAddresses: { - serializedName: "properties.emailAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", - type: { - name: "Boolean" - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const DatabaseTable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseTable", - modelProperties: { - ...ProxyResource.type.modelProperties, - temporalType: { - serializedName: "properties.temporalType", - type: { - name: "String" - } - }, - memoryOptimized: { - serializedName: "properties.memoryOptimized", - type: { - name: "Boolean" - } - } - } - } -}; - -export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaseline", - modelProperties: { - ...ProxyResource.type.modelProperties, - baselineResults: { - serializedName: "properties.baselineResults", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" - } - } - } - } - } - } -}; - -export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { - 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" + name: "Boolean" } }, - recurringScans: { - serializedName: "properties.recurringScans", + isComputed: { + serializedName: "properties.isComputed", type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + name: "Boolean" } } } } }; -export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { +export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecord", + className: "ImportExportExtensionsOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - scanId: { - serializedName: "properties.scanId", + requestId: { + serializedName: "properties.requestId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - triggerType: { - serializedName: "properties.triggerType", + requestType: { + serializedName: "properties.requestType", readOnly: true, type: { name: "String" } }, - state: { - serializedName: "properties.state", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "properties.endTime", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - errors: { - serializedName: "properties.errors", + status: { + serializedName: "properties.status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanError" - } - } + name: "String" } }, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { name: "String" } }, - numberOfFailedSecurityChecks: { - serializedName: "properties.numberOfFailedSecurityChecks", + queuedTime: { + serializedName: "properties.queuedTime", readOnly: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentScansExport", - modelProperties: { - ...ProxyResource.type.modelProperties, - exportedReportLocation: { - serializedName: "properties.exportedReportLocation", + }, + blobUri: { + serializedName: "properties.blobUri", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const DataWarehouseUserActivities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataWarehouseUserActivities", - modelProperties: { - ...ProxyResource.type.modelProperties, - activeQueriesCount: { - serializedName: "properties.activeQueriesCount", + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestStatus" + } + } } } } } }; -export const DeletedServer: coreClient.CompositeMapper = { +export const DatabaseExtensions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeletedServer", + className: "DatabaseExtensions", modelProperties: { ...ProxyResource.type.modelProperties, - version: { - serializedName: "properties.version", - readOnly: true, + operationMode: { + serializedName: "properties.operationMode", type: { name: "String" } }, - deletionTime: { - serializedName: "properties.deletionTime", - readOnly: true, + storageKeyType: { + serializedName: "properties.storageKeyType", type: { - name: "DateTime" + name: "String" } }, - originalId: { - serializedName: "properties.originalId", - readOnly: true, + storageKey: { + serializedName: "properties.storageKey", type: { name: "String" } }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", - readOnly: true, + storageUri: { + serializedName: "properties.storageUri", + type: { + name: "String" + } + }, + administratorLogin: { + serializedName: "properties.administratorLogin", + type: { + name: "String" + } + }, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", + type: { + name: "String" + } + }, + authenticationType: { + serializedName: "properties.authenticationType", + type: { + name: "String" + } + }, + databaseEdition: { + serializedName: "properties.databaseEdition", + type: { + name: "String" + } + }, + serviceObjectiveName: { + serializedName: "properties.serviceObjectiveName", + type: { + name: "String" + } + }, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { name: "String" } + }, + networkIsolation: { + serializedName: "properties.networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" + } } } } }; -export const ElasticPoolOperation: coreClient.CompositeMapper = { +export const DatabaseOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolOperation", + className: "DatabaseOperation", modelProperties: { ...ProxyResource.type.modelProperties, - elasticPoolName: { - serializedName: "properties.elasticPoolName", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" @@ -10944,141 +11157,204 @@ export const ElasticPoolOperation: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + operationPhaseDetails: { + serializedName: "properties.operationPhaseDetails", + type: { + name: "Composite", + className: "PhaseDetails" + } } } } }; -export const EncryptionProtector: coreClient.CompositeMapper = { +export const DatabaseSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtector", + className: "DatabaseSchema", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - location: { - serializedName: "location", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - subregion: { - serializedName: "properties.subregion", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "String" + name: "Boolean" } }, - uri: { - serializedName: "properties.uri", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } } } } }; -export const FailoverGroup: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentBaselineSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroup", + className: "DatabaseSqlVulnerabilityAssessmentBaselineSet", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - tags: { - serializedName: "tags", + results: { + serializedName: "properties.results", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" + value: { + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { type: { name: "String" } } + } + } + } + } } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + } + } + } +}; + +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" - } - }, - replicationRole: { - serializedName: "properties.replicationRole", - readOnly: true, - type: { - name: "String" + className: "SystemData" } }, - replicationState: { - serializedName: "properties.replicationState", - readOnly: true, + latestScan: { + serializedName: "properties.latestScan", type: { - name: "String" + name: "Boolean" } }, - partnerServers: { - serializedName: "properties.partnerServers", + results: { + serializedName: "properties.results", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "PartnerInfo" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { type: { name: "String" } } + } + } } } } + } + } + } +}; + +export const DatabaseSqlVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } }, - databases: { - serializedName: "properties.databases", + results: { + serializedName: "properties.results", type: { name: "Sequence", element: { type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } @@ -11087,401 +11363,398 @@ export const FailoverGroup: coreClient.CompositeMapper = { } }; -export const JobCredential: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobCredential", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineInput", modelProperties: { ...ProxyResource.type.modelProperties, - username: { - serializedName: "properties.username", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - password: { - serializedName: "properties.password", + latestScan: { + serializedName: "properties.latestScan", type: { - name: "String" + name: "Boolean" + } + }, + results: { + serializedName: "properties.results", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const JobExecution: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanResults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobExecution", + className: "SqlVulnerabilityAssessmentScanResults", modelProperties: { ...ProxyResource.type.modelProperties, - jobVersion: { - serializedName: "properties.jobVersion", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "Number" + name: "Composite", + className: "SystemData" } }, - stepName: { - serializedName: "properties.stepName", + ruleId: { + serializedName: "properties.ruleId", readOnly: true, type: { name: "String" } }, - stepId: { - serializedName: "properties.stepId", - readOnly: true, - type: { - name: "Number" - } - }, - jobExecutionId: { - serializedName: "properties.jobExecutionId", - readOnly: true, - type: { - name: "Uuid" - } - }, - lifecycle: { - serializedName: "properties.lifecycle", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { name: "String" } }, - createTime: { - serializedName: "properties.createTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - currentAttempts: { - serializedName: "properties.currentAttempts", - type: { - name: "Number" - } - }, - currentAttemptStartTime: { - serializedName: "properties.currentAttemptStartTime", + isTrimmed: { + serializedName: "properties.isTrimmed", readOnly: true, type: { - name: "DateTime" + name: "Boolean" } }, - lastMessage: { - serializedName: "properties.lastMessage", + queryResults: { + serializedName: "properties.queryResults", readOnly: true, type: { - name: "String" - } - }, - target: { - serializedName: "properties.target", - type: { - name: "Composite", - className: "JobExecutionTarget" - } - } - } - } -}; - -export const Job: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Job", - modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - defaultValue: "", - serializedName: "properties.description", + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + }, + remediation: { + serializedName: "properties.remediation", type: { - name: "String" + name: "Composite", + className: "Remediation" } }, - version: { - serializedName: "properties.version", - readOnly: true, + baselineAdjustedResult: { + serializedName: "properties.baselineAdjustedResult", type: { - name: "Number" + name: "Composite", + className: "BaselineAdjustedResult" } }, - schedule: { - serializedName: "properties.schedule", + ruleMetadata: { + serializedName: "properties.ruleMetadata", type: { name: "Composite", - className: "JobSchedule" + className: "VaRule" } } } } }; -export const JobStep: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStep", + className: "SqlVulnerabilityAssessmentScanRecord", modelProperties: { ...ProxyResource.type.modelProperties, - stepId: { - serializedName: "properties.stepId", + systemData: { + serializedName: "systemData", type: { - name: "Number" + name: "Composite", + className: "SystemData" } }, - targetGroup: { - serializedName: "properties.targetGroup", + scanId: { + serializedName: "properties.scanId", + readOnly: true, type: { name: "String" } }, - credential: { - serializedName: "properties.credential", + triggerType: { + serializedName: "properties.triggerType", + readOnly: true, type: { name: "String" } }, - action: { - serializedName: "properties.action", + state: { + serializedName: "properties.state", + readOnly: true, type: { - name: "Composite", - className: "JobStepAction" + name: "String" } }, - output: { - serializedName: "properties.output", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Composite", - className: "JobStepOutput" + name: "DateTime" } }, - executionOptions: { - serializedName: "properties.executionOptions", + endTime: { + serializedName: "properties.endTime", + readOnly: true, type: { - name: "Composite", - className: "JobStepExecutionOptions" + name: "DateTime" } - } - } - } -}; - -export const JobTargetGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobTargetGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - members: { - serializedName: "properties.members", + }, + errors: { + serializedName: "properties.errors", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "JobTarget" + className: "SqlVulnerabilityAssessmentScanError" } } } - } - } - } -}; - -export const JobVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobVersion", - modelProperties: { - ...ProxyResource.type.modelProperties - } - } -}; - -export const LongTermRetentionPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LongTermRetentionPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", + }, + server: { + serializedName: "properties.server", + readOnly: true, type: { name: "String" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + database: { + serializedName: "properties.database", + readOnly: true, type: { name: "String" } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + sqlVersion: { + serializedName: "properties.sqlVersion", + readOnly: true, type: { name: "String" } }, - weekOfYear: { - serializedName: "properties.weekOfYear", + highSeverityFailedRulesCount: { + serializedName: "properties.highSeverityFailedRulesCount", + readOnly: true, type: { name: "Number" } - } - } - } -}; - -export const MaintenanceWindowOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MaintenanceWindowOptions", - modelProperties: { - ...ProxyResource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } }, - maintenanceWindowCycles: { - serializedName: "properties.maintenanceWindowCycles", + mediumSeverityFailedRulesCount: { + serializedName: "properties.mediumSeverityFailedRulesCount", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } + name: "Number" } }, - minDurationInMinutes: { - serializedName: "properties.minDurationInMinutes", + lowSeverityFailedRulesCount: { + serializedName: "properties.lowSeverityFailedRulesCount", + readOnly: true, type: { name: "Number" } }, - defaultDurationInMinutes: { - serializedName: "properties.defaultDurationInMinutes", + totalPassedRulesCount: { + serializedName: "properties.totalPassedRulesCount", + readOnly: true, type: { name: "Number" } }, - minCycles: { - serializedName: "properties.minCycles", + totalFailedRulesCount: { + serializedName: "properties.totalFailedRulesCount", + readOnly: true, type: { name: "Number" } }, - timeGranularityInMinutes: { - serializedName: "properties.timeGranularityInMinutes", + totalRulesCount: { + serializedName: "properties.totalRulesCount", + readOnly: true, type: { name: "Number" } }, - allowMultipleMaintenanceWindowsPerCycle: { - serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + isBaselineApplied: { + serializedName: "properties.isBaselineApplied", + readOnly: true, type: { name: "Boolean" } + }, + lastScanTime: { + serializedName: "properties.lastScanTime", + readOnly: true, + type: { + name: "DateTime" + } } } } }; -export const MaintenanceWindows: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindows", + className: "SqlVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - timeRanges: { - serializedName: "properties.timeRanges", + systemData: { + serializedName: "systemData", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } + name: "Composite", + className: "SystemData" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { +export const DatabaseTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy", + className: "DatabaseTable", modelProperties: { ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + temporalType: { + serializedName: "properties.temporalType", + type: { + name: "String" + } + }, + memoryOptimized: { + serializedName: "properties.memoryOptimized", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DatabaseUsage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseUsage", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + readOnly: true, + type: { + name: "String" + } + }, + currentValue: { + serializedName: "properties.currentValue", + readOnly: true, + type: { + name: "Number" + } + }, + limit: { + serializedName: "properties.limit", + readOnly: true, type: { name: "Number" } + }, + unit: { + serializedName: "properties.unit", + readOnly: true, + type: { + name: "String" + } } } } }; -export const ManagedInstanceQuery: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceQuery", + className: "DatabaseVulnerabilityAssessmentRuleBaseline", modelProperties: { ...ProxyResource.type.modelProperties, - queryText: { - serializedName: "properties.queryText", + baselineResults: { + serializedName: "properties.baselineResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" + } + } } } } } }; -export const QueryStatistics: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStatistics", + className: "VulnerabilityAssessmentScanRecord", modelProperties: { ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", + scanId: { + serializedName: "properties.scanId", readOnly: true, type: { name: "String" } }, - queryId: { - serializedName: "properties.queryId", + triggerType: { + serializedName: "properties.triggerType", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" @@ -11491,75 +11764,78 @@ export const QueryStatistics: coreClient.CompositeMapper = { serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, endTime: { serializedName: "properties.endTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - intervals: { - serializedName: "properties.intervals", + errors: { + serializedName: "properties.errors", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "QueryMetricInterval" + className: "VulnerabilityAssessmentScanError" } } } + }, + storageContainerPath: { + serializedName: "properties.storageContainerPath", + readOnly: true, + type: { + name: "String" + } + }, + numberOfFailedSecurityChecks: { + serializedName: "properties.numberOfFailedSecurityChecks", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy", + className: "DatabaseVulnerabilityAssessmentScansExport", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] - } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAddresses: { - serializedName: "properties.emailAddresses", + exportedReportLocation: { + serializedName: "properties.exportedReportLocation", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + } + } + } +}; + +export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } @@ -11570,310 +11846,227 @@ export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "DateTime" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const SecurityEvent: coreClient.CompositeMapper = { +export const ImportExportOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEvent", + className: "ImportExportOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - eventTime: { - serializedName: "properties.eventTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - securityEventType: { - serializedName: "properties.securityEventType", + requestId: { + serializedName: "properties.requestId", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "Undefined", - "SqlInjectionVulnerability", - "SqlInjectionExploit" - ] + name: "Uuid" } }, - subscription: { - serializedName: "properties.subscription", + requestType: { + serializedName: "properties.requestType", readOnly: true, type: { name: "String" } }, - server: { - serializedName: "properties.server", + queuedTime: { + serializedName: "properties.queuedTime", readOnly: true, type: { name: "String" } }, - database: { - serializedName: "properties.database", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", readOnly: true, type: { name: "String" } }, - clientIp: { - serializedName: "properties.clientIp", + blobUri: { + serializedName: "properties.blobUri", readOnly: true, type: { name: "String" } }, - applicationName: { - serializedName: "properties.applicationName", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - principalName: { - serializedName: "properties.principalName", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - securityEventSqlInjectionAdditionalProperties: { - serializedName: - "properties.securityEventSqlInjectionAdditionalProperties", - type: { - name: "Composite", - className: "SecurityEventSqlInjectionAdditionalProperties" - } - } - } - } -}; - -export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedTransparentDataEncryption", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - } - } - } -}; - -export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceAdministrator", - modelProperties: { - ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", - type: { - name: "String" - } - }, - login: { - serializedName: "properties.login", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String" } }, - sid: { - serializedName: "properties.sid", - type: { - name: "Uuid" - } - }, - tenantId: { - serializedName: "properties.tenantId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthentication", - modelProperties: { - ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestStatus" + } + } } } } } }; -export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { +export const DeletedServer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector", + className: "DeletedServer", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + version: { + serializedName: "properties.version", readOnly: true, type: { name: "String" } }, - serverKeyName: { - serializedName: "properties.serverKeyName", - type: { - name: "String" - } - }, - serverKeyType: { - serializedName: "properties.serverKeyType", + deletionTime: { + serializedName: "properties.deletionTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - uri: { - serializedName: "properties.uri", + originalId: { + serializedName: "properties.originalId", readOnly: true, type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", readOnly: true, type: { name: "String" } - }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", - type: { - name: "Boolean" - } } } } }; -export const ManagedInstanceKey: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceKey", + className: "DistributedAvailabilityGroup", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + distributedAvailabilityGroupName: { + serializedName: "properties.distributedAvailabilityGroupName", readOnly: true, type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + distributedAvailabilityGroupId: { + serializedName: "properties.distributedAvailabilityGroupId", + readOnly: true, type: { - name: "String" + name: "Uuid" } }, - uri: { - serializedName: "properties.uri", + replicationMode: { + serializedName: "properties.replicationMode", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", + partnerLinkRole: { + serializedName: "properties.partnerLinkRole", readOnly: true, type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", + partnerAvailabilityGroupName: { + serializedName: "properties.partnerAvailabilityGroupName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + partnerEndpoint: { + serializedName: "properties.partnerEndpoint", readOnly: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedInstanceLongTermRetentionPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", type: { name: "String" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + instanceLinkRole: { + serializedName: "properties.instanceLinkRole", + readOnly: true, type: { name: "String" } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + instanceAvailabilityGroupName: { + serializedName: "properties.instanceAvailabilityGroupName", + readOnly: true, type: { name: "String" } }, - weekOfYear: { - serializedName: "properties.weekOfYear", + databases: { + serializedName: "properties.databases", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DistributedAvailabilityGroupDatabase" + } + } } } } } }; -export const ManagedInstanceOperation: coreClient.CompositeMapper = { +export const ElasticPoolOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceOperation", + className: "ElasticPoolOperation", modelProperties: { ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", + elasticPoolName: { + serializedName: "properties.elasticPoolName", readOnly: true, type: { name: "String" @@ -11900,6 +12093,13 @@ export const ManagedInstanceOperation: coreClient.CompositeMapper = { name: "Number" } }, + serverName: { + serializedName: "properties.serverName", + readOnly: true, + type: { + name: "String" + } + }, startTime: { serializedName: "properties.startTime", readOnly: true, @@ -11949,60 +12149,207 @@ export const ManagedInstanceOperation: coreClient.CompositeMapper = { name: "DateTime" } }, - description: { - serializedName: "properties.description", + description: { + serializedName: "properties.description", + readOnly: true, + type: { + name: "String" + } + }, + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const EncryptionProtector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionProtector", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + subregion: { + serializedName: "properties.subregion", + readOnly: true, + type: { + name: "String" + } + }, + serverKeyName: { + serializedName: "properties.serverKeyName", + type: { + name: "String" + } + }, + serverKeyType: { + serializedName: "properties.serverKeyType", + type: { + name: "String" + } + }, + uri: { + serializedName: "properties.uri", + readOnly: true, + type: { + name: "String" + } + }, + thumbprint: { + serializedName: "properties.thumbprint", + readOnly: true, + type: { + name: "String" + } + }, + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const EndpointCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointCertificate", + modelProperties: { + ...ProxyResource.type.modelProperties, + publicBlob: { + serializedName: "properties.publicBlob", + type: { + name: "String" + } + } + } + } +}; + +export const FailoverGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", + type: { + name: "Composite", + className: "FailoverGroupReadWriteEndpoint" + } + }, + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", + type: { + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" + } + }, + replicationRole: { + serializedName: "properties.replicationRole", readOnly: true, type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", + replicationState: { + serializedName: "properties.replicationState", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - operationParameters: { - serializedName: "properties.operationParameters", + partnerServers: { + serializedName: "properties.partnerServers", type: { - name: "Composite", - className: "ManagedInstanceOperationParametersPair" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartnerInfo" + } + } } }, - operationSteps: { - serializedName: "properties.operationSteps", + databases: { + serializedName: "properties.databases", type: { - name: "Composite", - className: "ManagedInstanceOperationSteps" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { +export const GeoBackupPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePrivateEndpointConnection", + className: "GeoBackupPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointProperty" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] + } + }, + storageType: { + serializedName: "properties.storageType", readOnly: true, type: { name: "String" @@ -12012,297 +12359,259 @@ export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMappe } }; -export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { +export const InstanceFailoverGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePrivateLink", + className: "InstanceFailoverGroup", modelProperties: { ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + secondaryType: { + serializedName: "properties.secondaryType", + type: { + name: "String" + } + }, + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { name: "Composite", - className: "ManagedInstancePrivateLinkProperties" + className: "InstanceFailoverGroupReadWriteEndpoint" } - } - } - } -}; - -export const TdeCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TdeCertificate", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateBlob: { - serializedName: "properties.privateBlob", + }, + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", + type: { + name: "Composite", + className: "InstanceFailoverGroupReadOnlyEndpoint" + } + }, + replicationRole: { + serializedName: "properties.replicationRole", + readOnly: true, type: { name: "String" } }, - certPassword: { - serializedName: "properties.certPassword", + replicationState: { + serializedName: "properties.replicationState", + readOnly: true, type: { name: "String" } + }, + partnerRegions: { + serializedName: "properties.partnerRegions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartnerRegionInfo" + } + } + } + }, + managedInstancePairs: { + serializedName: "properties.managedInstancePairs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstancePairInfo" + } + } + } } } } }; -export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { +export const JobCredential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment", + className: "JobCredential", modelProperties: { ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + username: { + serializedName: "properties.username", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + password: { + serializedName: "properties.password", type: { name: "String" } - }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } } } } }; -export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { +export const JobExecution: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicy", + className: "JobExecution", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + jobVersion: { + serializedName: "properties.jobVersion", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "Number" } }, - state: { - serializedName: "properties.state", + stepName: { + serializedName: "properties.stepName", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + stepId: { + serializedName: "properties.stepId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + jobExecutionId: { + serializedName: "properties.jobExecutionId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Uuid" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + lifecycle: { + serializedName: "properties.lifecycle", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + createTime: { + serializedName: "properties.createTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - retentionDays: { - serializedName: "properties.retentionDays", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - creationTime: { - serializedName: "properties.creationTime", + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { name: "DateTime" } - } - } - } -}; - -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + }, + currentAttempts: { + serializedName: "properties.currentAttempts", type: { - name: "Composite", - className: "PrivateEndpointProperty" + name: "Number" } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + }, + currentAttemptStartTime: { + serializedName: "properties.currentAttemptStartTime", + readOnly: true, type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" + name: "DateTime" } }, - provisioningState: { - serializedName: "properties.provisioningState", + lastMessage: { + serializedName: "properties.lastMessage", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PrivateLinkResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + }, + target: { + serializedName: "properties.target", type: { name: "Composite", - className: "PrivateLinkResourceProperties" + className: "JobExecutionTarget" } } } } }; -export const RecoverableManagedDatabase: coreClient.CompositeMapper = { +export const JobStep: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableManagedDatabase", + className: "JobStep", modelProperties: { ...ProxyResource.type.modelProperties, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", - readOnly: true, + stepId: { + serializedName: "properties.stepId", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const RestorePoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePoint", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + }, + targetGroup: { + serializedName: "properties.targetGroup", type: { name: "String" } }, - restorePointType: { - serializedName: "properties.restorePointType", - readOnly: true, + credential: { + serializedName: "properties.credential", type: { - name: "Enum", - allowedValues: ["CONTINUOUS", "DISCRETE"] + name: "String" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", - readOnly: true, + action: { + serializedName: "properties.action", type: { - name: "DateTime" + name: "Composite", + className: "JobStepAction" } }, - restorePointCreationDate: { - serializedName: "properties.restorePointCreationDate", - readOnly: true, + output: { + serializedName: "properties.output", type: { - name: "DateTime" + name: "Composite", + className: "JobStepOutput" } }, - restorePointLabel: { - serializedName: "properties.restorePointLabel", - readOnly: true, + executionOptions: { + serializedName: "properties.executionOptions", type: { - name: "String" + name: "Composite", + className: "JobStepExecutionOptions" } } } } }; -export const ServerAutomaticTuning: coreClient.CompositeMapper = { +export const JobTargetGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAutomaticTuning", + className: "JobTargetGroup", modelProperties: { ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", - type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] - } - }, - actualState: { - serializedName: "properties.actualState", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] - } - }, - options: { - serializedName: "properties.options", + members: { + serializedName: "properties.members", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "Composite", - className: "AutomaticTuningServerOptions" + className: "JobTarget" } } } @@ -12311,126 +12620,128 @@ export const ServerAutomaticTuning: coreClient.CompositeMapper = { } }; -export const ServerAzureADAdministrator: coreClient.CompositeMapper = { +export const JobVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAzureADAdministrator", + className: "JobVersion", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const Job: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Job", modelProperties: { ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", - type: { - name: "String" - } - }, - login: { - serializedName: "properties.login", + description: { + defaultValue: "", + serializedName: "properties.description", type: { name: "String" } }, - sid: { - serializedName: "properties.sid", - type: { - name: "Uuid" - } - }, - tenantId: { - serializedName: "properties.tenantId", + version: { + serializedName: "properties.version", + readOnly: true, type: { - name: "Uuid" + name: "Number" } }, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", - readOnly: true, + schedule: { + serializedName: "properties.schedule", type: { - name: "Boolean" + name: "Composite", + className: "JobSchedule" } } } } }; -export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { +export const LedgerDigestUploads: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAzureADOnlyAuthentication", + className: "LedgerDigestUploads", modelProperties: { ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + digestStorageEndpoint: { + serializedName: "properties.digestStorageEndpoint", type: { - name: "Boolean" + name: "String" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { +export const LongTermRetentionBackup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDevOpsAuditingSettings", + className: "LongTermRetentionBackup", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + serverCreateTime: { + serializedName: "properties.serverCreateTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - state: { - serializedName: "properties.state", + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "DateTime" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + backupTime: { + serializedName: "properties.backupTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", + readOnly: true, type: { - name: "Uuid" + name: "String" } - } - } - } -}; - -export const ServerDnsAlias: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerDnsAlias", - modelProperties: { - ...ProxyResource.type.modelProperties, - azureDnsRecord: { - serializedName: "properties.azureDnsRecord", - readOnly: true, + }, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { name: "String" } @@ -12439,391 +12750,307 @@ export const ServerDnsAlias: coreClient.CompositeMapper = { } }; -export const ServerKey: coreClient.CompositeMapper = { +export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerKey", + className: "LongTermRetentionBackupOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + requestId: { + serializedName: "properties.requestId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - location: { - serializedName: "location", + operationType: { + serializedName: "properties.operationType", readOnly: true, type: { name: "String" } }, - subregion: { - serializedName: "properties.subregion", + fromBackupResourceId: { + serializedName: "properties.fromBackupResourceId", readOnly: true, type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", - type: { - name: "String" - } - }, - uri: { - serializedName: "properties.uri", + toBackupResourceId: { + serializedName: "properties.toBackupResourceId", + readOnly: true, type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", readOnly: true, type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", + status: { + serializedName: "properties.status", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + message: { + serializedName: "properties.message", readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ServerOperation: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerOperation", + className: "ManagedInstanceLongTermRetentionBackup", modelProperties: { ...ProxyResource.type.modelProperties, - operation: { - serializedName: "properties.operation", - readOnly: true, - type: { - name: "String" - } - }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + managedInstanceName: { + serializedName: "properties.managedInstanceName", readOnly: true, type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", + managedInstanceCreateTime: { + serializedName: "properties.managedInstanceCreateTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - serverName: { - serializedName: "properties.serverName", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", readOnly: true, type: { name: "DateTime" } }, - state: { - serializedName: "properties.state", + backupTime: { + serializedName: "properties.backupTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - errorCode: { - serializedName: "properties.errorCode", + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - errorDescription: { - serializedName: "properties.errorDescription", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", readOnly: true, type: { name: "String" } - }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, - type: { - name: "Number" - } - }, - isUserError: { - serializedName: "properties.isUserError", - readOnly: true, + } + } + } +}; + +export const LongTermRetentionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LongTermRetentionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", - readOnly: true, + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { - name: "DateTime" + name: "String" } }, - description: { - serializedName: "properties.description", - readOnly: true, + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "Boolean" + name: "Number" } } } } }; -export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { +export const MaintenanceWindowOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerSecurityAlertPolicy", + className: "MaintenanceWindowOptions", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + maintenanceWindowCycles: { + serializedName: "properties.maintenanceWindowCycles", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "MaintenanceWindowTimeRange" } } } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + minDurationInMinutes: { + serializedName: "properties.minDurationInMinutes", type: { - name: "Boolean" + name: "Number" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + defaultDurationInMinutes: { + serializedName: "properties.defaultDurationInMinutes", type: { - name: "String" + name: "Number" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + minCycles: { + serializedName: "properties.minCycles", type: { - name: "String" + name: "Number" } }, - retentionDays: { - serializedName: "properties.retentionDays", + timeGranularityInMinutes: { + serializedName: "properties.timeGranularityInMinutes", type: { name: "Number" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + allowMultipleMaintenanceWindowsPerCycle: { + serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", type: { - name: "DateTime" + name: "Boolean" } } } } }; -export const ServerTrustGroup: coreClient.CompositeMapper = { +export const MaintenanceWindows: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustGroup", + className: "MaintenanceWindows", modelProperties: { ...ProxyResource.type.modelProperties, - groupMembers: { - serializedName: "properties.groupMembers", + timeRanges: { + serializedName: "properties.timeRanges", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerInfo" - } - } - } - }, - trustScopes: { - serializedName: "properties.trustScopes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + className: "MaintenanceWindowTimeRange" + } + } } } } } }; -export const SqlAgentConfiguration: coreClient.CompositeMapper = { +export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlAgentConfiguration", + className: "ManagedBackupShortTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } } } } }; -export const SubscriptionUsage: coreClient.CompositeMapper = { +export const ManagedDatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubscriptionUsage", + className: "ManagedDatabaseAdvancedThreatProtection", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - readOnly: true, - type: { - name: "String" - } - }, - currentValue: { - serializedName: "properties.currentValue", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "Number" + name: "Composite", + className: "SystemData" } }, - limit: { - serializedName: "properties.limit", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - unit: { - serializedName: "properties.unit", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const SyncAgent: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgent", + className: "ManagedDatabaseMoveOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, type: { name: "String" } }, - lastAliveTime: { - serializedName: "properties.lastAliveTime", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { name: "DateTime" @@ -12836,658 +13063,643 @@ export const SyncAgent: coreClient.CompositeMapper = { name: "String" } }, - isUpToDate: { - serializedName: "properties.isUpToDate", - readOnly: true, - type: { - name: "Boolean" - } - }, - expiryTime: { - serializedName: "properties.expiryTime", + operationMode: { + serializedName: "properties.operationMode", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - version: { - serializedName: "properties.version", + sourceManagedInstanceName: { + serializedName: "properties.sourceManagedInstanceName", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncAgentLinkedDatabase", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", + }, + targetManagedInstanceName: { + serializedName: "properties.targetManagedInstanceName", readOnly: true, type: { name: "String" } }, - databaseId: { - serializedName: "properties.databaseId", + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", readOnly: true, type: { name: "String" } }, - description: { - serializedName: "properties.description", + targetManagedInstanceId: { + serializedName: "properties.targetManagedInstanceId", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", + sourceDatabaseName: { + serializedName: "properties.sourceDatabaseName", readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + targetDatabaseName: { + serializedName: "properties.targetDatabaseName", readOnly: true, type: { name: "String" } }, - userName: { - serializedName: "properties.userName", + isCancellable: { + serializedName: "properties.isCancellable", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const SyncGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" + name: "Boolean" } }, - interval: { - serializedName: "properties.interval", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { name: "Number" } }, - lastSyncTime: { - serializedName: "properties.lastSyncTime", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, - type: { - name: "DateTime" - } - }, - conflictResolutionPolicy: { - serializedName: "properties.conflictResolutionPolicy", - type: { - name: "String" - } - }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", - type: { - name: "String" - } - }, - hubDatabaseUserName: { - serializedName: "properties.hubDatabaseUserName", - type: { - name: "String" - } - }, - hubDatabasePassword: { - serializedName: "properties.hubDatabasePassword", type: { name: "String" } }, - syncState: { - serializedName: "properties.syncState", + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, - type: { - name: "String" - } - }, - schema: { - serializedName: "properties.schema", - type: { - name: "Composite", - className: "SyncGroupSchema" - } - }, - enableConflictLogging: { - serializedName: "properties.enableConflictLogging", - type: { - name: "Boolean" - } - }, - conflictLoggingRetentionInDays: { - serializedName: "properties.conflictLoggingRetentionInDays", type: { name: "Number" } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", - type: { - name: "Boolean" - } - }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", + isUserError: { + serializedName: "properties.isUserError", readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const SyncMember: coreClient.CompositeMapper = { +export const ManagedInstanceQuery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncMember", + className: "ManagedInstanceQuery", 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" - } - }, - syncMemberAzureDatabaseResourceId: { - serializedName: "properties.syncMemberAzureDatabaseResourceId", - type: { - name: "String" - } - }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", - type: { - name: "Boolean" - } - }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", - readOnly: true, - type: { - name: "String" - } - }, - serverName: { - serializedName: "properties.serverName", + queryText: { + serializedName: "properties.queryText", type: { name: "String" } - }, + } + } + } +}; + +export const QueryStatistics: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QueryStatistics", + modelProperties: { + ...ProxyResource.type.modelProperties, databaseName: { serializedName: "properties.databaseName", + readOnly: true, type: { name: "String" } }, - userName: { - serializedName: "properties.userName", + queryId: { + serializedName: "properties.queryId", + readOnly: true, type: { name: "String" } }, - password: { - serializedName: "properties.password", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { name: "String" } }, - syncDirection: { - serializedName: "properties.syncDirection", + endTime: { + serializedName: "properties.endTime", + readOnly: true, type: { name: "String" } }, - syncState: { - serializedName: "properties.syncState", - readOnly: true, + intervals: { + serializedName: "properties.intervals", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryMetricInterval" + } + } } } } } }; -export const TimeZone: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeZone", + className: "ManagedDatabaseRestoreDetailsResult", modelProperties: { ...ProxyResource.type.modelProperties, - timeZoneId: { - serializedName: "properties.timeZoneId", + typePropertiesType: { + serializedName: "properties.type", readOnly: true, type: { name: "String" } }, - displayName: { - serializedName: "properties.displayName", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const VirtualNetworkRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkRule", - modelProperties: { - ...ProxyResource.type.modelProperties, - virtualNetworkSubnetId: { - serializedName: "properties.virtualNetworkSubnetId", + }, + blockReason: { + serializedName: "properties.blockReason", + readOnly: true, type: { name: "String" } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "properties.ignoreMissingVnetServiceEndpoint", + lastUploadedFileName: { + serializedName: "properties.lastUploadedFileName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - state: { - serializedName: "properties.state", + lastUploadedFileTime: { + serializedName: "properties.lastUploadedFileTime", readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const WorkloadClassifier: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkloadClassifier", - modelProperties: { - ...ProxyResource.type.modelProperties, - memberName: { - serializedName: "properties.memberName", + }, + lastRestoredFileName: { + serializedName: "properties.lastRestoredFileName", + readOnly: true, type: { name: "String" } }, - label: { - serializedName: "properties.label", + lastRestoredFileTime: { + serializedName: "properties.lastRestoredFileTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - context: { - serializedName: "properties.context", + percentCompleted: { + serializedName: "properties.percentCompleted", + readOnly: true, type: { - name: "String" + name: "Number" } }, - startTime: { - serializedName: "properties.startTime", + currentRestoredSizeMB: { + serializedName: "properties.currentRestoredSizeMB", + readOnly: true, type: { - name: "String" + name: "Number" } }, - endTime: { - serializedName: "properties.endTime", + currentRestorePlanSizeMB: { + serializedName: "properties.currentRestorePlanSizeMB", + readOnly: true, + type: { + name: "Number" + } + }, + currentBackupType: { + serializedName: "properties.currentBackupType", + readOnly: true, type: { name: "String" } }, - importance: { - serializedName: "properties.importance", + currentRestoringFileName: { + serializedName: "properties.currentRestoringFileName", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const WorkloadGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkloadGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - minResourcePercent: { - serializedName: "properties.minResourcePercent", + }, + numberOfFilesDetected: { + serializedName: "properties.numberOfFilesDetected", + readOnly: true, type: { name: "Number" } }, - maxResourcePercent: { - serializedName: "properties.maxResourcePercent", + numberOfFilesQueued: { + serializedName: "properties.numberOfFilesQueued", + readOnly: true, type: { name: "Number" } }, - minResourcePercentPerRequest: { - serializedName: "properties.minResourcePercentPerRequest", + numberOfFilesSkipped: { + serializedName: "properties.numberOfFilesSkipped", + readOnly: true, type: { name: "Number" } }, - maxResourcePercentPerRequest: { - serializedName: "properties.maxResourcePercentPerRequest", + numberOfFilesRestoring: { + serializedName: "properties.numberOfFilesRestoring", + readOnly: true, type: { name: "Number" } }, - importance: { - serializedName: "properties.importance", + numberOfFilesRestored: { + serializedName: "properties.numberOfFilesRestored", + readOnly: true, type: { - name: "String" + name: "Number" } }, - queryExecutionTimeout: { - serializedName: "properties.queryExecutionTimeout", + numberOfFilesUnrestorable: { + serializedName: "properties.numberOfFilesUnrestorable", + readOnly: true, type: { name: "Number" } + }, + fullBackupSets: { + serializedName: "properties.fullBackupSets", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } + } + }, + diffBackupSets: { + serializedName: "properties.diffBackupSets", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } + } + }, + logBackupSets: { + serializedName: "properties.logBackupSets", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } + } + }, + unrestorableFiles: { + serializedName: "properties.unrestorableFiles", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "ManagedDatabaseRestoreDetailsUnrestorableFileProperties" + } + } + } } } } }; -export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { +export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupShortTermRetentionPolicy", + className: "ManagedDatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + state: { + serializedName: "properties.state", type: { - name: "Number" + 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" + } + } } }, - diffBackupIntervalInHours: { - serializedName: "properties.diffBackupIntervalInHours", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "Number" + name: "Boolean" } - } - } - } -}; - -export const DatabaseExtensions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseExtensions", - modelProperties: { - ...ProxyResource.type.modelProperties, - operationMode: { - serializedName: "properties.operationMode", + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - storageKeyType: { - serializedName: "properties.storageKeyType", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - storageKey: { - serializedName: "properties.storageKey", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - storageUri: { - serializedName: "properties.storageUri", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { +export const SecurityEvent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExportExtensionsOperationResult", + className: "SecurityEvent", modelProperties: { ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", + eventTime: { + serializedName: "properties.eventTime", readOnly: true, type: { - name: "Uuid" + name: "DateTime" } }, - requestType: { - serializedName: "properties.requestType", + securityEventType: { + serializedName: "properties.securityEventType", + readOnly: true, + type: { + name: "Enum", + allowedValues: [ + "Undefined", + "SqlInjectionVulnerability", + "SqlInjectionExploit" + ] + } + }, + subscription: { + serializedName: "properties.subscription", readOnly: true, type: { name: "String" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + server: { + serializedName: "properties.server", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", + database: { + serializedName: "properties.database", readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + clientIp: { + serializedName: "properties.clientIp", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + applicationName: { + serializedName: "properties.applicationName", readOnly: true, type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", + principalName: { + serializedName: "properties.principalName", readOnly: true, type: { name: "String" } + }, + securityEventSqlInjectionAdditionalProperties: { + serializedName: + "properties.securityEventSqlInjectionAdditionalProperties", + type: { + name: "Composite", + className: "SecurityEventSqlInjectionAdditionalProperties" + } } } } }; -export const DatabaseOperation: coreClient.CompositeMapper = { +export const SensitivityLabel: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseOperation", + className: "SensitivityLabel", modelProperties: { ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", + managedBy: { + serializedName: "managedBy", readOnly: true, type: { name: "String" } }, - operation: { - serializedName: "properties.operation", + schemaName: { + serializedName: "properties.schemaName", readOnly: true, type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + tableName: { + serializedName: "properties.tableName", readOnly: true, type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", + columnName: { + serializedName: "properties.columnName", readOnly: true, type: { - name: "Number" + name: "String" } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + labelName: { + serializedName: "properties.labelName", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + labelId: { + serializedName: "properties.labelId", type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + informationType: { + serializedName: "properties.informationType", type: { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + informationTypeId: { + serializedName: "properties.informationTypeId", type: { - name: "Number" + name: "String" } }, - errorDescription: { - serializedName: "properties.errorDescription", + isDisabled: { + serializedName: "properties.isDisabled", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + rank: { + serializedName: "properties.rank", type: { - name: "Number" + name: "Enum", + allowedValues: ["None", "Low", "Medium", "High", "Critical"] + } + } + } + } +}; + +export const SensitivityLabelUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SensitivityLabelUpdate", + modelProperties: { + ...ProxyResource.type.modelProperties, + op: { + serializedName: "properties.op", + type: { + name: "Enum", + allowedValues: ["set", "remove"] } }, - isUserError: { - serializedName: "properties.isUserError", - readOnly: true, + schema: { + serializedName: "properties.schema", type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", - readOnly: true, + table: { + serializedName: "properties.table", type: { - name: "DateTime" + name: "String" } }, - description: { - serializedName: "properties.description", - readOnly: true, + column: { + serializedName: "properties.column", type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, + sensitivityLabel: { + serializedName: "properties.sensitivityLabel", type: { - name: "Boolean" + name: "Composite", + className: "SensitivityLabel" } } } } }; -export const DatabaseUsage: coreClient.CompositeMapper = { +export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUsage", + className: "RecommendedSensitivityLabelUpdate", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - readOnly: true, + op: { + serializedName: "properties.op", type: { - name: "String" + name: "Enum", + allowedValues: ["enable", "disable"] } }, - currentValue: { - serializedName: "properties.currentValue", - readOnly: true, + schema: { + serializedName: "properties.schema", type: { - name: "Number" + name: "String" } }, - limit: { - serializedName: "properties.limit", - readOnly: true, + table: { + serializedName: "properties.table", type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "properties.unit", - readOnly: true, + column: { + serializedName: "properties.column", type: { name: "String" } @@ -13496,21 +13708,14 @@ export const DatabaseUsage: coreClient.CompositeMapper = { } }; -export const LedgerDigestUploads: coreClient.CompositeMapper = { +export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LedgerDigestUploads", + className: "ManagedTransparentDataEncryption", modelProperties: { ...ProxyResource.type.modelProperties, - digestStorageEndpoint: { - serializedName: "properties.digestStorageEndpoint", - type: { - name: "String" - } - }, state: { serializedName: "properties.state", - readOnly: true, type: { name: "Enum", allowedValues: ["Enabled", "Disabled"] @@ -13520,139 +13725,149 @@ export const LedgerDigestUploads: coreClient.CompositeMapper = { } }; -export const OutboundFirewallRule: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundFirewallRule", + className: "DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated", modelProperties: { ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + baselineResults: { + serializedName: "properties.baselineResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" + } + } } } } } }; -export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { +export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackupOperationResult", + className: "ManagedInstanceAdministrator", modelProperties: { ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", - readOnly: true, + administratorType: { + serializedName: "properties.administratorType", type: { - name: "Uuid" + name: "String" } }, - operationType: { - serializedName: "properties.operationType", - readOnly: true, + login: { + serializedName: "properties.login", type: { name: "String" } }, - fromBackupResourceId: { - serializedName: "properties.fromBackupResourceId", - readOnly: true, + sid: { + serializedName: "properties.sid", type: { - name: "String" + name: "Uuid" } }, - toBackupResourceId: { - serializedName: "properties.toBackupResourceId", - readOnly: true, + tenantId: { + serializedName: "properties.tenantId", type: { - name: "String" + name: "Uuid" } - }, - targetBackupStorageRedundancy: { - serializedName: "properties.targetBackupStorageRedundancy", - readOnly: true, + } + } + } +}; + +export const ManagedInstanceAdvancedThreatProtection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceAdvancedThreatProtection", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - status: { - serializedName: "properties.status", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - message: { - serializedName: "properties.message", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const LongTermRetentionBackup: coreClient.CompositeMapper = { +export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackup", + className: "ManagedInstanceAzureADOnlyAuthentication", modelProperties: { ...ProxyResource.type.modelProperties, - serverName: { - serializedName: "properties.serverName", - readOnly: true, - type: { - name: "String" - } - }, - serverCreateTime: { - serializedName: "properties.serverCreateTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", type: { - name: "String" + name: "Boolean" } - }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", - readOnly: true, + } + } + } +}; + +export const ManagedInstanceDtc: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceDtc", + modelProperties: { + ...ProxyResource.type.modelProperties, + dtcEnabled: { + serializedName: "properties.dtcEnabled", type: { - name: "DateTime" + name: "Boolean" } }, - backupTime: { - serializedName: "properties.backupTime", - readOnly: true, + securitySettings: { + serializedName: "properties.securitySettings", type: { - name: "DateTime" + name: "Composite", + className: "ManagedInstanceDtcSecuritySettings" } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", - readOnly: true, + externalDnsSuffixSearchList: { + serializedName: "properties.externalDnsSuffixSearchList", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + dtcHostNameDnsSuffix: { + serializedName: "properties.dtcHostNameDnsSuffix", readOnly: true, type: { name: "String" } }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } @@ -13661,78 +13876,61 @@ export const LongTermRetentionBackup: coreClient.CompositeMapper = { } }; -export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { +export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackup", + className: "ManagedInstanceEncryptionProtector", modelProperties: { ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - managedInstanceCreateTime: { - serializedName: "properties.managedInstanceCreateTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + serverKeyName: { + serializedName: "properties.serverKeyName", type: { name: "String" } }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", - readOnly: true, + serverKeyType: { + serializedName: "properties.serverKeyType", type: { - name: "DateTime" + name: "String" } }, - backupTime: { - serializedName: "properties.backupTime", + uri: { + serializedName: "properties.uri", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", - readOnly: true, + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", type: { - name: "String" + name: "Boolean" } } } } }; -export const ServerConnectionPolicy: coreClient.CompositeMapper = { +export const ManagedInstanceKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConnectionPolicy", + className: "ManagedInstanceKey", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, kind: { serializedName: "kind", readOnly: true, @@ -13740,282 +13938,215 @@ export const ServerConnectionPolicy: coreClient.CompositeMapper = { name: "String" } }, - connectionType: { - serializedName: "properties.connectionType", - type: { - name: "String" - } - } - } - } -}; - -export const DistributedAvailabilityGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DistributedAvailabilityGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - targetDatabase: { - serializedName: "properties.targetDatabase", - type: { - name: "String" - } - }, - sourceEndpoint: { - serializedName: "properties.sourceEndpoint", - type: { - name: "String" - } - }, - primaryAvailabilityGroupName: { - serializedName: "properties.primaryAvailabilityGroupName", - type: { - name: "String" - } - }, - secondaryAvailabilityGroupName: { - serializedName: "properties.secondaryAvailabilityGroupName", + serverKeyType: { + serializedName: "properties.serverKeyType", type: { name: "String" } }, - replicationMode: { - serializedName: "properties.replicationMode", + uri: { + serializedName: "properties.uri", type: { name: "String" } }, - distributedAvailabilityGroupId: { - serializedName: "properties.distributedAvailabilityGroupId", - readOnly: true, - type: { - name: "Uuid" - } - }, - sourceReplicaId: { - serializedName: "properties.sourceReplicaId", - readOnly: true, - type: { - name: "Uuid" - } - }, - targetReplicaId: { - serializedName: "properties.targetReplicaId", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - linkState: { - serializedName: "properties.linkState", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - lastHardenedLsn: { - serializedName: "properties.lastHardenedLsn", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const ServerTrustCertificate: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustCertificate", + className: "ManagedInstanceLongTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - publicBlob: { - serializedName: "properties.publicBlob", + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", - readOnly: true, + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { name: "String" } }, - certificateName: { - serializedName: "properties.certificateName", - readOnly: true, + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } - } - } - } -}; - -export const EndpointCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EndpointCertificate", - modelProperties: { - ...ProxyResource.type.modelProperties, - publicBlob: { - serializedName: "properties.publicBlob", + }, + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "String" + name: "Number" } } } } }; -export const SensitivityLabel: coreClient.CompositeMapper = { +export const ManagedInstanceOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabel", + className: "ManagedInstanceOperation", modelProperties: { ...ProxyResource.type.modelProperties, - managedBy: { - serializedName: "managedBy", + managedInstanceName: { + serializedName: "properties.managedInstanceName", readOnly: true, type: { name: "String" } }, - schemaName: { - serializedName: "properties.schemaName", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - tableName: { - serializedName: "properties.tableName", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { name: "String" } }, - columnName: { - serializedName: "properties.columnName", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { - name: "String" + name: "Number" } }, - labelName: { - serializedName: "properties.labelName", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - labelId: { - serializedName: "properties.labelId", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } }, - informationType: { - serializedName: "properties.informationType", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { - name: "String" + name: "Number" } }, - informationTypeId: { - serializedName: "properties.informationTypeId", + errorDescription: { + serializedName: "properties.errorDescription", + readOnly: true, type: { name: "String" } }, - isDisabled: { - serializedName: "properties.isDisabled", + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - rank: { - serializedName: "properties.rank", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, type: { - name: "Enum", - allowedValues: ["None", "Low", "Medium", "High", "Critical"] + name: "Boolean" } - } - } - } -}; - -export const SensitivityLabelUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SensitivityLabelUpdate", - modelProperties: { - ...ProxyResource.type.modelProperties, - op: { - serializedName: "properties.op", + }, + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", + readOnly: true, type: { - name: "Enum", - allowedValues: ["set", "remove"] + name: "DateTime" } }, - schema: { - serializedName: "properties.schema", + description: { + serializedName: "properties.description", + readOnly: true, type: { name: "String" } }, - table: { - serializedName: "properties.table", + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - column: { - serializedName: "properties.column", + operationParameters: { + serializedName: "properties.operationParameters", type: { - name: "String" + name: "Composite", + className: "ManagedInstanceOperationParametersPair" } }, - sensitivityLabel: { - serializedName: "properties.sensitivityLabel", + operationSteps: { + serializedName: "properties.operationSteps", type: { name: "Composite", - className: "SensitivityLabel" + className: "ManagedInstanceOperationSteps" } } } } }; -export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedSensitivityLabelUpdate", + className: "ManagedInstancePrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - op: { - serializedName: "properties.op", - type: { - name: "Enum", - allowedValues: ["enable", "disable"] - } - }, - schema: { - serializedName: "properties.schema", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "String" + name: "Composite", + className: "ManagedInstancePrivateEndpointProperty" } }, - table: { - serializedName: "properties.table", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "String" + name: "Composite", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" } }, - column: { - serializedName: "properties.column", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } @@ -14024,68 +14155,59 @@ export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { } }; -export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { +export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerBlobAuditingPolicy", + className: "ManagedInstancePrivateLink", modelProperties: { ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", - type: { - name: "Boolean" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + properties: { + serializedName: "properties", type: { - name: "Boolean" + name: "Composite", + className: "ManagedInstancePrivateLinkProperties" } - }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + } + } + } +}; + +export const TdeCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TdeCertificate", + modelProperties: { + ...ProxyResource.type.modelProperties, + privateBlob: { + serializedName: "properties.privateBlob", type: { - name: "Number" + name: "String" } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + certPassword: { + serializedName: "properties.certPassword", type: { - name: "Boolean" + name: "String" } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } @@ -14096,207 +14218,138 @@ export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Uuid" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const RefreshExternalGovernanceStatusOperationResultMI: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicy", + className: "RefreshExternalGovernanceStatusOperationResultMI", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + requestId: { + serializedName: "properties.requestId", readOnly: true, type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } - }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", - type: { - name: "Number" + name: "Uuid" } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + requestType: { + serializedName: "properties.requestType", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - state: { - serializedName: "properties.state", + queuedTime: { + serializedName: "properties.queuedTime", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + managedInstanceName: { + serializedName: "properties.managedInstanceName", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, type: { - name: "Uuid" + name: "String" } } } } }; -export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const ManagedLedgerDigestUploads: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy", + className: "ManagedLedgerDigestUploads", modelProperties: { ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + digestStorageEndpoint: { + serializedName: "properties.digestStorageEndpoint", type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } - }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", - type: { - name: "Number" - } - }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", - type: { - name: "Boolean" - } - }, state: { serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + readOnly: true, type: { name: "String" } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + } + } + } +}; + +export const ManagedServerDnsAlias: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerDnsAlias", + modelProperties: { + ...ProxyResource.type.modelProperties, + azureDnsRecord: { + serializedName: "properties.azureDnsRecord", + readOnly: true, type: { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + publicAzureDnsRecord: { + serializedName: "properties.publicAzureDnsRecord", + readOnly: true, type: { - name: "Uuid" + name: "String" } } } } }; -export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { +export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy", + className: "ManagedServerSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", - type: { - name: "Boolean" - } - }, - predicateExpression: { - serializedName: "properties.predicateExpression", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - retentionDays: { - serializedName: "properties.retentionDays", + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { name: "Sequence", element: { @@ -14306,37 +14359,23 @@ export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { } } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } - }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { name: "Boolean" } }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, storageEndpoint: { serializedName: "properties.storageEndpoint", type: { @@ -14349,34 +14388,10 @@ export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const DatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseAdvancedThreatProtection", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - state: { - serializedName: "properties.state", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "Number" } }, creationTime: { @@ -14390,52 +14405,63 @@ export const DatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { } }; -export const ServerAdvancedThreatProtection: coreClient.CompositeMapper = { +export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAdvancedThreatProtection", + className: "NetworkSecurityPerimeterConfiguration", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + networkSecurityPerimeter: { + serializedName: "properties.networkSecurityPerimeter", type: { name: "Composite", - className: "SystemData" + className: "NSPConfigPerimeter" } }, - state: { - serializedName: "properties.state", + resourceAssociation: { + serializedName: "properties.resourceAssociation", type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "Composite", + className: "NSPConfigAssociation" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + profile: { + serializedName: "properties.profile", type: { - name: "DateTime" + name: "Composite", + className: "NSPConfigProfile" + } + }, + provisioningIssues: { + serializedName: "properties.provisioningIssues", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPProvisioningIssue" + } + } } } } } }; -export const ManagedServerDnsAlias: coreClient.CompositeMapper = { +export const OutboundFirewallRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAlias", + className: "OutboundFirewallRule", modelProperties: { ...ProxyResource.type.modelProperties, - azureDnsRecord: { - serializedName: "properties.azureDnsRecord", - readOnly: true, - type: { - name: "String" - } - }, - publicAzureDnsRecord: { - serializedName: "properties.publicAzureDnsRecord", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" @@ -14445,361 +14471,461 @@ export const ManagedServerDnsAlias: coreClient.CompositeMapper = { } }; -export const DatabaseSqlVulnerabilityAssessmentBaselineSet: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentBaselineSet", + className: "PrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "SystemData" + className: "PrivateEndpointProperty" } }, - results: { - serializedName: "properties.results", + groupIds: { + serializedName: "properties.groupIds", + readOnly: true, type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { type: { name: "String" } } - } - } + name: "String" } } } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } } } } }; -export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput: coreClient.CompositeMapper = { +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput", + className: "PrivateLinkResource", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "SystemData" + className: "PrivateLinkResourceProperties" + } + } + } + } +}; + +export const RecoverableDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecoverableDatabase", + modelProperties: { + ...ProxyResource.type.modelProperties, + edition: { + serializedName: "properties.edition", + readOnly: true, + type: { + name: "String" } }, - latestScan: { - serializedName: "properties.latestScan", + serviceLevelObjective: { + serializedName: "properties.serviceLevelObjective", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - results: { - serializedName: "properties.results", + elasticPoolName: { + serializedName: "properties.elasticPoolName", + readOnly: true, + type: { + name: "String" + } + }, + lastAvailableBackupDate: { + serializedName: "properties.lastAvailableBackupDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + keys: { + serializedName: "properties.keys", type: { name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "Composite", className: "DatabaseKey" } } } } } } }; -export const DatabaseSqlVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { +export const RecoverableManagedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline", + className: "RecoverableManagedDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + lastAvailableBackupDate: { + serializedName: "properties.lastAvailableBackupDate", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" + } + } + } + } +}; + +export const ReplicationLink: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReplicationLink", + modelProperties: { + ...ProxyResource.type.modelProperties, + partnerServer: { + serializedName: "properties.partnerServer", + readOnly: true, + type: { + name: "String" } }, - results: { - serializedName: "properties.results", + partnerDatabase: { + serializedName: "properties.partnerDatabase", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" + } + }, + partnerDatabaseId: { + serializedName: "properties.partnerDatabaseId", + readOnly: true, + type: { + name: "String" + } + }, + partnerLocation: { + serializedName: "properties.partnerLocation", + readOnly: true, + type: { + name: "String" + } + }, + role: { + serializedName: "properties.role", + readOnly: true, + type: { + name: "Enum", + allowedValues: [ + "Primary", + "Secondary", + "NonReadableSecondary", + "Source", + "Copy" + ] + } + }, + partnerRole: { + serializedName: "properties.partnerRole", + readOnly: true, + type: { + name: "Enum", + allowedValues: [ + "Primary", + "Secondary", + "NonReadableSecondary", + "Source", + "Copy" + ] + } + }, + replicationMode: { + serializedName: "properties.replicationMode", + readOnly: true, + type: { + name: "String" + } + }, + startTime: { + serializedName: "properties.startTime", + readOnly: true, + type: { + name: "DateTime" } - } - } - } -}; - -export const DatabaseSqlVulnerabilityAssessmentRuleBaselineInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineInput", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + }, + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "Number" } }, - latestScan: { - serializedName: "properties.latestScan", + replicationState: { + serializedName: "properties.replicationState", + readOnly: true, + type: { + name: "String" + } + }, + isTerminationAllowed: { + serializedName: "properties.isTerminationAllowed", + readOnly: true, type: { name: "Boolean" } }, - results: { - serializedName: "properties.results", + linkType: { + serializedName: "properties.linkType", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } } } } }; -export const SqlVulnerabilityAssessmentScanResults: coreClient.CompositeMapper = { +export const RestorableDroppedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanResults", + className: "RestorableDroppedDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "SystemData" + className: "Sku" } }, - ruleId: { - serializedName: "properties.ruleId", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - status: { - serializedName: "properties.status", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", readOnly: true, type: { - name: "String" + name: "Number" } }, - isTrimmed: { - serializedName: "properties.isTrimmed", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - queryResults: { - serializedName: "properties.queryResults", + deletionDate: { + serializedName: "properties.deletionDate", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "DateTime" } }, - remediation: { - serializedName: "properties.remediation", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", + readOnly: true, type: { - name: "Composite", - className: "Remediation" + name: "DateTime" } }, - baselineAdjustedResult: { - serializedName: "properties.baselineAdjustedResult", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", + readOnly: true, type: { - name: "Composite", - className: "BaselineAdjustedResult" + name: "String" } }, - ruleMetadata: { - serializedName: "properties.ruleMetadata", + keys: { + serializedName: "properties.keys", type: { - name: "Composite", - className: "VaRule" + name: "Dictionary", + value: { type: { name: "Composite", className: "DatabaseKey" } } } } } } }; -export const SqlVulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { +export const RestorePoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanRecord", + className: "RestorePoint", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - scanId: { - serializedName: "properties.scanId", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - triggerType: { - serializedName: "properties.triggerType", + restorePointType: { + serializedName: "properties.restorePointType", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["CONTINUOUS", "DISCRETE"] } }, - state: { - serializedName: "properties.state", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - startTime: { - serializedName: "properties.startTime", + restorePointCreationDate: { + serializedName: "properties.restorePointCreationDate", readOnly: true, type: { name: "DateTime" } }, - endTime: { - serializedName: "properties.endTime", + restorePointLabel: { + serializedName: "properties.restorePointLabel", readOnly: true, type: { - name: "DateTime" + name: "String" } - }, - errors: { - serializedName: "properties.errors", - readOnly: true, + } + } + } +}; + +export const ServerAdvancedThreatProtection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerAdvancedThreatProtection", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlVulnerabilityAssessmentScanError" - } - } + name: "Composite", + className: "SystemData" } }, - server: { - serializedName: "properties.server", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - database: { - serializedName: "properties.database", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } - }, - sqlVersion: { - serializedName: "properties.sqlVersion", - readOnly: true, + } + } + } +}; + +export const ServerAutomaticTuning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerAutomaticTuning", + modelProperties: { + ...ProxyResource.type.modelProperties, + desiredState: { + serializedName: "properties.desiredState", type: { - name: "String" + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] } }, - highSeverityFailedRulesCount: { - serializedName: "properties.highSeverityFailedRulesCount", + actualState: { + serializedName: "properties.actualState", readOnly: true, type: { - name: "Number" + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] } }, - mediumSeverityFailedRulesCount: { - serializedName: "properties.mediumSeverityFailedRulesCount", - readOnly: true, + options: { + serializedName: "properties.options", type: { - name: "Number" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AutomaticTuningServerOptions" + } + } } - }, - lowSeverityFailedRulesCount: { - serializedName: "properties.lowSeverityFailedRulesCount", - readOnly: true, + } + } + } +}; + +export const ServerAzureADAdministrator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerAzureADAdministrator", + modelProperties: { + ...ProxyResource.type.modelProperties, + administratorType: { + serializedName: "properties.administratorType", type: { - name: "Number" + name: "String" } }, - totalPassedRulesCount: { - serializedName: "properties.totalPassedRulesCount", - readOnly: true, + login: { + serializedName: "properties.login", type: { - name: "Number" + name: "String" } }, - totalFailedRulesCount: { - serializedName: "properties.totalFailedRulesCount", - readOnly: true, + sid: { + serializedName: "properties.sid", type: { - name: "Number" + name: "Uuid" } }, - totalRulesCount: { - serializedName: "properties.totalRulesCount", - readOnly: true, + tenantId: { + serializedName: "properties.tenantId", type: { - name: "Number" + name: "Uuid" } }, - isBaselineApplied: { - serializedName: "properties.isBaselineApplied", + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", readOnly: true, type: { name: "Boolean" @@ -14809,184 +14935,137 @@ export const SqlVulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = } }; -export const SqlVulnerabilityAssessment: coreClient.CompositeMapper = { +export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessment", + className: "ServerAzureADOnlyAuthentication", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - state: { - serializedName: "properties.state", + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "Boolean" } } } } }; -export const ManagedDatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { +export const ServerConfigurationOption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseAdvancedThreatProtection", + className: "ServerConfigurationOption", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - state: { - serializedName: "properties.state", + serverConfigurationOptionValue: { + serializedName: "properties.serverConfigurationOptionValue", type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "Number" } }, - creationTime: { - serializedName: "properties.creationTime", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const ManagedInstanceAdvancedThreatProtection: coreClient.CompositeMapper = { +export const ServerConnectionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdvancedThreatProtection", + className: "ServerConnectionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - state: { - serializedName: "properties.state", + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "String" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + connectionType: { + serializedName: "properties.connectionType", type: { - name: "DateTime" + name: "String" } } } } }; -export const ReplicationLink: coreClient.CompositeMapper = { +export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationLink", + className: "ServerDevOpsAuditingSettings", modelProperties: { ...ProxyResource.type.modelProperties, - partnerServer: { - serializedName: "properties.partnerServer", - readOnly: true, - type: { - name: "String" - } - }, - partnerDatabase: { - serializedName: "properties.partnerDatabase", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - partnerLocation: { - serializedName: "properties.partnerLocation", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - role: { - serializedName: "properties.role", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] + name: "Boolean" } }, - partnerRole: { - serializedName: "properties.partnerRole", - readOnly: true, + state: { + serializedName: "properties.state", type: { name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] + allowedValues: ["Enabled", "Disabled"] } }, - replicationMode: { - serializedName: "properties.replicationMode", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, - type: { - name: "Number" - } - }, - replicationState: { - serializedName: "properties.replicationState", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - isTerminationAllowed: { - serializedName: "properties.isTerminationAllowed", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "Boolean" + name: "Uuid" } - }, - linkType: { - serializedName: "properties.linkType", + } + } + } +}; + +export const ServerDnsAlias: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerDnsAlias", + modelProperties: { + ...ProxyResource.type.modelProperties, + azureDnsRecord: { + serializedName: "properties.azureDnsRecord", readOnly: true, type: { name: "String" @@ -14996,96 +15075,118 @@ export const ReplicationLink: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseMoveOperationResult: coreClient.CompositeMapper = { +export const ServerKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseMoveOperationResult", + className: "ServerKey", modelProperties: { ...ProxyResource.type.modelProperties, - operation: { - serializedName: "properties.operation", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + subregion: { + serializedName: "properties.subregion", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + serverKeyType: { + serializedName: "properties.serverKeyType", type: { name: "String" } }, - operationMode: { - serializedName: "properties.operationMode", + uri: { + serializedName: "properties.uri", + type: { + name: "String" + } + }, + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - sourceManagedInstanceName: { - serializedName: "properties.sourceManagedInstanceName", + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + readOnly: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServerOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerOperation", + modelProperties: { + ...ProxyResource.type.modelProperties, + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - targetManagedInstanceName: { - serializedName: "properties.targetManagedInstanceName", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { name: "String" } }, - sourceManagedInstanceId: { - serializedName: "properties.sourceManagedInstanceId", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { - name: "String" + name: "Number" } }, - targetManagedInstanceId: { - serializedName: "properties.targetManagedInstanceId", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - sourceDatabaseName: { - serializedName: "properties.sourceDatabaseName", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - targetDatabaseName: { - serializedName: "properties.targetDatabaseName", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, - type: { - name: "Boolean" - } - }, errorCode: { serializedName: "properties.errorCode", readOnly: true, @@ -15113,359 +15214,249 @@ export const ManagedDatabaseMoveOperationResult: coreClient.CompositeMapper = { type: { name: "Boolean" } - } - } - } -}; - -export const ManagedInstanceDtc: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceDtc", - modelProperties: { - ...ProxyResource.type.modelProperties, - dtcEnabled: { - serializedName: "properties.dtcEnabled", - type: { - name: "Boolean" - } - }, - securitySettings: { - serializedName: "properties.securitySettings", - type: { - name: "Composite", - className: "ManagedInstanceDtcSecuritySettings" - } - }, - externalDnsSuffixSearchList: { - serializedName: "properties.externalDnsSuffixSearchList", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } }, - dtcHostNameDnsSuffix: { - serializedName: "properties.dtcHostNameDnsSuffix", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - provisioningState: { - serializedName: "properties.provisioningState", + description: { + serializedName: "properties.description", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SynapseLinkWorkspace: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SynapseLinkWorkspace", - modelProperties: { - ...ProxyResource.type.modelProperties, - workspaces: { - serializedName: "properties.workspaces", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SynapseLinkWorkspaceInfoProperties" - } - } - } - } - } - } -}; - -export const UpdateVirtualClusterDnsServersOperation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateVirtualClusterDnsServersOperation", - modelProperties: { - ...ProxyResource.type.modelProperties, - status: { - serializedName: "properties.status", + }, + isCancellable: { + serializedName: "properties.isCancellable", readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const InstanceFailoverGroup: coreClient.CompositeMapper = { +export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroup", + className: "ServerSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - secondaryType: { - serializedName: "properties.secondaryType", - type: { - name: "String" - } - }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint" - } - }, - replicationRole: { - serializedName: "properties.replicationRole", - readOnly: true, - type: { - name: "String" + className: "SystemData" } }, - replicationState: { - serializedName: "properties.replicationState", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - partnerRegions: { - serializedName: "properties.partnerRegions", + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PartnerRegionInfo" + name: "String" } } } }, - managedInstancePairs: { - serializedName: "properties.managedInstancePairs", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ManagedInstancePairInfo" + name: "String" } } } - } - } - } -}; - -export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", - readOnly: true, - type: { - name: "String" - } }, - blockReason: { - serializedName: "properties.blockReason", - readOnly: true, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "String" + name: "Boolean" } }, - lastUploadedFileName: { - serializedName: "properties.lastUploadedFileName", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - lastUploadedFileTime: { - serializedName: "properties.lastUploadedFileTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - lastRestoredFileName: { - serializedName: "properties.lastRestoredFileName", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - lastRestoredFileTime: { - serializedName: "properties.lastRestoredFileTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - percentCompleted: { - serializedName: "properties.percentCompleted", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - currentRestoredSizeMB: { - serializedName: "properties.currentRestoredSizeMB", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } - }, - currentRestorePlanSizeMB: { - serializedName: "properties.currentRestorePlanSizeMB", - readOnly: true, + } + } + } +}; + +export const ServerTrustCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerTrustCertificate", + modelProperties: { + ...ProxyResource.type.modelProperties, + publicBlob: { + serializedName: "properties.publicBlob", type: { - name: "Number" + name: "String" } }, - currentBackupType: { - serializedName: "properties.currentBackupType", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - currentRestoringFileName: { - serializedName: "properties.currentRestoringFileName", + certificateName: { + serializedName: "properties.certificateName", readOnly: true, type: { name: "String" } - }, - numberOfFilesDetected: { - serializedName: "properties.numberOfFilesDetected", - readOnly: true, + } + } + } +}; + +export const ServerTrustGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerTrustGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + groupMembers: { + serializedName: "properties.groupMembers", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerInfo" + } + } } }, - numberOfFilesQueued: { - serializedName: "properties.numberOfFilesQueued", - readOnly: true, + trustScopes: { + serializedName: "properties.trustScopes", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - numberOfFilesSkipped: { - serializedName: "properties.numberOfFilesSkipped", + } + } + } +}; + +export const ServerUsage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerUsage", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { - name: "Number" + name: "String" } }, - numberOfFilesRestoring: { - serializedName: "properties.numberOfFilesRestoring", + currentValue: { + serializedName: "properties.currentValue", readOnly: true, type: { name: "Number" } }, - numberOfFilesRestored: { - serializedName: "properties.numberOfFilesRestored", + limit: { + serializedName: "properties.limit", readOnly: true, type: { name: "Number" } }, - numberOfFilesUnrestorable: { - serializedName: "properties.numberOfFilesUnrestorable", + unit: { + serializedName: "properties.unit", readOnly: true, type: { - name: "Number" + name: "String" } - }, - fullBackupSets: { - serializedName: "properties.fullBackupSets", - readOnly: true, + } + } + } +}; + +export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties" - } - } + name: "String" } }, - diffBackupSets: { - serializedName: "properties.diffBackupSets", - readOnly: true, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties" - } - } + name: "String" } }, - logBackupSets: { - serializedName: "properties.logBackupSets", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties" - } - } + name: "String" } }, - unrestorableFiles: { - serializedName: "properties.unrestorableFiles", - readOnly: true, + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: - "ManagedDatabaseRestoreDetailsUnrestorableFileProperties" - } - } + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const ImportExportOperationResult: coreClient.CompositeMapper = { +export const RefreshExternalGovernanceStatusOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExportOperationResult", + className: "RefreshExternalGovernanceStatusOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, requestId: { @@ -15489,79 +15480,95 @@ export const ImportExportOperationResult: coreClient.CompositeMapper = { name: "String" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - blobUri: { - serializedName: "properties.blobUri", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { name: "String" } - }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + } + } + } +}; + +export const SqlAgentConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlAgentConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + serializedName: "properties.state", type: { name: "String" } + } + } + } +}; + +export const StartStopManagedInstanceSchedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StartStopManagedInstanceSchedule", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } }, - status: { - serializedName: "properties.status", - readOnly: true, + description: { + defaultValue: "", + serializedName: "properties.description", type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + timeZoneId: { + defaultValue: "UTC", + serializedName: "properties.timeZoneId", type: { name: "String" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + scheduleList: { + serializedName: "properties.scheduleList", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateEndpointConnectionRequestStatus" + className: "ScheduleItem" } } } - } - } - } -}; - -export const ManagedLedgerDigestUploads: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedLedgerDigestUploads", - modelProperties: { - ...ProxyResource.type.modelProperties, - digestStorageEndpoint: { - serializedName: "properties.digestStorageEndpoint", + }, + nextRunAction: { + serializedName: "properties.nextRunAction", + readOnly: true, type: { name: "String" } }, - state: { - serializedName: "properties.state", + nextExecutionTime: { + serializedName: "properties.nextExecutionTime", readOnly: true, type: { name: "String" @@ -15571,175 +15578,146 @@ export const ManagedLedgerDigestUploads: coreClient.CompositeMapper = { } }; -export const RecoverableDatabase: coreClient.CompositeMapper = { +export const SubscriptionUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableDatabase", + className: "SubscriptionUsage", modelProperties: { ...ProxyResource.type.modelProperties, - edition: { - serializedName: "properties.edition", - readOnly: true, - type: { - name: "String" - } - }, - serviceLevelObjective: { - serializedName: "properties.serviceLevelObjective", + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { name: "String" } }, - elasticPoolName: { - serializedName: "properties.elasticPoolName", + currentValue: { + serializedName: "properties.currentValue", readOnly: true, type: { - name: "String" + name: "Number" } }, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", + limit: { + serializedName: "properties.limit", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - keys: { - serializedName: "properties.keys", + unit: { + serializedName: "properties.unit", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } + name: "String" } } } } }; -export const RestorableDroppedDatabase: coreClient.CompositeMapper = { +export const SynapseLinkWorkspace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedDatabase", + className: "SynapseLinkWorkspace", modelProperties: { ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", + workspaces: { + serializedName: "properties.workspaces", type: { - name: "Composite", - className: "Sku" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SynapseLinkWorkspaceInfoProperties" + } + } } - }, - location: { - serializedName: "location", + } + } + } +}; + +export const SyncAgent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncAgent", + modelProperties: { + ...ProxyResource.type.modelProperties, + namePropertiesName: { + serializedName: "properties.name", + readOnly: true, type: { name: "String" } }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + lastAliveTime: { + serializedName: "properties.lastAliveTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - creationDate: { - serializedName: "properties.creationDate", + state: { + serializedName: "properties.state", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - deletionDate: { - serializedName: "properties.deletionDate", + isUpToDate: { + serializedName: "properties.isUpToDate", readOnly: true, type: { - name: "DateTime" + name: "Boolean" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", + expiryTime: { + serializedName: "properties.expiryTime", readOnly: true, type: { name: "DateTime" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + version: { + serializedName: "properties.version", readOnly: true, type: { name: "String" } - }, - keys: { - serializedName: "properties.keys", - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } - } } } } }; -export const ServerConfigurationOption: coreClient.CompositeMapper = { +export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConfigurationOption", + className: "SyncAgentLinkedDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - serverConfigurationOptionValue: { - serializedName: "properties.serverConfigurationOptionValue", - type: { - name: "Number" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", + databaseType: { + serializedName: "properties.databaseType", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const RefreshExternalGovernanceStatusOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RefreshExternalGovernanceStatusOperationResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", - readOnly: true, - type: { - name: "Uuid" - } }, - requestType: { - serializedName: "properties.requestType", + databaseId: { + serializedName: "properties.databaseId", readOnly: true, type: { name: "String" } }, - queuedTime: { - serializedName: "properties.queuedTime", + description: { + serializedName: "properties.description", readOnly: true, type: { name: "String" @@ -15752,15 +15730,15 @@ export const RefreshExternalGovernanceStatusOperationResult: coreClient.Composit name: "String" } }, - status: { - serializedName: "properties.status", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", + userName: { + serializedName: "properties.userName", readOnly: true, type: { name: "String" @@ -15770,354 +15748,356 @@ export const RefreshExternalGovernanceStatusOperationResult: coreClient.Composit } }; -export const StartStopManagedInstanceSchedule: coreClient.CompositeMapper = { +export const SyncGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StartStopManagedInstanceSchedule", + className: "SyncGroup", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "SystemData" + className: "Sku" } }, - description: { - defaultValue: "", - serializedName: "properties.description", + interval: { + serializedName: "properties.interval", + type: { + name: "Number" + } + }, + lastSyncTime: { + serializedName: "properties.lastSyncTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + conflictResolutionPolicy: { + serializedName: "properties.conflictResolutionPolicy", type: { name: "String" } }, - timeZoneId: { - defaultValue: "UTC", - serializedName: "properties.timeZoneId", + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - scheduleList: { - serializedName: "properties.scheduleList", + hubDatabaseUserName: { + serializedName: "properties.hubDatabaseUserName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScheduleItem" - } - } + name: "String" } }, - nextRunAction: { - serializedName: "properties.nextRunAction", - readOnly: true, + hubDatabasePassword: { + serializedName: "properties.hubDatabasePassword", type: { name: "String" } }, - nextExecutionTime: { - serializedName: "properties.nextExecutionTime", + syncState: { + serializedName: "properties.syncState", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const LogicalDatabaseTransparentDataEncryption: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LogicalDatabaseTransparentDataEncryption", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + }, + schema: { + serializedName: "properties.schema", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "Composite", + className: "SyncGroupSchema" + } + }, + enableConflictLogging: { + serializedName: "properties.enableConflictLogging", + type: { + name: "Boolean" + } + }, + conflictLoggingRetentionInDays: { + serializedName: "properties.conflictLoggingRetentionInDays", + type: { + name: "Number" + } + }, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", + type: { + name: "Boolean" + } + }, + privateEndpointName: { + serializedName: "properties.privateEndpointName", + readOnly: true, + type: { + name: "String" } } } } }; -export const InstancePool: coreClient.CompositeMapper = { +export const SyncMember: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePool", + className: "SyncMember", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + ...ProxyResource.type.modelProperties, + databaseType: { + serializedName: "properties.databaseType", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - subnetId: { - serializedName: "properties.subnetId", + syncAgentId: { + serializedName: "properties.syncAgentId", type: { name: "String" } }, - vCores: { - serializedName: "properties.vCores", + sqlServerDatabaseId: { + serializedName: "properties.sqlServerDatabaseId", type: { - name: "Number" + name: "Uuid" } }, - licenseType: { - serializedName: "properties.licenseType", + syncMemberAzureDatabaseResourceId: { + serializedName: "properties.syncMemberAzureDatabaseResourceId", type: { name: "String" } - } - } - } -}; - -export const JobAgent: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobAgent", - modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + }, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", type: { - name: "Composite", - className: "Sku" + name: "Boolean" } }, - databaseId: { - serializedName: "properties.databaseId", + privateEndpointName: { + serializedName: "properties.privateEndpointName", + readOnly: true, type: { name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + serverName: { + serializedName: "properties.serverName", type: { name: "String" } - } - } - } -}; - -export const RestorableDroppedManagedDatabase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorableDroppedManagedDatabase", - modelProperties: { - ...TrackedResource.type.modelProperties, + }, databaseName: { serializedName: "properties.databaseName", - readOnly: true, type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + userName: { + serializedName: "properties.userName", type: { - name: "DateTime" + name: "String" } }, - deletionDate: { - serializedName: "properties.deletionDate", - readOnly: true, + password: { + serializedName: "properties.password", type: { - name: "DateTime" + name: "String" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", + syncDirection: { + serializedName: "properties.syncDirection", + type: { + name: "String" + } + }, + syncState: { + serializedName: "properties.syncState", readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const VirtualCluster: coreClient.CompositeMapper = { +export const TimeZone: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualCluster", + className: "TimeZone", modelProperties: { - ...TrackedResource.type.modelProperties, - subnetId: { - serializedName: "properties.subnetId", + ...ProxyResource.type.modelProperties, + timeZoneId: { + serializedName: "properties.timeZoneId", readOnly: true, type: { name: "String" } }, - version: { - serializedName: "properties.version", - type: { - name: "String" - } - }, - childResources: { - serializedName: "properties.childResources", + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const ManagedDatabase: coreClient.CompositeMapper = { +export const LogicalDatabaseTransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabase", + className: "LogicalDatabaseTransparentDataEncryption", modelProperties: { - ...TrackedResource.type.modelProperties, - collation: { - serializedName: "properties.collation", + ...ProxyResource.type.modelProperties, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } - }, + } + } + } +}; + +export const UpdateVirtualClusterDnsServersOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateVirtualClusterDnsServersOperation", + modelProperties: { + ...ProxyResource.type.modelProperties, status: { serializedName: "properties.status", readOnly: true, type: { name: "String" } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - earliestRestorePoint: { - serializedName: "properties.earliestRestorePoint", - readOnly: true, - type: { - name: "DateTime" - } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", - type: { - name: "DateTime" - } - }, - defaultSecondaryLocation: { - serializedName: "properties.defaultSecondaryLocation", - readOnly: true, - type: { - name: "String" - } - }, - catalogCollation: { - serializedName: "properties.catalogCollation", + } + } + } +}; + +export const VirtualNetworkRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + virtualNetworkSubnetId: { + serializedName: "properties.virtualNetworkSubnetId", type: { name: "String" } }, - createMode: { - serializedName: "properties.createMode", + ignoreMissingVnetServiceEndpoint: { + serializedName: "properties.ignoreMissingVnetServiceEndpoint", type: { - name: "String" + name: "Boolean" } }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + } + } + } +}; + +export const WorkloadClassifier: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadClassifier", + modelProperties: { + ...ProxyResource.type.modelProperties, + memberName: { + serializedName: "properties.memberName", type: { name: "String" } }, - crossSubscriptionSourceDatabaseId: { - serializedName: "properties.crossSubscriptionSourceDatabaseId", + label: { + serializedName: "properties.label", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + context: { + serializedName: "properties.context", type: { name: "String" } }, - crossSubscriptionRestorableDroppedDatabaseId: { - serializedName: - "properties.crossSubscriptionRestorableDroppedDatabaseId", + startTime: { + serializedName: "properties.startTime", type: { name: "String" } }, - storageContainerIdentity: { - serializedName: "properties.storageContainerIdentity", + endTime: { + serializedName: "properties.endTime", type: { name: "String" } }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", + importance: { + serializedName: "properties.importance", type: { name: "String" } - }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", - readOnly: true, + } + } + } +}; + +export const WorkloadGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + minResourcePercent: { + serializedName: "properties.minResourcePercent", type: { - name: "String" + name: "Number" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + maxResourcePercent: { + serializedName: "properties.maxResourcePercent", type: { - name: "String" + name: "Number" } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + minResourcePercentPerRequest: { + serializedName: "properties.minResourcePercentPerRequest", type: { - name: "String" + name: "Number" } - }, - autoCompleteRestore: { - serializedName: "properties.autoCompleteRestore", + }, + maxResourcePercentPerRequest: { + serializedName: "properties.maxResourcePercentPerRequest", type: { - name: "Boolean" + name: "Number" } }, - lastBackupName: { - serializedName: "properties.lastBackupName", + importance: { + serializedName: "properties.importance", type: { name: "String" } }, - crossSubscriptionTargetManagedInstanceId: { - serializedName: "properties.crossSubscriptionTargetManagedInstanceId", + queryExecutionTimeout: { + serializedName: "properties.queryExecutionTimeout", type: { - name: "String" + name: "Number" } } } @@ -16381,141 +16361,372 @@ export const Database: coreClient.CompositeMapper = { name: "String" } }, - isLedgerOn: { - serializedName: "properties.isLedgerOn", + isLedgerOn: { + serializedName: "properties.isLedgerOn", + type: { + name: "Boolean" + } + }, + isInfraEncryptionEnabled: { + serializedName: "properties.isInfraEncryptionEnabled", + readOnly: true, + type: { + name: "Boolean" + } + }, + federatedClientId: { + serializedName: "properties.federatedClientId", + type: { + name: "Uuid" + } + }, + keys: { + serializedName: "properties.keys", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "DatabaseKey" } } + } + }, + encryptionProtector: { + serializedName: "properties.encryptionProtector", + type: { + name: "String" + } + }, + preferredEnclaveType: { + serializedName: "properties.preferredEnclaveType", + type: { + name: "String" + } + }, + sourceResourceId: { + serializedName: "properties.sourceResourceId", + type: { + name: "String" + } + }, + manualCutover: { + serializedName: "properties.manualCutover", + type: { + name: "Boolean" + } + }, + performCutover: { + serializedName: "properties.performCutover", + type: { + name: "Boolean" + } + }, + availabilityZone: { + serializedName: "properties.availabilityZone", + type: { + name: "String" + } + } + } + } +}; + +export const ElasticPool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPool", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + type: { + name: "Number" + } + }, + minCapacity: { + serializedName: "properties.minCapacity", + type: { + name: "Number" + } + }, + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", + type: { + name: "Composite", + className: "ElasticPoolPerDatabaseSettings" + } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "String" + } + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + type: { + name: "String" + } + }, + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", + type: { + name: "Number" + } + }, + preferredEnclaveType: { + serializedName: "properties.preferredEnclaveType", + type: { + name: "String" + } + }, + availabilityZone: { + serializedName: "properties.availabilityZone", + type: { + name: "String" + } + } + } + } +}; + +export const InstancePool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstancePool", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + subnetId: { + serializedName: "properties.subnetId", + type: { + name: "String" + } + }, + vCores: { + serializedName: "properties.vCores", + type: { + name: "Number" + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "String" + } + } + } + } +}; + +export const JobAgent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobAgent", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + databaseId: { + serializedName: "properties.databaseId", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabase", + modelProperties: { + ...TrackedResource.type.modelProperties, + collation: { + serializedName: "properties.collation", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - isInfraEncryptionEnabled: { - serializedName: "properties.isInfraEncryptionEnabled", + earliestRestorePoint: { + serializedName: "properties.earliestRestorePoint", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - federatedClientId: { - serializedName: "properties.federatedClientId", + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "Uuid" + name: "DateTime" } }, - keys: { - serializedName: "properties.keys", + defaultSecondaryLocation: { + serializedName: "properties.defaultSecondaryLocation", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } + name: "String" } }, - encryptionProtector: { - serializedName: "properties.encryptionProtector", + catalogCollation: { + serializedName: "properties.catalogCollation", type: { name: "String" } }, - preferredEnclaveType: { - serializedName: "properties.preferredEnclaveType", + createMode: { + serializedName: "properties.createMode", type: { name: "String" } }, - sourceResourceId: { - serializedName: "properties.sourceResourceId", + storageContainerUri: { + serializedName: "properties.storageContainerUri", type: { name: "String" } }, - manualCutover: { - serializedName: "properties.manualCutover", + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { - name: "Boolean" + name: "String" } }, - performCutover: { - serializedName: "properties.performCutover", + crossSubscriptionSourceDatabaseId: { + serializedName: "properties.crossSubscriptionSourceDatabaseId", type: { - name: "Boolean" + name: "String" } }, - availabilityZone: { - serializedName: "properties.availabilityZone", + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { name: "String" } - } - } - } -}; - -export const ElasticPool: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPool", - modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + }, + crossSubscriptionRestorableDroppedDatabaseId: { + serializedName: + "properties.crossSubscriptionRestorableDroppedDatabaseId", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - kind: { - serializedName: "kind", - readOnly: true, + storageContainerIdentity: { + serializedName: "properties.storageContainerIdentity", type: { name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + storageContainerSasToken: { + serializedName: "properties.storageContainerSasToken", type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", + failoverGroupId: { + serializedName: "properties.failoverGroupId", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { - name: "Number" + name: "String" } }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" + name: "String" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + autoCompleteRestore: { + serializedName: "properties.autoCompleteRestore", type: { name: "Boolean" } }, - licenseType: { - serializedName: "properties.licenseType", + lastBackupName: { + serializedName: "properties.lastBackupName", type: { name: "String" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + crossSubscriptionTargetManagedInstanceId: { + serializedName: "properties.crossSubscriptionTargetManagedInstanceId", type: { name: "String" } }, - highAvailabilityReplicaCount: { - serializedName: "properties.highAvailabilityReplicaCount", + isLedgerOn: { + serializedName: "properties.isLedgerOn", type: { - name: "Number" + name: "Boolean" } } } @@ -16562,6 +16773,12 @@ export const ManagedInstance: coreClient.CompositeMapper = { name: "String" } }, + isGeneralPurposeV2: { + serializedName: "properties.isGeneralPurposeV2", + type: { + name: "Boolean" + } + }, administratorLogin: { serializedName: "properties.administratorLogin", type: { @@ -16593,6 +16810,19 @@ export const ManagedInstance: coreClient.CompositeMapper = { name: "String" } }, + hybridSecondaryUsage: { + serializedName: "properties.hybridSecondaryUsage", + type: { + name: "String" + } + }, + hybridSecondaryUsageDetected: { + serializedName: "properties.hybridSecondaryUsageDetected", + readOnly: true, + type: { + name: "String" + } + }, vCores: { serializedName: "properties.vCores", type: { @@ -16605,6 +16835,18 @@ export const ManagedInstance: coreClient.CompositeMapper = { name: "Number" } }, + storageIOps: { + serializedName: "properties.storageIOps", + type: { + name: "Number" + } + }, + storageThroughputMBps: { + serializedName: "properties.storageThroughputMBps", + type: { + name: "Number" + } + }, collation: { serializedName: "properties.collation", type: { @@ -16729,6 +16971,58 @@ export const ManagedInstance: coreClient.CompositeMapper = { name: "Composite", className: "ServicePrincipal" } + }, + virtualClusterId: { + serializedName: "properties.virtualClusterId", + readOnly: true, + type: { + name: "String" + } + }, + externalGovernanceStatus: { + serializedName: "properties.externalGovernanceStatus", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RestorableDroppedManagedDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabase", + modelProperties: { + ...TrackedResource.type.modelProperties, + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + deletionDate: { + serializedName: "properties.deletionDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", + readOnly: true, + type: { + name: "DateTime" + } } } } @@ -16860,6 +17154,41 @@ export const Server: coreClient.CompositeMapper = { } }; +export const VirtualCluster: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualCluster", + modelProperties: { + ...TrackedResource.type.modelProperties, + subnetId: { + serializedName: "properties.subnetId", + readOnly: true, + type: { + name: "String" + } + }, + version: { + serializedName: "properties.version", + type: { + name: "String" + } + }, + childResources: { + serializedName: "properties.childResources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const FirewallRule: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16903,3 +17232,33 @@ export const IPv6FirewallRule: coreClient.CompositeMapper = { } } }; + +export const FailoverGroupsTryPlannedBeforeForcedFailoverHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroupsTryPlannedBeforeForcedFailoverHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedInstancesRefreshStatusHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancesRefreshStatusHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/sql/arm-sql/src/models/parameters.ts b/sdk/sql/arm-sql/src/models/parameters.ts index 8eea1c028a9b..18c51fe7a4ba 100644 --- a/sdk/sql/arm-sql/src/models/parameters.ts +++ b/sdk/sql/arm-sql/src/models/parameters.ts @@ -12,131 +12,115 @@ import { OperationQueryParameter } from "@azure/core-client"; import { + BackupShortTermRetentionPolicy as BackupShortTermRetentionPolicyMapper, + ServerBlobAuditingPolicy as ServerBlobAuditingPolicyMapper, + DatabaseBlobAuditingPolicy as DatabaseBlobAuditingPolicyMapper, + ExtendedDatabaseBlobAuditingPolicy as ExtendedDatabaseBlobAuditingPolicyMapper, + ExtendedServerBlobAuditingPolicy as ExtendedServerBlobAuditingPolicyMapper, DataMaskingPolicy as DataMaskingPolicyMapper, DataMaskingRule as DataMaskingRuleMapper, - GeoBackupPolicy as GeoBackupPolicyMapper, + DatabaseAdvancedThreatProtection as DatabaseAdvancedThreatProtectionMapper, + Advisor as AdvisorMapper, + DatabaseAutomaticTuning as DatabaseAutomaticTuningMapper, + DatabaseExtensions as DatabaseExtensionsMapper, + RecommendedAction as RecommendedActionMapper, + DatabaseSecurityAlertPolicy as DatabaseSecurityAlertPolicyMapper, + DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper, + DatabaseSqlVulnerabilityAssessmentRuleBaselineInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper, + DatabaseVulnerabilityAssessmentRuleBaseline as DatabaseVulnerabilityAssessmentRuleBaselineMapper, + DatabaseVulnerabilityAssessment as DatabaseVulnerabilityAssessmentMapper, Database as DatabaseMapper, DatabaseUpdate as DatabaseUpdateMapper, ExportDatabaseDefinition as ExportDatabaseDefinitionMapper, ImportExistingDatabaseDefinition as ImportExistingDatabaseDefinitionMapper, ResourceMoveDefinition as ResourceMoveDefinitionMapper, + DistributedAvailabilityGroupsCreateOrUpdateRequestBody as DistributedAvailabilityGroupsCreateOrUpdateRequestBodyMapper, + DistributedAvailabilityGroup as DistributedAvailabilityGroupMapper, + DistributedAvailabilityGroupSetRole as DistributedAvailabilityGroupSetRoleMapper, ElasticPool as ElasticPoolMapper, ElasticPoolUpdate as ElasticPoolUpdateMapper, - ServerCommunicationLink as ServerCommunicationLinkMapper, - Advisor as AdvisorMapper, - DatabaseAutomaticTuning as DatabaseAutomaticTuningMapper, - RecommendedAction as RecommendedActionMapper, - DatabaseSecurityAlertPolicy as DatabaseSecurityAlertPolicyMapper, - DatabaseVulnerabilityAssessmentRuleBaseline as DatabaseVulnerabilityAssessmentRuleBaselineMapper, - DatabaseVulnerabilityAssessment as DatabaseVulnerabilityAssessmentMapper, EncryptionProtector as EncryptionProtectorMapper, FailoverGroup as FailoverGroupMapper, FailoverGroupUpdate as FailoverGroupUpdateMapper, - FirewallRule as FirewallRuleMapper, FirewallRuleList as FirewallRuleListMapper, + FirewallRule as FirewallRuleMapper, + GeoBackupPolicy as GeoBackupPolicyMapper, + IPv6FirewallRule as IPv6FirewallRuleMapper, + InstanceFailoverGroup as InstanceFailoverGroupMapper, InstancePool as InstancePoolMapper, InstancePoolUpdate as InstancePoolUpdateMapper, JobAgent as JobAgentMapper, JobAgentUpdate as JobAgentUpdateMapper, JobCredential as JobCredentialMapper, - Job as JobMapper, JobStep as JobStepMapper, JobTargetGroup as JobTargetGroupMapper, + Job as JobMapper, + LedgerDigestUploads as LedgerDigestUploadsMapper, + CopyLongTermRetentionBackupParameters as CopyLongTermRetentionBackupParametersMapper, + UpdateLongTermRetentionBackupParameters as UpdateLongTermRetentionBackupParametersMapper, LongTermRetentionPolicy as LongTermRetentionPolicyMapper, MaintenanceWindows as MaintenanceWindowsMapper, ManagedBackupShortTermRetentionPolicy as ManagedBackupShortTermRetentionPolicyMapper, + ManagedDatabaseAdvancedThreatProtection as ManagedDatabaseAdvancedThreatProtectionMapper, ManagedDatabaseSecurityAlertPolicy as ManagedDatabaseSecurityAlertPolicyMapper, + SensitivityLabelUpdateList as SensitivityLabelUpdateListMapper, + SensitivityLabel as SensitivityLabelMapper, + RecommendedSensitivityLabelUpdateList as RecommendedSensitivityLabelUpdateListMapper, ManagedTransparentDataEncryption as ManagedTransparentDataEncryptionMapper, + DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated as DatabaseVulnerabilityAssessmentRuleBaselineAutoGeneratedMapper, + ManagedDatabase as ManagedDatabaseMapper, + ManagedDatabaseUpdate as ManagedDatabaseUpdateMapper, + ManagedDatabaseMoveDefinition as ManagedDatabaseMoveDefinitionMapper, + CompleteDatabaseRestoreDefinition as CompleteDatabaseRestoreDefinitionMapper, + ManagedDatabaseStartMoveDefinition as ManagedDatabaseStartMoveDefinitionMapper, ManagedInstanceAdministrator as ManagedInstanceAdministratorMapper, + ManagedInstanceAdvancedThreatProtection as ManagedInstanceAdvancedThreatProtectionMapper, ManagedInstanceAzureADOnlyAuthentication as ManagedInstanceAzureADOnlyAuthenticationMapper, + ManagedInstanceDtc as ManagedInstanceDtcMapper, ManagedInstanceEncryptionProtector as ManagedInstanceEncryptionProtectorMapper, ManagedInstanceKey as ManagedInstanceKeyMapper, ManagedInstanceLongTermRetentionPolicy as ManagedInstanceLongTermRetentionPolicyMapper, ManagedInstancePrivateEndpointConnection as ManagedInstancePrivateEndpointConnectionMapper, TdeCertificate as TdeCertificateMapper, ManagedInstanceVulnerabilityAssessment as ManagedInstanceVulnerabilityAssessmentMapper, + ManagedInstance as ManagedInstanceMapper, + ManagedInstanceUpdate as ManagedInstanceUpdateMapper, + ManagedLedgerDigestUploads as ManagedLedgerDigestUploadsMapper, + ManagedServerDnsAliasCreation as ManagedServerDnsAliasCreationMapper, + ManagedServerDnsAliasAcquisition as ManagedServerDnsAliasAcquisitionMapper, ManagedServerSecurityAlertPolicy as ManagedServerSecurityAlertPolicyMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, CreateDatabaseRestorePointDefinition as CreateDatabaseRestorePointDefinitionMapper, + ServerAdvancedThreatProtection as ServerAdvancedThreatProtectionMapper, ServerAutomaticTuning as ServerAutomaticTuningMapper, ServerAzureADAdministrator as ServerAzureADAdministratorMapper, ServerAzureADOnlyAuthentication as ServerAzureADOnlyAuthenticationMapper, + ServerConfigurationOption as ServerConfigurationOptionMapper, + ServerConnectionPolicy as ServerConnectionPolicyMapper, ServerDevOpsAuditingSettings as ServerDevOpsAuditingSettingsMapper, ServerDnsAliasAcquisition as ServerDnsAliasAcquisitionMapper, ServerKey as ServerKeyMapper, ServerSecurityAlertPolicy as ServerSecurityAlertPolicyMapper, + ServerTrustCertificate as ServerTrustCertificateMapper, ServerTrustGroup as ServerTrustGroupMapper, ServerVulnerabilityAssessment as ServerVulnerabilityAssessmentMapper, + CheckNameAvailabilityRequest as CheckNameAvailabilityRequestMapper, + Server as ServerMapper, + ServerUpdate as ServerUpdateMapper, + ImportNewDatabaseDefinition as ImportNewDatabaseDefinitionMapper, SqlAgentConfiguration as SqlAgentConfigurationMapper, + SqlVulnerabilityAssessment as SqlVulnerabilityAssessmentMapper, + StartStopManagedInstanceSchedule as StartStopManagedInstanceScheduleMapper, SyncAgent as SyncAgentMapper, SyncGroup as SyncGroupMapper, SyncMember as SyncMemberMapper, + LogicalDatabaseTransparentDataEncryption as LogicalDatabaseTransparentDataEncryptionMapper, + VirtualClusterUpdate as VirtualClusterUpdateMapper, VirtualNetworkRule as VirtualNetworkRuleMapper, WorkloadClassifier as WorkloadClassifierMapper, - WorkloadGroup as WorkloadGroupMapper, - BackupShortTermRetentionPolicy as BackupShortTermRetentionPolicyMapper, - DatabaseExtensions as DatabaseExtensionsMapper, - LedgerDigestUploads as LedgerDigestUploadsMapper, - OutboundFirewallRule as OutboundFirewallRuleMapper, - CopyLongTermRetentionBackupParameters as CopyLongTermRetentionBackupParametersMapper, - UpdateLongTermRetentionBackupParameters as UpdateLongTermRetentionBackupParametersMapper, - ServerConnectionPolicy as ServerConnectionPolicyMapper, - DistributedAvailabilityGroup as DistributedAvailabilityGroupMapper, - ServerTrustCertificate as ServerTrustCertificateMapper, - IPv6FirewallRule as IPv6FirewallRuleMapper, - SensitivityLabel as SensitivityLabelMapper, - SensitivityLabelUpdateList as SensitivityLabelUpdateListMapper, - RecommendedSensitivityLabelUpdateList as RecommendedSensitivityLabelUpdateListMapper, - ServerBlobAuditingPolicy as ServerBlobAuditingPolicyMapper, - DatabaseBlobAuditingPolicy as DatabaseBlobAuditingPolicyMapper, - ExtendedDatabaseBlobAuditingPolicy as ExtendedDatabaseBlobAuditingPolicyMapper, - ExtendedServerBlobAuditingPolicy as ExtendedServerBlobAuditingPolicyMapper, - DatabaseAdvancedThreatProtection as DatabaseAdvancedThreatProtectionMapper, - ServerAdvancedThreatProtection as ServerAdvancedThreatProtectionMapper, - ManagedServerDnsAliasCreation as ManagedServerDnsAliasCreationMapper, - ManagedServerDnsAliasAcquisition as ManagedServerDnsAliasAcquisitionMapper, - DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper, - DatabaseSqlVulnerabilityAssessmentRuleBaselineInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper, - ManagedDatabaseAdvancedThreatProtection as ManagedDatabaseAdvancedThreatProtectionMapper, - ManagedInstanceAdvancedThreatProtection as ManagedInstanceAdvancedThreatProtectionMapper, - SqlVulnerabilityAssessment as SqlVulnerabilityAssessmentMapper, - ManagedInstanceDtc as ManagedInstanceDtcMapper, - VirtualClusterUpdate as VirtualClusterUpdateMapper, - InstanceFailoverGroup as InstanceFailoverGroupMapper, - ManagedDatabase as ManagedDatabaseMapper, - ManagedDatabaseUpdate as ManagedDatabaseUpdateMapper, - ManagedDatabaseMoveDefinition as ManagedDatabaseMoveDefinitionMapper, - CompleteDatabaseRestoreDefinition as CompleteDatabaseRestoreDefinitionMapper, - ManagedDatabaseStartMoveDefinition as ManagedDatabaseStartMoveDefinitionMapper, - ManagedInstance as ManagedInstanceMapper, - ManagedInstanceUpdate as ManagedInstanceUpdateMapper, - ManagedLedgerDigestUploads as ManagedLedgerDigestUploadsMapper, - ServerConfigurationOption as ServerConfigurationOptionMapper, - CheckNameAvailabilityRequest as CheckNameAvailabilityRequestMapper, - Server as ServerMapper, - ServerUpdate as ServerUpdateMapper, - ImportNewDatabaseDefinition as ImportNewDatabaseDefinitionMapper, - StartStopManagedInstanceSchedule as StartStopManagedInstanceScheduleMapper, - LogicalDatabaseTransparentDataEncryption as LogicalDatabaseTransparentDataEncryptionMapper + WorkloadGroup as WorkloadGroupMapper } from "../models/mappers"; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } -}; - -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: DataMaskingPolicyMapper -}; - export const accept: OperationParameter = { parameterPath: "accept", mapper: { @@ -161,29 +145,6 @@ export const $host: OperationURLParameter = { skipEncoding: true }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2014-04-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", - mapper: { - serializedName: "subscriptionId", - required: true, - type: { - name: "String" - } - } -}; - export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -217,43 +178,33 @@ export const databaseName: OperationURLParameter = { } }; -export const dataMaskingPolicyName: OperationURLParameter = { - parameterPath: "dataMaskingPolicyName", +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", mapper: { - defaultValue: "Default", - isConstant: true, - serializedName: "dataMaskingPolicyName", + serializedName: "subscriptionId", + required: true, type: { name: "String" } } }; -export const parameters1: OperationParameter = { - parameterPath: "parameters", - mapper: DataMaskingRuleMapper -}; - -export const dataMaskingRuleName: OperationURLParameter = { - parameterPath: "dataMaskingRuleName", +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "dataMaskingRuleName", - required: true, + defaultValue: "2023-02-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String" } } }; -export const parameters2: OperationParameter = { - parameterPath: "parameters", - mapper: GeoBackupPolicyMapper -}; - -export const geoBackupPolicyName: OperationURLParameter = { - parameterPath: "geoBackupPolicyName", +export const policyName: OperationURLParameter = { + parameterPath: "policyName", mapper: { - serializedName: "geoBackupPolicyName", + serializedName: "policyName", required: true, type: { name: "String" @@ -261,98 +212,92 @@ export const geoBackupPolicyName: OperationURLParameter = { } }; -export const filter: OperationQueryParameter = { - parameterPath: "filter", +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { - serializedName: "$filter", - required: true, + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", type: { name: "String" } } }; -export const skipToken: OperationQueryParameter = { - parameterPath: ["options", "skipToken"], - mapper: { - serializedName: "$skipToken", - type: { - name: "String" - } - } +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: BackupShortTermRetentionPolicyMapper }; -export const apiVersion1: OperationQueryParameter = { - parameterPath: "apiVersion", +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - defaultValue: "2022-08-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "nextLink", + required: true, type: { name: "String" } - } + }, + skipEncoding: true }; -export const expand: OperationQueryParameter = { - parameterPath: ["options", "expand"], +export const blobAuditingPolicyName: OperationURLParameter = { + parameterPath: "blobAuditingPolicyName", mapper: { - serializedName: "$expand", + defaultValue: "default", + isConstant: true, + serializedName: "blobAuditingPolicyName", type: { name: "String" } } }; -export const filter1: OperationQueryParameter = { - parameterPath: ["options", "filter"], - mapper: { - serializedName: "$filter", - type: { - name: "String" - } - } +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: ServerBlobAuditingPolicyMapper }; -export const parameters3: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseMapper + mapper: DatabaseBlobAuditingPolicyMapper }; -export const parameters4: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseUpdateMapper + mapper: ExtendedDatabaseBlobAuditingPolicyMapper }; -export const parameters5: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: ExportDatabaseDefinitionMapper + mapper: ExtendedServerBlobAuditingPolicyMapper }; -export const replicaType: OperationQueryParameter = { - parameterPath: ["options", "replicaType"], +export const dataMaskingPolicyName: OperationURLParameter = { + parameterPath: "dataMaskingPolicyName", mapper: { - serializedName: "replicaType", + serializedName: "dataMaskingPolicyName", + required: true, type: { name: "String" } } }; -export const parameters6: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: ImportExistingDatabaseDefinitionMapper + mapper: DataMaskingPolicyMapper }; -export const parameters7: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: ResourceMoveDefinitionMapper + mapper: DataMaskingRuleMapper }; -export const elasticPoolName: OperationURLParameter = { - parameterPath: "elasticPoolName", +export const dataMaskingRuleName: OperationURLParameter = { + parameterPath: "dataMaskingRuleName", mapper: { - serializedName: "elasticPoolName", + serializedName: "dataMaskingRuleName", required: true, type: { name: "String" @@ -360,54 +305,21 @@ export const elasticPoolName: OperationURLParameter = { } }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - -export const skip: OperationQueryParameter = { - parameterPath: ["options", "skip"], - mapper: { - serializedName: "$skip", - type: { - name: "Number" - } - } -}; - -export const apiVersion2: OperationQueryParameter = { - parameterPath: "apiVersion", +export const dataWarehouseUserActivityName: OperationURLParameter = { + parameterPath: "dataWarehouseUserActivityName", mapper: { - defaultValue: "2021-08-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "dataWarehouseUserActivityName", + required: true, type: { name: "String" } } }; -export const parameters8: OperationParameter = { - parameterPath: "parameters", - mapper: ElasticPoolMapper -}; - -export const parameters9: OperationParameter = { - parameterPath: "parameters", - mapper: ElasticPoolUpdateMapper -}; - -export const communicationLinkName: OperationURLParameter = { - parameterPath: "communicationLinkName", +export const advancedThreatProtectionName: OperationURLParameter = { + parameterPath: "advancedThreatProtectionName", mapper: { - serializedName: "communicationLinkName", + serializedName: "advancedThreatProtectionName", required: true, type: { name: "String" @@ -415,28 +327,15 @@ export const communicationLinkName: OperationURLParameter = { } }; -export const parameters10: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: ServerCommunicationLinkMapper -}; - -export const serviceObjectiveName: OperationURLParameter = { - parameterPath: "serviceObjectiveName", - mapper: { - serializedName: "serviceObjectiveName", - required: true, - type: { - name: "String" - } - } + mapper: DatabaseAdvancedThreatProtectionMapper }; -export const apiVersion3: OperationQueryParameter = { - parameterPath: "apiVersion", +export const expand: OperationQueryParameter = { + parameterPath: ["options", "expand"], mapper: { - defaultValue: "2020-11-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "$expand", type: { name: "String" } @@ -454,12 +353,12 @@ export const advisorName: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: AdvisorMapper }; -export const parameters12: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: DatabaseAutomaticTuningMapper }; @@ -560,6 +459,16 @@ export const tableName: OperationURLParameter = { } }; +export const filter: OperationQueryParameter = { + parameterPath: ["options", "filter"], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; + export const columnName: OperationURLParameter = { parameterPath: "columnName", mapper: { @@ -571,6 +480,44 @@ export const columnName: OperationURLParameter = { } }; +export const encryptionProtectorName: OperationURLParameter = { + parameterPath: "encryptionProtectorName", + mapper: { + serializedName: "encryptionProtectorName", + required: true, + type: { + name: "String" + } + } +}; + +export const extensionName: OperationURLParameter = { + parameterPath: "extensionName", + mapper: { + serializedName: "extensionName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters10: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseExtensionsMapper +}; + +export const operationId: OperationURLParameter = { + parameterPath: "operationId", + mapper: { + serializedName: "operationId", + required: true, + type: { + name: "Uuid" + } + } +}; + export const recommendedActionName: OperationURLParameter = { parameterPath: "recommendedActionName", mapper: { @@ -582,7 +529,7 @@ export const recommendedActionName: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: RecommendedActionMapper }; @@ -598,7 +545,7 @@ export const securityAlertPolicyName: OperationURLParameter = { } }; -export const parameters14: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: DatabaseSecurityAlertPolicyMapper }; @@ -614,43 +561,26 @@ export const vulnerabilityAssessmentName: OperationURLParameter = { } }; -export const ruleId: OperationURLParameter = { - parameterPath: "ruleId", - mapper: { - serializedName: "ruleId", - required: true, - type: { - name: "String" - } - } -}; - export const baselineName: OperationURLParameter = { parameterPath: "baselineName", mapper: { serializedName: "baselineName", required: true, type: { - name: "Enum", - allowedValues: ["master", "default"] + name: "String" } } }; -export const parameters15: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseVulnerabilityAssessmentRuleBaselineMapper -}; - -export const parameters16: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseVulnerabilityAssessmentMapper + mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper }; -export const scanId: OperationURLParameter = { - parameterPath: "scanId", +export const ruleId: OperationURLParameter = { + parameterPath: "ruleId", mapper: { - serializedName: "scanId", + serializedName: "ruleId", required: true, type: { name: "String" @@ -658,10 +588,15 @@ export const scanId: OperationURLParameter = { } }; -export const dataWarehouseUserActivityName: OperationURLParameter = { - parameterPath: "dataWarehouseUserActivityName", +export const parameters14: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper +}; + +export const vulnerabilityAssessmentName1: OperationURLParameter = { + parameterPath: "vulnerabilityAssessmentName", mapper: { - serializedName: "dataWarehouseUserActivityName", + serializedName: "vulnerabilityAssessmentName", required: true, type: { name: "String" @@ -669,10 +604,10 @@ export const dataWarehouseUserActivityName: OperationURLParameter = { } }; -export const locationName: OperationURLParameter = { - parameterPath: "locationName", +export const scanId: OperationURLParameter = { + parameterPath: "scanId", mapper: { - serializedName: "locationName", + serializedName: "scanId", required: true, type: { name: "String" @@ -680,10 +615,10 @@ export const locationName: OperationURLParameter = { } }; -export const deletedServerName: OperationURLParameter = { - parameterPath: "deletedServerName", +export const scanResultId: OperationURLParameter = { + parameterPath: "scanResultId", mapper: { - serializedName: "deletedServerName", + serializedName: "scanResultId", required: true, type: { name: "String" @@ -691,59 +626,68 @@ export const deletedServerName: OperationURLParameter = { } }; -export const operationId: OperationURLParameter = { - parameterPath: "operationId", +export const vulnerabilityAssessmentName2: OperationURLParameter = { + parameterPath: "vulnerabilityAssessmentName", mapper: { - serializedName: "operationId", + serializedName: "vulnerabilityAssessmentName", required: true, type: { - name: "Uuid" + name: "String" } } }; -export const encryptionProtectorName: OperationURLParameter = { - parameterPath: "encryptionProtectorName", +export const baselineName1: OperationURLParameter = { + parameterPath: "baselineName", mapper: { - serializedName: "encryptionProtectorName", + serializedName: "baselineName", required: true, type: { - name: "String" + name: "Enum", + allowedValues: ["master", "default"] } } }; -export const parameters17: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: EncryptionProtectorMapper + mapper: DatabaseVulnerabilityAssessmentRuleBaselineMapper }; -export const failoverGroupName: OperationURLParameter = { - parameterPath: "failoverGroupName", +export const parameters16: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseVulnerabilityAssessmentMapper +}; + +export const skipToken: OperationQueryParameter = { + parameterPath: ["options", "skipToken"], mapper: { - serializedName: "failoverGroupName", - required: true, + serializedName: "$skipToken", type: { name: "String" } } }; +export const parameters17: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseMapper +}; + export const parameters18: OperationParameter = { parameterPath: "parameters", - mapper: FailoverGroupMapper + mapper: DatabaseUpdateMapper }; export const parameters19: OperationParameter = { parameterPath: "parameters", - mapper: FailoverGroupUpdateMapper + mapper: ExportDatabaseDefinitionMapper }; -export const firewallRuleName: OperationURLParameter = { - parameterPath: "firewallRuleName", +export const replicaType: OperationQueryParameter = { + parameterPath: ["options", "replicaType"], mapper: { - serializedName: "firewallRuleName", - required: true, + serializedName: "replicaType", type: { name: "String" } @@ -752,18 +696,18 @@ export const firewallRuleName: OperationURLParameter = { export const parameters20: OperationParameter = { parameterPath: "parameters", - mapper: FirewallRuleMapper + mapper: ImportExistingDatabaseDefinitionMapper }; export const parameters21: OperationParameter = { parameterPath: "parameters", - mapper: FirewallRuleListMapper + mapper: ResourceMoveDefinitionMapper }; -export const instancePoolName: OperationURLParameter = { - parameterPath: "instancePoolName", +export const elasticPoolName: OperationURLParameter = { + parameterPath: "elasticPoolName", mapper: { - serializedName: "instancePoolName", + serializedName: "elasticPoolName", required: true, type: { name: "String" @@ -771,20 +715,10 @@ export const instancePoolName: OperationURLParameter = { } }; -export const parameters22: OperationParameter = { - parameterPath: "parameters", - mapper: InstancePoolMapper -}; - -export const parameters23: OperationParameter = { - parameterPath: "parameters", - mapper: InstancePoolUpdateMapper -}; - -export const jobAgentName: OperationURLParameter = { - parameterPath: "jobAgentName", +export const locationName: OperationURLParameter = { + parameterPath: "locationName", mapper: { - serializedName: "jobAgentName", + serializedName: "locationName", required: true, type: { name: "String" @@ -792,20 +726,10 @@ export const jobAgentName: OperationURLParameter = { } }; -export const parameters24: OperationParameter = { - parameterPath: "parameters", - mapper: JobAgentMapper -}; - -export const parameters25: OperationParameter = { - parameterPath: "parameters", - mapper: JobAgentUpdateMapper -}; - -export const credentialName: OperationURLParameter = { - parameterPath: "credentialName", +export const deletedServerName: OperationURLParameter = { + parameterPath: "deletedServerName", mapper: { - serializedName: "credentialName", + serializedName: "deletedServerName", required: true, type: { name: "String" @@ -813,7 +737,201 @@ export const credentialName: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { +export const managedInstanceName: OperationURLParameter = { + parameterPath: "managedInstanceName", + mapper: { + serializedName: "managedInstanceName", + required: true, + type: { + name: "String" + } + } +}; + +export const distributedAvailabilityGroupName: OperationURLParameter = { + parameterPath: "distributedAvailabilityGroupName", + mapper: { + serializedName: "distributedAvailabilityGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters22: OperationParameter = { + parameterPath: "parameters", + mapper: DistributedAvailabilityGroupsCreateOrUpdateRequestBodyMapper +}; + +export const parameters23: OperationParameter = { + parameterPath: "parameters", + mapper: DistributedAvailabilityGroupMapper +}; + +export const parameters24: OperationParameter = { + parameterPath: "parameters", + mapper: DistributedAvailabilityGroupSetRoleMapper +}; + +export const skip: OperationQueryParameter = { + parameterPath: ["options", "skip"], + mapper: { + serializedName: "$skip", + type: { + name: "Number" + } + } +}; + +export const parameters25: OperationParameter = { + parameterPath: "parameters", + mapper: ElasticPoolMapper +}; + +export const parameters26: OperationParameter = { + parameterPath: "parameters", + mapper: ElasticPoolUpdateMapper +}; + +export const parameters27: OperationParameter = { + parameterPath: "parameters", + mapper: EncryptionProtectorMapper +}; + +export const endpointType: OperationURLParameter = { + parameterPath: "endpointType", + mapper: { + serializedName: "endpointType", + required: true, + type: { + name: "String" + } + } +}; + +export const failoverGroupName: OperationURLParameter = { + parameterPath: "failoverGroupName", + mapper: { + serializedName: "failoverGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters28: OperationParameter = { + parameterPath: "parameters", + mapper: FailoverGroupMapper +}; + +export const parameters29: OperationParameter = { + parameterPath: "parameters", + mapper: FailoverGroupUpdateMapper +}; + +export const parameters30: OperationParameter = { + parameterPath: "parameters", + mapper: FirewallRuleListMapper +}; + +export const firewallRuleName: OperationURLParameter = { + parameterPath: "firewallRuleName", + mapper: { + serializedName: "firewallRuleName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters31: OperationParameter = { + parameterPath: "parameters", + mapper: FirewallRuleMapper +}; + +export const geoBackupPolicyName: OperationURLParameter = { + parameterPath: "geoBackupPolicyName", + mapper: { + serializedName: "geoBackupPolicyName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters32: OperationParameter = { + parameterPath: "parameters", + mapper: GeoBackupPolicyMapper +}; + +export const parameters33: OperationParameter = { + parameterPath: "parameters", + mapper: IPv6FirewallRuleMapper +}; + +export const parameters34: OperationParameter = { + parameterPath: "parameters", + mapper: InstanceFailoverGroupMapper +}; + +export const instancePoolName: OperationURLParameter = { + parameterPath: "instancePoolName", + mapper: { + serializedName: "instancePoolName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters35: OperationParameter = { + parameterPath: "parameters", + mapper: InstancePoolMapper +}; + +export const parameters36: OperationParameter = { + parameterPath: "parameters", + mapper: InstancePoolUpdateMapper +}; + +export const jobAgentName: OperationURLParameter = { + parameterPath: "jobAgentName", + mapper: { + serializedName: "jobAgentName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters37: OperationParameter = { + parameterPath: "parameters", + mapper: JobAgentMapper +}; + +export const parameters38: OperationParameter = { + parameterPath: "parameters", + mapper: JobAgentUpdateMapper +}; + +export const credentialName: OperationURLParameter = { + parameterPath: "credentialName", + mapper: { + serializedName: "credentialName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters39: OperationParameter = { parameterPath: "parameters", mapper: JobCredentialMapper }; @@ -900,11 +1018,6 @@ export const jobExecutionId: OperationURLParameter = { } }; -export const parameters27: OperationParameter = { - parameterPath: "parameters", - mapper: JobMapper -}; - export const stepName: OperationURLParameter = { parameterPath: "stepName", mapper: { @@ -916,6 +1029,11 @@ export const stepName: OperationURLParameter = { } }; +export const parameters40: OperationParameter = { + parameterPath: "parameters", + mapper: JobStepMapper +}; + export const jobVersion: OperationURLParameter = { parameterPath: "jobVersion", mapper: { @@ -927,11 +1045,6 @@ export const jobVersion: OperationURLParameter = { } }; -export const parameters28: OperationParameter = { - parameterPath: "parameters", - mapper: JobStepMapper -}; - export const targetId: OperationURLParameter = { parameterPath: "targetId", mapper: { @@ -954,25 +1067,20 @@ export const targetGroupName: OperationURLParameter = { } }; -export const parameters29: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: JobTargetGroupMapper }; -export const include: OperationQueryParameter = { - parameterPath: ["options", "include"], - mapper: { - serializedName: "include", - type: { - name: "String" - } - } +export const parameters42: OperationParameter = { + parameterPath: "parameters", + mapper: JobMapper }; -export const policyName: OperationURLParameter = { - parameterPath: "policyName", +export const ledgerDigestUploads: OperationURLParameter = { + parameterPath: "ledgerDigestUploads", mapper: { - serializedName: "policyName", + serializedName: "ledgerDigestUploads", required: true, type: { name: "String" @@ -980,42 +1088,67 @@ export const policyName: OperationURLParameter = { } }; -export const parameters30: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", - mapper: LongTermRetentionPolicyMapper + mapper: LedgerDigestUploadsMapper }; -export const maintenanceWindowOptionsName: OperationQueryParameter = { - parameterPath: "maintenanceWindowOptionsName", +export const include: OperationQueryParameter = { + parameterPath: ["options", "include"], mapper: { - serializedName: "maintenanceWindowOptionsName", - required: true, + serializedName: "include", type: { name: "String" } } }; -export const maintenanceWindowName: OperationQueryParameter = { - parameterPath: "maintenanceWindowName", +export const onlyLatestPerDatabase: OperationQueryParameter = { + parameterPath: ["options", "onlyLatestPerDatabase"], mapper: { - serializedName: "maintenanceWindowName", - required: true, + serializedName: "onlyLatestPerDatabase", type: { - name: "String" + name: "Boolean" } } }; -export const parameters31: OperationParameter = { - parameterPath: "parameters", - mapper: MaintenanceWindowsMapper -}; - -export const managedInstanceName: OperationURLParameter = { - parameterPath: "managedInstanceName", +export const databaseState: OperationQueryParameter = { + parameterPath: ["options", "databaseState"], mapper: { - serializedName: "managedInstanceName", + serializedName: "databaseState", + type: { + name: "String" + } + } +}; + +export const longTermRetentionServerName: OperationURLParameter = { + parameterPath: "longTermRetentionServerName", + mapper: { + serializedName: "longTermRetentionServerName", + required: true, + type: { + name: "String" + } + } +}; + +export const longTermRetentionDatabaseName: OperationURLParameter = { + parameterPath: "longTermRetentionDatabaseName", + mapper: { + serializedName: "longTermRetentionDatabaseName", + required: true, + type: { + name: "String" + } + } +}; + +export const backupName: OperationURLParameter = { + parameterPath: "backupName", + mapper: { + serializedName: "backupName", required: true, type: { name: "String" @@ -1023,6 +1156,16 @@ export const managedInstanceName: OperationURLParameter = { } }; +export const parameters44: OperationParameter = { + parameterPath: "parameters", + mapper: CopyLongTermRetentionBackupParametersMapper +}; + +export const parameters45: OperationParameter = { + parameterPath: "parameters", + mapper: UpdateLongTermRetentionBackupParametersMapper +}; + export const policyName1: OperationURLParameter = { parameterPath: "policyName", mapper: { @@ -1034,11 +1177,59 @@ export const policyName1: OperationURLParameter = { } }; -export const parameters32: OperationParameter = { +export const parameters46: OperationParameter = { + parameterPath: "parameters", + mapper: LongTermRetentionPolicyMapper +}; + +export const maintenanceWindowOptionsName: OperationQueryParameter = { + parameterPath: "maintenanceWindowOptionsName", + mapper: { + serializedName: "maintenanceWindowOptionsName", + required: true, + type: { + name: "String" + } + } +}; + +export const maintenanceWindowName: OperationQueryParameter = { + parameterPath: "maintenanceWindowName", + mapper: { + serializedName: "maintenanceWindowName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters47: OperationParameter = { + parameterPath: "parameters", + mapper: MaintenanceWindowsMapper +}; + +export const policyName2: OperationURLParameter = { + parameterPath: "policyName", + mapper: { + serializedName: "policyName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: ManagedBackupShortTermRetentionPolicyMapper }; +export const parameters49: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseAdvancedThreatProtectionMapper +}; + export const queryId: OperationURLParameter = { parameterPath: "queryId", mapper: { @@ -1080,11 +1271,93 @@ export const interval: OperationQueryParameter = { } }; -export const parameters33: OperationParameter = { +export const restoreDetailsName: OperationURLParameter = { + parameterPath: "restoreDetailsName", + mapper: { + serializedName: "restoreDetailsName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: ManagedDatabaseSecurityAlertPolicyMapper }; +export const count: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + serializedName: "$count", + type: { + name: "Boolean" + } + } +}; + +export const parameters51: OperationParameter = { + parameterPath: "parameters", + mapper: SensitivityLabelUpdateListMapper +}; + +export const includeDisabledRecommendations: OperationQueryParameter = { + parameterPath: ["options", "includeDisabledRecommendations"], + mapper: { + serializedName: "includeDisabledRecommendations", + type: { + name: "Boolean" + } + } +}; + +export const sensitivityLabelSource: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + serializedName: "sensitivityLabelSource", + required: true, + type: { + name: "Enum", + allowedValues: ["current", "recommended"] + } + } +}; + +export const parameters52: OperationParameter = { + parameterPath: "parameters", + mapper: SensitivityLabelMapper +}; + +export const sensitivityLabelSource1: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + defaultValue: "current", + isConstant: true, + serializedName: "sensitivityLabelSource", + type: { + name: "String" + } + } +}; + +export const sensitivityLabelSource2: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + defaultValue: "recommended", + isConstant: true, + serializedName: "sensitivityLabelSource", + type: { + name: "String" + } + } +}; + +export const parameters53: OperationParameter = { + parameterPath: "parameters", + mapper: RecommendedSensitivityLabelUpdateListMapper +}; + export const tdeName: OperationURLParameter = { parameterPath: "tdeName", mapper: { @@ -1096,11 +1369,41 @@ export const tdeName: OperationURLParameter = { } }; -export const parameters34: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: ManagedTransparentDataEncryptionMapper }; +export const parameters55: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseVulnerabilityAssessmentRuleBaselineAutoGeneratedMapper +}; + +export const parameters56: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseMapper +}; + +export const parameters57: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseUpdateMapper +}; + +export const parameters58: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseMoveDefinitionMapper +}; + +export const parameters59: OperationParameter = { + parameterPath: "parameters", + mapper: CompleteDatabaseRestoreDefinitionMapper +}; + +export const parameters60: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseStartMoveDefinitionMapper +}; + export const administratorName: OperationURLParameter = { parameterPath: "administratorName", mapper: { @@ -1112,11 +1415,16 @@ export const administratorName: OperationURLParameter = { } }; -export const parameters35: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceAdministratorMapper }; +export const parameters62: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceAdvancedThreatProtectionMapper +}; + export const authenticationName: OperationURLParameter = { parameterPath: "authenticationName", mapper: { @@ -1128,12 +1436,28 @@ export const authenticationName: OperationURLParameter = { } }; -export const parameters36: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceAzureADOnlyAuthenticationMapper }; -export const parameters37: OperationParameter = { +export const dtcName: OperationURLParameter = { + parameterPath: "dtcName", + mapper: { + serializedName: "dtcName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters64: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceDtcMapper +}; + +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceEncryptionProtectorMapper }; @@ -1149,12 +1473,12 @@ export const keyName: OperationURLParameter = { } }; -export const parameters38: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceKeyMapper }; -export const policyName2: OperationURLParameter = { +export const policyName3: OperationURLParameter = { parameterPath: "policyName", mapper: { serializedName: "policyName", @@ -1165,7 +1489,7 @@ export const policyName2: OperationURLParameter = { } }; -export const parameters39: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceLongTermRetentionPolicyMapper }; @@ -1181,7 +1505,7 @@ export const privateEndpointConnectionName: OperationURLParameter = { } }; -export const parameters40: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstancePrivateEndpointConnectionMapper }; @@ -1197,20 +1521,25 @@ export const groupName: OperationURLParameter = { } }; -export const parameters41: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: TdeCertificateMapper }; -export const parameters42: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceVulnerabilityAssessmentMapper }; -export const restorableDroppedDatabaseId: OperationURLParameter = { - parameterPath: "restorableDroppedDatabaseId", +export const managedInstanceName1: OperationURLParameter = { + parameterPath: "managedInstanceName", mapper: { - serializedName: "restorableDroppedDatabaseId", + constraints: { + Pattern: new RegExp("^[a-z0-9][a-z0-9-]*$"), + MaxLength: 63, + MinLength: 1 + }, + serializedName: "managedInstanceName", required: true, type: { name: "String" @@ -1218,74 +1547,60 @@ export const restorableDroppedDatabaseId: OperationURLParameter = { } }; -export const parameters43: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", - mapper: ManagedServerSecurityAlertPolicyMapper + mapper: ManagedInstanceMapper }; -export const parameters44: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper + mapper: ManagedInstanceUpdateMapper }; -export const recoverableDatabaseName: OperationURLParameter = { - parameterPath: "recoverableDatabaseName", +export const numberOfQueries: OperationQueryParameter = { + parameterPath: ["options", "numberOfQueries"], mapper: { - serializedName: "recoverableDatabaseName", - required: true, + serializedName: "numberOfQueries", type: { - name: "String" + name: "Number" } } }; -export const parameters45: OperationParameter = { - parameterPath: "parameters", - mapper: CreateDatabaseRestorePointDefinitionMapper -}; - -export const restorePointName: OperationURLParameter = { - parameterPath: "restorePointName", +export const databases: OperationQueryParameter = { + parameterPath: ["options", "databases"], mapper: { - serializedName: "restorePointName", - required: true, + serializedName: "databases", type: { name: "String" } } }; -export const parameters46: OperationParameter = { - parameterPath: "parameters", - mapper: ServerAutomaticTuningMapper -}; - -export const parameters47: OperationParameter = { - parameterPath: "parameters", - mapper: ServerAzureADAdministratorMapper -}; - -export const parameters48: OperationParameter = { - parameterPath: "parameters", - mapper: ServerAzureADOnlyAuthenticationMapper +export const aggregationFunction: OperationQueryParameter = { + parameterPath: ["options", "aggregationFunction"], + mapper: { + serializedName: "aggregationFunction", + type: { + name: "String" + } + } }; -export const apiVersion4: OperationQueryParameter = { - parameterPath: "apiVersion", +export const observationMetric: OperationQueryParameter = { + parameterPath: ["options", "observationMetric"], mapper: { - defaultValue: "2022-02-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "observationMetric", type: { name: "String" } } }; -export const devOpsAuditingSettingsName: OperationURLParameter = { - parameterPath: "devOpsAuditingSettingsName", +export const ledgerDigestUploads1: OperationURLParameter = { + parameterPath: "ledgerDigestUploads", mapper: { - serializedName: "devOpsAuditingSettingsName", + serializedName: "ledgerDigestUploads", required: true, type: { name: "String" @@ -1293,9 +1608,20 @@ export const devOpsAuditingSettingsName: OperationURLParameter = { } }; -export const parameters49: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", - mapper: ServerDevOpsAuditingSettingsMapper + mapper: ManagedLedgerDigestUploadsMapper +}; + +export const restorableDroppedDatabaseId: OperationURLParameter = { + parameterPath: "restorableDroppedDatabaseId", + mapper: { + serializedName: "restorableDroppedDatabaseId", + required: true, + type: { + name: "String" + } + } }; export const dnsAliasName: OperationURLParameter = { @@ -1309,25 +1635,20 @@ export const dnsAliasName: OperationURLParameter = { } }; -export const parameters50: OperationParameter = { - parameterPath: "parameters", - mapper: ServerDnsAliasAcquisitionMapper -}; - -export const parameters51: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", - mapper: ServerKeyMapper + mapper: ManagedServerDnsAliasCreationMapper }; -export const parameters52: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", - mapper: ServerSecurityAlertPolicyMapper + mapper: ManagedServerDnsAliasAcquisitionMapper }; -export const serverTrustGroupName: OperationURLParameter = { - parameterPath: "serverTrustGroupName", +export const securityAlertPolicyName1: OperationURLParameter = { + parameterPath: "securityAlertPolicyName", mapper: { - serializedName: "serverTrustGroupName", + serializedName: "securityAlertPolicyName", required: true, type: { name: "String" @@ -1335,25 +1656,15 @@ export const serverTrustGroupName: OperationURLParameter = { } }; -export const parameters53: OperationParameter = { - parameterPath: "parameters", - mapper: ServerTrustGroupMapper -}; - -export const parameters54: OperationParameter = { - parameterPath: "parameters", - mapper: ServerVulnerabilityAssessmentMapper -}; - -export const parameters55: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", - mapper: SqlAgentConfigurationMapper + mapper: ManagedServerSecurityAlertPolicyMapper }; -export const usageName: OperationURLParameter = { - parameterPath: "usageName", +export const nspConfigName: OperationURLParameter = { + parameterPath: "nspConfigName", mapper: { - serializedName: "usageName", + serializedName: "nspConfigName", required: true, type: { name: "String" @@ -1361,10 +1672,10 @@ export const usageName: OperationURLParameter = { } }; -export const syncAgentName: OperationURLParameter = { - parameterPath: "syncAgentName", +export const outboundRuleFqdn: OperationURLParameter = { + parameterPath: "outboundRuleFqdn", mapper: { - serializedName: "syncAgentName", + serializedName: "outboundRuleFqdn", required: true, type: { name: "String" @@ -1372,15 +1683,15 @@ export const syncAgentName: OperationURLParameter = { } }; -export const parameters56: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", - mapper: SyncAgentMapper + mapper: PrivateEndpointConnectionMapper }; -export const syncGroupName: OperationURLParameter = { - parameterPath: "syncGroupName", +export const recoverableDatabaseName: OperationURLParameter = { + parameterPath: "recoverableDatabaseName", mapper: { - serializedName: "syncGroupName", + serializedName: "recoverableDatabaseName", required: true, type: { name: "String" @@ -1388,10 +1699,10 @@ export const syncGroupName: OperationURLParameter = { } }; -export const startTime1: OperationQueryParameter = { - parameterPath: "startTime", +export const linkId: OperationURLParameter = { + parameterPath: "linkId", mapper: { - serializedName: "startTime", + serializedName: "linkId", required: true, type: { name: "String" @@ -1399,21 +1710,15 @@ export const startTime1: OperationQueryParameter = { } }; -export const endTime1: OperationQueryParameter = { - parameterPath: "endTime", - mapper: { - serializedName: "endTime", - required: true, - type: { - name: "String" - } - } +export const parameters78: OperationParameter = { + parameterPath: "parameters", + mapper: CreateDatabaseRestorePointDefinitionMapper }; -export const typeParam: OperationQueryParameter = { - parameterPath: "typeParam", +export const restorePointName: OperationURLParameter = { + parameterPath: "restorePointName", mapper: { - serializedName: "type", + serializedName: "restorePointName", required: true, type: { name: "String" @@ -1421,41 +1726,30 @@ export const typeParam: OperationQueryParameter = { } }; -export const continuationToken: OperationQueryParameter = { - parameterPath: ["options", "continuationToken"], - mapper: { - serializedName: "continuationToken", - type: { - name: "String" - } - } +export const parameters79: OperationParameter = { + parameterPath: "parameters", + mapper: ServerAdvancedThreatProtectionMapper }; -export const parameters57: OperationParameter = { +export const parameters80: OperationParameter = { parameterPath: "parameters", - mapper: SyncGroupMapper + mapper: ServerAutomaticTuningMapper }; -export const syncMemberName: OperationURLParameter = { - parameterPath: "syncMemberName", - mapper: { - serializedName: "syncMemberName", - required: true, - type: { - name: "String" - } - } +export const parameters81: OperationParameter = { + parameterPath: "parameters", + mapper: ServerAzureADAdministratorMapper }; -export const parameters58: OperationParameter = { +export const parameters82: OperationParameter = { parameterPath: "parameters", - mapper: SyncMemberMapper + mapper: ServerAzureADOnlyAuthenticationMapper }; -export const timeZoneId: OperationURLParameter = { - parameterPath: "timeZoneId", +export const serverConfigurationOptionName: OperationURLParameter = { + parameterPath: "serverConfigurationOptionName", mapper: { - serializedName: "timeZoneId", + serializedName: "serverConfigurationOptionName", required: true, type: { name: "String" @@ -1463,10 +1757,15 @@ export const timeZoneId: OperationURLParameter = { } }; -export const virtualNetworkRuleName: OperationURLParameter = { - parameterPath: "virtualNetworkRuleName", +export const parameters83: OperationParameter = { + parameterPath: "parameters", + mapper: ServerConfigurationOptionMapper +}; + +export const connectionPolicyName: OperationURLParameter = { + parameterPath: "connectionPolicyName", mapper: { - serializedName: "virtualNetworkRuleName", + serializedName: "connectionPolicyName", required: true, type: { name: "String" @@ -1474,15 +1773,15 @@ export const virtualNetworkRuleName: OperationURLParameter = { } }; -export const parameters59: OperationParameter = { +export const parameters84: OperationParameter = { parameterPath: "parameters", - mapper: VirtualNetworkRuleMapper + mapper: ServerConnectionPolicyMapper }; -export const workloadGroupName: OperationURLParameter = { - parameterPath: "workloadGroupName", +export const devOpsAuditingSettingsName: OperationURLParameter = { + parameterPath: "devOpsAuditingSettingsName", mapper: { - serializedName: "workloadGroupName", + serializedName: "devOpsAuditingSettingsName", required: true, type: { name: "String" @@ -1490,59 +1789,46 @@ export const workloadGroupName: OperationURLParameter = { } }; -export const workloadClassifierName: OperationURLParameter = { - parameterPath: "workloadClassifierName", - mapper: { - serializedName: "workloadClassifierName", - required: true, - type: { - name: "String" - } - } +export const parameters85: OperationParameter = { + parameterPath: "parameters", + mapper: ServerDevOpsAuditingSettingsMapper }; -export const parameters60: OperationParameter = { +export const parameters86: OperationParameter = { parameterPath: "parameters", - mapper: WorkloadClassifierMapper + mapper: ServerDnsAliasAcquisitionMapper }; -export const parameters61: OperationParameter = { +export const parameters87: OperationParameter = { parameterPath: "parameters", - mapper: WorkloadGroupMapper + mapper: ServerKeyMapper }; -export const policyName3: OperationURLParameter = { - parameterPath: "policyName", - mapper: { - serializedName: "policyName", - required: true, - type: { - name: "String" - } - } +export const parameters88: OperationParameter = { + parameterPath: "parameters", + mapper: ServerSecurityAlertPolicyMapper }; -export const apiVersion5: OperationQueryParameter = { - parameterPath: "apiVersion", +export const certificateName: OperationURLParameter = { + parameterPath: "certificateName", mapper: { - defaultValue: "2021-02-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "certificateName", + required: true, type: { name: "String" } } }; -export const parameters62: OperationParameter = { +export const parameters89: OperationParameter = { parameterPath: "parameters", - mapper: BackupShortTermRetentionPolicyMapper + mapper: ServerTrustCertificateMapper }; -export const extensionName: OperationURLParameter = { - parameterPath: "extensionName", +export const serverTrustGroupName: OperationURLParameter = { + parameterPath: "serverTrustGroupName", mapper: { - serializedName: "extensionName", + serializedName: "serverTrustGroupName", required: true, type: { name: "String" @@ -1550,62 +1836,62 @@ export const extensionName: OperationURLParameter = { } }; -export const parameters63: OperationParameter = { +export const parameters90: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseExtensionsMapper + mapper: ServerTrustGroupMapper }; -export const ledgerDigestUploads: OperationURLParameter = { - parameterPath: "ledgerDigestUploads", - mapper: { - serializedName: "ledgerDigestUploads", - required: true, - type: { - name: "String" - } - } +export const parameters91: OperationParameter = { + parameterPath: "parameters", + mapper: ServerVulnerabilityAssessmentMapper }; -export const parameters64: OperationParameter = { +export const parameters92: OperationParameter = { parameterPath: "parameters", - mapper: LedgerDigestUploadsMapper + mapper: CheckNameAvailabilityRequestMapper }; -export const outboundRuleFqdn: OperationURLParameter = { - parameterPath: "outboundRuleFqdn", - mapper: { - serializedName: "outboundRuleFqdn", - required: true, - type: { - name: "String" - } - } +export const parameters93: OperationParameter = { + parameterPath: "parameters", + mapper: ServerMapper }; -export const parameters65: OperationParameter = { +export const parameters94: OperationParameter = { parameterPath: "parameters", - mapper: OutboundFirewallRuleMapper + mapper: ServerUpdateMapper }; -export const expandChildren: OperationQueryParameter = { - parameterPath: ["options", "expandChildren"], +export const parameters95: OperationParameter = { + parameterPath: "parameters", + mapper: ImportNewDatabaseDefinitionMapper +}; + +export const parameters96: OperationParameter = { + parameterPath: "parameters", + mapper: SqlAgentConfigurationMapper +}; + +export const systemDatabaseName: OperationQueryParameter = { + parameterPath: "systemDatabaseName", mapper: { - serializedName: "expandChildren", + defaultValue: "master", + isConstant: true, + serializedName: "systemDatabaseName", type: { - name: "Boolean" + name: "String" } } }; -export const parameters66: OperationParameter = { +export const parameters97: OperationParameter = { parameterPath: "parameters", - mapper: CopyLongTermRetentionBackupParametersMapper + mapper: SqlVulnerabilityAssessmentMapper }; -export const longTermRetentionServerName: OperationURLParameter = { - parameterPath: "longTermRetentionServerName", +export const startStopScheduleName: OperationURLParameter = { + parameterPath: "startStopScheduleName", mapper: { - serializedName: "longTermRetentionServerName", + serializedName: "startStopScheduleName", required: true, type: { name: "String" @@ -1613,10 +1899,15 @@ export const longTermRetentionServerName: OperationURLParameter = { } }; -export const longTermRetentionDatabaseName: OperationURLParameter = { - parameterPath: "longTermRetentionDatabaseName", +export const parameters98: OperationParameter = { + parameterPath: "parameters", + mapper: StartStopManagedInstanceScheduleMapper +}; + +export const usageName: OperationURLParameter = { + parameterPath: "usageName", mapper: { - serializedName: "longTermRetentionDatabaseName", + serializedName: "usageName", required: true, type: { name: "String" @@ -1624,10 +1915,10 @@ export const longTermRetentionDatabaseName: OperationURLParameter = { } }; -export const backupName: OperationURLParameter = { - parameterPath: "backupName", +export const syncAgentName: OperationURLParameter = { + parameterPath: "syncAgentName", mapper: { - serializedName: "backupName", + serializedName: "syncAgentName", required: true, type: { name: "String" @@ -1635,47 +1926,53 @@ export const backupName: OperationURLParameter = { } }; -export const apiVersion6: OperationQueryParameter = { - parameterPath: "apiVersion", +export const parameters99: OperationParameter = { + parameterPath: "parameters", + mapper: SyncAgentMapper +}; + +export const syncGroupName: OperationURLParameter = { + parameterPath: "syncGroupName", mapper: { - defaultValue: "2021-05-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "syncGroupName", + required: true, type: { name: "String" } } }; -export const parameters67: OperationParameter = { +export const parameters100: OperationParameter = { parameterPath: "parameters", - mapper: UpdateLongTermRetentionBackupParametersMapper + mapper: SyncGroupMapper }; -export const onlyLatestPerDatabase: OperationQueryParameter = { - parameterPath: ["options", "onlyLatestPerDatabase"], +export const startTime1: OperationQueryParameter = { + parameterPath: "startTime", mapper: { - serializedName: "onlyLatestPerDatabase", + serializedName: "startTime", + required: true, type: { - name: "Boolean" + name: "String" } } }; -export const databaseState: OperationQueryParameter = { - parameterPath: ["options", "databaseState"], +export const endTime1: OperationQueryParameter = { + parameterPath: "endTime", mapper: { - serializedName: "databaseState", + serializedName: "endTime", + required: true, type: { name: "String" } } }; -export const connectionPolicyName: OperationURLParameter = { - parameterPath: "connectionPolicyName", +export const typeParam: OperationQueryParameter = { + parameterPath: "typeParam", mapper: { - serializedName: "connectionPolicyName", + serializedName: "type", required: true, type: { name: "String" @@ -1683,27 +1980,20 @@ export const connectionPolicyName: OperationURLParameter = { } }; -export const parameters68: OperationParameter = { - parameterPath: "parameters", - mapper: ServerConnectionPolicyMapper -}; - -export const apiVersion7: OperationQueryParameter = { - parameterPath: "apiVersion", +export const continuationToken: OperationQueryParameter = { + parameterPath: ["options", "continuationToken"], mapper: { - defaultValue: "2021-11-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "continuationToken", type: { name: "String" } } }; -export const distributedAvailabilityGroupName: OperationURLParameter = { - parameterPath: "distributedAvailabilityGroupName", +export const syncMemberName: OperationURLParameter = { + parameterPath: "syncMemberName", mapper: { - serializedName: "distributedAvailabilityGroupName", + serializedName: "syncMemberName", required: true, type: { name: "String" @@ -1711,15 +2001,15 @@ export const distributedAvailabilityGroupName: OperationURLParameter = { } }; -export const parameters69: OperationParameter = { +export const parameters101: OperationParameter = { parameterPath: "parameters", - mapper: DistributedAvailabilityGroupMapper + mapper: SyncMemberMapper }; -export const certificateName: OperationURLParameter = { - parameterPath: "certificateName", +export const timeZoneId: OperationURLParameter = { + parameterPath: "timeZoneId", mapper: { - serializedName: "certificateName", + serializedName: "timeZoneId", required: true, type: { name: "String" @@ -1727,457 +2017,81 @@ export const certificateName: OperationURLParameter = { } }; -export const parameters70: OperationParameter = { - parameterPath: "parameters", - mapper: ServerTrustCertificateMapper -}; - -export const parameters71: OperationParameter = { +export const parameters102: OperationParameter = { parameterPath: "parameters", - mapper: IPv6FirewallRuleMapper + mapper: LogicalDatabaseTransparentDataEncryptionMapper }; -export const endpointType: OperationURLParameter = { - parameterPath: "endpointType", +export const expandChildren: OperationQueryParameter = { + parameterPath: ["options", "expandChildren"], mapper: { - serializedName: "endpointType", - required: true, + serializedName: "expandChildren", type: { - name: "String" + name: "Boolean" } } }; -export const sensitivityLabelSource: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", +export const virtualClusterName: OperationURLParameter = { + parameterPath: "virtualClusterName", mapper: { - serializedName: "sensitivityLabelSource", + serializedName: "virtualClusterName", required: true, type: { - name: "Enum", - allowedValues: ["current", "recommended"] + name: "String" } } }; -export const parameters72: OperationParameter = { +export const parameters103: OperationParameter = { parameterPath: "parameters", - mapper: SensitivityLabelMapper -}; - -export const sensitivityLabelSource1: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", - mapper: { - defaultValue: "current", - isConstant: true, - serializedName: "sensitivityLabelSource", - type: { - name: "String" - } - } + mapper: VirtualClusterUpdateMapper }; -export const sensitivityLabelSource2: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", +export const virtualNetworkRuleName: OperationURLParameter = { + parameterPath: "virtualNetworkRuleName", mapper: { - defaultValue: "recommended", - isConstant: true, - serializedName: "sensitivityLabelSource", + serializedName: "virtualNetworkRuleName", + required: true, type: { name: "String" } } }; -export const count: OperationQueryParameter = { - parameterPath: ["options", "count"], - mapper: { - serializedName: "$count", - type: { - name: "Boolean" - } - } -}; - -export const parameters73: OperationParameter = { +export const parameters104: OperationParameter = { parameterPath: "parameters", - mapper: SensitivityLabelUpdateListMapper + mapper: VirtualNetworkRuleMapper }; -export const includeDisabledRecommendations: OperationQueryParameter = { - parameterPath: ["options", "includeDisabledRecommendations"], +export const workloadGroupName: OperationURLParameter = { + parameterPath: "workloadGroupName", mapper: { - serializedName: "includeDisabledRecommendations", + serializedName: "workloadGroupName", + required: true, type: { - name: "Boolean" + name: "String" } } }; -export const parameters74: OperationParameter = { - parameterPath: "parameters", - mapper: RecommendedSensitivityLabelUpdateListMapper -}; - -export const blobAuditingPolicyName: OperationURLParameter = { - parameterPath: "blobAuditingPolicyName", +export const workloadClassifierName: OperationURLParameter = { + parameterPath: "workloadClassifierName", mapper: { - defaultValue: "default", - isConstant: true, - serializedName: "blobAuditingPolicyName", + serializedName: "workloadClassifierName", + required: true, type: { name: "String" } } }; -export const parameters75: OperationParameter = { - parameterPath: "parameters", - mapper: ServerBlobAuditingPolicyMapper -}; - -export const parameters76: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseBlobAuditingPolicyMapper -}; - -export const parameters77: OperationParameter = { +export const parameters105: OperationParameter = { parameterPath: "parameters", - mapper: ExtendedDatabaseBlobAuditingPolicyMapper + mapper: WorkloadClassifierMapper }; -export const parameters78: OperationParameter = { +export const parameters106: OperationParameter = { parameterPath: "parameters", - mapper: ExtendedServerBlobAuditingPolicyMapper -}; - -export const advancedThreatProtectionName: OperationURLParameter = { - parameterPath: "advancedThreatProtectionName", - mapper: { - serializedName: "advancedThreatProtectionName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters79: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseAdvancedThreatProtectionMapper -}; - -export const parameters80: OperationParameter = { - parameterPath: "parameters", - mapper: ServerAdvancedThreatProtectionMapper -}; - -export const parameters81: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedServerDnsAliasCreationMapper -}; - -export const parameters82: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedServerDnsAliasAcquisitionMapper -}; - -export const baselineName1: OperationURLParameter = { - parameterPath: "baselineName", - mapper: { - serializedName: "baselineName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters83: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper -}; - -export const parameters84: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper -}; - -export const vulnerabilityAssessmentName1: OperationURLParameter = { - parameterPath: "vulnerabilityAssessmentName", - mapper: { - serializedName: "vulnerabilityAssessmentName", - required: true, - type: { - name: "String" - } - } -}; - -export const scanResultId: OperationURLParameter = { - parameterPath: "scanResultId", - mapper: { - serializedName: "scanResultId", - required: true, - type: { - name: "String" - } - } -}; - -export const vulnerabilityAssessmentName2: OperationURLParameter = { - parameterPath: "vulnerabilityAssessmentName", - mapper: { - serializedName: "vulnerabilityAssessmentName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters85: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseAdvancedThreatProtectionMapper -}; - -export const parameters86: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceAdvancedThreatProtectionMapper -}; - -export const linkId: OperationURLParameter = { - parameterPath: "linkId", - mapper: { - serializedName: "linkId", - required: true, - type: { - name: "String" - } - } -}; - -export const systemDatabaseName: OperationQueryParameter = { - parameterPath: "systemDatabaseName", - mapper: { - defaultValue: "master", - isConstant: true, - serializedName: "systemDatabaseName", - type: { - name: "String" - } - } -}; - -export const parameters87: OperationParameter = { - parameterPath: "parameters", - mapper: SqlVulnerabilityAssessmentMapper -}; - -export const apiVersion8: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-05-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const dtcName: OperationURLParameter = { - parameterPath: "dtcName", - mapper: { - serializedName: "dtcName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters88: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceDtcMapper -}; - -export const virtualClusterName: OperationURLParameter = { - parameterPath: "virtualClusterName", - mapper: { - serializedName: "virtualClusterName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters89: OperationParameter = { - parameterPath: "parameters", - mapper: VirtualClusterUpdateMapper -}; - -export const parameters90: OperationParameter = { - parameterPath: "parameters", - mapper: InstanceFailoverGroupMapper -}; - -export const restoreDetailsName: OperationURLParameter = { - parameterPath: "restoreDetailsName", - mapper: { - serializedName: "restoreDetailsName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters91: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseMapper -}; - -export const parameters92: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseUpdateMapper -}; - -export const parameters93: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseMoveDefinitionMapper -}; - -export const parameters94: OperationParameter = { - parameterPath: "parameters", - mapper: CompleteDatabaseRestoreDefinitionMapper -}; - -export const parameters95: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseStartMoveDefinitionMapper -}; - -export const parameters96: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceMapper -}; - -export const parameters97: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceUpdateMapper -}; - -export const numberOfQueries: OperationQueryParameter = { - parameterPath: ["options", "numberOfQueries"], - mapper: { - serializedName: "numberOfQueries", - type: { - name: "Number" - } - } -}; - -export const databases: OperationQueryParameter = { - parameterPath: ["options", "databases"], - mapper: { - serializedName: "databases", - type: { - name: "String" - } - } -}; - -export const aggregationFunction: OperationQueryParameter = { - parameterPath: ["options", "aggregationFunction"], - mapper: { - serializedName: "aggregationFunction", - type: { - name: "String" - } - } -}; - -export const observationMetric: OperationQueryParameter = { - parameterPath: ["options", "observationMetric"], - mapper: { - serializedName: "observationMetric", - type: { - name: "String" - } - } -}; - -export const ledgerDigestUploads1: OperationURLParameter = { - parameterPath: "ledgerDigestUploads", - mapper: { - serializedName: "ledgerDigestUploads", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters98: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedLedgerDigestUploadsMapper -}; - -export const serverConfigurationOptionName: OperationURLParameter = { - parameterPath: "serverConfigurationOptionName", - mapper: { - serializedName: "serverConfigurationOptionName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters99: OperationParameter = { - parameterPath: "parameters", - mapper: ServerConfigurationOptionMapper -}; - -export const parameters100: OperationParameter = { - parameterPath: "parameters", - mapper: CheckNameAvailabilityRequestMapper -}; - -export const parameters101: OperationParameter = { - parameterPath: "parameters", - mapper: ServerMapper -}; - -export const parameters102: OperationParameter = { - parameterPath: "parameters", - mapper: ServerUpdateMapper -}; - -export const parameters103: OperationParameter = { - parameterPath: "parameters", - mapper: ImportNewDatabaseDefinitionMapper -}; - -export const startStopScheduleName: OperationURLParameter = { - parameterPath: "startStopScheduleName", - mapper: { - serializedName: "startStopScheduleName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters104: OperationParameter = { - parameterPath: "parameters", - mapper: StartStopManagedInstanceScheduleMapper -}; - -export const parameters105: OperationParameter = { - parameterPath: "parameters", - mapper: LogicalDatabaseTransparentDataEncryptionMapper + mapper: WorkloadGroupMapper }; diff --git a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts index 1b5a07be75a8..d13c6b8bd258 100644 --- a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts @@ -142,6 +142,26 @@ export class BackupShortTermRetentionPoliciesImpl } } + /** + * Gets a database's short term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: BackupShortTermRetentionPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -392,26 +412,6 @@ export class BackupShortTermRetentionPoliciesImpl return poller.pollUntilDone(); } - /** - * Gets a database's short term retention policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: BackupShortTermRetentionPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -437,6 +437,27 @@ export class BackupShortTermRetentionPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BackupShortTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", @@ -447,14 +468,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName3 + Parameters.subscriptionId, + Parameters.policyName ], headerParameters: [Parameters.accept], serializer @@ -478,17 +499,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters62, - queryParameters: [Parameters.apiVersion5], + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName3 + Parameters.subscriptionId, + Parameters.policyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -511,39 +532,18 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters62, - queryParameters: [Parameters.apiVersion5], + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName3 - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupShortTermRetentionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.policyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -557,10 +557,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/capabilities.ts b/sdk/sql/arm-sql/src/operations/capabilities.ts index fd1dde5eea32..86d6e90f97da 100644 --- a/sdk/sql/arm-sql/src/operations/capabilities.ts +++ b/sdk/sql/arm-sql/src/operations/capabilities.ts @@ -56,7 +56,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.include], + queryParameters: [Parameters.apiVersion, Parameters.include], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts b/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts index a1a6a0aa71e4..518459043c87 100644 --- a/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts @@ -12,11 +12,12 @@ import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { + DataMaskingPolicyName, + DataMaskingPoliciesGetOptionalParams, + DataMaskingPoliciesGetResponse, DataMaskingPolicy, DataMaskingPoliciesCreateOrUpdateOptionalParams, - DataMaskingPoliciesCreateOrUpdateResponse, - DataMaskingPoliciesGetOptionalParams, - DataMaskingPoliciesGetResponse + DataMaskingPoliciesCreateOrUpdateResponse } from "../models"; /** Class containing DataMaskingPolicies operations. */ @@ -32,91 +33,113 @@ export class DataMaskingPoliciesImpl implements DataMaskingPolicies { } /** - * Creates or updates a database data masking policy + * Gets the database data masking policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param parameters Parameters for creating or updating a data masking policy. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, - parameters: DataMaskingPolicy, - options?: DataMaskingPoliciesCreateOrUpdateOptionalParams - ): Promise { + dataMaskingPolicyName: DataMaskingPolicyName, + options?: DataMaskingPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, parameters, options }, - createOrUpdateOperationSpec + { + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + options + }, + getOperationSpec ); } /** - * Gets a database data masking policy. + * Creates or updates a database data masking policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. + * @param parameters Parameters for creating or updating a data masking policy. * @param options The options parameters. */ - get( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, - options?: DataMaskingPoliciesGetOptionalParams - ): Promise { + dataMaskingPolicyName: DataMaskingPolicyName, + parameters: DataMaskingPolicy, + options?: DataMaskingPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - getOperationSpec + { + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + parameters, + options + }, + createOrUpdateOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DataMaskingPolicy - } + }, + default: {} }, - requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.dataMaskingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}", - httpMethod: "GET", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.DataMaskingPolicy - } + }, + 201: { + bodyMapper: Mappers.DataMaskingPolicy + }, + default: {} }, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.dataMaskingPolicyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts b/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts index e2e56ad1fcbc..0c106d89ba41 100644 --- a/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts +++ b/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { DataMaskingRules } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -14,10 +15,13 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { DataMaskingRule, + DataMaskingPolicyName, + DataMaskingRulesListByDatabaseNextOptionalParams, DataMaskingRulesListByDatabaseOptionalParams, DataMaskingRulesListByDatabaseResponse, DataMaskingRulesCreateOrUpdateOptionalParams, - DataMaskingRulesCreateOrUpdateResponse + DataMaskingRulesCreateOrUpdateResponse, + DataMaskingRulesListByDatabaseNextResponse } from "../models"; /// @@ -39,18 +43,21 @@ export class DataMaskingRulesImpl implements DataMaskingRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking rule applies. * @param options The options parameters. */ public listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams ): PagedAsyncIterableIterator { const iter = this.listByDatabasePagingAll( resourceGroupName, serverName, databaseName, + dataMaskingPolicyName, options ); return { @@ -68,6 +75,7 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName, serverName, databaseName, + dataMaskingPolicyName, options, settings ); @@ -79,41 +87,94 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams, - _settings?: PageSettings + settings?: PageSettings ): AsyncIterableIterator { let result: DataMaskingRulesListByDatabaseResponse; - result = await this._listByDatabase( - resourceGroupName, - serverName, - databaseName, - options - ); - yield result.value || []; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDatabase( + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } } private async *listByDatabasePagingAll( resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams ): AsyncIterableIterator { for await (const page of this.listByDatabasePagingPage( resourceGroupName, serverName, databaseName, + dataMaskingPolicyName, options )) { yield* page; } } + /** + * Gets a list of database data masking rules. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking rule applies. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, + options?: DataMaskingRulesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + options + }, + listByDatabaseOperationSpec + ); + } + /** * Creates or updates a database data masking rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. * @param dataMaskingRuleName The name of the data masking rule. * @param parameters The required parameters for creating or updating a data masking rule. * @param options The options parameters. @@ -122,6 +183,7 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams @@ -131,6 +193,7 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName, serverName, databaseName, + dataMaskingPolicyName, dataMaskingRuleName, parameters, options @@ -140,28 +203,61 @@ export class DataMaskingRulesImpl implements DataMaskingRules { } /** - * Gets a list of database data masking rules. + * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking rule applies. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. * @param options The options parameters. */ - private _listByDatabase( + private _listByDatabaseNext( resourceGroupName: string, serverName: string, databaseName: string, - options?: DataMaskingRulesListByDatabaseOptionalParams - ): Promise { + dataMaskingPolicyName: DataMaskingPolicyName, + nextLink: string, + options?: DataMaskingRulesListByDatabaseNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + nextLink, + options + }, + listByDatabaseNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataMaskingRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.dataMaskingPolicyName + ], + headerParameters: [Parameters.accept], + serializer +}; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", @@ -172,39 +268,40 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, 201: { bodyMapper: Mappers.DataMaskingRule - } + }, + default: {} }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.dataMaskingPolicyName, Parameters.dataMaskingRuleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DataMaskingRuleListResult - } + }, + default: {} }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, + Parameters.nextLink, Parameters.dataMaskingPolicyName ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts index 868f7f14e0da..b4a9d8604fdb 100644 --- a/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts +++ b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts @@ -133,50 +133,50 @@ export class DataWarehouseUserActivitiesOperationsImpl } /** - * Gets the user activities of a data warehouse which includes running and suspended queries + * List the user activities of a data warehouse which includes running and suspended queries * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param dataWarehouseUserActivityName The activity name of the data warehouse. * @param options The options parameters. */ - get( + private _listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - dataWarehouseUserActivityName: DataWarehouseUserActivityName, - options?: DataWarehouseUserActivitiesGetOptionalParams - ): Promise { + options?: DataWarehouseUserActivitiesListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - dataWarehouseUserActivityName, - options - }, - getOperationSpec + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec ); } /** - * List the user activities of a data warehouse which includes running and suspended queries + * Gets the user activities of a data warehouse which includes running and suspended queries * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataWarehouseUserActivityName The activity name of the data warehouse. * @param options The options parameters. */ - private _listByDatabase( + get( resourceGroupName: string, serverName: string, databaseName: string, - options?: DataWarehouseUserActivitiesListByDatabaseOptionalParams - ): Promise { + dataWarehouseUserActivityName: DataWarehouseUserActivityName, + options?: DataWarehouseUserActivitiesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { + resourceGroupName, + serverName, + databaseName, + dataWarehouseUserActivityName, + options + }, + getOperationSpec ); } @@ -205,45 +205,45 @@ export class DataWarehouseUserActivitiesOperationsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataWarehouseUserActivities + bodyMapper: Mappers.DataWarehouseUserActivitiesListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.dataWarehouseUserActivityName + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataWarehouseUserActivitiesListResult + bodyMapper: Mappers.DataWarehouseUserActivities }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.dataWarehouseUserActivityName ], headerParameters: [Parameters.accept], serializer @@ -259,10 +259,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts index adb60be66288..d3e510f634cc 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts @@ -250,13 +250,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -271,13 +271,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advancedThreatProtectionName ], headerParameters: [Parameters.accept], @@ -296,17 +296,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters79, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advancedThreatProtectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -321,10 +321,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts b/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts index 97f58aea242b..0860f9bceae1 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts @@ -124,13 +124,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.expand, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -145,13 +145,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName ], headerParameters: [Parameters.accept], @@ -167,17 +167,17 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters11, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts index e0aec387a5be..ed8e54f01273 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts @@ -87,13 +87,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -108,16 +108,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters12, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters9, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts index a1c734062c7b..eab3f28f382e 100644 --- a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts @@ -230,13 +230,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -251,13 +251,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], headerParameters: [Parameters.accept], @@ -276,17 +276,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters76, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -301,10 +301,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseColumns.ts b/sdk/sql/arm-sql/src/operations/databaseColumns.ts index 65fc1842d8a5..84d8ed85226d 100644 --- a/sdk/sql/arm-sql/src/operations/databaseColumns.ts +++ b/sdk/sql/arm-sql/src/operations/databaseColumns.ts @@ -401,7 +401,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion, Parameters.schema, Parameters.table, Parameters.column, @@ -410,10 +410,10 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -428,13 +428,13 @@ const listByTableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName ], @@ -451,13 +451,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName @@ -476,10 +476,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -496,10 +496,10 @@ const listByTableNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.schemaName, Parameters.tableName diff --git a/sdk/sql/arm-sql/src/operations/databaseEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/databaseEncryptionProtectors.ts index c8b1b8da7d57..8e8c4cba2023 100644 --- a/sdk/sql/arm-sql/src/operations/databaseEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/databaseEncryptionProtectors.ts @@ -246,13 +246,13 @@ const revalidateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/encryptionProtector/{encryptionProtectorName}/revalidate", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], serializer @@ -262,13 +262,13 @@ const revertOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/encryptionProtector/{encryptionProtectorName}/revert", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts index 26d5acb9a9f9..c604a569696a 100644 --- a/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts @@ -139,6 +139,26 @@ export class DatabaseExtensionsOperationsImpl } } + /** + * List database extension. This will return an empty list as it is not supported. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseExtensionsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a database extension. This will return resource not found as it is not supported. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -162,7 +182,7 @@ export class DatabaseExtensionsOperationsImpl } /** - * Perform a database extension operation, like polybase import + * Perform a database extension operation, like database import, database export, or polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -247,7 +267,7 @@ export class DatabaseExtensionsOperationsImpl } /** - * Perform a database extension operation, like polybase import + * Perform a database extension operation, like database import, database export, or polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -275,26 +295,6 @@ export class DatabaseExtensionsOperationsImpl return poller.pollUntilDone(); } - /** - * List database extension. This will return an empty list as it is not supported. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabaseExtensionsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -320,18 +320,39 @@ export class DatabaseExtensionsOperationsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ImportExportExtensionsOperationListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}", httpMethod: "GET", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.extensionName ], serializer @@ -355,41 +376,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters63, - queryParameters: [Parameters.apiVersion5], + requestBody: Parameters.parameters10, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.extensionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ImportExportExtensionsOperationListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -401,10 +401,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseOperations.ts b/sdk/sql/arm-sql/src/operations/databaseOperations.ts index 29911abba47c..be610e7db06c 100644 --- a/sdk/sql/arm-sql/src/operations/databaseOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseOperations.ts @@ -130,44 +130,44 @@ export class DatabaseOperationsImpl implements DatabaseOperations { } /** - * Cancels the asynchronous operation on the database. + * Gets a list of operations performed on the database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param operationId The operation identifier. * @param options The options parameters. */ - cancel( + private _listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - operationId: string, - options?: DatabaseOperationsCancelOptionalParams - ): Promise { + options?: DatabaseOperationsListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, operationId, options }, - cancelOperationSpec + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec ); } /** - * Gets a list of operations performed on the database. + * Cancels the asynchronous operation on the database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param operationId The operation identifier. * @param options The options parameters. */ - private _listByDatabase( + cancel( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabaseOperationsListByDatabaseOptionalParams - ): Promise { + operationId: string, + options?: DatabaseOperationsCancelOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, operationId, options }, + cancelOperationSpec ); } @@ -196,22 +196,6 @@ export class DatabaseOperationsImpl implements DatabaseOperations { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations/{operationId}/cancel", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.operationId - ], - serializer -}; const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations", @@ -222,17 +206,33 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; +const cancelOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations/{operationId}/cancel", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.operationId + ], + serializer +}; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -244,10 +244,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts b/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts index ee1a5562868f..7af0c2536f4d 100644 --- a/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts +++ b/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts @@ -141,13 +141,13 @@ const listByDatabaseAdvisorOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName ], headerParameters: [Parameters.accept], @@ -163,13 +163,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName, Parameters.recommendedActionName ], @@ -186,18 +186,18 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters13, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters11, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName, Parameters.recommendedActionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/databaseSchemas.ts b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts index 8089e0aeec4c..03a0a595fe41 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSchemas.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts @@ -207,13 +207,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -228,13 +228,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName ], headerParameters: [Parameters.accept], @@ -251,10 +251,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts index cda02b5ed2cb..95bbe8d0aa5e 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts @@ -134,6 +134,26 @@ export class DatabaseSecurityAlertPoliciesImpl } } + /** + * Gets a list of database's security alert policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a database's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -193,26 +213,6 @@ export class DatabaseSecurityAlertPoliciesImpl ); } - /** - * Gets a list of database's security alert policies. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the security alert policy is defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -238,74 +238,74 @@ export class DatabaseSecurityAlertPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabaseSecurityAlertPolicy + bodyMapper: Mappers.DatabaseSecurityAlertListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.securityAlertPolicyName + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DatabaseSecurityAlertPolicy }, - 201: { - bodyMapper: Mappers.DatabaseSecurityAlertPolicy - }, default: {} }, - requestBody: Parameters.parameters14, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.securityAlertPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DatabaseSecurityAlertListResult + bodyMapper: Mappers.DatabaseSecurityAlertPolicy + }, + 201: { + bodyMapper: Mappers.DatabaseSecurityAlertPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters12, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.securityAlertPolicyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -319,10 +319,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts index 09d01ddbaf96..653ba8906e1f 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts @@ -290,13 +290,13 @@ const listBySqlVulnerabilityAssessmentOperationSpec: coreClient.OperationSpec = }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -312,15 +312,15 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer @@ -335,18 +335,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters83, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters13, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -362,10 +362,10 @@ const listBySqlVulnerabilityAssessmentNextOperationSpec: coreClient.OperationSpe }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts index c88c4fcc558b..6c4013d665fa 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts @@ -143,13 +143,13 @@ const executeOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/initiateScan", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts index 01a4dbdfcb36..348a7705bb06 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts @@ -347,15 +347,15 @@ const listByBaselineOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer @@ -370,16 +370,16 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], headerParameters: [Parameters.accept], serializer @@ -394,19 +394,19 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters84, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -415,16 +415,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules/{ruleId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], serializer }; @@ -440,13 +440,13 @@ const listByBaselineNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts index 0dbff42f30d0..d770a631ea1e 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts @@ -264,15 +264,15 @@ const listByScanOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.scanId, - Parameters.vulnerabilityAssessmentName1 + Parameters.subscriptionId, + Parameters.vulnerabilityAssessmentName1, + Parameters.scanId ], headerParameters: [Parameters.accept], serializer @@ -287,15 +287,15 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.scanId, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName1, + Parameters.scanId, Parameters.scanResultId ], headerParameters: [Parameters.accept], @@ -312,13 +312,13 @@ const listByScanNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.scanId, - Parameters.vulnerabilityAssessmentName1 + Parameters.vulnerabilityAssessmentName1, + Parameters.scanId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts index ae32a69202d0..db659f42801a 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts @@ -249,13 +249,13 @@ const listBySqlVulnerabilityAssessmentsOperationSpec: coreClient.OperationSpec = }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -271,13 +271,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId ], @@ -295,10 +295,10 @@ const listBySqlVulnerabilityAssessmentsNextOperationSpec: coreClient.OperationSp }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts index 30da0834319b..91b462932dd6 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts @@ -219,13 +219,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -240,13 +240,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName2 ], headerParameters: [Parameters.accept], @@ -263,10 +263,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseTables.ts b/sdk/sql/arm-sql/src/operations/databaseTables.ts index cafc9cb32cd6..aae755599b60 100644 --- a/sdk/sql/arm-sql/src/operations/databaseTables.ts +++ b/sdk/sql/arm-sql/src/operations/databaseTables.ts @@ -236,13 +236,13 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName ], headerParameters: [Parameters.accept], @@ -258,13 +258,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName ], @@ -282,10 +282,10 @@ const listBySchemaNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.schemaName ], diff --git a/sdk/sql/arm-sql/src/operations/databaseUsages.ts b/sdk/sql/arm-sql/src/operations/databaseUsages.ts index f08ec262d533..04242714040a 100644 --- a/sdk/sql/arm-sql/src/operations/databaseUsages.ts +++ b/sdk/sql/arm-sql/src/operations/databaseUsages.ts @@ -183,13 +183,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -205,10 +205,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts index e2c61f999170..c629a817a638 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts @@ -161,16 +161,16 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName + Parameters.baselineName1 ], headerParameters: [Parameters.accept], serializer @@ -186,18 +186,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { default: {} }, requestBody: Parameters.parameters15, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName + Parameters.baselineName1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -206,16 +206,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName + Parameters.baselineName1 ], serializer }; diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts index aa6a38eecfd7..ef4062d1f9cb 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts @@ -25,11 +25,11 @@ import { DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams, DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams, DatabaseVulnerabilityAssessmentScansListByDatabaseResponse, - DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, DatabaseVulnerabilityAssessmentScansGetOptionalParams, DatabaseVulnerabilityAssessmentScansGetResponse, DatabaseVulnerabilityAssessmentScansExportOptionalParams, DatabaseVulnerabilityAssessmentScansExportResponse, + DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse } from "../models"; @@ -150,6 +150,96 @@ export class DatabaseVulnerabilityAssessmentScansImpl } } + /** + * Lists the vulnerability assessment scans of a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + }, + listByDatabaseOperationSpec + ); + } + + /** + * Gets a vulnerability assessment scan record of a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: DatabaseVulnerabilityAssessmentScansGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + getOperationSpec + ); + } + + /** + * Convert an existing scan result to a human readable format. If already exists nothing happens + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the scanned database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id. + * @param options The options parameters. + */ + export( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + exportOperationSpec + ); + } + /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -256,96 +346,6 @@ export class DatabaseVulnerabilityAssessmentScansImpl return poller.pollUntilDone(); } - /** - * Lists the vulnerability assessment scans of a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - vulnerabilityAssessmentName, - options - }, - listByDatabaseOperationSpec - ); - } - - /** - * Gets a vulnerability assessment scan record of a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - scanId: string, - options?: DatabaseVulnerabilityAssessmentScansGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - vulnerabilityAssessmentName, - scanId, - options - }, - getOperationSpec - ); - } - - /** - * Convert an existing scan result to a human readable format. If already exists nothing happens - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the scanned database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id. - * @param options The options parameters. - */ - export( - resourceGroupName: string, - serverName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - scanId: string, - options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - vulnerabilityAssessmentName, - scanId, - options - }, - exportOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -380,23 +380,6 @@ export class DatabaseVulnerabilityAssessmentScansImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const initiateScanOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.scanId - ], - serializer -}; const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", @@ -407,13 +390,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -429,13 +412,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId ], @@ -455,19 +438,36 @@ const exportOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId ], headerParameters: [Parameters.accept], serializer }; +const initiateScanOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.vulnerabilityAssessmentName, + Parameters.scanId + ], + serializer +}; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -479,10 +479,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts index 7e3d25662531..85bab17abfc8 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts @@ -136,6 +136,27 @@ export class DatabaseVulnerabilityAssessmentsImpl } } + /** + * Lists the vulnerability assessment policies associated with a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the vulnerability assessment policies are + * defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets the database's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -223,27 +244,6 @@ export class DatabaseVulnerabilityAssessmentsImpl ); } - /** - * Lists the vulnerability assessment policies associated with a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the vulnerability assessment policies are - * defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -270,6 +270,27 @@ export class DatabaseVulnerabilityAssessmentsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", @@ -280,13 +301,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -306,16 +327,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { default: {} }, requestBody: Parameters.parameters16, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -324,36 +345,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.vulnerabilityAssessmentName - ], - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.accept], serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -367,10 +367,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databases.ts b/sdk/sql/arm-sql/src/operations/databases.ts index a4964281765f..21969882ee6a 100644 --- a/sdk/sql/arm-sql/src/operations/databases.ts +++ b/sdk/sql/arm-sql/src/operations/databases.ts @@ -20,12 +20,6 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { - Metric, - DatabasesListMetricsOptionalParams, - DatabasesListMetricsResponse, - MetricDefinition, - DatabasesListMetricDefinitionsOptionalParams, - DatabasesListMetricDefinitionsResponse, Database, DatabasesListByServerNextOptionalParams, DatabasesListByServerOptionalParams, @@ -76,164 +70,6 @@ export class DatabasesImpl implements Databases { this.client = client; } - /** - * Returns database metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - public listMetrics( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listMetricsPagingAll( - resourceGroupName, - serverName, - databaseName, - filter, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listMetricsPagingPage( - resourceGroupName, - serverName, - databaseName, - filter, - options, - settings - ); - } - }; - } - - private async *listMetricsPagingPage( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: DatabasesListMetricsResponse; - result = await this._listMetrics( - resourceGroupName, - serverName, - databaseName, - filter, - options - ); - yield result.value || []; - } - - private async *listMetricsPagingAll( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listMetricsPagingPage( - resourceGroupName, - serverName, - databaseName, - filter, - options - )) { - yield* page; - } - } - - /** - * Returns database metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - public listMetricDefinitions( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listMetricDefinitionsPagingAll( - resourceGroupName, - serverName, - databaseName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listMetricDefinitionsPagingPage( - resourceGroupName, - serverName, - databaseName, - options, - settings - ); - } - }; - } - - private async *listMetricDefinitionsPagingPage( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: DatabasesListMetricDefinitionsResponse; - result = await this._listMetricDefinitions( - resourceGroupName, - serverName, - databaseName, - options - ); - yield result.value || []; - } - - private async *listMetricDefinitionsPagingAll( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listMetricDefinitionsPagingPage( - resourceGroupName, - serverName, - databaseName, - options - )) { - yield* page; - } - } - /** * Gets a list of databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -494,48 +330,6 @@ export class DatabasesImpl implements Databases { } } - /** - * Returns database metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - private _listMetrics( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, filter, options }, - listMetricsOperationSpec - ); - } - - /** - * Returns database metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listMetricDefinitions( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listMetricDefinitionsOperationSpec - ); - } - /** * Gets a list of databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -1596,46 +1390,6 @@ export class DatabasesImpl implements Databases { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listMetricsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/metrics", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetricListResult - } - }, - queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listMetricDefinitionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/metricDefinitions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetricDefinitionListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases", @@ -1646,12 +1400,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.skipToken, Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1667,16 +1421,16 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion, Parameters.expand, - Parameters.filter1 + Parameters.filter ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1700,16 +1454,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters3, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1718,13 +1472,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], serializer }; @@ -1747,16 +1501,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters4, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters18, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1779,16 +1533,16 @@ const exportOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters5, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters19, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1797,13 +1551,13 @@ const failoverOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.replicaType], + queryParameters: [Parameters.apiVersion, Parameters.replicaType], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], serializer }; @@ -1826,16 +1580,16 @@ const importOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1844,14 +1598,14 @@ const renameOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move", httpMethod: "POST", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters7, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", @@ -1876,13 +1630,13 @@ const pauseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1906,13 +1660,13 @@ const resumeOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1922,13 +1676,13 @@ const upgradeDataWarehouseOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], serializer }; @@ -1942,12 +1696,12 @@ const listByElasticPoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], headerParameters: [Parameters.accept], @@ -1963,12 +1717,12 @@ const listInaccessibleByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1984,9 +1738,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -2003,11 +1757,11 @@ const listByElasticPoolNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.elasticPoolName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.elasticPoolName ], headerParameters: [Parameters.accept], serializer @@ -2023,9 +1777,9 @@ const listInaccessibleByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/deletedServers.ts b/sdk/sql/arm-sql/src/operations/deletedServers.ts index 94fad79d6c71..2dad85dfb2a7 100644 --- a/sdk/sql/arm-sql/src/operations/deletedServers.ts +++ b/sdk/sql/arm-sql/src/operations/deletedServers.ts @@ -178,34 +178,34 @@ export class DeletedServersImpl implements DeletedServers { } /** - * Gets a deleted server. + * Gets a list of deleted servers for a location. * @param locationName The name of the region where the resource is located. - * @param deletedServerName The name of the deleted server. * @param options The options parameters. */ - get( + private _listByLocation( locationName: string, - deletedServerName: string, - options?: DeletedServersGetOptionalParams - ): Promise { + options?: DeletedServersListByLocationOptionalParams + ): Promise { return this.client.sendOperationRequest( - { locationName, deletedServerName, options }, - getOperationSpec + { locationName, options }, + listByLocationOperationSpec ); } /** - * Gets a list of deleted servers for a location. + * Gets a deleted server. * @param locationName The name of the region where the resource is located. + * @param deletedServerName The name of the deleted server. * @param options The options parameters. */ - private _listByLocation( + get( locationName: string, - options?: DeletedServersListByLocationOptionalParams - ): Promise { + deletedServerName: string, + options?: DeletedServersGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec + { locationName, deletedServerName, options }, + getOperationSpec ); } @@ -344,46 +344,46 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const listByLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServer + bodyMapper: Mappers.DeletedServerListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName, - Parameters.deletedServerName + Parameters.locationName ], headerParameters: [Parameters.accept], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServerListResult + bodyMapper: Mappers.DeletedServer }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, + Parameters.deletedServerName ], headerParameters: [Parameters.accept], serializer @@ -407,7 +407,7 @@ const recoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts b/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts index d35fb658b978..9ad9ef8b5d72 100644 --- a/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts +++ b/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts @@ -26,11 +26,15 @@ import { DistributedAvailabilityGroupsListByInstanceResponse, DistributedAvailabilityGroupsGetOptionalParams, DistributedAvailabilityGroupsGetResponse, + DistributedAvailabilityGroupsCreateOrUpdateRequestBody, DistributedAvailabilityGroupsCreateOrUpdateOptionalParams, DistributedAvailabilityGroupsCreateOrUpdateResponse, DistributedAvailabilityGroupsDeleteOptionalParams, DistributedAvailabilityGroupsUpdateOptionalParams, DistributedAvailabilityGroupsUpdateResponse, + DistributedAvailabilityGroupSetRole, + DistributedAvailabilityGroupsSetRoleOptionalParams, + DistributedAvailabilityGroupsSetRoleResponse, DistributedAvailabilityGroupsListByInstanceNextResponse } from "../models"; @@ -189,7 +193,7 @@ export class DistributedAvailabilityGroupsImpl resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, - parameters: DistributedAvailabilityGroup, + parameters: DistributedAvailabilityGroupsCreateOrUpdateRequestBody, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< @@ -271,7 +275,7 @@ export class DistributedAvailabilityGroupsImpl resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, - parameters: DistributedAvailabilityGroup, + parameters: DistributedAvailabilityGroupsCreateOrUpdateRequestBody, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams ): Promise { const poller = await this.beginCreateOrUpdate( @@ -486,6 +490,115 @@ export class DistributedAvailabilityGroupsImpl return poller.pollUntilDone(); } + /** + * Sets the role for managed instance in a distributed availability group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group set role request parameters. + * @param options The options parameters. + */ + async beginSetRole( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroupSetRole, + options?: DistributedAvailabilityGroupsSetRoleOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DistributedAvailabilityGroupsSetRoleResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + }, + spec: setRoleOperationSpec + }); + const poller = await createHttpPoller< + DistributedAvailabilityGroupsSetRoleResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Sets the role for managed instance in a distributed availability group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group set role request parameters. + * @param options The options parameters. + */ + async beginSetRoleAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroupSetRole, + options?: DistributedAvailabilityGroupsSetRoleOptionalParams + ): Promise { + const poller = await this.beginSetRole( + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** * ListByInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -519,11 +632,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -539,11 +652,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], @@ -569,16 +682,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters69, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -587,11 +700,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], @@ -616,16 +729,48 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters69, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters23, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.distributedAvailabilityGroupName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const setRoleOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}/setRole", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 201: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 202: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 204: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + default: {} + }, + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -640,8 +785,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts b/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts deleted file mode 100644 index 2f5362f3f0f2..000000000000 --- a/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { ElasticPoolActivities } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClient } from "../sqlManagementClient"; -import { - ElasticPoolActivity, - ElasticPoolActivitiesListByElasticPoolOptionalParams, - ElasticPoolActivitiesListByElasticPoolResponse -} from "../models"; - -/// -/** Class containing ElasticPoolActivities operations. */ -export class ElasticPoolActivitiesImpl implements ElasticPoolActivities { - private readonly client: SqlManagementClient; - - /** - * Initialize a new instance of the class ElasticPoolActivities class. - * @param client Reference to the service client - */ - constructor(client: SqlManagementClient) { - this.client = client; - } - - /** - * Returns elastic pool activities. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool for which to get the current activity. - * @param options The options parameters. - */ - public listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByElasticPoolPagingAll( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByElasticPoolPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options, - settings - ); - } - }; - } - - private async *listByElasticPoolPagingPage( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ElasticPoolActivitiesListByElasticPoolResponse; - result = await this._listByElasticPool( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - yield result.value || []; - } - - private async *listByElasticPoolPagingAll( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByElasticPoolPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options - )) { - yield* page; - } - } - - /** - * Returns elastic pool activities. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool for which to get the current activity. - * @param options The options parameters. - */ - private _listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listByElasticPoolOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByElasticPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolActivity", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolActivityListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts b/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts deleted file mode 100644 index 2601e5cf7795..000000000000 --- a/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { ElasticPoolDatabaseActivities } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClient } from "../sqlManagementClient"; -import { - ElasticPoolDatabaseActivity, - ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams, - ElasticPoolDatabaseActivitiesListByElasticPoolResponse -} from "../models"; - -/// -/** Class containing ElasticPoolDatabaseActivities operations. */ -export class ElasticPoolDatabaseActivitiesImpl - implements ElasticPoolDatabaseActivities { - private readonly client: SqlManagementClient; - - /** - * Initialize a new instance of the class ElasticPoolDatabaseActivities class. - * @param client Reference to the service client - */ - constructor(client: SqlManagementClient) { - this.client = client; - } - - /** - * Returns activity on databases inside of an elastic pool. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - public listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByElasticPoolPagingAll( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByElasticPoolPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options, - settings - ); - } - }; - } - - private async *listByElasticPoolPagingPage( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ElasticPoolDatabaseActivitiesListByElasticPoolResponse; - result = await this._listByElasticPool( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - yield result.value || []; - } - - private async *listByElasticPoolPagingAll( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByElasticPoolPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options - )) { - yield* page; - } - } - - /** - * Returns activity on databases inside of an elastic pool. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - private _listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listByElasticPoolOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByElasticPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolDatabaseActivity", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolDatabaseActivityListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts index 4f6b0d8c0369..3da77036d56f 100644 --- a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts +++ b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts @@ -130,44 +130,44 @@ export class ElasticPoolOperationsImpl implements ElasticPoolOperations { } /** - * Cancels the asynchronous operation on the elastic pool. + * Gets a list of operations performed on the elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName - * @param operationId The operation identifier. * @param options The options parameters. */ - cancel( + private _listByElasticPool( resourceGroupName: string, serverName: string, elasticPoolName: string, - operationId: string, - options?: ElasticPoolOperationsCancelOptionalParams - ): Promise { + options?: ElasticPoolOperationsListByElasticPoolOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, operationId, options }, - cancelOperationSpec + { resourceGroupName, serverName, elasticPoolName, options }, + listByElasticPoolOperationSpec ); } /** - * Gets a list of operations performed on the elastic pool. + * Cancels the asynchronous operation on the elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName + * @param operationId The operation identifier. * @param options The options parameters. */ - private _listByElasticPool( + cancel( resourceGroupName: string, serverName: string, elasticPoolName: string, - options?: ElasticPoolOperationsListByElasticPoolOptionalParams - ): Promise { + operationId: string, + options?: ElasticPoolOperationsCancelOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listByElasticPoolOperationSpec + { resourceGroupName, serverName, elasticPoolName, operationId, options }, + cancelOperationSpec ); } @@ -196,22 +196,6 @@ export class ElasticPoolOperationsImpl implements ElasticPoolOperations { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations/{operationId}/cancel", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName, - Parameters.operationId - ], - serializer -}; const listByElasticPoolOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations", @@ -222,17 +206,33 @@ const listByElasticPoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], headerParameters: [Parameters.accept], serializer }; +const cancelOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations/{operationId}/cancel", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.operationId, + Parameters.elasticPoolName + ], + serializer +}; const listByElasticPoolNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -244,11 +244,11 @@ const listByElasticPoolNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.elasticPoolName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.elasticPoolName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/elasticPools.ts b/sdk/sql/arm-sql/src/operations/elasticPools.ts index 0f233ee3c798..4208b79dea44 100644 --- a/sdk/sql/arm-sql/src/operations/elasticPools.ts +++ b/sdk/sql/arm-sql/src/operations/elasticPools.ts @@ -20,12 +20,6 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { - Metric, - ElasticPoolsListMetricsOptionalParams, - ElasticPoolsListMetricsResponse, - MetricDefinition, - ElasticPoolsListMetricDefinitionsOptionalParams, - ElasticPoolsListMetricDefinitionsResponse, ElasticPool, ElasticPoolsListByServerNextOptionalParams, ElasticPoolsListByServerOptionalParams, @@ -55,164 +49,6 @@ export class ElasticPoolsImpl implements ElasticPools { this.client = client; } - /** - * Returns elastic pool metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - public listMetrics( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listMetricsPagingAll( - resourceGroupName, - serverName, - elasticPoolName, - filter, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listMetricsPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - filter, - options, - settings - ); - } - }; - } - - private async *listMetricsPagingPage( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ElasticPoolsListMetricsResponse; - result = await this._listMetrics( - resourceGroupName, - serverName, - elasticPoolName, - filter, - options - ); - yield result.value || []; - } - - private async *listMetricsPagingAll( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listMetricsPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - filter, - options - )) { - yield* page; - } - } - - /** - * Returns elastic pool metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - public listMetricDefinitions( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listMetricDefinitionsPagingAll( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listMetricDefinitionsPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options, - settings - ); - } - }; - } - - private async *listMetricDefinitionsPagingPage( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ElasticPoolsListMetricDefinitionsResponse; - result = await this._listMetricDefinitions( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - yield result.value || []; - } - - private async *listMetricDefinitionsPagingAll( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listMetricDefinitionsPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options - )) { - yield* page; - } - } - /** * Gets all elastic pools in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -294,48 +130,6 @@ export class ElasticPoolsImpl implements ElasticPools { } } - /** - * Returns elastic pool metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - private _listMetrics( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, filter, options }, - listMetricsOperationSpec - ); - } - - /** - * Returns elastic pool metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - private _listMetricDefinitions( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listMetricDefinitionsOperationSpec - ); - } - /** * Gets all elastic pools in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -450,7 +244,8 @@ export class ElasticPoolsImpl implements ElasticPools { OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -542,7 +337,8 @@ export class ElasticPoolsImpl implements ElasticPools { }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -647,7 +443,8 @@ export class ElasticPoolsImpl implements ElasticPools { OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -791,46 +588,6 @@ export class ElasticPoolsImpl implements ElasticPools { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listMetricsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metrics", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetricListResult - } - }, - queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listMetricDefinitionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metricDefinitions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetricDefinitionListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools", @@ -841,12 +598,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.skip, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -861,12 +618,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], headerParameters: [Parameters.accept], @@ -891,16 +648,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters8, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters25, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -909,12 +666,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], serializer @@ -938,16 +695,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters9, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters26, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -956,12 +713,12 @@ const failoverOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/failover", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], serializer @@ -977,9 +734,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts index 922035eec174..eb90e305e2d8 100644 --- a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts @@ -395,12 +395,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -415,12 +415,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], headerParameters: [Parameters.accept], @@ -445,16 +445,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters17, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters27, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -463,12 +463,12 @@ const revalidateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}/revalidate", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], serializer @@ -484,9 +484,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/endpointCertificates.ts b/sdk/sql/arm-sql/src/operations/endpointCertificates.ts index 73ab43fbaccc..c0aaf8145289 100644 --- a/sdk/sql/arm-sql/src/operations/endpointCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/endpointCertificates.ts @@ -192,11 +192,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -212,11 +212,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.endpointType ], @@ -234,8 +234,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts index d5174e078181..51e241f71377 100644 --- a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts @@ -230,13 +230,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -251,13 +251,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], headerParameters: [Parameters.accept], @@ -276,17 +276,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters77, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -301,10 +301,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts index a4d65fdb0d5e..3c0bc87773c6 100644 --- a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts @@ -292,12 +292,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -312,12 +312,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], headerParameters: [Parameters.accept], @@ -342,16 +342,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters78, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -366,9 +366,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/failoverGroups.ts b/sdk/sql/arm-sql/src/operations/failoverGroups.ts index 977fa86d19d9..0f35a8b4b7a7 100644 --- a/sdk/sql/arm-sql/src/operations/failoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/failoverGroups.ts @@ -36,6 +36,8 @@ import { FailoverGroupsFailoverResponse, FailoverGroupsForceFailoverAllowDataLossOptionalParams, FailoverGroupsForceFailoverAllowDataLossResponse, + FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams, + FailoverGroupsTryPlannedBeforeForcedFailoverResponse, FailoverGroupsListByServerNextResponse } from "../models"; @@ -133,6 +135,24 @@ export class FailoverGroupsImpl implements FailoverGroups { } } + /** + * 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 options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: FailoverGroupsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -458,24 +478,6 @@ export class FailoverGroupsImpl implements FailoverGroups { return poller.pollUntilDone(); } - /** - * 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 options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: FailoverGroupsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * 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 @@ -670,6 +672,106 @@ export class FailoverGroupsImpl implements FailoverGroups { return poller.pollUntilDone(); } + /** + * Fails over from the current primary server to this server. This operation tries planned before + * forced failover but might still 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 failoverGroupName The name of the failover group. + * @param options The options parameters. + */ + async beginTryPlannedBeforeForcedFailover( + resourceGroupName: string, + serverName: string, + failoverGroupName: string, + options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FailoverGroupsTryPlannedBeforeForcedFailoverResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serverName, failoverGroupName, options }, + spec: tryPlannedBeforeForcedFailoverOperationSpec + }); + const poller = await createHttpPoller< + FailoverGroupsTryPlannedBeforeForcedFailoverResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Fails over from the current primary server to this server. This operation tries planned before + * forced failover but might still 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 failoverGroupName The name of the failover group. + * @param options The options parameters. + */ + async beginTryPlannedBeforeForcedFailoverAndWait( + resourceGroupName: string, + serverName: string, + failoverGroupName: string, + options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + ): Promise { + const poller = await this.beginTryPlannedBeforeForcedFailover( + resourceGroupName, + serverName, + failoverGroupName, + options + ); + return poller.pollUntilDone(); + } + /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -693,6 +795,26 @@ export class FailoverGroupsImpl implements FailoverGroups { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FailoverGroupListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", @@ -703,12 +825,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], headerParameters: [Parameters.accept], @@ -733,16 +855,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters18, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters28, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -751,12 +873,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], serializer @@ -780,42 +902,52 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters19, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters29, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { +const failoverOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/failover", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.FailoverGroupListResult + bodyMapper: Mappers.FailoverGroup + }, + 201: { + bodyMapper: Mappers.FailoverGroup + }, + 202: { + bodyMapper: Mappers.FailoverGroup + }, + 204: { + bodyMapper: Mappers.FailoverGroup }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId, + Parameters.failoverGroupName ], headerParameters: [Parameters.accept], serializer }; -const failoverOperationSpec: coreClient.OperationSpec = { +const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/failover", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/forceFailoverAllowDataLoss", httpMethod: "POST", responses: { 200: { @@ -832,20 +964,20 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], headerParameters: [Parameters.accept], serializer }; -const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { +const tryPlannedBeforeForcedFailoverOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/forceFailoverAllowDataLoss", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/tryPlannedBeforeForcedFailover", httpMethod: "POST", responses: { 200: { @@ -862,12 +994,12 @@ const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], headerParameters: [Parameters.accept], @@ -884,9 +1016,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/firewallRules.ts b/sdk/sql/arm-sql/src/operations/firewallRules.ts index 834d1dd674bf..c95cab680b0b 100644 --- a/sdk/sql/arm-sql/src/operations/firewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/firewallRules.ts @@ -18,14 +18,14 @@ import { FirewallRulesListByServerNextOptionalParams, FirewallRulesListByServerOptionalParams, FirewallRulesListByServerResponse, + FirewallRuleList, + FirewallRulesReplaceOptionalParams, + FirewallRulesReplaceResponse, FirewallRulesGetOptionalParams, FirewallRulesGetResponse, FirewallRulesCreateOrUpdateOptionalParams, FirewallRulesCreateOrUpdateResponse, FirewallRulesDeleteOptionalParams, - FirewallRuleList, - FirewallRulesReplaceOptionalParams, - FirewallRulesReplaceResponse, FirewallRulesListByServerNextResponse } from "../models"; @@ -124,102 +124,102 @@ export class FirewallRulesImpl implements FirewallRules { } /** - * Gets a firewall rule. + * Gets a list of firewall rules. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ - get( + private _listByServer( resourceGroupName: string, serverName: string, - firewallRuleName: string, - options?: FirewallRulesGetOptionalParams - ): Promise { + options?: FirewallRulesListByServerOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, firewallRuleName, options }, - getOperationSpec + { resourceGroupName, serverName, options }, + listByServerOperationSpec ); } /** - * Creates or updates a firewall rule. + * Replaces all firewall rules on the server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param firewallRuleName The name of the firewall rule. - * @param parameters The required parameters for creating or updating a firewall rule. + * @param parameters A list of server firewall rules. * @param options The options parameters. */ - createOrUpdate( + replace( resourceGroupName: string, serverName: string, - firewallRuleName: string, - parameters: FirewallRule, - options?: FirewallRulesCreateOrUpdateOptionalParams - ): Promise { + parameters: FirewallRuleList, + options?: FirewallRulesReplaceOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, firewallRuleName, parameters, options }, - createOrUpdateOperationSpec + { resourceGroupName, serverName, parameters, options }, + replaceOperationSpec ); } /** - * Deletes a firewall rule. + * Gets a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ - delete( + get( resourceGroupName: string, serverName: string, firewallRuleName: string, - options?: FirewallRulesDeleteOptionalParams - ): Promise { + options?: FirewallRulesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, firewallRuleName, options }, - deleteOperationSpec + getOperationSpec ); } /** - * Gets a list of firewall rules. + * Creates or updates a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param parameters The required parameters for creating or updating a firewall rule. * @param options The options parameters. */ - private _listByServer( + createOrUpdate( resourceGroupName: string, serverName: string, - options?: FirewallRulesListByServerOptionalParams - ): Promise { + firewallRuleName: string, + parameters: FirewallRule, + options?: FirewallRulesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec + { resourceGroupName, serverName, firewallRuleName, parameters, options }, + createOrUpdateOperationSpec ); } /** - * Replaces all firewall rules on the server. + * Deletes a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param parameters A list of server firewall rules. + * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ - replace( + delete( resourceGroupName: string, serverName: string, - parameters: FirewallRuleList, - options?: FirewallRulesReplaceOptionalParams - ): Promise { + firewallRuleName: string, + options?: FirewallRulesDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, parameters, options }, - replaceOperationSpec + { resourceGroupName, serverName, firewallRuleName, options }, + deleteOperationSpec ); } @@ -246,111 +246,111 @@ export class FirewallRulesImpl implements FirewallRules { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.FirewallRule + bodyMapper: Mappers.FirewallRuleListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.firewallRuleName + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const replaceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.FirewallRule }, - 201: { - bodyMapper: Mappers.FirewallRule - }, + 202: {}, default: {} }, - requestBody: Parameters.parameters20, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters30, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.firewallRuleName + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const deleteOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", - httpMethod: "DELETE", - responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.firewallRuleName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.FirewallRuleListResult + bodyMapper: Mappers.FirewallRule }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId, + Parameters.firewallRuleName ], headerParameters: [Parameters.accept], serializer }; -const replaceOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.FirewallRule }, - 202: {}, + 201: { + bodyMapper: Mappers.FirewallRule + }, default: {} }, - requestBody: Parameters.parameters21, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters31, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId, + Parameters.firewallRuleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.firewallRuleName + ], + serializer +}; const listByServerNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -362,9 +362,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts b/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts index 125dd16ba8a4..c86ef37c52d3 100644 --- a/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { GeoBackupPolicies } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -14,13 +15,15 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { GeoBackupPolicy, - GeoBackupPoliciesListByDatabaseOptionalParams, - GeoBackupPoliciesListByDatabaseResponse, + GeoBackupPoliciesListNextOptionalParams, + GeoBackupPoliciesListOptionalParams, + GeoBackupPoliciesListResponse, GeoBackupPolicyName, + GeoBackupPoliciesGetOptionalParams, + GeoBackupPoliciesGetResponse, GeoBackupPoliciesCreateOrUpdateOptionalParams, GeoBackupPoliciesCreateOrUpdateResponse, - GeoBackupPoliciesGetOptionalParams, - GeoBackupPoliciesGetResponse + GeoBackupPoliciesListNextResponse } from "../models"; /// @@ -37,20 +40,20 @@ export class GeoBackupPoliciesImpl implements GeoBackupPolicies { } /** - * Returns a list of geo backup policies. + * Gets a list of Geo backup policies for the given database resource. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ - public listByDatabase( + public list( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams + options?: GeoBackupPoliciesListOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByDatabasePagingAll( + const iter = this.listPagingAll( resourceGroupName, serverName, databaseName, @@ -67,7 +70,7 @@ export class GeoBackupPoliciesImpl implements GeoBackupPolicies { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByDatabasePagingPage( + return this.listPagingPage( resourceGroupName, serverName, databaseName, @@ -78,30 +81,49 @@ export class GeoBackupPoliciesImpl implements GeoBackupPolicies { }; } - private async *listByDatabasePagingPage( + private async *listPagingPage( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams, - _settings?: PageSettings + options?: GeoBackupPoliciesListOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result: GeoBackupPoliciesListByDatabaseResponse; - result = await this._listByDatabase( - resourceGroupName, - serverName, - databaseName, - options - ); - yield result.value || []; + let result: GeoBackupPoliciesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serverName, + databaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serverName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } } - private async *listByDatabasePagingAll( + private async *listPagingAll( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams + options?: GeoBackupPoliciesListOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByDatabasePagingPage( + for await (const page of this.listPagingPage( resourceGroupName, serverName, databaseName, @@ -112,111 +134,128 @@ export class GeoBackupPoliciesImpl implements GeoBackupPolicies { } /** - * Updates a database geo backup policy. + * Gets a list of Geo backup policies for the given database resource. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param geoBackupPolicyName The name of the geo backup policy. - * @param parameters The required parameters for creating or updating the geo backup policy. * @param options The options parameters. */ - createOrUpdate( + private _list( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: GeoBackupPoliciesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listOperationSpec + ); + } + + /** + * Gets a Geo backup policy for the given database resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param geoBackupPolicyName The name of the Geo backup policy. This should always be 'Default'. + * @param options The options parameters. + */ + get( resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, - parameters: GeoBackupPolicy, - options?: GeoBackupPoliciesCreateOrUpdateOptionalParams - ): Promise { + options?: GeoBackupPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, geoBackupPolicyName, - parameters, options }, - createOrUpdateOperationSpec + getOperationSpec ); } /** - * Gets a geo backup policy. + * Create or update a database default Geo backup policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param geoBackupPolicyName The name of the geo backup policy. + * @param geoBackupPolicyName The name of the Geo backup policy. This should always be 'Default'. + * @param parameters The required parameters for creating or updating the geo backup policy. * @param options The options parameters. */ - get( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, - options?: GeoBackupPoliciesGetOptionalParams - ): Promise { + parameters: GeoBackupPolicy, + options?: GeoBackupPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, geoBackupPolicyName, + parameters, options }, - getOperationSpec + createOrUpdateOperationSpec ); } /** - * Returns a list of geo backup policies. + * ListNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ - private _listByDatabase( + private _listNext( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams - ): Promise { + nextLink: string, + options?: GeoBackupPoliciesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, nextLink, options }, + listNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies/{geoBackupPolicyName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GeoBackupPolicy + bodyMapper: Mappers.GeoBackupPolicyListResult }, - 201: { - bodyMapper: Mappers.GeoBackupPolicy - } + default: {} }, - requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.geoBackupPolicyName + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { @@ -226,36 +265,64 @@ const getOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.GeoBackupPolicy - } + }, + default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.geoBackupPolicyName ], headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies/{geoBackupPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GeoBackupPolicyListResult - } + bodyMapper: Mappers.GeoBackupPolicy + }, + 201: { + bodyMapper: Mappers.GeoBackupPolicy + }, + default: {} }, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, Parameters.subscriptionId, + Parameters.geoBackupPolicyName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GeoBackupPolicyListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts b/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts index db272af7ed9d..9bc3504cf78f 100644 --- a/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts @@ -233,12 +233,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -253,12 +253,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.firewallRuleName ], headerParameters: [Parameters.accept], @@ -277,16 +277,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters71, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.firewallRuleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -295,12 +295,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.firewallRuleName ], serializer @@ -316,9 +316,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/index.ts b/sdk/sql/arm-sql/src/operations/index.ts index c5f2c323d80d..c10041cb37aa 100644 --- a/sdk/sql/arm-sql/src/operations/index.ts +++ b/sdk/sql/arm-sql/src/operations/index.ts @@ -6,59 +6,85 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./backupShortTermRetentionPolicies"; +export * from "./serverBlobAuditingPolicies"; +export * from "./databaseBlobAuditingPolicies"; +export * from "./extendedDatabaseBlobAuditingPolicies"; +export * from "./extendedServerBlobAuditingPolicies"; export * from "./dataMaskingPolicies"; export * from "./dataMaskingRules"; -export * from "./geoBackupPolicies"; -export * from "./databases"; -export * from "./elasticPools"; -export * from "./serverCommunicationLinks"; -export * from "./serviceObjectives"; -export * from "./elasticPoolActivities"; -export * from "./elasticPoolDatabaseActivities"; -export * from "./serverUsages"; +export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseAdvancedThreatProtectionSettings"; export * from "./databaseAdvisors"; export * from "./databaseAutomaticTuningOperations"; export * from "./databaseColumns"; +export * from "./databaseEncryptionProtectors"; +export * from "./databaseExtensionsOperations"; +export * from "./databaseOperations"; export * from "./databaseRecommendedActions"; export * from "./databaseSchemas"; export * from "./databaseSecurityAlertPolicies"; +export * from "./databaseSqlVulnerabilityAssessmentBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; +export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentScanResult"; +export * from "./databaseSqlVulnerabilityAssessmentScans"; +export * from "./databaseSqlVulnerabilityAssessmentsSettings"; export * from "./databaseTables"; +export * from "./databaseUsages"; export * from "./databaseVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseVulnerabilityAssessments"; export * from "./databaseVulnerabilityAssessmentScans"; -export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseVulnerabilityAssessments"; +export * from "./databases"; export * from "./deletedServers"; +export * from "./distributedAvailabilityGroups"; export * from "./elasticPoolOperations"; +export * from "./elasticPools"; export * from "./encryptionProtectors"; +export * from "./endpointCertificates"; export * from "./failoverGroups"; export * from "./firewallRules"; +export * from "./geoBackupPolicies"; +export * from "./iPv6FirewallRules"; +export * from "./instanceFailoverGroups"; export * from "./instancePools"; export * from "./jobAgents"; export * from "./jobCredentials"; export * from "./jobExecutions"; -export * from "./jobs"; export * from "./jobStepExecutions"; export * from "./jobSteps"; export * from "./jobTargetExecutions"; export * from "./jobTargetGroups"; export * from "./jobVersions"; +export * from "./jobs"; +export * from "./ledgerDigestUploadsOperations"; export * from "./capabilities"; +export * from "./longTermRetentionBackups"; +export * from "./longTermRetentionManagedInstanceBackups"; export * from "./longTermRetentionPolicies"; export * from "./maintenanceWindowOptionsOperations"; export * from "./maintenanceWindowsOperations"; export * from "./managedBackupShortTermRetentionPolicies"; +export * from "./managedDatabaseAdvancedThreatProtectionSettings"; export * from "./managedDatabaseColumns"; +export * from "./managedDatabaseMoveOperations"; export * from "./managedDatabaseQueries"; +export * from "./managedDatabaseRestoreDetails"; export * from "./managedDatabaseSchemas"; export * from "./managedDatabaseSecurityAlertPolicies"; export * from "./managedDatabaseSecurityEvents"; +export * from "./managedDatabaseSensitivityLabels"; +export * from "./managedDatabaseRecommendedSensitivityLabels"; export * from "./managedDatabaseTables"; export * from "./managedDatabaseTransparentDataEncryption"; export * from "./managedDatabaseVulnerabilityAssessmentRuleBaselines"; -export * from "./managedDatabaseVulnerabilityAssessments"; export * from "./managedDatabaseVulnerabilityAssessmentScans"; +export * from "./managedDatabaseVulnerabilityAssessments"; +export * from "./managedDatabases"; export * from "./managedInstanceAdministrators"; +export * from "./managedInstanceAdvancedThreatProtectionSettings"; export * from "./managedInstanceAzureADOnlyAuthentications"; +export * from "./managedInstanceDtcs"; export * from "./managedInstanceEncryptionProtectors"; export * from "./managedInstanceKeys"; export * from "./managedInstanceLongTermRetentionPolicies"; @@ -67,69 +93,42 @@ export * from "./managedInstancePrivateEndpointConnections"; export * from "./managedInstancePrivateLinkResources"; export * from "./managedInstanceTdeCertificates"; export * from "./managedInstanceVulnerabilityAssessments"; +export * from "./managedInstances"; +export * from "./managedLedgerDigestUploadsOperations"; export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; +export * from "./managedServerDnsAliases"; export * from "./managedServerSecurityAlertPolicies"; +export * from "./networkSecurityPerimeterConfigurations"; export * from "./operations"; +export * from "./outboundFirewallRules"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./recoverableDatabases"; export * from "./recoverableManagedDatabases"; +export * from "./replicationLinks"; +export * from "./restorableDroppedDatabases"; +export * from "./restorableDroppedManagedDatabases"; export * from "./restorePoints"; +export * from "./sensitivityLabels"; +export * from "./recommendedSensitivityLabels"; +export * from "./serverAdvancedThreatProtectionSettings"; export * from "./serverAdvisors"; export * from "./serverAutomaticTuningOperations"; export * from "./serverAzureADAdministrators"; export * from "./serverAzureADOnlyAuthentications"; +export * from "./serverConfigurationOptions"; +export * from "./serverConnectionPolicies"; export * from "./serverDevOpsAuditSettings"; export * from "./serverDnsAliases"; export * from "./serverKeys"; export * from "./serverOperations"; export * from "./serverSecurityAlertPolicies"; +export * from "./serverTrustCertificates"; export * from "./serverTrustGroups"; +export * from "./serverUsages"; export * from "./serverVulnerabilityAssessments"; +export * from "./servers"; export * from "./sqlAgent"; -export * from "./subscriptionUsages"; -export * from "./syncAgents"; -export * from "./syncGroups"; -export * from "./syncMembers"; -export * from "./tdeCertificates"; -export * from "./timeZones"; -export * from "./virtualNetworkRules"; -export * from "./workloadClassifiers"; -export * from "./workloadGroups"; -export * from "./backupShortTermRetentionPolicies"; -export * from "./databaseExtensionsOperations"; -export * from "./databaseOperations"; -export * from "./databaseUsages"; -export * from "./ledgerDigestUploadsOperations"; -export * from "./outboundFirewallRules"; -export * from "./usages"; -export * from "./longTermRetentionBackups"; -export * from "./longTermRetentionManagedInstanceBackups"; -export * from "./restorableDroppedManagedDatabases"; -export * from "./serverConnectionPolicies"; -export * from "./distributedAvailabilityGroups"; -export * from "./serverTrustCertificates"; -export * from "./iPv6FirewallRules"; -export * from "./endpointCertificates"; -export * from "./managedDatabaseSensitivityLabels"; -export * from "./managedDatabaseRecommendedSensitivityLabels"; -export * from "./sensitivityLabels"; -export * from "./recommendedSensitivityLabels"; -export * from "./serverBlobAuditingPolicies"; -export * from "./databaseBlobAuditingPolicies"; -export * from "./extendedDatabaseBlobAuditingPolicies"; -export * from "./extendedServerBlobAuditingPolicies"; -export * from "./databaseAdvancedThreatProtectionSettings"; -export * from "./serverAdvancedThreatProtectionSettings"; -export * from "./managedServerDnsAliases"; -export * from "./databaseSqlVulnerabilityAssessmentBaselines"; -export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; -export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseSqlVulnerabilityAssessmentScanResult"; -export * from "./databaseSqlVulnerabilityAssessmentScans"; -export * from "./databaseSqlVulnerabilityAssessmentsSettings"; -export * from "./managedDatabaseAdvancedThreatProtectionSettings"; -export * from "./managedInstanceAdvancedThreatProtectionSettings"; -export * from "./replicationLinks"; export * from "./sqlVulnerabilityAssessmentBaseline"; export * from "./sqlVulnerabilityAssessmentBaselines"; export * from "./sqlVulnerabilityAssessmentExecuteScan"; @@ -139,19 +138,17 @@ export * from "./sqlVulnerabilityAssessmentScanResult"; export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentsSettings"; export * from "./sqlVulnerabilityAssessments"; -export * from "./managedDatabaseMoveOperations"; -export * from "./managedInstanceDtcs"; -export * from "./synapseLinkWorkspaces"; -export * from "./virtualClusters"; -export * from "./instanceFailoverGroups"; -export * from "./managedDatabaseRestoreDetails"; -export * from "./managedDatabases"; -export * from "./databaseEncryptionProtectors"; -export * from "./managedInstances"; -export * from "./managedLedgerDigestUploadsOperations"; -export * from "./recoverableDatabases"; -export * from "./restorableDroppedDatabases"; -export * from "./serverConfigurationOptions"; -export * from "./servers"; export * from "./startStopManagedInstanceSchedules"; +export * from "./subscriptionUsages"; +export * from "./synapseLinkWorkspaces"; +export * from "./syncAgents"; +export * from "./syncGroups"; +export * from "./syncMembers"; +export * from "./tdeCertificates"; +export * from "./timeZones"; export * from "./transparentDataEncryptions"; +export * from "./usages"; +export * from "./virtualClusters"; +export * from "./virtualNetworkRules"; +export * from "./workloadClassifiers"; +export * from "./workloadGroups"; diff --git a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts index 590e8772c0fa..e5151c4e212c 100644 --- a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts @@ -598,11 +598,11 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName ], headerParameters: [Parameters.accept], @@ -618,11 +618,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], @@ -648,16 +648,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters90, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -666,11 +666,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], @@ -695,11 +695,11 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], @@ -725,11 +725,11 @@ const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], @@ -747,8 +747,8 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName ], diff --git a/sdk/sql/arm-sql/src/operations/instancePools.ts b/sdk/sql/arm-sql/src/operations/instancePools.ts index 88b421a31f7e..301756b19c4e 100644 --- a/sdk/sql/arm-sql/src/operations/instancePools.ts +++ b/sdk/sql/arm-sql/src/operations/instancePools.ts @@ -21,12 +21,12 @@ import { import { createLroSpec } from "../lroImpl"; import { InstancePool, - InstancePoolsListByResourceGroupNextOptionalParams, - InstancePoolsListByResourceGroupOptionalParams, - InstancePoolsListByResourceGroupResponse, InstancePoolsListNextOptionalParams, InstancePoolsListOptionalParams, InstancePoolsListResponse, + InstancePoolsListByResourceGroupNextOptionalParams, + InstancePoolsListByResourceGroupOptionalParams, + InstancePoolsListByResourceGroupResponse, InstancePoolsGetOptionalParams, InstancePoolsGetResponse, InstancePoolsCreateOrUpdateOptionalParams, @@ -35,8 +35,8 @@ import { InstancePoolUpdate, InstancePoolsUpdateOptionalParams, InstancePoolsUpdateResponse, - InstancePoolsListByResourceGroupNextResponse, - InstancePoolsListNextResponse + InstancePoolsListNextResponse, + InstancePoolsListByResourceGroupNextResponse } from "../models"; /// @@ -53,16 +53,13 @@ export class InstancePoolsImpl implements InstancePools { } /** - * Gets a list of instance pools in the resource group - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. + * Gets a list of all instance pools in the subscription. * @param options The options parameters. */ - public listByResourceGroup( - resourceGroupName: string, - options?: InstancePoolsListByResourceGroupOptionalParams + public list( + options?: InstancePoolsListOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + const iter = this.listPagingAll(options); return { next() { return iter.next(); @@ -74,35 +71,26 @@ export class InstancePoolsImpl implements InstancePools { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings - ); + return this.listPagingPage(options, settings); } }; } - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: InstancePoolsListByResourceGroupOptionalParams, + private async *listPagingPage( + options?: InstancePoolsListOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: InstancePoolsListByResourceGroupResponse; + let result: InstancePoolsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); + result = await this._list(options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options - ); + result = await this._listNext(continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -110,26 +98,25 @@ export class InstancePoolsImpl implements InstancePools { } } - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: InstancePoolsListByResourceGroupOptionalParams + private async *listPagingAll( + options?: InstancePoolsListOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options - )) { + for await (const page of this.listPagingPage(options)) { yield* page; } } /** - * Gets a list of all instance pools in the subscription. + * Gets a list of instance pools in the resource group + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param options The options parameters. */ - public list( - options?: InstancePoolsListOptionalParams + public listByResourceGroup( + resourceGroupName: string, + options?: InstancePoolsListByResourceGroupOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { next() { return iter.next(); @@ -141,26 +128,35 @@ export class InstancePoolsImpl implements InstancePools { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage(options, settings); + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); } }; } - private async *listPagingPage( - options?: InstancePoolsListOptionalParams, + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: InstancePoolsListByResourceGroupOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: InstancePoolsListResponse; + let result: InstancePoolsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(options); + result = await this._listByResourceGroup(resourceGroupName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listNext(continuationToken, options); + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -168,14 +164,44 @@ export class InstancePoolsImpl implements InstancePools { } } - private async *listPagingAll( - options?: InstancePoolsListOptionalParams + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: InstancePoolsListByResourceGroupOptionalParams ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { yield* page; } } + /** + * Gets a list of all instance pools in the subscription. + * @param options The options parameters. + */ + private _list( + options?: InstancePoolsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * Gets a list of instance pools in the resource group + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: InstancePoolsListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + /** * Gets an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -473,31 +499,20 @@ export class InstancePoolsImpl implements InstancePools { } /** - * Gets a list of instance pools in the resource group - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ - private _listByResourceGroup( - resourceGroupName: string, - options?: InstancePoolsListByResourceGroupOptionalParams - ): Promise { + private _listNext( + nextLink: string, + options?: InstancePoolsListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec + { nextLink, options }, + listNextOperationSpec ); } - /** - * Gets a list of all instance pools in the subscription. - * @param options The options parameters. - */ - private _list( - options?: InstancePoolsListOptionalParams - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -515,25 +530,43 @@ export class InstancePoolsImpl implements InstancePools { listByResourceGroupNextOperationSpec ); } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: InstancePoolsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/instancePools", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InstancePoolListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InstancePoolListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}", @@ -544,11 +577,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], headerParameters: [Parameters.accept], @@ -573,15 +606,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters22, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters35, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -590,11 +623,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], serializer @@ -618,52 +651,19 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters23, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters36, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InstancePoolListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/instancePools", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InstancePoolListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -675,13 +675,12 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink ], headerParameters: [Parameters.accept], serializer }; -const listNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -692,6 +691,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink ], diff --git a/sdk/sql/arm-sql/src/operations/jobAgents.ts b/sdk/sql/arm-sql/src/operations/jobAgents.ts index 87b93b6b9a6e..e3495ac1149d 100644 --- a/sdk/sql/arm-sql/src/operations/jobAgents.ts +++ b/sdk/sql/arm-sql/src/operations/jobAgents.ts @@ -505,12 +505,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -525,12 +525,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], headerParameters: [Parameters.accept], @@ -555,16 +555,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters24, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters37, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -573,12 +573,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], serializer @@ -602,16 +602,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters25, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters38, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -626,9 +626,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/jobCredentials.ts b/sdk/sql/arm-sql/src/operations/jobCredentials.ts index af5926f629a6..627f52cb74e9 100644 --- a/sdk/sql/arm-sql/src/operations/jobCredentials.ts +++ b/sdk/sql/arm-sql/src/operations/jobCredentials.ts @@ -263,12 +263,12 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], headerParameters: [Parameters.accept], @@ -284,12 +284,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.credentialName ], @@ -309,17 +309,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters26, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters39, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.credentialName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -328,12 +328,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.credentialName ], @@ -350,9 +350,9 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName ], diff --git a/sdk/sql/arm-sql/src/operations/jobExecutions.ts b/sdk/sql/arm-sql/src/operations/jobExecutions.ts index d141427f5115..a1df8ecc2e02 100644 --- a/sdk/sql/arm-sql/src/operations/jobExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobExecutions.ts @@ -27,13 +27,13 @@ import { JobExecutionsListByJobNextOptionalParams, JobExecutionsListByJobOptionalParams, JobExecutionsListByJobResponse, - JobExecutionsCancelOptionalParams, - JobExecutionsCreateOptionalParams, - JobExecutionsCreateResponse, JobExecutionsGetOptionalParams, JobExecutionsGetResponse, JobExecutionsCreateOrUpdateOptionalParams, JobExecutionsCreateOrUpdateResponse, + JobExecutionsCancelOptionalParams, + JobExecutionsCreateOptionalParams, + JobExecutionsCreateResponse, JobExecutionsListByAgentNextResponse, JobExecutionsListByJobNextResponse } from "../models"; @@ -269,23 +269,45 @@ export class JobExecutionsImpl implements JobExecutions { } /** - * Requests cancellation of a job execution. + * Lists a job's executions. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param jobAgentName The name of the job agent. + * @param jobName The name of the job to get. + * @param options The options parameters. + */ + private _listByJob( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + jobName: string, + options?: JobExecutionsListByJobOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, jobAgentName, jobName, options }, + listByJobOperationSpec + ); + } + + /** + * Gets a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobExecutionId The id of the job execution to cancel. + * @param jobExecutionId The id of the job execution * @param options The options parameters. */ - cancel( + get( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobExecutionsCancelOptionalParams - ): Promise { + options?: JobExecutionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -295,35 +317,37 @@ export class JobExecutionsImpl implements JobExecutions { jobExecutionId, options }, - cancelOperationSpec + getOperationSpec ); } /** - * Starts an elastic job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - async beginCreate( + async beginCreateOrUpdate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobExecutionsCreateOptionalParams + jobExecutionId: string, + options?: JobExecutionsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< - OperationState, - JobExecutionsCreateResponse + OperationState, + JobExecutionsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -361,12 +385,19 @@ export class JobExecutionsImpl implements JobExecutions { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, serverName, jobAgentName, jobName, options }, - spec: createOperationSpec + args: { + resourceGroupName, + serverName, + jobAgentName, + jobName, + jobExecutionId, + options + }, + spec: createOrUpdateOperationSpec }); const poller = await createHttpPoller< - JobExecutionsCreateResponse, - OperationState + JobExecutionsCreateOrUpdateResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs @@ -376,71 +407,52 @@ export class JobExecutionsImpl implements JobExecutions { } /** - * Starts an elastic job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - async beginCreateAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobExecutionsCreateOptionalParams - ): Promise { - const poller = await this.beginCreate( + jobExecutionId: string, + options?: JobExecutionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, serverName, jobAgentName, jobName, + jobExecutionId, options ); return poller.pollUntilDone(); } /** - * Lists a job's executions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param jobAgentName The name of the job agent. - * @param jobName The name of the job to get. - * @param options The options parameters. - */ - private _listByJob( - resourceGroupName: string, - serverName: string, - jobAgentName: string, - jobName: string, - options?: JobExecutionsListByJobOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, jobAgentName, jobName, options }, - listByJobOperationSpec - ); - } - - /** - * Gets a job execution. + * Requests cancellation of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobExecutionId The id of the job execution + * @param jobExecutionId The id of the job execution to cancel. * @param options The options parameters. */ - get( + cancel( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobExecutionsGetOptionalParams - ): Promise { + options?: JobExecutionsCancelOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -450,37 +462,35 @@ export class JobExecutionsImpl implements JobExecutions { jobExecutionId, options }, - getOperationSpec + cancelOperationSpec ); } /** - * Creates or updates a job execution. + * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginCreate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobExecutionId: string, - options?: JobExecutionsCreateOrUpdateOptionalParams + options?: JobExecutionsCreateOptionalParams ): Promise< SimplePollerLike< - OperationState, - JobExecutionsCreateOrUpdateResponse + OperationState, + JobExecutionsCreateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -518,19 +528,12 @@ export class JobExecutionsImpl implements JobExecutions { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobExecutionId, - options - }, - spec: createOrUpdateOperationSpec + args: { resourceGroupName, serverName, jobAgentName, jobName, options }, + spec: createOperationSpec }); const poller = await createHttpPoller< - JobExecutionsCreateOrUpdateResponse, - OperationState + JobExecutionsCreateResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs @@ -540,29 +543,26 @@ export class JobExecutionsImpl implements JobExecutions { } /** - * Creates or updates a job execution. + * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginCreateAndWait( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobExecutionId: string, - options?: JobExecutionsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + options?: JobExecutionsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( resourceGroupName, serverName, jobAgentName, jobName, - jobExecutionId, options ); return poller.pollUntilDone(); @@ -635,8 +635,8 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, Parameters.skip, - Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -646,58 +646,10 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.jobAgentName - ], - headerParameters: [Parameters.accept], - serializer -}; -const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/cancel", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobExecutionId - ], - serializer -}; -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/start", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.JobExecution - }, - 201: { - bodyMapper: Mappers.JobExecution - }, - 202: { - bodyMapper: Mappers.JobExecution - }, - 204: { - bodyMapper: Mappers.JobExecution - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName + Parameters.jobAgentName ], headerParameters: [Parameters.accept], serializer @@ -713,8 +665,8 @@ const listByJobOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, Parameters.skip, - Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -724,9 +676,9 @@ const listByJobOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], @@ -743,12 +695,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId @@ -775,16 +727,64 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, Parameters.subscriptionId, + Parameters.jobAgentName, + Parameters.jobName, + Parameters.jobExecutionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const cancelOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/cancel", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId ], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/start", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.JobExecution + }, + 201: { + bodyMapper: Mappers.JobExecution + }, + 202: { + bodyMapper: Mappers.JobExecution + }, + 204: { + bodyMapper: Mappers.JobExecution + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.jobAgentName, + Parameters.jobName + ], headerParameters: [Parameters.accept], serializer }; @@ -799,9 +799,9 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName ], @@ -819,9 +819,9 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName diff --git a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts index 3203761d8b0b..0846fe36197b 100644 --- a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts @@ -261,8 +261,8 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, Parameters.skip, - Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -272,9 +272,9 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId @@ -292,12 +292,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId, @@ -317,9 +317,9 @@ const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName, diff --git a/sdk/sql/arm-sql/src/operations/jobSteps.ts b/sdk/sql/arm-sql/src/operations/jobSteps.ts index 03c9b6c625b9..70c41c955bd6 100644 --- a/sdk/sql/arm-sql/src/operations/jobSteps.ts +++ b/sdk/sql/arm-sql/src/operations/jobSteps.ts @@ -15,21 +15,21 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { JobStep, - JobStepsListByVersionNextOptionalParams, - JobStepsListByVersionOptionalParams, - JobStepsListByVersionResponse, JobStepsListByJobNextOptionalParams, JobStepsListByJobOptionalParams, JobStepsListByJobResponse, - JobStepsGetByVersionOptionalParams, - JobStepsGetByVersionResponse, + JobStepsListByVersionNextOptionalParams, + JobStepsListByVersionOptionalParams, + JobStepsListByVersionResponse, JobStepsGetOptionalParams, JobStepsGetResponse, JobStepsCreateOrUpdateOptionalParams, JobStepsCreateOrUpdateResponse, JobStepsDeleteOptionalParams, - JobStepsListByVersionNextResponse, - JobStepsListByJobNextResponse + JobStepsGetByVersionOptionalParams, + JobStepsGetByVersionResponse, + JobStepsListByJobNextResponse, + JobStepsListByVersionNextResponse } from "../models"; /// @@ -46,29 +46,26 @@ export class JobStepsImpl implements JobSteps { } /** - * Gets all job steps in the specified job version. + * Gets all job steps for a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobVersion The version of the job to get. * @param options The options parameters. */ - public listByVersion( + public listByJob( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams + options?: JobStepsListByJobOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByVersionPagingAll( + const iter = this.listByJobPagingAll( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, options ); return { @@ -82,12 +79,11 @@ export class JobStepsImpl implements JobSteps { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByVersionPagingPage( + return this.listByJobPagingPage( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, options, settings ); @@ -95,24 +91,22 @@ export class JobStepsImpl implements JobSteps { }; } - private async *listByVersionPagingPage( + private async *listByJobPagingPage( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams, + options?: JobStepsListByJobOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: JobStepsListByVersionResponse; + let result: JobStepsListByJobResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByVersion( + result = await this._listByJob( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, options ); let page = result.value || []; @@ -121,12 +115,11 @@ export class JobStepsImpl implements JobSteps { yield page; } while (continuationToken) { - result = await this._listByVersionNext( + result = await this._listByJobNext( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, continuationToken, options ); @@ -137,20 +130,18 @@ export class JobStepsImpl implements JobSteps { } } - private async *listByVersionPagingAll( + private async *listByJobPagingAll( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams + options?: JobStepsListByJobOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByVersionPagingPage( + for await (const page of this.listByJobPagingPage( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, options )) { yield* page; @@ -158,26 +149,29 @@ export class JobStepsImpl implements JobSteps { } /** - * Gets all job steps for a job's current version. + * Gets all job steps in the specified job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobVersion The version of the job to get. * @param options The options parameters. */ - public listByJob( + public listByVersion( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobStepsListByJobOptionalParams + jobVersion: number, + options?: JobStepsListByVersionOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByJobPagingAll( + const iter = this.listByVersionPagingAll( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, options ); return { @@ -191,11 +185,12 @@ export class JobStepsImpl implements JobSteps { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByJobPagingPage( + return this.listByVersionPagingPage( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, options, settings ); @@ -203,22 +198,24 @@ export class JobStepsImpl implements JobSteps { }; } - private async *listByJobPagingPage( + private async *listByVersionPagingPage( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobStepsListByJobOptionalParams, + jobVersion: number, + options?: JobStepsListByVersionOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: JobStepsListByJobResponse; + let result: JobStepsListByVersionResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByJob( + result = await this._listByVersion( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, options ); let page = result.value || []; @@ -227,11 +224,12 @@ export class JobStepsImpl implements JobSteps { yield page; } while (continuationToken) { - result = await this._listByJobNext( + result = await this._listByVersionNext( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, continuationToken, options ); @@ -242,18 +240,20 @@ export class JobStepsImpl implements JobSteps { } } - private async *listByJobPagingAll( + private async *listByVersionPagingAll( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobStepsListByJobOptionalParams + jobVersion: number, + options?: JobStepsListByVersionOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByJobPagingPage( + for await (const page of this.listByVersionPagingPage( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, options )) { yield* page; @@ -261,110 +261,110 @@ export class JobStepsImpl implements JobSteps { } /** - * Gets all job steps in the specified job version. + * Gets all job steps for a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobVersion The version of the job to get. * @param options The options parameters. */ - private _listByVersion( + private _listByJob( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams - ): Promise { + options?: JobStepsListByJobOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobVersion, - options - }, - listByVersionOperationSpec + { resourceGroupName, serverName, jobAgentName, jobName, options }, + listByJobOperationSpec ); } /** - * Gets the specified version of a job step. + * Gets a job step in a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobVersion The version of the job to get. * @param stepName The name of the job step. * @param options The options parameters. */ - getByVersion( + get( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, stepName: string, - options?: JobStepsGetByVersionOptionalParams - ): Promise { + options?: JobStepsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, stepName, options }, - getByVersionOperationSpec + getOperationSpec ); } /** - * Gets all job steps for a job's current version. + * Creates or updates a job step. This will implicitly create a new job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. - * @param jobName The name of the job to get. + * @param jobName The name of the job. + * @param stepName The name of the job step. + * @param parameters The requested state of the job step. * @param options The options parameters. */ - private _listByJob( + createOrUpdate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobStepsListByJobOptionalParams - ): Promise { + stepName: string, + parameters: JobStep, + options?: JobStepsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, jobAgentName, jobName, options }, - listByJobOperationSpec + { + resourceGroupName, + serverName, + jobAgentName, + jobName, + stepName, + parameters, + options + }, + createOrUpdateOperationSpec ); } /** - * Gets a job step in a job's current version. + * Deletes a job step. This will implicitly create a new job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param stepName The name of the job step. + * @param stepName The name of the job step to delete. * @param options The options parameters. */ - get( + delete( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, - options?: JobStepsGetOptionalParams - ): Promise { + options?: JobStepsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -374,146 +374,146 @@ export class JobStepsImpl implements JobSteps { stepName, options }, - getOperationSpec + deleteOperationSpec ); } /** - * Creates or updates a job step. This will implicitly create a new job version. + * Gets all job steps in the specified job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. - * @param jobName The name of the job. - * @param stepName The name of the job step. - * @param parameters The requested state of the job step. + * @param jobName The name of the job to get. + * @param jobVersion The version of the job to get. * @param options The options parameters. */ - createOrUpdate( + private _listByVersion( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - stepName: string, - parameters: JobStep, - options?: JobStepsCreateOrUpdateOptionalParams - ): Promise { + jobVersion: number, + options?: JobStepsListByVersionOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, - stepName, - parameters, + jobVersion, options }, - createOrUpdateOperationSpec + listByVersionOperationSpec ); } /** - * Deletes a job step. This will implicitly create a new job version. + * Gets the specified version of a job step. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param stepName The name of the job step to delete. + * @param jobVersion The version of the job to get. + * @param stepName The name of the job step. * @param options The options parameters. */ - delete( + getByVersion( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, + jobVersion: number, stepName: string, - options?: JobStepsDeleteOptionalParams - ): Promise { + options?: JobStepsGetByVersionOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, stepName, options }, - deleteOperationSpec + getByVersionOperationSpec ); } /** - * ListByVersionNext + * ListByJobNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobVersion The version of the job to get. - * @param nextLink The nextLink from the previous successful call to the ListByVersion method. + * @param nextLink The nextLink from the previous successful call to the ListByJob method. * @param options The options parameters. */ - private _listByVersionNext( + private _listByJobNext( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, nextLink: string, - options?: JobStepsListByVersionNextOptionalParams - ): Promise { + options?: JobStepsListByJobNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, nextLink, options }, - listByVersionNextOperationSpec + listByJobNextOperationSpec ); } /** - * ListByJobNext + * ListByVersionNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param nextLink The nextLink from the previous successful call to the ListByJob method. + * @param jobVersion The version of the job to get. + * @param nextLink The nextLink from the previous successful call to the ListByVersion method. * @param options The options parameters. */ - private _listByJobNext( + private _listByVersionNext( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, + jobVersion: number, nextLink: string, - options?: JobStepsListByJobNextOptionalParams - ): Promise { + options?: JobStepsListByVersionNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, nextLink, options }, - listByJobNextOperationSpec + listByVersionNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listByVersionOperationSpec: coreClient.OperationSpec = { +const listByJobOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps", httpMethod: "GET", responses: { 200: { @@ -521,22 +521,21 @@ const listByVersionOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobVersion + Parameters.jobName ], headerParameters: [Parameters.accept], serializer }; -const getByVersionOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", httpMethod: "GET", responses: { 200: { @@ -544,111 +543,112 @@ const getByVersionOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.stepName, - Parameters.jobVersion + Parameters.stepName ], headerParameters: [Parameters.accept], serializer }; -const listByJobOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.JobStepListResult + bodyMapper: Mappers.JobStep + }, + 201: { + bodyMapper: Mappers.JobStep }, default: {} }, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters40, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, - Parameters.jobName + Parameters.jobName, + Parameters.stepName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.JobStep - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.stepName ], - headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const listByVersionOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobStep - }, - 201: { - bodyMapper: Mappers.JobStep + bodyMapper: Mappers.JobStepListResult }, default: {} }, - requestBody: Parameters.parameters28, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.stepName + Parameters.jobVersion ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const deleteOperationSpec: coreClient.OperationSpec = { +const getByVersionOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", - httpMethod: "DELETE", - responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JobStep + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.stepName + Parameters.stepName, + Parameters.jobVersion ], + headerParameters: [Parameters.accept], serializer }; -const listByVersionNextOperationSpec: coreClient.OperationSpec = { +const listByJobNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -659,18 +659,17 @@ const listByVersionNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobVersion + Parameters.jobName ], headerParameters: [Parameters.accept], serializer }; -const listByJobNextOperationSpec: coreClient.OperationSpec = { +const listByVersionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -681,12 +680,13 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, - Parameters.jobName + Parameters.jobName, + Parameters.jobVersion ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts index 6f87154e46ed..cc635abce0f5 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts @@ -15,16 +15,16 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { JobExecution, - JobTargetExecutionsListByJobExecutionNextOptionalParams, - JobTargetExecutionsListByJobExecutionOptionalParams, - JobTargetExecutionsListByJobExecutionResponse, JobTargetExecutionsListByStepNextOptionalParams, JobTargetExecutionsListByStepOptionalParams, JobTargetExecutionsListByStepResponse, + JobTargetExecutionsListByJobExecutionNextOptionalParams, + JobTargetExecutionsListByJobExecutionOptionalParams, + JobTargetExecutionsListByJobExecutionResponse, JobTargetExecutionsGetOptionalParams, JobTargetExecutionsGetResponse, - JobTargetExecutionsListByJobExecutionNextResponse, - JobTargetExecutionsListByStepNextResponse + JobTargetExecutionsListByStepNextResponse, + JobTargetExecutionsListByJobExecutionNextResponse } from "../models"; /// @@ -41,29 +41,32 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } /** - * Lists target executions for all steps of a job execution. + * Lists the target executions of a job step execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution + * @param stepName The name of the step. * @param options The options parameters. */ - public listByJobExecution( + public listByStep( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByJobExecutionPagingAll( + const iter = this.listByStepPagingAll( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, options ); return { @@ -77,12 +80,13 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByJobExecutionPagingPage( + return this.listByStepPagingPage( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, options, settings ); @@ -90,24 +94,26 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { }; } - private async *listByJobExecutionPagingPage( + private async *listByStepPagingPage( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams, + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: JobTargetExecutionsListByJobExecutionResponse; + let result: JobTargetExecutionsListByStepResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByJobExecution( + result = await this._listByStep( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, options ); let page = result.value || []; @@ -116,12 +122,13 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { yield page; } while (continuationToken) { - result = await this._listByJobExecutionNext( + result = await this._listByStepNext( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, continuationToken, options ); @@ -132,20 +139,22 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } } - private async *listByJobExecutionPagingAll( + private async *listByStepPagingAll( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByJobExecutionPagingPage( + for await (const page of this.listByStepPagingPage( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, options )) { yield* page; @@ -153,32 +162,29 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } /** - * Lists the target executions of a job step execution. + * Lists target executions for all steps of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution - * @param stepName The name of the step. * @param options The options parameters. */ - public listByStep( + public listByJobExecution( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams + options?: JobTargetExecutionsListByJobExecutionOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByStepPagingAll( + const iter = this.listByJobExecutionPagingAll( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, options ); return { @@ -192,13 +198,12 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByStepPagingPage( + return this.listByJobExecutionPagingPage( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, options, settings ); @@ -206,26 +211,24 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { }; } - private async *listByStepPagingPage( + private async *listByJobExecutionPagingPage( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams, + options?: JobTargetExecutionsListByJobExecutionOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: JobTargetExecutionsListByStepResponse; + let result: JobTargetExecutionsListByJobExecutionResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByStep( + result = await this._listByJobExecution( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, options ); let page = result.value || []; @@ -234,13 +237,12 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { yield page; } while (continuationToken) { - result = await this._listByStepNext( + result = await this._listByJobExecutionNext( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, continuationToken, options ); @@ -251,22 +253,20 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } } - private async *listByStepPagingAll( + private async *listByJobExecutionPagingAll( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams + options?: JobTargetExecutionsListByJobExecutionOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByStepPagingPage( + for await (const page of this.listByJobExecutionPagingPage( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, options )) { yield* page; @@ -274,23 +274,25 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } /** - * Lists target executions for all steps of a job execution. + * Lists the target executions of a job step execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution + * @param stepName The name of the step. * @param options The options parameters. */ - private _listByJobExecution( + private _listByStep( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams - ): Promise { + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -298,32 +300,35 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobAgentName, jobName, jobExecutionId, + stepName, options }, - listByJobExecutionOperationSpec + listByStepOperationSpec ); } /** - * Lists the target executions of a job step execution. + * Gets a target execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The id of the job execution + * @param jobExecutionId The unique id of the job execution * @param stepName The name of the step. + * @param targetId The target id. * @param options The options parameters. */ - private _listByStep( + get( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams - ): Promise { + targetId: string, + options?: JobTargetExecutionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -332,34 +337,31 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobName, jobExecutionId, stepName, + targetId, options }, - listByStepOperationSpec + getOperationSpec ); } /** - * Gets a target execution. + * Lists target executions for all steps of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The unique id of the job execution - * @param stepName The name of the step. - * @param targetId The target id. + * @param jobExecutionId The id of the job execution * @param options The options parameters. */ - get( + private _listByJobExecution( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - targetId: string, - options?: JobTargetExecutionsGetOptionalParams - ): Promise { + options?: JobTargetExecutionsListByJobExecutionOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -367,34 +369,34 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobAgentName, jobName, jobExecutionId, - stepName, - targetId, options }, - getOperationSpec + listByJobExecutionOperationSpec ); } /** - * ListByJobExecutionNext + * ListByStepNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution - * @param nextLink The nextLink from the previous successful call to the ListByJobExecution method. + * @param stepName The name of the step. + * @param nextLink The nextLink from the previous successful call to the ListByStep method. * @param options The options parameters. */ - private _listByJobExecutionNext( + private _listByStepNext( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, + stepName: string, nextLink: string, - options?: JobTargetExecutionsListByJobExecutionNextOptionalParams - ): Promise { + options?: JobTargetExecutionsListByStepNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -402,35 +404,34 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobAgentName, jobName, jobExecutionId, + stepName, nextLink, options }, - listByJobExecutionNextOperationSpec + listByStepNextOperationSpec ); } /** - * ListByStepNext + * ListByJobExecutionNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution - * @param stepName The name of the step. - * @param nextLink The nextLink from the previous successful call to the ListByStep method. + * @param nextLink The nextLink from the previous successful call to the ListByJobExecution method. * @param options The options parameters. */ - private _listByStepNext( + private _listByJobExecutionNext( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, nextLink: string, - options?: JobTargetExecutionsListByStepNextOptionalParams - ): Promise { + options?: JobTargetExecutionsListByJobExecutionNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -438,20 +439,19 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobAgentName, jobName, jobExecutionId, - stepName, nextLink, options }, - listByStepNextOperationSpec + listByJobExecutionNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listByJobExecutionOperationSpec: coreClient.OperationSpec = { +const listByStepOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/targets", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets", httpMethod: "GET", responses: { 200: { @@ -460,8 +460,8 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, Parameters.skip, - Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -471,75 +471,75 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.jobExecutionId + Parameters.jobExecutionId, + Parameters.stepName ], headerParameters: [Parameters.accept], serializer }; -const listByStepOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets/{targetId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobExecutionListResult + bodyMapper: Mappers.JobExecution }, default: {} }, - queryParameters: [ - Parameters.skip, - Parameters.apiVersion3, - Parameters.createTimeMin, - Parameters.createTimeMax, - Parameters.endTimeMin, - Parameters.endTimeMax, - Parameters.isActive, - Parameters.top - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId, - Parameters.stepName + Parameters.stepName, + Parameters.targetId ], headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const listByJobExecutionOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets/{targetId}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/targets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobExecution + bodyMapper: Mappers.JobExecutionListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.createTimeMin, + Parameters.createTimeMax, + Parameters.endTimeMin, + Parameters.endTimeMax, + Parameters.isActive, + Parameters.top + ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.jobExecutionId, - Parameters.stepName, - Parameters.targetId + Parameters.jobExecutionId ], headerParameters: [Parameters.accept], serializer }; -const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { +const listByStepNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -550,18 +550,19 @@ const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName, - Parameters.jobExecutionId + Parameters.jobExecutionId, + Parameters.stepName ], headerParameters: [Parameters.accept], serializer }; -const listByStepNextOperationSpec: coreClient.OperationSpec = { +const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -572,14 +573,13 @@ const listByStepNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName, - Parameters.jobExecutionId, - Parameters.stepName + Parameters.jobExecutionId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts index edeca621f0aa..0435334797cc 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts @@ -263,12 +263,12 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], headerParameters: [Parameters.accept], @@ -284,12 +284,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.targetGroupName ], @@ -309,17 +309,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters29, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters41, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.targetGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -328,12 +328,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.targetGroupName ], @@ -350,9 +350,9 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName ], diff --git a/sdk/sql/arm-sql/src/operations/jobVersions.ts b/sdk/sql/arm-sql/src/operations/jobVersions.ts index 7d04aea01fed..c9239b0b021d 100644 --- a/sdk/sql/arm-sql/src/operations/jobVersions.ts +++ b/sdk/sql/arm-sql/src/operations/jobVersions.ts @@ -236,12 +236,12 @@ const listByJobOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], @@ -258,12 +258,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobVersion @@ -282,9 +282,9 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName diff --git a/sdk/sql/arm-sql/src/operations/jobs.ts b/sdk/sql/arm-sql/src/operations/jobs.ts index 3348c0c69ecd..f92f87ced08c 100644 --- a/sdk/sql/arm-sql/src/operations/jobs.ts +++ b/sdk/sql/arm-sql/src/operations/jobs.ts @@ -263,12 +263,12 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], headerParameters: [Parameters.accept], @@ -284,12 +284,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], @@ -309,17 +309,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters27, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters42, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -328,12 +328,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], @@ -350,9 +350,9 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName ], diff --git a/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts b/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts index 592626cd2172..1e1ca063867d 100644 --- a/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts @@ -142,6 +142,26 @@ export class LedgerDigestUploadsOperationsImpl } } + /** + * Gets all ledger digest upload settings on a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: LedgerDigestUploadsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets the current ledger digest upload configuration for a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -284,26 +304,6 @@ export class LedgerDigestUploadsOperationsImpl return poller.pollUntilDone(); } - /** - * Gets all ledger digest upload settings on a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: LedgerDigestUploadsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * Disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger * instance. @@ -439,6 +439,27 @@ export class LedgerDigestUploadsOperationsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LedgerDigestUploadsListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads/{ledgerDigestUploads}", @@ -449,13 +470,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.ledgerDigestUploads ], headerParameters: [Parameters.accept], @@ -480,41 +501,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters64, - queryParameters: [Parameters.apiVersion5], + requestBody: Parameters.parameters43, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.ledgerDigestUploads ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LedgerDigestUploadsListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; const disableOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads/{ledgerDigestUploads}/disable", @@ -534,13 +534,13 @@ const disableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.ledgerDigestUploads ], headerParameters: [Parameters.accept], @@ -557,10 +557,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts index 5a43072aa7e5..f1edf284c092 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts @@ -21,46 +21,46 @@ import { import { createLroSpec } from "../lroImpl"; import { LongTermRetentionBackup, - LongTermRetentionBackupsListByDatabaseNextOptionalParams, - LongTermRetentionBackupsListByDatabaseOptionalParams, - LongTermRetentionBackupsListByDatabaseResponse, LongTermRetentionBackupsListByLocationNextOptionalParams, LongTermRetentionBackupsListByLocationOptionalParams, LongTermRetentionBackupsListByLocationResponse, LongTermRetentionBackupsListByServerNextOptionalParams, LongTermRetentionBackupsListByServerOptionalParams, LongTermRetentionBackupsListByServerResponse, - LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams, - LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, - LongTermRetentionBackupsListByResourceGroupDatabaseResponse, + LongTermRetentionBackupsListByDatabaseNextOptionalParams, + LongTermRetentionBackupsListByDatabaseOptionalParams, + LongTermRetentionBackupsListByDatabaseResponse, LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams, LongTermRetentionBackupsListByResourceGroupLocationOptionalParams, LongTermRetentionBackupsListByResourceGroupLocationResponse, LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams, LongTermRetentionBackupsListByResourceGroupServerOptionalParams, LongTermRetentionBackupsListByResourceGroupServerResponse, + LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams, + LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + LongTermRetentionBackupsListByResourceGroupDatabaseResponse, + LongTermRetentionBackupsGetOptionalParams, + LongTermRetentionBackupsGetResponse, + LongTermRetentionBackupsDeleteOptionalParams, CopyLongTermRetentionBackupParameters, LongTermRetentionBackupsCopyOptionalParams, LongTermRetentionBackupsCopyResponse, UpdateLongTermRetentionBackupParameters, LongTermRetentionBackupsUpdateOptionalParams, LongTermRetentionBackupsUpdateResponse, - LongTermRetentionBackupsGetOptionalParams, - LongTermRetentionBackupsGetResponse, - LongTermRetentionBackupsDeleteOptionalParams, + LongTermRetentionBackupsGetByResourceGroupOptionalParams, + LongTermRetentionBackupsGetByResourceGroupResponse, + LongTermRetentionBackupsDeleteByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupResponse, LongTermRetentionBackupsUpdateByResourceGroupOptionalParams, LongTermRetentionBackupsUpdateByResourceGroupResponse, - LongTermRetentionBackupsGetByResourceGroupOptionalParams, - LongTermRetentionBackupsGetByResourceGroupResponse, - LongTermRetentionBackupsDeleteByResourceGroupOptionalParams, - LongTermRetentionBackupsListByDatabaseNextResponse, LongTermRetentionBackupsListByLocationNextResponse, LongTermRetentionBackupsListByServerNextResponse, - LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse, + LongTermRetentionBackupsListByDatabaseNextResponse, LongTermRetentionBackupsListByResourceGroupLocationNextResponse, - LongTermRetentionBackupsListByResourceGroupServerNextResponse + LongTermRetentionBackupsListByResourceGroupServerNextResponse, + LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse } from "../models"; /// @@ -76,99 +76,6 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { this.client = client; } - /** - * Lists all long term retention backups for a database. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param options The options parameters. - */ - public listByDatabase( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByDatabasePagingAll( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByDatabasePagingPage( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options, - settings - ); - } - }; - } - - private async *listByDatabasePagingPage( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: LongTermRetentionBackupsListByDatabaseResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByDatabase( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByDatabaseNext( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByDatabasePagingAll( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByDatabasePagingPage( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - )) { - yield* page; - } - } - /** * Lists the long term retention backups for a given location. * @param locationName The location of the database @@ -320,22 +227,18 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { /** * Lists all long term retention backups for a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ - public listByResourceGroupDatabase( - resourceGroupName: string, + public listByDatabase( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + options?: LongTermRetentionBackupsListByDatabaseOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupDatabasePagingAll( - resourceGroupName, + const iter = this.listByDatabasePagingAll( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -352,8 +255,7 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupDatabasePagingPage( - resourceGroupName, + return this.listByDatabasePagingPage( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -364,19 +266,17 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { }; } - private async *listByResourceGroupDatabasePagingPage( - resourceGroupName: string, + private async *listByDatabasePagingPage( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + options?: LongTermRetentionBackupsListByDatabaseOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: LongTermRetentionBackupsListByResourceGroupDatabaseResponse; + let result: LongTermRetentionBackupsListByDatabaseResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroupDatabase( - resourceGroupName, + result = await this._listByDatabase( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -388,8 +288,7 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { yield page; } while (continuationToken) { - result = await this._listByResourceGroupDatabaseNext( - resourceGroupName, + result = await this._listByDatabaseNext( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -403,15 +302,13 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } } - private async *listByResourceGroupDatabasePagingAll( - resourceGroupName: string, + private async *listByDatabasePagingAll( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + options?: LongTermRetentionBackupsListByDatabaseOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupDatabasePagingPage( - resourceGroupName, + for await (const page of this.listByDatabasePagingPage( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -601,82 +498,257 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Copy an existing long term retention backup. - * @param locationName The location of the database. + * Lists all long term retention backups for a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopy( + public listByResourceGroupDatabase( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - LongTermRetentionBackupsCopyResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupDatabasePagingAll( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); } - }; + return this.listByResourceGroupDatabasePagingPage( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options, + settings + ); + } }; + } - const lro = createLroSpec({ - sendOperationFn, - args: { + private async *listByResourceGroupDatabasePagingPage( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: LongTermRetentionBackupsListByResourceGroupDatabaseResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroupDatabase( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupDatabaseNext( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupDatabasePagingAll( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupDatabasePagingPage( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options + )) { + yield* page; + } + } + + /** + * Lists the long term retention backups for a given location. + * @param locationName The location of the database + * @param options The options parameters. + */ + private _listByLocation( + locationName: string, + options?: LongTermRetentionBackupsListByLocationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, options }, + listByLocationOperationSpec + ); + } + + /** + * Lists the long term retention backups for a given server. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param options The options parameters. + */ + private _listByServer( + locationName: string, + longTermRetentionServerName: string, + options?: LongTermRetentionBackupsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, longTermRetentionServerName, options }, + listByServerOperationSpec + ); + } + + /** + * Lists all long term retention backups for a database. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param options The options parameters. + */ + private _listByDatabase( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, longTermRetentionServerName, longTermRetentionDatabaseName, - backupName, - parameters, options }, - spec: copyOperationSpec + listByDatabaseOperationSpec + ); + } + + /** + * Gets a long term retention backup. + * @param locationName The location of the database. + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + get( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + options + }, + getOperationSpec + ); + } + + /** + * Deletes a long term retention backup. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + async beginDelete( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + options + }, + spec: deleteOperationSpec }); - const poller = await createHttpPoller< - LongTermRetentionBackupsCopyResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -685,59 +757,56 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Copy an existing long term retention backup. - * @param locationName The location of the database. + * Deletes a long term retention backup. + * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopyAndWait( + async beginDeleteAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyOptionalParams - ): Promise { - const poller = await this.beginCopy( + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, - parameters, options ); return poller.pollUntilDone(); } /** - * Updates an existing long term retention backup. + * Copy an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The requested backup resource state + * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginUpdate( + async beginCopy( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateOptionalParams + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyOptionalParams ): Promise< SimplePollerLike< - OperationState, - LongTermRetentionBackupsUpdateResponse + OperationState, + LongTermRetentionBackupsCopyResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -783,11 +852,11 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { parameters, options }, - spec: updateOperationSpec + spec: copyOperationSpec }); const poller = await createHttpPoller< - LongTermRetentionBackupsUpdateResponse, - OperationState + LongTermRetentionBackupsCopyResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs @@ -797,23 +866,23 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Updates an existing long term retention backup. + * Copy an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The requested backup resource state + * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginUpdateAndWait( + async beginCopyAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyOptionalParams + ): Promise { + const poller = await this.beginCopy( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -825,51 +894,31 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Gets a long term retention backup. + * Updates an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - get( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - options?: LongTermRetentionBackupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - options - }, - getOperationSpec - ); - } - - /** - * Deletes a long term retention backup. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param options The options parameters. - */ - async beginDelete( + async beginUpdate( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams - ): Promise, void>> { + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LongTermRetentionBackupsUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -912,11 +961,15 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options }, - spec: deleteOperationSpec + spec: updateOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + LongTermRetentionBackupsUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -925,115 +978,152 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Deletes a long term retention backup. - * @param locationName The location of the database + * Updates an existing long term retention backup. + * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - async beginDeleteAndWait( + async beginUpdateAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options ); return poller.pollUntilDone(); } /** - * Lists all long term retention backups for a database. + * Lists the long term retention backups for a given location. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ - private _listByDatabase( + private _listByResourceGroupLocation( + resourceGroupName: string, locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): Promise { + options?: LongTermRetentionBackupsListByResourceGroupLocationOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - }, - listByDatabaseOperationSpec + { resourceGroupName, locationName, options }, + listByResourceGroupLocationOperationSpec ); } /** - * Lists the long term retention backups for a given location. + * Lists the long term retention backups for a given server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server * @param options The options parameters. */ - private _listByLocation( + private _listByResourceGroupServer( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionBackupsListByLocationOptionalParams - ): Promise { + longTermRetentionServerName: string, + options?: LongTermRetentionBackupsListByResourceGroupServerOptionalParams + ): Promise { return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec + { resourceGroupName, locationName, longTermRetentionServerName, options }, + listByResourceGroupServerOperationSpec ); } /** - * Lists the long term retention backups for a given server. + * Lists all long term retention backups for a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ - private _listByServer( + private _listByResourceGroupDatabase( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, - options?: LongTermRetentionBackupsListByServerOptionalParams - ): Promise { + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( - { locationName, longTermRetentionServerName, options }, - listByServerOperationSpec + { + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options + }, + listByResourceGroupDatabaseOperationSpec ); } /** - * Copy an existing long term retention backup to a different server. + * Gets a long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopyByResourceGroup( + getByResourceGroup( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - LongTermRetentionBackupsCopyByResourceGroupResponse - > - > { + options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + options + }, + getByResourceGroupOperationSpec + ); + } + + /** + * Deletes a long term retention backup. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + async beginDeleteByResourceGroup( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1077,15 +1167,11 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { longTermRetentionServerName, longTermRetentionDatabaseName, backupName, - parameters, options }, - spec: copyByResourceGroupOperationSpec + spec: deleteByResourceGroupOperationSpec }); - const poller = await createHttpPoller< - LongTermRetentionBackupsCopyByResourceGroupResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -1094,66 +1180,63 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Copy an existing long term retention backup to a different server. + * Deletes a long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database. + * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopyByResourceGroupAndWait( + async beginDeleteByResourceGroupAndWait( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams - ): Promise { - const poller = await this.beginCopyByResourceGroup( + options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams + ): Promise { + const poller = await this.beginDeleteByResourceGroup( resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, - parameters, options ); return poller.pollUntilDone(); } /** - * Updates an existing long term retention backup. + * Copy an existing long term retention backup to a different server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The requested backup resource state + * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginUpdateByResourceGroup( + async beginCopyByResourceGroup( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams ): Promise< SimplePollerLike< - OperationState, - LongTermRetentionBackupsUpdateByResourceGroupResponse + OperationState, + LongTermRetentionBackupsCopyByResourceGroupResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1200,104 +1283,80 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { parameters, options }, - spec: updateByResourceGroupOperationSpec + spec: copyByResourceGroupOperationSpec }); const poller = await createHttpPoller< - LongTermRetentionBackupsUpdateByResourceGroupResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Updates an existing long term retention backup. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database. - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param parameters The requested backup resource state - * @param options The options parameters. - */ - async beginUpdateByResourceGroupAndWait( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams - ): Promise { - const poller = await this.beginUpdateByResourceGroup( - resourceGroupName, - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - parameters, - options - ); - return poller.pollUntilDone(); + LongTermRetentionBackupsCopyByResourceGroupResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; } /** - * Gets a long term retention backup. + * Copy an existing long term retention backup to a different server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - getByResourceGroup( + async beginCopyByResourceGroupAndWait( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - options - }, - getByResourceGroupOperationSpec + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams + ): Promise { + const poller = await this.beginCopyByResourceGroup( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + parameters, + options ); + return poller.pollUntilDone(); } /** - * Deletes a long term retention backup. + * Updates an existing long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database + * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - async beginDeleteByResourceGroup( + async beginUpdateByResourceGroup( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - ): Promise, void>> { + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LongTermRetentionBackupsUpdateByResourceGroupResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1341,11 +1400,15 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options }, - spec: deleteByResourceGroupOperationSpec + spec: updateByResourceGroupOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + LongTermRetentionBackupsUpdateByResourceGroupResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -1354,127 +1417,37 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Deletes a long term retention backup. + * Updates an existing long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database + * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - async beginDeleteByResourceGroupAndWait( + async beginUpdateByResourceGroupAndWait( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - ): Promise { - const poller = await this.beginDeleteByResourceGroup( + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + ): Promise { + const poller = await this.beginUpdateByResourceGroup( resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options ); return poller.pollUntilDone(); } - /** - * Lists all long term retention backups for a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param options The options parameters. - */ - private _listByResourceGroupDatabase( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - }, - listByResourceGroupDatabaseOperationSpec - ); - } - - /** - * Lists the long term retention backups for a given location. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param options The options parameters. - */ - private _listByResourceGroupLocation( - resourceGroupName: string, - locationName: string, - options?: LongTermRetentionBackupsListByResourceGroupLocationOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, options }, - listByResourceGroupLocationOperationSpec - ); - } - - /** - * Lists the long term retention backups for a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param options The options parameters. - */ - private _listByResourceGroupServer( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - options?: LongTermRetentionBackupsListByResourceGroupServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, longTermRetentionServerName, options }, - listByResourceGroupServerOperationSpec - ); - } - - /** - * ListByDatabaseNext - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. - * @param options The options parameters. - */ - private _listByDatabaseNext( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - nextLink: string, - options?: LongTermRetentionBackupsListByDatabaseNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - nextLink, - options - }, - listByDatabaseNextOperationSpec - ); - } - /** * ListByLocationNext * @param locationName The location of the database @@ -1512,34 +1485,29 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * ListByResourceGroupDatabaseNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. + * ListByDatabaseNext * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupDatabase - * method. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. * @param options The options parameters. */ - private _listByResourceGroupDatabaseNext( - resourceGroupName: string, + private _listByDatabaseNext( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, nextLink: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams - ): Promise { + options?: LongTermRetentionBackupsListByDatabaseNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { - resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, nextLink, options }, - listByResourceGroupDatabaseNextOperationSpec + listByDatabaseNextOperationSpec ); } @@ -1592,112 +1560,87 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { listByResourceGroupServerNextOperationSpec ); } + + /** + * ListByResourceGroupDatabaseNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupDatabase + * method. + * @param options The options parameters. + */ + private _listByResourceGroupDatabaseNext( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + nextLink: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + nextLink, + options + }, + listByResourceGroupDatabaseNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const copyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 201: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 202: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 204: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - default: {} - }, - requestBody: Parameters.parameters66, - queryParameters: [Parameters.apiVersion6], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { +const listByLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 201: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 202: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 204: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult + bodyMapper: Mappers.LongTermRetentionBackupListResult }, default: {} }, - requestBody: Parameters.parameters67, - queryParameters: [Parameters.apiVersion6], + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + Parameters.locationName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const listByServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackup + bodyMapper: Mappers.LongTermRetentionBackupListResult }, default: {} }, - queryParameters: [Parameters.apiVersion6], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", - httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion6], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + Parameters.longTermRetentionServerName ], + headerParameters: [Parameters.accept], serializer }; const listByDatabaseOperationSpec: coreClient.OperationSpec = { @@ -1711,7 +1654,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1725,56 +1668,47 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult + bodyMapper: Mappers.LongTermRetentionBackup }, default: {} }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], headerParameters: [Parameters.accept], serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: {} - }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], - headerParameters: [Parameters.accept], serializer }; -const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { +const copyOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", httpMethod: "POST", responses: { 200: { @@ -1791,24 +1725,23 @@ const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters66, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters44, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, Parameters.backupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { +const updateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", httpMethod: "POST", responses: { 200: { @@ -1825,59 +1758,67 @@ const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters67, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters45, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, Parameters.backupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const getByResourceGroupOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackup + bodyMapper: Mappers.LongTermRetentionBackupListResult }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + Parameters.subscriptionId, + Parameters.locationName ], headerParameters: [Parameters.accept], serializer }; -const deleteByResourceGroupOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", - httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion6], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionBackupListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + Parameters.longTermRetentionServerName ], + headerParameters: [Parameters.accept], serializer }; const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { @@ -1891,14 +1832,14 @@ const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName @@ -1906,73 +1847,112 @@ const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { +const getByResourceGroupOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult + bodyMapper: Mappers.LongTermRetentionBackup }, default: {} }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.locationName + Parameters.subscriptionId, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupServerOperationSpec: coreClient.OperationSpec = { +const deleteByResourceGroupOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName + ], + serializer +}; +const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 201: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 202: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 204: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult }, default: {} }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + requestBody: Parameters.parameters44, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", +const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 201: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 202: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 204: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult }, default: {} }, + requestBody: Parameters.parameters45, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink, Parameters.locationName, Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByLocationNextOperationSpec: coreClient.OperationSpec = { @@ -2012,7 +1992,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -2024,7 +2004,6 @@ const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, Parameters.locationName, Parameters.longTermRetentionServerName, @@ -2044,8 +2023,8 @@ const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName ], @@ -2063,8 +2042,8 @@ const listByResourceGroupServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.longTermRetentionServerName @@ -2072,3 +2051,24 @@ const listByResourceGroupServerNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionBackupListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts index 9e65cc54a56e..ff96f39b6859 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts @@ -21,36 +21,36 @@ import { import { createLroSpec } from "../lroImpl"; import { ManagedInstanceLongTermRetentionBackup, + LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams, + LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, + LongTermRetentionManagedInstanceBackupsListByLocationResponse, LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams, LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams, LongTermRetentionManagedInstanceBackupsListByDatabaseResponse, LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams, LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams, LongTermRetentionManagedInstanceBackupsListByInstanceResponse, - LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams, - LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, - LongTermRetentionManagedInstanceBackupsListByLocationResponse, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse, LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse, LongTermRetentionManagedInstanceBackupsGetOptionalParams, LongTermRetentionManagedInstanceBackupsGetResponse, LongTermRetentionManagedInstanceBackupsDeleteOptionalParams, LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams, LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse, LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams, + LongTermRetentionManagedInstanceBackupsListByLocationNextResponse, LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse, LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse, - LongTermRetentionManagedInstanceBackupsListByLocationNextResponse, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse, - LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse + LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse } from "../models"; /// @@ -67,6 +67,71 @@ export class LongTermRetentionManagedInstanceBackupsImpl this.client = client; } + /** + * Lists the long term retention backups for managed databases in a given location. + * @param locationName The location of the database. + * @param options The options parameters. + */ + public listByLocation( + locationName: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByLocationPagingAll(locationName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByLocationPagingPage(locationName, options, settings); + } + }; + } + + private async *listByLocationPagingPage( + locationName: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: LongTermRetentionManagedInstanceBackupsListByLocationResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByLocation(locationName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByLocationNext( + locationName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByLocationPagingAll( + locationName: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByLocationPagingPage( + locationName, + options + )) { + yield* page; + } + } + /** * Lists all long term retention backups for a managed database. * @param locationName The location of the database. @@ -246,14 +311,21 @@ export class LongTermRetentionManagedInstanceBackupsImpl /** * Lists the long term retention backups for managed databases in a given location. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param options The options parameters. */ - public listByLocation( + public listByResourceGroupLocation( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(locationName, options); + const iter = this.listByResourceGroupLocationPagingAll( + resourceGroupName, + locationName, + options + ); return { next() { return iter.next(); @@ -265,27 +337,38 @@ export class LongTermRetentionManagedInstanceBackupsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByLocationPagingPage(locationName, options, settings); + return this.listByResourceGroupLocationPagingPage( + resourceGroupName, + locationName, + options, + settings + ); } }; } - private async *listByLocationPagingPage( + private async *listByResourceGroupLocationPagingPage( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: LongTermRetentionManagedInstanceBackupsListByLocationResponse; + let result: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByLocation(locationName, options); + result = await this._listByResourceGroupLocation( + resourceGroupName, + locationName, + options + ); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listByLocationNext( + result = await this._listByResourceGroupLocationNext( + resourceGroupName, locationName, continuationToken, options @@ -297,11 +380,13 @@ export class LongTermRetentionManagedInstanceBackupsImpl } } - private async *listByLocationPagingAll( + private async *listByResourceGroupLocationPagingAll( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage( + for await (const page of this.listByResourceGroupLocationPagingPage( + resourceGroupName, locationName, options )) { @@ -508,87 +593,36 @@ export class LongTermRetentionManagedInstanceBackupsImpl /** * Lists the long term retention backups for managed databases in a given location. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param options The options parameters. */ - public listByResourceGroupLocation( - resourceGroupName: string, + private _listByLocation( locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupLocationPagingAll( - resourceGroupName, - locationName, - options + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, options }, + listByLocationOperationSpec ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupLocationPagingPage( - resourceGroupName, - locationName, - options, - settings - ); - } - }; - } - - private async *listByResourceGroupLocationPagingPage( - resourceGroupName: string, - locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroupLocation( - resourceGroupName, - locationName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupLocationNext( - resourceGroupName, - locationName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } } - private async *listByResourceGroupLocationPagingAll( - resourceGroupName: string, + /** + * Lists all long term retention backups for a managed database. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param options The options parameters. + */ + private _listByDatabase( locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupLocationPagingPage( - resourceGroupName, - locationName, - options - )) { - yield* page; - } + managedInstanceName: string, + databaseName: string, + options?: LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); } /** @@ -710,25 +744,6 @@ export class LongTermRetentionManagedInstanceBackupsImpl return poller.pollUntilDone(); } - /** - * Lists all long term retention backups for a managed database. - * @param locationName The location of the database. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the managed database. - * @param options The options parameters. - */ - private _listByDatabase( - locationName: string, - managedInstanceName: string, - databaseName: string, - options?: LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { locationName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * Lists the long term retention backups for a given managed instance. * @param locationName The location of the database @@ -748,16 +763,51 @@ export class LongTermRetentionManagedInstanceBackupsImpl /** * Lists the long term retention backups for managed databases in a given location. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param options The options parameters. */ - private _listByLocation( + private _listByResourceGroupLocation( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams - ): Promise { + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams + ): Promise< + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse + > { return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec + { resourceGroupName, locationName, options }, + listByResourceGroupLocationOperationSpec + ); + } + + /** + * Lists all long term retention backups for a managed database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param options The options parameters. + */ + private _listByResourceGroupDatabase( + resourceGroupName: string, + locationName: string, + managedInstanceName: string, + databaseName: string, + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams + ): Promise< + LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + managedInstanceName, + databaseName, + options + }, + listByResourceGroupDatabaseOperationSpec ); } @@ -900,36 +950,6 @@ export class LongTermRetentionManagedInstanceBackupsImpl return poller.pollUntilDone(); } - /** - * Lists all long term retention backups for a managed database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the managed database. - * @param options The options parameters. - */ - private _listByResourceGroupDatabase( - resourceGroupName: string, - locationName: string, - managedInstanceName: string, - databaseName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams - ): Promise< - LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse - > { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - managedInstanceName, - databaseName, - options - }, - listByResourceGroupDatabaseOperationSpec - ); - } - /** * Lists the long term retention backups for a given managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -953,22 +973,21 @@ export class LongTermRetentionManagedInstanceBackupsImpl } /** - * Lists the long term retention backups for managed databases in a given location. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. + * ListByLocationNext * @param locationName The location of the database. + * @param nextLink The nextLink from the previous successful call to the ListByLocation method. * @param options The options parameters. */ - private _listByResourceGroupLocation( - resourceGroupName: string, + private _listByLocationNext( locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams + nextLink: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams ): Promise< - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse + LongTermRetentionManagedInstanceBackupsListByLocationNextResponse > { return this.client.sendOperationRequest( - { resourceGroupName, locationName, options }, - listByResourceGroupLocationOperationSpec + { locationName, nextLink, options }, + listByLocationNextOperationSpec ); } @@ -1017,21 +1036,25 @@ export class LongTermRetentionManagedInstanceBackupsImpl } /** - * ListByLocationNext + * ListByResourceGroupLocationNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupLocation + * method. * @param options The options parameters. */ - private _listByLocationNext( + private _listByResourceGroupLocationNext( + resourceGroupName: string, locationName: string, nextLink: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams ): Promise< - LongTermRetentionManagedInstanceBackupsListByLocationNextResponse + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse > { return this.client.sendOperationRequest( - { locationName, nextLink, options }, - listByLocationNextOperationSpec + { resourceGroupName, locationName, nextLink, options }, + listByResourceGroupLocationNextOperationSpec ); } @@ -1099,33 +1122,58 @@ export class LongTermRetentionManagedInstanceBackupsImpl listByResourceGroupInstanceNextOperationSpec ); } - - /** - * ListByResourceGroupLocationNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupLocation - * method. - * @param options The options parameters. - */ - private _listByResourceGroupLocationNext( - resourceGroupName: string, - locationName: string, - nextLink: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams - ): Promise< - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse - > { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, nextLink, options }, - listByResourceGroupLocationNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByLocationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.locationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], + urlParameters: [ + Parameters.$host, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.locationName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", @@ -1136,11 +1184,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName @@ -1153,20 +1201,20 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName ], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const listByInstanceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", httpMethod: "GET", responses: { 200: { @@ -1175,23 +1223,22 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.databaseName, Parameters.locationName, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const listByInstanceOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", httpMethod: "GET", responses: { 200: { @@ -1200,22 +1247,22 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.locationName, - Parameters.managedInstanceName + Parameters.locationName ], headerParameters: [Parameters.accept], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", httpMethod: "GET", responses: { 200: { @@ -1224,14 +1271,17 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer @@ -1246,12 +1296,12 @@ const getByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName @@ -1264,44 +1314,18 @@ const deleteByResourceGroupOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName ], serializer }; -const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult - }, - default: {} - }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.databaseName, - Parameters.locationName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByResourceGroupInstanceOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", @@ -1313,23 +1337,22 @@ const listByResourceGroupInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", +const listByLocationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { @@ -1337,15 +1360,10 @@ const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.nextLink, Parameters.locationName ], headerParameters: [Parameters.accept], @@ -1362,8 +1380,8 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.managedInstanceName @@ -1390,7 +1408,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1401,6 +1419,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName @@ -1419,9 +1438,9 @@ const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.managedInstanceName @@ -1440,8 +1459,8 @@ const listByResourceGroupInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.managedInstanceName @@ -1449,22 +1468,3 @@ const listByResourceGroupInstanceNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult - }, - default: {} - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts index ee4cdc7ed63f..6e2d870d7637 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts @@ -140,6 +140,26 @@ export class LongTermRetentionPoliciesImpl } } + /** + * Gets a database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: LongTermRetentionPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -276,26 +296,6 @@ export class LongTermRetentionPoliciesImpl return poller.pollUntilDone(); } - /** - * Gets a database's long term retention policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: LongTermRetentionPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -321,6 +321,27 @@ export class LongTermRetentionPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", @@ -331,14 +352,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName + Parameters.subscriptionId, + Parameters.policyName1 ], headerParameters: [Parameters.accept], serializer @@ -362,39 +383,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters30, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters46, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.policyName1 ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -408,10 +408,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts b/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts index 7d37a81d521e..48421453c0a5 100644 --- a/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts @@ -71,15 +71,15 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion, Parameters.maintenanceWindowOptionsName ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts b/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts index 46eb3995825f..e3b457a5367b 100644 --- a/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts @@ -103,13 +103,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.maintenanceWindowName], + queryParameters: [Parameters.apiVersion, Parameters.maintenanceWindowName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -119,14 +119,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/maintenanceWindows/current", httpMethod: "PUT", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters31, - queryParameters: [Parameters.apiVersion3, Parameters.maintenanceWindowName], + requestBody: Parameters.parameters47, + queryParameters: [Parameters.apiVersion, Parameters.maintenanceWindowName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", diff --git a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts index a3ebdc263efd..218b36551418 100644 --- a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts @@ -142,6 +142,26 @@ export class ManagedBackupShortTermRetentionPoliciesImpl } } + /** + * Gets a managed database's short term retention policy list. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a managed database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -402,26 +422,6 @@ export class ManagedBackupShortTermRetentionPoliciesImpl return poller.pollUntilDone(); } - /** - * Gets a managed database's short term retention policy list. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -455,6 +455,27 @@ export class ManagedBackupShortTermRetentionPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", @@ -465,14 +486,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1 + Parameters.policyName2 ], headerParameters: [Parameters.accept], serializer @@ -496,17 +517,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1 + Parameters.policyName2 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -529,41 +550,20 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1 + Parameters.policyName2 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.databaseName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -575,9 +575,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts index 4f21f56c00dd..8580038f8612 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts @@ -260,12 +260,12 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -281,14 +281,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName, - Parameters.advancedThreatProtectionName + Parameters.subscriptionId, + Parameters.advancedThreatProtectionName, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer @@ -306,17 +306,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters85, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters49, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName, - Parameters.advancedThreatProtectionName + Parameters.subscriptionId, + Parameters.advancedThreatProtectionName, + Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -331,9 +331,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts index 8305947586e6..4954dc4647a7 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts @@ -407,7 +407,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion, Parameters.schema, Parameters.table, Parameters.column, @@ -416,9 +416,9 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -434,12 +434,12 @@ const listByTableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.managedInstanceName @@ -457,12 +457,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -482,9 +482,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], @@ -502,9 +502,9 @@ const listByTableNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.schemaName, Parameters.tableName, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts index 1e6d12515c03..f397f4734878 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts @@ -194,14 +194,14 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.filter1, - Parameters.onlyLatestPerDatabase, - Parameters.apiVersion8 + Parameters.apiVersion, + Parameters.filter, + Parameters.onlyLatestPerDatabase ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName ], headerParameters: [Parameters.accept], @@ -217,13 +217,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.locationName, - Parameters.operationId + Parameters.subscriptionId, + Parameters.operationId, + Parameters.locationName ], headerParameters: [Parameters.accept], serializer @@ -239,8 +239,8 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts index 8fa799c006f5..01b5e3b7e828 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts @@ -239,12 +239,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.queryId ], @@ -262,16 +262,16 @@ const listByQueryOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion, Parameters.startTime, Parameters.endTime, Parameters.interval ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.queryId ], @@ -289,9 +289,9 @@ const listByQueryNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName, Parameters.queryId diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts index 4495b39a248a..9aa0639af9a3 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts @@ -65,13 +65,13 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters74, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters53, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts index 93e16abc5e05..374ee8c43a2a 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts @@ -71,12 +71,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.restoreDetailsName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts index 4cd53b391edf..5f5daa940d6a 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts @@ -219,12 +219,12 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -240,12 +240,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.managedInstanceName ], @@ -263,9 +263,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts index bbdd9b4820be..3797acab557a 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts @@ -135,6 +135,27 @@ export class ManagedDatabaseSecurityAlertPoliciesImpl } } + /** + * Gets a list of managed database's security alert policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policies are + * defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a managed database's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -194,27 +215,6 @@ export class ManagedDatabaseSecurityAlertPoliciesImpl ); } - /** - * Gets a list of managed database's security alert policies. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the managed database for which the security alert policies are - * defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -247,74 +247,74 @@ export class ManagedDatabaseSecurityAlertPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicyListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.securityAlertPolicyName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy }, - 201: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy - }, default: {} }, - requestBody: Parameters.parameters33, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.securityAlertPolicyName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicyListResult + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy + }, + 201: { + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters50, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, + Parameters.securityAlertPolicyName, Parameters.managedInstanceName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -328,9 +328,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts index 6d0c1c76d83e..a3a24dbb483e 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts @@ -191,17 +191,17 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.filter1, - Parameters.skip, - Parameters.apiVersion3, + Parameters.apiVersion, Parameters.skiptoken, + Parameters.filter, + Parameters.skip, Parameters.top ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -218,9 +218,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts index c2691e7a4472..26a11dba3dfe 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts @@ -21,6 +21,11 @@ import { ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams, ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams, ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse, + ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams, + ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams, + ManagedDatabaseSensitivityLabelsListByDatabaseResponse, + SensitivityLabelUpdateList, + ManagedDatabaseSensitivityLabelsUpdateOptionalParams, SensitivityLabelSource, ManagedDatabaseSensitivityLabelsGetOptionalParams, ManagedDatabaseSensitivityLabelsGetResponse, @@ -29,10 +34,9 @@ import { ManagedDatabaseSensitivityLabelsDeleteOptionalParams, ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams, ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams, - SensitivityLabelUpdateList, - ManagedDatabaseSensitivityLabelsUpdateOptionalParams, ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse, - ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse + ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse, + ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse } from "../models"; /// @@ -237,6 +241,170 @@ export class ManagedDatabaseSensitivityLabelsImpl } } + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + public listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( + resourceGroupName, + managedInstanceName, + databaseName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByDatabasePagingPage( + resourceGroupName, + managedInstanceName, + databaseName, + options, + settings + ); + } + }; + } + + private async *listByDatabasePagingPage( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedDatabaseSensitivityLabelsListByDatabaseResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDatabase( + resourceGroupName, + managedInstanceName, + databaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + managedInstanceName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByDatabasePagingAll( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( + resourceGroupName, + managedInstanceName, + databaseName, + options + )) { + yield* page; + } + } + + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listCurrentByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listCurrentByDatabaseOperationSpec + ); + } + + /** + * Update sensitivity labels of a given database using an operations batch. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters A list of sensitivity label update operations. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: SensitivityLabelUpdateList, + options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listRecommendedByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams + ): Promise< + ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listRecommendedByDatabaseOperationSpec + ); + } + /** * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -422,85 +590,66 @@ export class ManagedDatabaseSensitivityLabelsImpl * @param databaseName The name of the database. * @param options The options parameters. */ - private _listCurrentByDatabase( + private _listByDatabase( resourceGroupName: string, managedInstanceName: string, databaseName: string, - options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams - ): Promise { + options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, managedInstanceName, databaseName, options }, - listCurrentByDatabaseOperationSpec + listByDatabaseOperationSpec ); } /** - * Update sensitivity labels of a given database using an operations batch. + * ListCurrentByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. - * @param parameters A list of sensitivity label update operations. + * @param nextLink The nextLink from the previous successful call to the ListCurrentByDatabase method. * @param options The options parameters. */ - update( + private _listCurrentByDatabaseNext( resourceGroupName: string, managedInstanceName: string, databaseName: string, - parameters: SensitivityLabelUpdateList, - options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams - ): Promise { + nextLink: string, + options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams + ): Promise< + ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse + > { return this.client.sendOperationRequest( { resourceGroupName, managedInstanceName, databaseName, - parameters, + nextLink, options }, - updateOperationSpec - ); - } - - /** - * Gets the sensitivity labels of a given database - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listRecommendedByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams - ): Promise< - ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse - > { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listRecommendedByDatabaseOperationSpec + listCurrentByDatabaseNextOperationSpec ); } /** - * ListCurrentByDatabaseNext + * ListRecommendedByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. - * @param nextLink The nextLink from the previous successful call to the ListCurrentByDatabase method. + * @param nextLink The nextLink from the previous successful call to the ListRecommendedByDatabase + * method. * @param options The options parameters. */ - private _listCurrentByDatabaseNext( + private _listRecommendedByDatabaseNext( resourceGroupName: string, managedInstanceName: string, databaseName: string, nextLink: string, - options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams + options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams ): Promise< - ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse + ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse > { return this.client.sendOperationRequest( { @@ -510,29 +659,26 @@ export class ManagedDatabaseSensitivityLabelsImpl nextLink, options }, - listCurrentByDatabaseNextOperationSpec + listRecommendedByDatabaseNextOperationSpec ); } /** - * ListRecommendedByDatabaseNext + * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. - * @param nextLink The nextLink from the previous successful call to the ListRecommendedByDatabase - * method. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. * @param options The options parameters. */ - private _listRecommendedByDatabaseNext( + private _listByDatabaseNext( resourceGroupName: string, managedInstanceName: string, databaseName: string, nextLink: string, - options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams - ): Promise< - ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse - > { + options?: ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -541,13 +687,83 @@ export class ManagedDatabaseSensitivityLabelsImpl nextLink, options }, - listRecommendedByDatabaseNextOperationSpec + listByDatabaseNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.skipToken, + Parameters.count + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", + httpMethod: "PATCH", + responses: { 200: {}, default: {} }, + requestBody: Parameters.parameters51, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.contentType], + mediaType: "json", + serializer +}; +const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.skipToken, + Parameters.includeDisabledRecommendations + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", @@ -558,12 +774,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -586,20 +802,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters72, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters52, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, Parameters.managedInstanceName, Parameters.sensitivityLabelSource1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -608,12 +824,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -627,12 +843,12 @@ const disableRecommendationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -646,12 +862,12 @@ const enableRecommendationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -660,9 +876,9 @@ const enableRecommendationOperationSpec: coreClient.OperationSpec = { ], serializer }; -const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/sensitivityLabels", httpMethod: "GET", responses: { 200: { @@ -670,43 +886,19 @@ const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [ - Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion3, - Parameters.count - ], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", - httpMethod: "PATCH", - responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters73, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.databaseName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", +const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { @@ -714,23 +906,18 @@ const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [ - Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion3, - Parameters.includeDisabledRecommendations - ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, + Parameters.nextLink, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { +const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -741,16 +928,16 @@ const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -761,9 +948,9 @@ const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts index 502c6909d5fc..bc8614c36c86 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts @@ -242,12 +242,12 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.managedInstanceName ], @@ -264,12 +264,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.managedInstanceName @@ -288,9 +288,9 @@ const listBySchemaNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.schemaName, Parameters.managedInstanceName diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts index 96f3658dec02..31c788627e62 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts @@ -135,6 +135,27 @@ export class ManagedDatabaseTransparentDataEncryptionImpl } } + /** + * Gets a list of managed database's transparent data encryptions. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the transparent data encryption is + * defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a managed database's transparent data encryption. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -195,27 +216,6 @@ export class ManagedDatabaseTransparentDataEncryptionImpl ); } - /** - * Gets a list of managed database's transparent data encryptions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the managed database for which the transparent data encryption is - * defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -250,74 +250,74 @@ export class ManagedDatabaseTransparentDataEncryptionImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedTransparentDataEncryption + bodyMapper: Mappers.ManagedTransparentDataEncryptionListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName, - Parameters.tdeName + Parameters.subscriptionId, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ManagedTransparentDataEncryption }, - 201: { - bodyMapper: Mappers.ManagedTransparentDataEncryption - }, default: {} }, - requestBody: Parameters.parameters34, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.tdeName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ManagedTransparentDataEncryptionListResult + bodyMapper: Mappers.ManagedTransparentDataEncryption + }, + 201: { + bodyMapper: Mappers.ManagedTransparentDataEncryption }, default: {} }, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters54, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.tdeName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -331,9 +331,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts index 7ba333464cdb..9be4e45d4237 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts @@ -16,7 +16,7 @@ import { VulnerabilityAssessmentPolicyBaselineName, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse, - DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams @@ -92,7 +92,7 @@ export class ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, - parameters: DatabaseVulnerabilityAssessmentRuleBaseline, + parameters: DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams ): Promise< ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse @@ -157,19 +157,20 @@ const getOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentRuleBaseline + bodyMapper: + Mappers.DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName, + Parameters.baselineName1, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -181,23 +182,24 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentRuleBaseline + bodyMapper: + Mappers.DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated }, default: {} }, - requestBody: Parameters.parameters15, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters55, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName, + Parameters.baselineName1, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -206,15 +208,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName, + Parameters.baselineName1, Parameters.managedInstanceName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts index 469dbc414f2d..ffaa91714c49 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts @@ -25,11 +25,11 @@ import { ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse, - ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, - ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams, - ManagedDatabaseVulnerabilityAssessmentScansExportResponse, ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansGetResponse, + ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams, + ManagedDatabaseVulnerabilityAssessmentScansExportResponse, + ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse } from "../models"; @@ -150,6 +150,98 @@ export class ManagedDatabaseVulnerabilityAssessmentScansImpl } } + /** + * Lists the vulnerability assessment scans of a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams + ): Promise< + ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + vulnerabilityAssessmentName, + options + }, + listByDatabaseOperationSpec + ); + } + + /** + * Gets a vulnerability assessment scan record of a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + getOperationSpec + ); + } + + /** + * Convert an existing scan result to a human readable format. If already exists nothing happens + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the scanned database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id. + * @param options The options parameters. + */ + export( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + exportOperationSpec + ); + } + /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -256,98 +348,6 @@ export class ManagedDatabaseVulnerabilityAssessmentScansImpl return poller.pollUntilDone(); } - /** - * Convert an existing scan result to a human readable format. If already exists nothing happens - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the scanned database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id. - * @param options The options parameters. - */ - export( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - vulnerabilityAssessmentName, - scanId, - options - }, - exportOperationSpec - ); - } - - /** - * Lists the vulnerability assessment scans of a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams - ): Promise< - ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse - > { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - vulnerabilityAssessmentName, - options - }, - listByDatabaseOperationSpec - ); - } - - /** - * Gets a vulnerability assessment scan record of a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - vulnerabilityAssessmentName, - scanId, - options - }, - getOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -384,42 +384,44 @@ export class ManagedDatabaseVulnerabilityAssessmentScansImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const initiateScanOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.scanId, Parameters.managedInstanceName ], + headerParameters: [Parameters.accept], serializer }; -const exportOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport - }, - 201: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport + bodyMapper: Mappers.VulnerabilityAssessmentScanRecord }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId, Parameters.managedInstanceName @@ -427,49 +429,47 @@ const exportOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const exportOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport + }, + 201: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, + Parameters.scanId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const initiateScanOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecord - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId, Parameters.managedInstanceName ], - headerParameters: [Parameters.accept], serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -483,9 +483,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts index 6a319ea249ad..c1533bc20698 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts @@ -135,6 +135,26 @@ export class ManagedDatabaseVulnerabilityAssessmentsImpl } } + /** + * Lists the vulnerability assessments of a managed database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database for which the vulnerability assessment is defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets the database's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -222,26 +242,6 @@ export class ManagedDatabaseVulnerabilityAssessmentsImpl ); } - /** - * Lists the vulnerability assessments of a managed database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database for which the vulnerability assessment is defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -275,6 +275,27 @@ export class ManagedDatabaseVulnerabilityAssessmentsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", @@ -285,12 +306,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], @@ -311,16 +332,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { default: {} }, requestBody: Parameters.parameters16, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -329,36 +350,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.managedInstanceName - ], - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.databaseName, + Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], - headerParameters: [Parameters.accept], serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -372,9 +372,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabases.ts b/sdk/sql/arm-sql/src/operations/managedDatabases.ts index 3291b982c3e9..8956d67b9a5c 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabases.ts @@ -1044,11 +1044,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1064,12 +1064,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1094,16 +1094,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters91, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters56, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1112,12 +1112,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], serializer @@ -1141,16 +1141,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters92, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters57, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1159,13 +1159,13 @@ const cancelMoveOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/cancelMove", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters93, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], @@ -1177,13 +1177,13 @@ const completeMoveOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/completeMove", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters93, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], @@ -1195,13 +1195,13 @@ const completeRestoreOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/completeRestore", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters94, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters59, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], @@ -1213,13 +1213,13 @@ const startMoveOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/startMove", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters95, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters60, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], @@ -1236,11 +1236,11 @@ const listInaccessibleByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1257,8 +1257,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], @@ -1276,8 +1276,8 @@ const listInaccessibleByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts index 22f363c4a739..6a5eddc427fc 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts @@ -405,11 +405,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -425,11 +425,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.administratorName ], @@ -455,16 +455,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters35, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters61, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.administratorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -473,11 +473,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators/{administratorName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.administratorName ], @@ -494,8 +494,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts index 1fa9f7d88afe..a9886cac4ae5 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts @@ -325,11 +325,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -345,13 +345,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.advancedThreatProtectionName + Parameters.subscriptionId, + Parameters.advancedThreatProtectionName, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer @@ -375,16 +375,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters86, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters62, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.advancedThreatProtectionName + Parameters.subscriptionId, + Parameters.advancedThreatProtectionName, + Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -399,8 +399,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts index d69b36b18a72..d755f1698fa5 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts @@ -132,6 +132,24 @@ export class ManagedInstanceAzureADOnlyAuthenticationsImpl } } + /** + * Gets a list of server Azure Active Directory only authentications. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + /** * Gets a specific Azure Active Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -362,24 +380,6 @@ export class ManagedInstanceAzureADOnlyAuthenticationsImpl return poller.pollUntilDone(); } - /** - * Gets a list of server Azure Active Directory only authentications. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param options The options parameters. - */ - private _listByInstance( - resourceGroupName: string, - managedInstanceName: string, - options?: ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec - ); - } - /** * ListByInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -405,6 +405,26 @@ export class ManagedInstanceAzureADOnlyAuthenticationsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceAzureADOnlyAuthListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/{authenticationName}", @@ -415,11 +435,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.authenticationName ], @@ -445,16 +465,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters36, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters63, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.authenticationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -463,36 +483,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/{authenticationName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.authenticationName ], serializer }; -const listByInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceAzureADOnlyAuthListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByInstanceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -504,8 +504,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts b/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts index 001cbaa8a45b..13724d2afb00 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts @@ -309,11 +309,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -329,11 +329,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dtcName ], @@ -359,16 +359,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters88, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters64, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dtcName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -383,8 +383,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts index 492e33384460..947625081632 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts @@ -25,11 +25,11 @@ import { ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams, ManagedInstanceEncryptionProtectorsListByInstanceResponse, EncryptionProtectorName, - ManagedInstanceEncryptionProtectorsRevalidateOptionalParams, ManagedInstanceEncryptionProtectorsGetOptionalParams, ManagedInstanceEncryptionProtectorsGetResponse, ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams, ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse, + ManagedInstanceEncryptionProtectorsRevalidateOptionalParams, ManagedInstanceEncryptionProtectorsListByInstanceNextResponse } from "../models"; @@ -133,23 +133,73 @@ export class ManagedInstanceEncryptionProtectorsImpl } /** - * Revalidates an existing encryption protector. + * Gets a list of managed instance encryption protectors + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + + /** + * Gets a managed instance encryption protector. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param encryptionProtectorName The name of the encryption protector to be retrieved. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: ManagedInstanceEncryptionProtectorsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + encryptionProtectorName, + options + }, + getOperationSpec + ); + } + + /** + * Updates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be updated. + * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ - async beginRevalidate( + async beginCreateOrUpdate( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - ): Promise, void>> { + parameters: ManagedInstanceEncryptionProtector, + options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -191,11 +241,15 @@ export class ManagedInstanceEncryptionProtectorsImpl resourceGroupName, managedInstanceName, encryptionProtectorName, + parameters, options }, - spec: revalidateOperationSpec + spec: createOrUpdateOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -204,96 +258,49 @@ export class ManagedInstanceEncryptionProtectorsImpl } /** - * Revalidates an existing encryption protector. + * Updates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be updated. + * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ - async beginRevalidateAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - ): Promise { - const poller = await this.beginRevalidate( + parameters: ManagedInstanceEncryptionProtector, + options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, managedInstanceName, encryptionProtectorName, + parameters, options ); return poller.pollUntilDone(); } /** - * Gets a list of managed instance encryption protectors - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param options The options parameters. - */ - private _listByInstance( - resourceGroupName: string, - managedInstanceName: string, - options?: ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec - ); - } - - /** - * Gets a managed instance encryption protector. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param encryptionProtectorName The name of the encryption protector to be retrieved. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - managedInstanceName: string, - encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - encryptionProtectorName, - options - }, - getOperationSpec - ); - } - - /** - * Updates an existing encryption protector. + * Revalidates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be updated. - * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginRevalidate( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, - parameters: ManagedInstanceEncryptionProtector, - options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse - > - > { + options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -335,15 +342,11 @@ export class ManagedInstanceEncryptionProtectorsImpl resourceGroupName, managedInstanceName, encryptionProtectorName, - parameters, options }, - spec: createOrUpdateOperationSpec + spec: revalidateOperationSpec }); - const poller = await createHttpPoller< - ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -352,26 +355,23 @@ export class ManagedInstanceEncryptionProtectorsImpl } /** - * Updates an existing encryption protector. + * Revalidates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be updated. - * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginRevalidateAndWait( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, - parameters: ManagedInstanceEncryptionProtector, - options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + ): Promise { + const poller = await this.beginRevalidate( resourceGroupName, managedInstanceName, encryptionProtectorName, - parameters, options ); return poller.pollUntilDone(); @@ -400,21 +400,6 @@ export class ManagedInstanceEncryptionProtectorsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const revalidateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}/revalidate", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.encryptionProtectorName, - Parameters.managedInstanceName - ], - serializer -}; const listByInstanceOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector", @@ -425,11 +410,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -445,11 +430,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.encryptionProtectorName, Parameters.managedInstanceName ], @@ -475,19 +460,34 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters37, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters65, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.encryptionProtectorName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; +const revalidateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}/revalidate", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.encryptionProtectorName, + Parameters.managedInstanceName + ], + serializer +}; const listByInstanceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -499,8 +499,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts index 725908c2504c..07b100dd0585 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts @@ -398,11 +398,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -418,11 +418,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.keyName ], @@ -448,16 +448,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters66, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.keyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -466,11 +466,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys/{keyName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.keyName ], @@ -487,8 +487,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts index d3868036d6bb..ea2cdcff8848 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts @@ -29,6 +29,8 @@ import { ManagedInstanceLongTermRetentionPoliciesGetResponse, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse, + ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams, + ManagedInstanceLongTermRetentionPoliciesDeleteResponse, ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse } from "../models"; @@ -140,6 +142,26 @@ export class ManagedInstanceLongTermRetentionPoliciesImpl } } + /** + * Gets a database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a managed database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -287,23 +309,111 @@ export class ManagedInstanceLongTermRetentionPoliciesImpl } /** - * Gets a database's long term retention policy. + * Deletes a managed database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. + * @param policyName The policy name. Should always be Default. * @param options The options parameters. */ - private _listByDatabase( + async beginDelete( resourceGroupName: string, managedInstanceName: string, databaseName: string, - options?: ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec + policyName: ManagedInstanceLongTermRetentionPolicyName, + options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstanceLongTermRetentionPoliciesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + managedInstanceName, + databaseName, + policyName, + options + }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + ManagedInstanceLongTermRetentionPoliciesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a managed database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param policyName The policy name. Should always be Default. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + policyName: ManagedInstanceLongTermRetentionPolicyName, + options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + managedInstanceName, + databaseName, + policyName, + options ); + return poller.pollUntilDone(); } /** @@ -339,6 +449,27 @@ export class ManagedInstanceLongTermRetentionPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", @@ -349,14 +480,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName2 + Parameters.policyName3 ], headerParameters: [Parameters.accept], serializer @@ -380,37 +511,47 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters39, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters67, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName2 + Parameters.policyName3 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", + httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicyListResult + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy + }, + 201: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy + }, + 202: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy + }, + 204: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.policyName3 ], headerParameters: [Parameters.accept], serializer @@ -426,9 +567,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts index 83f954fa3669..f49dea5da490 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts @@ -214,11 +214,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -234,11 +234,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.operationId, Parameters.managedInstanceName ], @@ -250,11 +250,11 @@ const cancelOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations/{operationId}/cancel", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.operationId, Parameters.managedInstanceName ], @@ -271,8 +271,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts index 56b94d8ffb79..b05b0abf44b2 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts @@ -131,6 +131,26 @@ export class ManagedInstancePrivateEndpointConnectionsImpl } } + /** + * Gets all private endpoint connections on a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByManagedInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams + ): Promise< + ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByManagedInstanceOperationSpec + ); + } + /** * Gets a private endpoint connection. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -362,26 +382,6 @@ export class ManagedInstancePrivateEndpointConnectionsImpl return poller.pollUntilDone(); } - /** - * Gets all private endpoint connections on a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param options The options parameters. - */ - private _listByManagedInstance( - resourceGroupName: string, - managedInstanceName: string, - options?: ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams - ): Promise< - ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse - > { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByManagedInstanceOperationSpec - ); - } - /** * ListByManagedInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -407,6 +407,26 @@ export class ManagedInstancePrivateEndpointConnectionsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstancePrivateEndpointConnectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections/{privateEndpointConnectionName}", @@ -417,11 +437,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.privateEndpointConnectionName ], @@ -447,16 +467,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters40, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters68, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -465,36 +485,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.privateEndpointConnectionName ], serializer }; -const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstancePrivateEndpointConnectionListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -506,8 +506,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts index d4272d26ac39..8cf4021e1a89 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts @@ -195,11 +195,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -215,11 +215,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.groupName ], @@ -237,8 +237,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts index ca77a8f4e4ae..64b6a206df5d 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts @@ -132,12 +132,12 @@ const createOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/tdeCertificates", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters41, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters69, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts index 374e12c30b00..de28bfaad8ef 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts @@ -127,6 +127,25 @@ export class ManagedInstanceVulnerabilityAssessmentsImpl } } + /** + * Gets the managed instance's vulnerability assessment policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance for which the vulnerability assessments + * is defined. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + /** * Gets the managed instance's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -210,25 +229,6 @@ export class ManagedInstanceVulnerabilityAssessmentsImpl ); } - /** - * Gets the managed instance's vulnerability assessment policies. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance for which the vulnerability assessments - * is defined. - * @param options The options parameters. - */ - private _listByInstance( - resourceGroupName: string, - managedInstanceName: string, - options?: ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec - ); - } - /** * ListByInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -255,6 +255,26 @@ export class ManagedInstanceVulnerabilityAssessmentsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", @@ -265,11 +285,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], @@ -289,16 +309,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters42, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters70, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -307,34 +327,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vulnerabilityAssessmentName, - Parameters.managedInstanceName - ], - serializer -}; -const listByInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceVulnerabilityAssessmentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], - headerParameters: [Parameters.accept], serializer }; const listByInstanceNextOperationSpec: coreClient.OperationSpec = { @@ -348,8 +348,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstances.ts b/sdk/sql/arm-sql/src/operations/managedInstances.ts index 8ae5acfe20f6..49b9e159a62c 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstances.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstances.ts @@ -47,8 +47,12 @@ import { ManagedInstancesUpdateOptionalParams, ManagedInstancesUpdateResponse, ManagedInstancesFailoverOptionalParams, + ManagedInstancesRefreshStatusOptionalParams, + ManagedInstancesRefreshStatusResponse, ManagedInstancesStartOptionalParams, + ManagedInstancesStartResponse, ManagedInstancesStopOptionalParams, + ManagedInstancesStopResponse, ManagedInstancesListNextResponse, ManagedInstancesListByInstancePoolNextResponse, ManagedInstancesListByResourceGroupNextResponse, @@ -892,6 +896,99 @@ export class ManagedInstancesImpl implements ManagedInstances { ); } + /** + * Refresh external governance enablement status. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + async beginRefreshStatus( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesRefreshStatusOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesRefreshStatusResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, managedInstanceName, options }, + spec: refreshStatusOperationSpec + }); + const poller = await createHttpPoller< + ManagedInstancesRefreshStatusResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Refresh external governance enablement status. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + async beginRefreshStatusAndWait( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesRefreshStatusOptionalParams + ): Promise { + const poller = await this.beginRefreshStatus( + resourceGroupName, + managedInstanceName, + options + ); + return poller.pollUntilDone(); + } + /** * Starts the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -903,11 +1000,16 @@ export class ManagedInstancesImpl implements ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesStartResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -948,7 +1050,10 @@ export class ManagedInstancesImpl implements ManagedInstances { args: { resourceGroupName, managedInstanceName, options }, spec: startOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ManagedInstancesStartResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -968,7 +1073,7 @@ export class ManagedInstancesImpl implements ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams - ): Promise { + ): Promise { const poller = await this.beginStart( resourceGroupName, managedInstanceName, @@ -988,11 +1093,16 @@ export class ManagedInstancesImpl implements ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesStopResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1033,7 +1143,10 @@ export class ManagedInstancesImpl implements ManagedInstances { args: { resourceGroupName, managedInstanceName, options }, spec: stopOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ManagedInstancesStopResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -1053,7 +1166,7 @@ export class ManagedInstancesImpl implements ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams - ): Promise { + ): Promise { const poller = await this.beginStop( resourceGroupName, managedInstanceName, @@ -1189,7 +1302,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -1204,11 +1317,11 @@ const listByInstancePoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], headerParameters: [Parameters.accept], @@ -1224,11 +1337,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1243,12 +1356,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName1 ], headerParameters: [Parameters.accept], serializer @@ -1272,15 +1385,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters96, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters71, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1289,12 +1402,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName1 ], serializer }; @@ -1317,15 +1430,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters97, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters72, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1334,11 +1447,11 @@ const failoverOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.replicaType], + queryParameters: [Parameters.apiVersion, Parameters.replicaType], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], serializer @@ -1353,12 +1466,43 @@ const listOutboundNetworkDependenciesByManagedInstanceOperationSpec: coreClient. }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.managedInstanceName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const refreshStatusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/refreshExternalGovernanceStatus", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RefreshExternalGovernanceStatusOperationResultMI + }, + 201: { + bodyMapper: Mappers.RefreshExternalGovernanceStatusOperationResultMI + }, + 202: { + bodyMapper: Mappers.RefreshExternalGovernanceStatusOperationResultMI + }, + 204: { + bodyMapper: Mappers.RefreshExternalGovernanceStatusOperationResultMI + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName1 ], headerParameters: [Parameters.accept], serializer @@ -1367,28 +1511,58 @@ const startOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/start", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstance + }, + 201: { + bodyMapper: Mappers.ManagedInstance + }, + 202: { + bodyMapper: Mappers.ManagedInstance + }, + 204: { + bodyMapper: Mappers.ManagedInstance + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName1 ], + headerParameters: [Parameters.accept], serializer }; const stopOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/stop", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstance + }, + 201: { + bodyMapper: Mappers.ManagedInstance + }, + 202: { + bodyMapper: Mappers.ManagedInstance + }, + 204: { + bodyMapper: Mappers.ManagedInstance + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName1 ], + headerParameters: [Parameters.accept], serializer }; const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { @@ -1402,7 +1576,7 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion, Parameters.startTime, Parameters.endTime, Parameters.interval, @@ -1413,9 +1587,9 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName1 ], headerParameters: [Parameters.accept], serializer @@ -1448,8 +1622,8 @@ const listByInstancePoolNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.instancePoolName ], @@ -1467,8 +1641,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -1485,10 +1659,10 @@ const listOutboundNetworkDependenciesByManagedInstanceNextOperationSpec: coreCli }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.managedInstanceName + Parameters.managedInstanceName1 ], headerParameters: [Parameters.accept], serializer @@ -1504,10 +1678,10 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.managedInstanceName + Parameters.managedInstanceName1 ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts b/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts index 0becad7c84cf..97804509397b 100644 --- a/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts @@ -455,12 +455,12 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -476,12 +476,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.ledgerDigestUploads1 ], @@ -507,17 +507,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters98, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters73, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.ledgerDigestUploads1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -540,12 +540,12 @@ const disableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.ledgerDigestUploads1 ], @@ -563,9 +563,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts index cfa11d83dfc7..10e8c2d4dc53 100644 --- a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts @@ -142,6 +142,33 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImp } } + /** + * Gets a dropped database's short term retention policy list. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param options The options parameters. + */ + private _listByRestorableDroppedDatabase( + resourceGroupName: string, + managedInstanceName: string, + restorableDroppedDatabaseId: string, + options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams + ): Promise< + ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + restorableDroppedDatabaseId, + options + }, + listByRestorableDroppedDatabaseOperationSpec + ); + } + /** * Gets a dropped database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -412,33 +439,6 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImp return poller.pollUntilDone(); } - /** - * Gets a dropped database's short term retention policy list. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param restorableDroppedDatabaseId - * @param options The options parameters. - */ - private _listByRestorableDroppedDatabase( - resourceGroupName: string, - managedInstanceName: string, - restorableDroppedDatabaseId: string, - options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams - ): Promise< - ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse - > { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - restorableDroppedDatabaseId, - options - }, - listByRestorableDroppedDatabaseOperationSpec - ); - } - /** * ListByRestorableDroppedDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -473,6 +473,27 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImp // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByRestorableDroppedDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.restorableDroppedDatabaseId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}", @@ -483,13 +504,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1, + Parameters.policyName2, Parameters.restorableDroppedDatabaseId ], headerParameters: [Parameters.accept], @@ -514,17 +535,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1, + Parameters.policyName2, Parameters.restorableDroppedDatabaseId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -547,39 +568,18 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.policyName1, - Parameters.restorableDroppedDatabaseId - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByRestorableDroppedDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.managedInstanceName, + Parameters.policyName2, Parameters.restorableDroppedDatabaseId ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByRestorableDroppedDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -593,8 +593,8 @@ const listByRestorableDroppedDatabaseNextOperationSpec: coreClient.OperationSpec }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName, Parameters.restorableDroppedDatabaseId diff --git a/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts b/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts index 9892cdac4d73..2e4050d9e641 100644 --- a/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts +++ b/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts @@ -510,11 +510,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -530,11 +530,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dnsAliasName ], @@ -560,16 +560,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters81, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters74, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dnsAliasName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -578,11 +578,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dnsAliases/{dnsAliasName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dnsAliasName ], @@ -607,16 +607,16 @@ const acquireOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters82, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters75, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dnsAliasName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -631,8 +631,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts index aa8b76cbc463..5c3afe7b7478 100644 --- a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts @@ -24,7 +24,7 @@ import { ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams, ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams, ManagedServerSecurityAlertPoliciesListByInstanceResponse, - SecurityAlertPolicyName, + SecurityAlertPolicyNameAutoGenerated, ManagedServerSecurityAlertPoliciesGetOptionalParams, ManagedServerSecurityAlertPoliciesGetResponse, ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams, @@ -131,6 +131,24 @@ export class ManagedServerSecurityAlertPoliciesImpl } } + /** + * Get the managed server's threat detection policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + /** * Get a managed server's threat detection policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -142,7 +160,7 @@ export class ManagedServerSecurityAlertPoliciesImpl get( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -168,7 +186,7 @@ export class ManagedServerSecurityAlertPoliciesImpl async beginCreateOrUpdate( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise< @@ -250,7 +268,7 @@ export class ManagedServerSecurityAlertPoliciesImpl async beginCreateOrUpdateAndWait( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise { @@ -264,24 +282,6 @@ export class ManagedServerSecurityAlertPoliciesImpl return poller.pollUntilDone(); } - /** - * Get the managed server's threat detection policies. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param options The options parameters. - */ - private _listByInstance( - resourceGroupName: string, - managedInstanceName: string, - options?: ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec - ); - } - /** * ListByInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -305,6 +305,26 @@ export class ManagedServerSecurityAlertPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedServerSecurityAlertPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}", @@ -315,13 +335,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.securityAlertPolicyName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.securityAlertPolicyName1 ], headerParameters: [Parameters.accept], serializer @@ -345,37 +365,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters43, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters76, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.securityAlertPolicyName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedServerSecurityAlertPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.managedInstanceName + Parameters.managedInstanceName, + Parameters.securityAlertPolicyName1 ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByInstanceNextOperationSpec: coreClient.OperationSpec = { @@ -389,8 +389,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts b/sdk/sql/arm-sql/src/operations/networkSecurityPerimeterConfigurations.ts similarity index 56% rename from sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts rename to sdk/sql/arm-sql/src/operations/networkSecurityPerimeterConfigurations.ts index 657d69692402..292ea8c4a9db 100644 --- a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts +++ b/sdk/sql/arm-sql/src/operations/networkSecurityPerimeterConfigurations.ts @@ -7,7 +7,8 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { ServerCommunicationLinks } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper"; +import { NetworkSecurityPerimeterConfigurations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; @@ -19,23 +20,25 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { - ServerCommunicationLink, - ServerCommunicationLinksListByServerOptionalParams, - ServerCommunicationLinksListByServerResponse, - ServerCommunicationLinksDeleteOptionalParams, - ServerCommunicationLinksGetOptionalParams, - ServerCommunicationLinksGetResponse, - ServerCommunicationLinksCreateOrUpdateOptionalParams, - ServerCommunicationLinksCreateOrUpdateResponse + NetworkSecurityPerimeterConfiguration, + NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams, + NetworkSecurityPerimeterConfigurationsListByServerOptionalParams, + NetworkSecurityPerimeterConfigurationsListByServerResponse, + NetworkSecurityPerimeterConfigurationsGetOptionalParams, + NetworkSecurityPerimeterConfigurationsGetResponse, + NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + NetworkSecurityPerimeterConfigurationsReconcileResponse, + NetworkSecurityPerimeterConfigurationsListByServerNextResponse } from "../models"; /// -/** Class containing ServerCommunicationLinks operations. */ -export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { +/** Class containing NetworkSecurityPerimeterConfigurations operations. */ +export class NetworkSecurityPerimeterConfigurationsImpl + implements NetworkSecurityPerimeterConfigurations { private readonly client: SqlManagementClient; /** - * Initialize a new instance of the class ServerCommunicationLinks class. + * Initialize a new instance of the class NetworkSecurityPerimeterConfigurations class. * @param client Reference to the service client */ constructor(client: SqlManagementClient) { @@ -43,7 +46,7 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { } /** - * Gets a list of server communication links. + * Gets a list of NSP configurations for a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -52,8 +55,8 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { public listByServer( resourceGroupName: string, serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams - ): PagedAsyncIterableIterator { + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + ): PagedAsyncIterableIterator { const iter = this.listByServerPagingAll( resourceGroupName, serverName, @@ -83,19 +86,37 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { private async *listByServerPagingPage( resourceGroupName: string, serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ServerCommunicationLinksListByServerResponse; - result = await this._listByServer(resourceGroupName, serverName, options); - yield result.value || []; + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NetworkSecurityPerimeterConfigurationsListByServerResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByServer(resourceGroupName, serverName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServerNext( + resourceGroupName, + serverName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } } private async *listByServerPagingAll( resourceGroupName: string, serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams - ): AsyncIterableIterator { + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + ): AsyncIterableIterator { for await (const page of this.listByServerPagingPage( resourceGroupName, serverName, @@ -106,70 +127,66 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { } /** - * Deletes a server communication link. + * Gets a list of NSP configurations for a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. * @param options The options parameters. */ - delete( + private _listByServer( resourceGroupName: string, serverName: string, - communicationLinkName: string, - options?: ServerCommunicationLinksDeleteOptionalParams - ): Promise { + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, communicationLinkName, options }, - deleteOperationSpec + { resourceGroupName, serverName, options }, + listByServerOperationSpec ); } /** - * Returns a server communication link. + * Gets a network security perimeter configuration. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. + * @param nspConfigName * @param options The options parameters. */ get( resourceGroupName: string, serverName: string, - communicationLinkName: string, - options?: ServerCommunicationLinksGetOptionalParams - ): Promise { + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, communicationLinkName, options }, + { resourceGroupName, serverName, nspConfigName, options }, getOperationSpec ); } /** - * Creates a server communication link. + * Reconcile network security perimeter configuration for SQL Resource Provider * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. + * @param nspConfigName * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginReconcile( resourceGroupName: string, serverName: string, - communicationLinkName: string, - parameters: ServerCommunicationLink, - options?: ServerCommunicationLinksCreateOrUpdateOptionalParams + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams ): Promise< SimplePollerLike< - OperationState, - ServerCommunicationLinksCreateOrUpdateResponse + OperationState, + NetworkSecurityPerimeterConfigurationsReconcileResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -207,154 +224,153 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - serverName, - communicationLinkName, - parameters, - options - }, - spec: createOrUpdateOperationSpec + args: { resourceGroupName, serverName, nspConfigName, options }, + spec: reconcileOperationSpec }); const poller = await createHttpPoller< - ServerCommunicationLinksCreateOrUpdateResponse, - OperationState + NetworkSecurityPerimeterConfigurationsReconcileResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; } /** - * Creates a server communication link. + * Reconcile network security perimeter configuration for SQL Resource Provider * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. + * @param nspConfigName * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginReconcileAndWait( resourceGroupName: string, serverName: string, - communicationLinkName: string, - parameters: ServerCommunicationLink, - options?: ServerCommunicationLinksCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + ): Promise { + const poller = await this.beginReconcile( resourceGroupName, serverName, - communicationLinkName, - parameters, + nspConfigName, options ); return poller.pollUntilDone(); } /** - * Gets a list of server communication links. + * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. + * @param nextLink The nextLink from the previous successful call to the ListByServer method. * @param options The options parameters. */ - private _listByServer( + private _listByServerNext( resourceGroupName: string, serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams - ): Promise { + nextLink: string, + options?: NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec + { resourceGroupName, serverName, nextLink, options }, + listByServerNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const deleteOperationSpec: coreClient.OperationSpec = { +const listByServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", - httpMethod: "DELETE", - responses: { 200: {} }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/networkSecurityPerimeterConfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult + }, + default: {} + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.communicationLinkName + Parameters.subscriptionId ], + headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/networkSecurityPerimeterConfigurations/{nspConfigName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerCommunicationLink - } + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration + }, + default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.communicationLinkName + Parameters.subscriptionId, + Parameters.nspConfigName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const reconcileOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/networkSecurityPerimeterConfigurations/{nspConfigName}/reconcile", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ServerCommunicationLink + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration }, 201: { - bodyMapper: Mappers.ServerCommunicationLink + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration }, 202: { - bodyMapper: Mappers.ServerCommunicationLink + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration }, 204: { - bodyMapper: Mappers.ServerCommunicationLink - } + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration + }, + default: {} }, - requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.communicationLinkName + Parameters.subscriptionId, + Parameters.nspConfigName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks", +const listByServerNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerCommunicationLinkListResult - } + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult + }, + default: {} }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/operations.ts b/sdk/sql/arm-sql/src/operations/operations.ts index 11395fed5450..2fbbeacf475e 100644 --- a/sdk/sql/arm-sql/src/operations/operations.ts +++ b/sdk/sql/arm-sql/src/operations/operations.ts @@ -125,7 +125,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts b/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts index 34f7a4eaae03..212f141d09f3 100644 --- a/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts @@ -126,6 +126,24 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { } } + /** + * Gets all outbound firewall rules on a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: OutboundFirewallRulesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets an outbound firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -152,14 +170,12 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn - * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ async beginCreateOrUpdate( resourceGroupName: string, serverName: string, outboundRuleFqdn: string, - parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< @@ -208,13 +224,7 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - serverName, - outboundRuleFqdn, - parameters, - options - }, + args: { resourceGroupName, serverName, outboundRuleFqdn, options }, spec: createOrUpdateOperationSpec }); const poller = await createHttpPoller< @@ -234,21 +244,18 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn - * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, outboundRuleFqdn: string, - parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serverName, outboundRuleFqdn, - parameters, options ); return poller.pollUntilDone(); @@ -343,24 +350,6 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { return poller.pollUntilDone(); } - /** - * Gets all outbound firewall rules on a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: OutboundFirewallRulesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -384,6 +373,26 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundFirewallRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules/{outboundRuleFqdn}", @@ -394,12 +403,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.outboundRuleFqdn ], headerParameters: [Parameters.accept], @@ -424,17 +433,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters65, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.outboundRuleFqdn ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const deleteOperationSpec: coreClient.OperationSpec = { @@ -442,34 +449,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules/{outboundRuleFqdn}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.outboundRuleFqdn - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundFirewallRuleListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.outboundRuleFqdn ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -483,9 +470,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts index a45dfefa2d64..6288063b637e 100644 --- a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts @@ -127,6 +127,24 @@ export class PrivateEndpointConnectionsImpl } } + /** + * Gets all private endpoint connections on a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: PrivateEndpointConnectionsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a private endpoint connection. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -349,24 +367,6 @@ export class PrivateEndpointConnectionsImpl return poller.pollUntilDone(); } - /** - * Gets all private endpoint connections on a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: PrivateEndpointConnectionsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -390,6 +390,26 @@ export class PrivateEndpointConnectionsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateEndpointConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}", @@ -400,12 +420,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.privateEndpointConnectionName ], headerParameters: [Parameters.accept], @@ -430,16 +450,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters44, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters77, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -448,34 +468,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.privateEndpointConnectionName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateEndpointConnections", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -489,9 +489,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts index de58d0c36ac9..d23fdb13805f 100644 --- a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts @@ -188,12 +188,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -208,12 +208,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.groupName ], headerParameters: [Parameters.accept], @@ -230,9 +230,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts index 55d9dd8112f2..1fd43942cabf 100644 --- a/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts @@ -59,14 +59,14 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/recommendedSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters74, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters53, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", diff --git a/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts b/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts index 24c0e8b6a0f1..c333aef6479d 100644 --- a/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts @@ -188,12 +188,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -209,16 +209,16 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion, Parameters.expand, - Parameters.filter1 + Parameters.filter ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -234,9 +234,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts index 139fa424961a..495517480331 100644 --- a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts @@ -198,11 +198,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -218,11 +218,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.recoverableDatabaseName ], @@ -240,8 +240,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/replicationLinks.ts b/sdk/sql/arm-sql/src/operations/replicationLinks.ts index 1bfe5461f089..a9da680e049c 100644 --- a/sdk/sql/arm-sql/src/operations/replicationLinks.ts +++ b/sdk/sql/arm-sql/src/operations/replicationLinks.ts @@ -639,13 +639,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -660,13 +660,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.linkId ], headerParameters: [Parameters.accept], @@ -677,13 +677,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.linkId ], serializer @@ -707,13 +707,13 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.linkId ], headerParameters: [Parameters.accept], @@ -738,13 +738,13 @@ const failoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.linkId ], headerParameters: [Parameters.accept], @@ -760,12 +760,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -781,10 +781,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -801,9 +801,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts b/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts index 3976f52f583e..4e48e012dd64 100644 --- a/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts @@ -189,12 +189,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -210,15 +210,15 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion, Parameters.expand, - Parameters.filter1 + Parameters.filter ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.restorableDroppedDatabaseId ], headerParameters: [Parameters.accept], @@ -235,9 +235,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts index 222e8175a786..04b41ffb5997 100644 --- a/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts @@ -198,11 +198,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -218,11 +218,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.restorableDroppedDatabaseId ], @@ -240,8 +240,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/restorePoints.ts b/sdk/sql/arm-sql/src/operations/restorePoints.ts index 2f9bacc6d6e1..bdf729a72309 100644 --- a/sdk/sql/arm-sql/src/operations/restorePoints.ts +++ b/sdk/sql/arm-sql/src/operations/restorePoints.ts @@ -359,13 +359,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -389,16 +389,16 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters45, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters78, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -412,13 +412,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.restorePointName ], headerParameters: [Parameters.accept], @@ -429,13 +429,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints/{restorePointName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.restorePointName ], serializer @@ -451,10 +451,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts index 03e9b34aebee..41eecdc54b49 100644 --- a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts @@ -21,18 +21,22 @@ import { SensitivityLabelsListRecommendedByDatabaseNextOptionalParams, SensitivityLabelsListRecommendedByDatabaseOptionalParams, SensitivityLabelsListRecommendedByDatabaseResponse, + SensitivityLabelsListByDatabaseNextOptionalParams, + SensitivityLabelsListByDatabaseOptionalParams, + SensitivityLabelsListByDatabaseResponse, SensitivityLabelUpdateList, SensitivityLabelsUpdateOptionalParams, - SensitivityLabelsEnableRecommendationOptionalParams, - SensitivityLabelsDisableRecommendationOptionalParams, SensitivityLabelSource, SensitivityLabelsGetOptionalParams, SensitivityLabelsGetResponse, SensitivityLabelsCreateOrUpdateOptionalParams, SensitivityLabelsCreateOrUpdateResponse, SensitivityLabelsDeleteOptionalParams, + SensitivityLabelsDisableRecommendationOptionalParams, + SensitivityLabelsEnableRecommendationOptionalParams, SensitivityLabelsListCurrentByDatabaseNextResponse, - SensitivityLabelsListRecommendedByDatabaseNextResponse + SensitivityLabelsListRecommendedByDatabaseNextResponse, + SensitivityLabelsListByDatabaseNextResponse } from "../models"; /// @@ -236,6 +240,100 @@ export class SensitivityLabelsImpl implements SensitivityLabels { } } + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + public listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SensitivityLabelsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( + resourceGroupName, + serverName, + databaseName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByDatabasePagingPage( + resourceGroupName, + serverName, + databaseName, + options, + settings + ); + } + }; + } + + private async *listByDatabasePagingPage( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SensitivityLabelsListByDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: SensitivityLabelsListByDatabaseResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDatabase( + resourceGroupName, + serverName, + databaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + serverName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByDatabasePagingAll( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SensitivityLabelsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( + resourceGroupName, + serverName, + databaseName, + options + )) { + yield* page; + } + } + /** * Gets the sensitivity labels of a given database * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -299,8 +397,7 @@ export class SensitivityLabelsImpl implements SensitivityLabels { } /** - * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all - * columns) + * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -308,17 +405,19 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ - enableRecommendation( + get( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsEnableRecommendationOptionalParams - ): Promise { + sensitivityLabelSource: SensitivityLabelSource, + options?: SensitivityLabelsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -327,14 +426,15 @@ export class SensitivityLabelsImpl implements SensitivityLabels { schemaName, tableName, columnName, + sensitivityLabelSource, options }, - enableRecommendationOperationSpec + getOperationSpec ); } /** - * Disables sensitivity recommendations on a given column + * Creates or updates the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -342,17 +442,19 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. * @param options The options parameters. */ - disableRecommendation( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsDisableRecommendationOptionalParams - ): Promise { + parameters: SensitivityLabel, + options?: SensitivityLabelsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -361,14 +463,15 @@ export class SensitivityLabelsImpl implements SensitivityLabels { schemaName, tableName, columnName, + parameters, options }, - disableRecommendationOperationSpec + createOrUpdateOperationSpec ); } /** - * Gets the sensitivity label of a given column + * Deletes the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -376,19 +479,17 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ - get( + delete( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - sensitivityLabelSource: SensitivityLabelSource, - options?: SensitivityLabelsGetOptionalParams - ): Promise { + options?: SensitivityLabelsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -397,15 +498,14 @@ export class SensitivityLabelsImpl implements SensitivityLabels { schemaName, tableName, columnName, - sensitivityLabelSource, options }, - getOperationSpec + deleteOperationSpec ); } /** - * Creates or updates the sensitivity label of a given column + * Disables sensitivity recommendations on a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -413,19 +513,17 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @param parameters The column sensitivity label resource. * @param options The options parameters. */ - createOrUpdate( + disableRecommendation( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - parameters: SensitivityLabel, - options?: SensitivityLabelsCreateOrUpdateOptionalParams - ): Promise { + options?: SensitivityLabelsDisableRecommendationOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -434,15 +532,15 @@ export class SensitivityLabelsImpl implements SensitivityLabels { schemaName, tableName, columnName, - parameters, options }, - createOrUpdateOperationSpec + disableRecommendationOperationSpec ); } /** - * Deletes the sensitivity label of a given column + * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all + * columns) * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -452,14 +550,14 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param columnName The name of the column. * @param options The options parameters. */ - delete( + enableRecommendation( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsDeleteOptionalParams + options?: SensitivityLabelsEnableRecommendationOptionalParams ): Promise { return this.client.sendOperationRequest( { @@ -471,7 +569,27 @@ export class SensitivityLabelsImpl implements SensitivityLabels { columnName, options }, - deleteOperationSpec + enableRecommendationOperationSpec + ); + } + + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SensitivityLabelsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec ); } @@ -519,6 +637,28 @@ export class SensitivityLabelsImpl implements SensitivityLabels { listRecommendedByDatabaseNextOperationSpec ); } + + /** + * ListByDatabaseNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. + * @param options The options parameters. + */ + private _listByDatabaseNext( + resourceGroupName: string, + serverName: string, + databaseName: string, + nextLink: string, + options?: SensitivityLabelsListByDatabaseNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, nextLink, options }, + listByDatabaseNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -534,17 +674,17 @@ const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, + Parameters.filter, Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion3, Parameters.count ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -554,14 +694,14 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/currentSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters73, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters51, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", @@ -578,57 +718,19 @@ const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, + Parameters.filter, Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion3, Parameters.includeDisabledRecommendations ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; -const enableRecommendationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.schemaName, - Parameters.tableName, - Parameters.columnName, - Parameters.sensitivityLabelSource2 - ], - serializer -}; -const disableRecommendationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.schemaName, - Parameters.tableName, - Parameters.columnName, - Parameters.sensitivityLabelSource2 + Parameters.subscriptionId ], + headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { @@ -641,13 +743,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -669,20 +771,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters72, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters52, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, Parameters.sensitivityLabelSource1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -691,13 +793,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -705,6 +807,65 @@ const deleteOperationSpec: coreClient.OperationSpec = { ], serializer }; +const disableRecommendationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource2 + ], + serializer +}; +const enableRecommendationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource2 + ], + serializer +}; +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sensitivityLabels", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion, Parameters.filter], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -716,10 +877,10 @@ const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -736,10 +897,30 @@ const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts index 786fffe889df..3d8f3a44ef29 100644 --- a/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts +++ b/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts @@ -310,12 +310,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -330,12 +330,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.advancedThreatProtectionName ], headerParameters: [Parameters.accept], @@ -360,16 +360,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters80, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters79, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.advancedThreatProtectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -384,9 +384,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverAdvisors.ts b/sdk/sql/arm-sql/src/operations/serverAdvisors.ts index 1e83f27a66d5..9fdca3b4ada5 100644 --- a/sdk/sql/arm-sql/src/operations/serverAdvisors.ts +++ b/sdk/sql/arm-sql/src/operations/serverAdvisors.ts @@ -111,12 +111,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.expand, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -131,12 +131,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.advisorName ], headerParameters: [Parameters.accept], @@ -152,16 +152,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters11, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.advisorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts index b49d07004d22..7d7ac72a1ff8 100644 --- a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts +++ b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts @@ -83,12 +83,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -103,15 +103,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters46, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters80, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts index bd1ba1c33674..69fad2dca779 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts @@ -128,6 +128,24 @@ export class ServerAzureADAdministratorsImpl } } + /** + * Gets a list of Azure Active Directory administrators in a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerAzureADAdministratorsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a Azure Active Directory administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -345,24 +363,6 @@ export class ServerAzureADAdministratorsImpl return poller.pollUntilDone(); } - /** - * Gets a list of Azure Active Directory administrators in a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerAzureADAdministratorsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -386,6 +386,26 @@ export class ServerAzureADAdministratorsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AdministratorListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}", @@ -396,12 +416,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.administratorName ], headerParameters: [Parameters.accept], @@ -426,16 +446,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters47, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters81, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.administratorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -444,34 +464,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.administratorName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdministratorListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.administratorName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -485,9 +485,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts index 11a9db62feba..158f92ea89fa 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts @@ -128,6 +128,24 @@ export class ServerAzureADOnlyAuthenticationsImpl } } + /** + * Gets a list of server Azure Active Directory only authentications. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerAzureADOnlyAuthenticationsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a specific Azure Active Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -349,24 +367,6 @@ export class ServerAzureADOnlyAuthenticationsImpl return poller.pollUntilDone(); } - /** - * Gets a list of server Azure Active Directory only authentications. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerAzureADOnlyAuthenticationsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -390,6 +390,26 @@ export class ServerAzureADOnlyAuthenticationsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureADOnlyAuthListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}", @@ -400,12 +420,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.authenticationName ], headerParameters: [Parameters.accept], @@ -430,16 +450,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters48, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters82, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.authenticationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -448,34 +468,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.authenticationName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AzureADOnlyAuthListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.authenticationName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -489,9 +489,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts index cb1fb98c2009..35d1d6913f2b 100644 --- a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts @@ -292,12 +292,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -312,12 +312,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], headerParameters: [Parameters.accept], @@ -342,16 +342,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters75, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -366,9 +366,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts b/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts index 05e63b637645..685553fa8198 100644 --- a/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts +++ b/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts @@ -315,11 +315,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -335,11 +335,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.serverConfigurationOptionName ], @@ -365,16 +365,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters99, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters83, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.serverConfigurationOptionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -389,8 +389,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts index 11bb50107ae1..3c6ae885cc00 100644 --- a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts @@ -126,6 +126,24 @@ export class ServerConnectionPoliciesImpl implements ServerConnectionPolicies { } } + /** + * Lists connection policy + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerConnectionPoliciesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a server connection policy * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -254,24 +272,6 @@ export class ServerConnectionPoliciesImpl implements ServerConnectionPolicies { return poller.pollUntilDone(); } - /** - * Lists connection policy - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerConnectionPoliciesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -295,6 +295,26 @@ export class ServerConnectionPoliciesImpl implements ServerConnectionPolicies { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerConnectionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies/{connectionPolicyName}", @@ -305,12 +325,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.connectionPolicyName ], headerParameters: [Parameters.accept], @@ -335,39 +355,19 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters68, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters84, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.connectionPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerConnectionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion6], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -379,9 +379,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts index a8650f453acf..42e809282e15 100644 --- a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts +++ b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts @@ -307,12 +307,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -327,12 +327,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.devOpsAuditingSettingsName ], headerParameters: [Parameters.accept], @@ -357,16 +357,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters49, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters85, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.devOpsAuditingSettingsName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -381,9 +381,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts index ebf604e30bda..39bcfb84f274 100644 --- a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts +++ b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts @@ -129,6 +129,24 @@ export class ServerDnsAliasesImpl implements ServerDnsAliases { } } + /** + * Gets a list of server DNS aliases for a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server that the alias is pointing to. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerDnsAliasesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a server DNS alias. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -335,24 +353,6 @@ export class ServerDnsAliasesImpl implements ServerDnsAliases { return poller.pollUntilDone(); } - /** - * Gets a list of server DNS aliases for a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server that the alias is pointing to. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerDnsAliasesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * Acquires server DNS alias from another server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -484,6 +484,26 @@ export class ServerDnsAliasesImpl implements ServerDnsAliases { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerDnsAliasListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}", @@ -494,12 +514,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.dnsAliasName ], headerParameters: [Parameters.accept], @@ -524,12 +544,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.dnsAliasName ], headerParameters: [Parameters.accept], @@ -540,34 +560,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.dnsAliasName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerDnsAliasListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.dnsAliasName ], - headerParameters: [Parameters.accept], serializer }; const acquireOperationSpec: coreClient.OperationSpec = { @@ -589,16 +589,16 @@ const acquireOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters50, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters86, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.dnsAliasName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -613,9 +613,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverKeys.ts b/sdk/sql/arm-sql/src/operations/serverKeys.ts index 227b7c5b7831..3f7ab22e00dd 100644 --- a/sdk/sql/arm-sql/src/operations/serverKeys.ts +++ b/sdk/sql/arm-sql/src/operations/serverKeys.ts @@ -394,12 +394,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -414,12 +414,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.keyName ], headerParameters: [Parameters.accept], @@ -444,16 +444,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters51, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters87, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.keyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -462,12 +462,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.keyName ], serializer @@ -483,9 +483,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverOperations.ts b/sdk/sql/arm-sql/src/operations/serverOperations.ts index 77096439d5c9..9cf84209a1c2 100644 --- a/sdk/sql/arm-sql/src/operations/serverOperations.ts +++ b/sdk/sql/arm-sql/src/operations/serverOperations.ts @@ -166,12 +166,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -187,9 +187,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts index 55ce4715b6d0..88d2ed8e919f 100644 --- a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts @@ -24,7 +24,7 @@ import { ServerSecurityAlertPoliciesListByServerNextOptionalParams, ServerSecurityAlertPoliciesListByServerOptionalParams, ServerSecurityAlertPoliciesListByServerResponse, - SecurityAlertPolicyName, + SecurityAlertPolicyNameAutoGenerated, ServerSecurityAlertPoliciesGetOptionalParams, ServerSecurityAlertPoliciesGetResponse, ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams, @@ -127,6 +127,24 @@ export class ServerSecurityAlertPoliciesImpl } } + /** + * Get the server's threat detection policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerSecurityAlertPoliciesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Get a server's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -138,7 +156,7 @@ export class ServerSecurityAlertPoliciesImpl get( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ServerSecurityAlertPoliciesGetOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -159,7 +177,7 @@ export class ServerSecurityAlertPoliciesImpl async beginCreateOrUpdate( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise< @@ -241,7 +259,7 @@ export class ServerSecurityAlertPoliciesImpl async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise { @@ -255,24 +273,6 @@ export class ServerSecurityAlertPoliciesImpl return poller.pollUntilDone(); } - /** - * Get the server's threat detection policies. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerSecurityAlertPoliciesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -296,6 +296,26 @@ export class ServerSecurityAlertPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LogicalServerSecurityAlertPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}", @@ -306,13 +326,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.securityAlertPolicyName + Parameters.subscriptionId, + Parameters.securityAlertPolicyName1 ], headerParameters: [Parameters.accept], serializer @@ -336,37 +356,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters52, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters88, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.securityAlertPolicyName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LogicalServerSecurityAlertPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.securityAlertPolicyName1 ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -380,9 +380,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts b/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts index 94619235f0c8..5d72d795e949 100644 --- a/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts @@ -405,11 +405,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -425,11 +425,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.certificateName ], @@ -455,16 +455,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters70, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters89, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.certificateName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -473,11 +473,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustCertificates/{certificateName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.certificateName ], @@ -494,8 +494,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts index 51668da0d657..33e1042ca26b 100644 --- a/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts +++ b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts @@ -219,6 +219,24 @@ export class ServerTrustGroupsImpl implements ServerTrustGroups { } } + /** + * Lists a server trust group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName The name of the region where the resource is located. + * @param options The options parameters. + */ + private _listByLocation( + resourceGroupName: string, + locationName: string, + options?: ServerTrustGroupsListByLocationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, locationName, options }, + listByLocationOperationSpec + ); + } + /** * Gets a server trust group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -436,24 +454,6 @@ export class ServerTrustGroupsImpl implements ServerTrustGroups { return poller.pollUntilDone(); } - /** - * Lists a server trust group. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The name of the region where the resource is located. - * @param options The options parameters. - */ - private _listByLocation( - resourceGroupName: string, - locationName: string, - options?: ServerTrustGroupsListByLocationOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, options }, - listByLocationOperationSpec - ); - } - /** * Gets a server trust groups by instance name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -515,6 +515,26 @@ export class ServerTrustGroupsImpl implements ServerTrustGroups { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByLocationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerTrustGroupListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.locationName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}", @@ -525,11 +545,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.serverTrustGroupName ], @@ -555,16 +575,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters53, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters90, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.serverTrustGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -573,36 +593,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.serverTrustGroupName ], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerTrustGroupListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByInstanceOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustGroups", @@ -613,11 +613,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -634,8 +634,8 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName ], @@ -653,8 +653,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/serverUsages.ts b/sdk/sql/arm-sql/src/operations/serverUsages.ts index f4b83e359898..aa7d28217d4d 100644 --- a/sdk/sql/arm-sql/src/operations/serverUsages.ts +++ b/sdk/sql/arm-sql/src/operations/serverUsages.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { ServerUsages } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -14,8 +15,10 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { ServerUsage, + ServerUsagesListByServerNextOptionalParams, ServerUsagesListByServerOptionalParams, - ServerUsagesListByServerResponse + ServerUsagesListByServerResponse, + ServerUsagesListByServerNextResponse } from "../models"; /// @@ -32,7 +35,7 @@ export class ServerUsagesImpl implements ServerUsages { } /** - * Returns server usages. + * Gets server usages. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -73,11 +76,29 @@ export class ServerUsagesImpl implements ServerUsages { resourceGroupName: string, serverName: string, options?: ServerUsagesListByServerOptionalParams, - _settings?: PageSettings + settings?: PageSettings ): AsyncIterableIterator { let result: ServerUsagesListByServerResponse; - result = await this._listByServer(resourceGroupName, serverName, options); - yield result.value || []; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByServer(resourceGroupName, serverName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServerNext( + resourceGroupName, + serverName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } } private async *listByServerPagingAll( @@ -95,7 +116,7 @@ export class ServerUsagesImpl implements ServerUsages { } /** - * Returns server usages. + * Gets server usages. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -111,6 +132,26 @@ export class ServerUsagesImpl implements ServerUsages { listByServerOperationSpec ); } + + /** + * ListByServerNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nextLink The nextLink from the previous successful call to the ListByServer method. + * @param options The options parameters. + */ + private _listByServerNext( + resourceGroupName: string, + serverName: string, + nextLink: string, + options?: ServerUsagesListByServerNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, nextLink, options }, + listByServerNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -122,14 +163,34 @@ const listByServerOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.ServerUsageListResult - } + }, + default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByServerNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerUsageListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts index 1a4a1c19a157..9a43b0f03097 100644 --- a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts @@ -122,6 +122,24 @@ export class ServerVulnerabilityAssessmentsImpl } } + /** + * Lists the vulnerability assessment policies associated with a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerVulnerabilityAssessmentsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets the server's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -192,24 +210,6 @@ export class ServerVulnerabilityAssessmentsImpl ); } - /** - * Lists the vulnerability assessment policies associated with a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerVulnerabilityAssessmentsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -233,6 +233,26 @@ export class ServerVulnerabilityAssessmentsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", @@ -243,12 +263,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -267,16 +287,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters54, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters91, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -285,34 +305,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.vulnerabilityAssessmentName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerVulnerabilityAssessmentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -326,9 +326,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/servers.ts b/sdk/sql/arm-sql/src/operations/servers.ts index 7feef8467dbe..0a34e72c6fa4 100644 --- a/sdk/sql/arm-sql/src/operations/servers.ts +++ b/sdk/sql/arm-sql/src/operations/servers.ts @@ -757,10 +757,10 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters100, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters92, + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -773,7 +773,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -788,11 +788,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -807,12 +807,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -836,15 +836,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters101, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters93, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -853,12 +853,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], serializer }; @@ -881,15 +881,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters102, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters94, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -912,15 +912,15 @@ const importDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters103, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters95, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -943,12 +943,12 @@ const refreshStatusOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -981,8 +981,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serviceObjectives.ts b/sdk/sql/arm-sql/src/operations/serviceObjectives.ts deleted file mode 100644 index f0dc3077156f..000000000000 --- a/sdk/sql/arm-sql/src/operations/serviceObjectives.ts +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { ServiceObjectives } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClient } from "../sqlManagementClient"; -import { - ServiceObjective, - ServiceObjectivesListByServerOptionalParams, - ServiceObjectivesListByServerResponse, - ServiceObjectivesGetOptionalParams, - ServiceObjectivesGetResponse -} from "../models"; - -/// -/** Class containing ServiceObjectives operations. */ -export class ServiceObjectivesImpl implements ServiceObjectives { - private readonly client: SqlManagementClient; - - /** - * Initialize a new instance of the class ServiceObjectives class. - * @param client Reference to the service client - */ - constructor(client: SqlManagementClient) { - this.client = client; - } - - /** - * Returns database service objectives. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - public listByServer( - resourceGroupName: string, - serverName: string, - options?: ServiceObjectivesListByServerOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByServerPagingAll( - resourceGroupName, - serverName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByServerPagingPage( - resourceGroupName, - serverName, - options, - settings - ); - } - }; - } - - private async *listByServerPagingPage( - resourceGroupName: string, - serverName: string, - options?: ServiceObjectivesListByServerOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ServiceObjectivesListByServerResponse; - result = await this._listByServer(resourceGroupName, serverName, options); - yield result.value || []; - } - - private async *listByServerPagingAll( - resourceGroupName: string, - serverName: string, - options?: ServiceObjectivesListByServerOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByServerPagingPage( - resourceGroupName, - serverName, - options - )) { - yield* page; - } - } - - /** - * Gets a database service objective. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param serviceObjectiveName The name of the service objective to retrieve. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - serviceObjectiveName: string, - options?: ServiceObjectivesGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, serviceObjectiveName, options }, - getOperationSpec - ); - } - - /** - * Returns database service objectives. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServiceObjectivesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/serviceObjectives/{serviceObjectiveName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServiceObjective - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.serviceObjectiveName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/serviceObjectives", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServiceObjectiveListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/sqlAgent.ts b/sdk/sql/arm-sql/src/operations/sqlAgent.ts index ad92b6ac2fc5..60fd06817876 100644 --- a/sdk/sql/arm-sql/src/operations/sqlAgent.ts +++ b/sdk/sql/arm-sql/src/operations/sqlAgent.ts @@ -82,11 +82,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -102,15 +102,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters55, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters96, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts index c4720901c367..15aae44b6e82 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts @@ -228,12 +228,12 @@ const listBySqlVulnerabilityAssessmentOperationSpec: coreClient.OperationSpec = }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -249,14 +249,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer @@ -273,9 +273,9 @@ const listBySqlVulnerabilityAssessmentNextOperationSpec: coreClient.OperationSpe }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts index 69e5424b1149..c18709105d0a 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts @@ -76,17 +76,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters83, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + requestBody: Parameters.parameters13, + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts index 2ac6992dfbc5..687b90b42624 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts @@ -137,12 +137,12 @@ const executeOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/initiateScan", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts index da7bf8c0cf8c..50c81e5f7a4d 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts @@ -285,14 +285,14 @@ const listByBaselineOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer @@ -307,15 +307,15 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], headerParameters: [Parameters.accept], serializer @@ -330,18 +330,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters84, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -357,12 +357,12 @@ const listByBaselineNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts index 8f7ab9b19460..79ac40471908 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts @@ -69,15 +69,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules/{ruleId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], serializer }; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts index 56a042696e44..d68a0c20574a 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts @@ -244,14 +244,14 @@ const listByScanOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.scanId, - Parameters.vulnerabilityAssessmentName1 + Parameters.subscriptionId, + Parameters.vulnerabilityAssessmentName1, + Parameters.scanId ], headerParameters: [Parameters.accept], serializer @@ -266,14 +266,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.scanId, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName1, + Parameters.scanId, Parameters.scanResultId ], headerParameters: [Parameters.accept], @@ -290,12 +290,12 @@ const listByScanNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.scanId, - Parameters.vulnerabilityAssessmentName1 + Parameters.vulnerabilityAssessmentName1, + Parameters.scanId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts index fb90561fc7c7..93f8dc4ea0c8 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts @@ -226,12 +226,12 @@ const listBySqlVulnerabilityAssessmentsOperationSpec: coreClient.OperationSpec = }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -247,12 +247,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId ], @@ -270,9 +270,9 @@ const listBySqlVulnerabilityAssessmentsNextOperationSpec: coreClient.OperationSp }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts index 3f206bb29c7a..03e1a5319ed1 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts @@ -57,12 +57,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts index bae15f9195a0..b00c885c66ad 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts @@ -221,12 +221,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -241,12 +241,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName2 ], headerParameters: [Parameters.accept], @@ -265,16 +265,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters87, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters97, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -289,9 +289,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts b/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts index 237913cde7b1..5cb034c27f94 100644 --- a/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts +++ b/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts @@ -255,11 +255,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -275,11 +275,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.startStopScheduleName ], @@ -299,16 +299,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters104, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters98, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.startStopScheduleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -317,11 +317,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/{startStopScheduleName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.startStopScheduleName ], @@ -338,8 +338,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts index 21f0c1222413..379b8de8a0eb 100644 --- a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts +++ b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts @@ -163,7 +163,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -182,7 +182,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/synapseLinkWorkspaces.ts b/sdk/sql/arm-sql/src/operations/synapseLinkWorkspaces.ts index cd7dc31dc4be..399513c4407d 100644 --- a/sdk/sql/arm-sql/src/operations/synapseLinkWorkspaces.ts +++ b/sdk/sql/arm-sql/src/operations/synapseLinkWorkspaces.ts @@ -183,13 +183,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -205,10 +205,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/syncAgents.ts b/sdk/sql/arm-sql/src/operations/syncAgents.ts index 6bb5aebe81cd..d2c839ebef18 100644 --- a/sdk/sql/arm-sql/src/operations/syncAgents.ts +++ b/sdk/sql/arm-sql/src/operations/syncAgents.ts @@ -227,6 +227,24 @@ export class SyncAgentsImpl implements SyncAgents { } } + /** + * Lists sync agents in a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server on which the sync agent is hosted. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: SyncAgentsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a sync agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -444,24 +462,6 @@ export class SyncAgentsImpl implements SyncAgents { return poller.pollUntilDone(); } - /** - * Lists sync agents in a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server on which the sync agent is hosted. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: SyncAgentsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * Generates a sync agent key. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -547,6 +547,26 @@ export class SyncAgentsImpl implements SyncAgents { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SyncAgentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}", @@ -557,12 +577,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.syncAgentName ], headerParameters: [Parameters.accept], @@ -587,16 +607,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters56, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters99, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.syncAgentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -605,34 +625,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.syncAgentName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SyncAgentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.syncAgentName ], - headerParameters: [Parameters.accept], serializer }; const generateKeyOperationSpec: coreClient.OperationSpec = { @@ -645,12 +645,12 @@ const generateKeyOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.syncAgentName ], headerParameters: [Parameters.accept], @@ -666,12 +666,12 @@ const listLinkedDatabasesOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.syncAgentName ], headerParameters: [Parameters.accept], @@ -688,9 +688,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -707,9 +707,9 @@ const listLinkedDatabasesNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.syncAgentName ], diff --git a/sdk/sql/arm-sql/src/operations/syncGroups.ts b/sdk/sql/arm-sql/src/operations/syncGroups.ts index 58715f34f68d..3b0095d52e0d 100644 --- a/sdk/sql/arm-sql/src/operations/syncGroups.ts +++ b/sdk/sql/arm-sql/src/operations/syncGroups.ts @@ -24,6 +24,10 @@ import { SyncGroupsListSyncDatabaseIdsNextOptionalParams, SyncGroupsListSyncDatabaseIdsOptionalParams, SyncGroupsListSyncDatabaseIdsResponse, + SyncGroup, + SyncGroupsListByDatabaseNextOptionalParams, + SyncGroupsListByDatabaseOptionalParams, + SyncGroupsListByDatabaseResponse, SyncFullSchemaProperties, SyncGroupsListHubSchemasNextOptionalParams, SyncGroupsListHubSchemasOptionalParams, @@ -33,13 +37,6 @@ import { SyncGroupsType, SyncGroupsListLogsOptionalParams, SyncGroupsListLogsResponse, - SyncGroup, - SyncGroupsListByDatabaseNextOptionalParams, - SyncGroupsListByDatabaseOptionalParams, - SyncGroupsListByDatabaseResponse, - SyncGroupsRefreshHubSchemaOptionalParams, - SyncGroupsCancelSyncOptionalParams, - SyncGroupsTriggerSyncOptionalParams, SyncGroupsGetOptionalParams, SyncGroupsGetResponse, SyncGroupsCreateOrUpdateOptionalParams, @@ -47,10 +44,13 @@ import { SyncGroupsDeleteOptionalParams, SyncGroupsUpdateOptionalParams, SyncGroupsUpdateResponse, + SyncGroupsCancelSyncOptionalParams, + SyncGroupsRefreshHubSchemaOptionalParams, + SyncGroupsTriggerSyncOptionalParams, SyncGroupsListSyncDatabaseIdsNextResponse, + SyncGroupsListByDatabaseNextResponse, SyncGroupsListHubSchemasNextResponse, - SyncGroupsListLogsNextResponse, - SyncGroupsListByDatabaseNextResponse + SyncGroupsListLogsNextResponse } from "../models"; /// @@ -136,26 +136,23 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Gets a collection of hub database schemas. + * Lists sync groups under a hub database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - public listHubSchemas( + public listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - syncGroupName: string, - options?: SyncGroupsListHubSchemasOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listHubSchemasPagingAll( + options?: SyncGroupsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( resourceGroupName, serverName, databaseName, - syncGroupName, options ); return { @@ -169,11 +166,10 @@ export class SyncGroupsImpl implements SyncGroups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listHubSchemasPagingPage( + return this.listByDatabasePagingPage( resourceGroupName, serverName, databaseName, - syncGroupName, options, settings ); @@ -181,22 +177,20 @@ export class SyncGroupsImpl implements SyncGroups { }; } - private async *listHubSchemasPagingPage( + private async *listByDatabasePagingPage( resourceGroupName: string, serverName: string, databaseName: string, - syncGroupName: string, - options?: SyncGroupsListHubSchemasOptionalParams, + options?: SyncGroupsListByDatabaseOptionalParams, settings?: PageSettings - ): AsyncIterableIterator { - let result: SyncGroupsListHubSchemasResponse; + ): AsyncIterableIterator { + let result: SyncGroupsListByDatabaseResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listHubSchemas( + result = await this._listByDatabase( resourceGroupName, serverName, databaseName, - syncGroupName, options ); let page = result.value || []; @@ -205,11 +199,10 @@ export class SyncGroupsImpl implements SyncGroups { yield page; } while (continuationToken) { - result = await this._listHubSchemasNext( + result = await this._listByDatabaseNext( resourceGroupName, serverName, databaseName, - syncGroupName, continuationToken, options ); @@ -220,18 +213,16 @@ export class SyncGroupsImpl implements SyncGroups { } } - private async *listHubSchemasPagingAll( + private async *listByDatabasePagingAll( resourceGroupName: string, serverName: string, databaseName: string, - syncGroupName: string, - options?: SyncGroupsListHubSchemasOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listHubSchemasPagingPage( + options?: SyncGroupsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( resourceGroupName, serverName, databaseName, - syncGroupName, options )) { yield* page; @@ -239,35 +230,26 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Gets a collection of sync group logs. + * Gets a collection of hub database schemas. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param startTime Get logs generated after this time. - * @param endTime Get logs generated before this time. - * @param typeParam The types of logs to retrieve. * @param options The options parameters. */ - public listLogs( + public listHubSchemas( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - startTime: string, - endTime: string, - typeParam: SyncGroupsType, - options?: SyncGroupsListLogsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listLogsPagingAll( + options?: SyncGroupsListHubSchemasOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listHubSchemasPagingAll( resourceGroupName, serverName, databaseName, syncGroupName, - startTime, - endTime, - typeParam, options ); return { @@ -281,14 +263,11 @@ export class SyncGroupsImpl implements SyncGroups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listLogsPagingPage( + return this.listHubSchemasPagingPage( resourceGroupName, serverName, databaseName, syncGroupName, - startTime, - endTime, - typeParam, options, settings ); @@ -296,28 +275,22 @@ export class SyncGroupsImpl implements SyncGroups { }; } - private async *listLogsPagingPage( + private async *listHubSchemasPagingPage( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - startTime: string, - endTime: string, - typeParam: SyncGroupsType, - options?: SyncGroupsListLogsOptionalParams, + options?: SyncGroupsListHubSchemasOptionalParams, settings?: PageSettings - ): AsyncIterableIterator { - let result: SyncGroupsListLogsResponse; + ): AsyncIterableIterator { + let result: SyncGroupsListHubSchemasResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listLogs( + result = await this._listHubSchemas( resourceGroupName, serverName, databaseName, syncGroupName, - startTime, - endTime, - typeParam, options ); let page = result.value || []; @@ -326,7 +299,7 @@ export class SyncGroupsImpl implements SyncGroups { yield page; } while (continuationToken) { - result = await this._listLogsNext( + result = await this._listHubSchemasNext( resourceGroupName, serverName, databaseName, @@ -341,24 +314,18 @@ export class SyncGroupsImpl implements SyncGroups { } } - private async *listLogsPagingAll( + private async *listHubSchemasPagingAll( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - startTime: string, - endTime: string, - typeParam: SyncGroupsType, - options?: SyncGroupsListLogsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listLogsPagingPage( + options?: SyncGroupsListHubSchemasOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listHubSchemasPagingPage( resourceGroupName, serverName, databaseName, syncGroupName, - startTime, - endTime, - typeParam, options )) { yield* page; @@ -366,23 +333,35 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Lists sync groups under a hub database. + * Gets a collection of sync group logs. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param startTime Get logs generated after this time. + * @param endTime Get logs generated before this time. + * @param typeParam The types of logs to retrieve. * @param options The options parameters. */ - public listByDatabase( + public listLogs( resourceGroupName: string, serverName: string, databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByDatabasePagingAll( + syncGroupName: string, + startTime: string, + endTime: string, + typeParam: SyncGroupsType, + options?: SyncGroupsListLogsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listLogsPagingAll( resourceGroupName, serverName, databaseName, + syncGroupName, + startTime, + endTime, + typeParam, options ); return { @@ -396,10 +375,14 @@ export class SyncGroupsImpl implements SyncGroups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByDatabasePagingPage( + return this.listLogsPagingPage( resourceGroupName, serverName, databaseName, + syncGroupName, + startTime, + endTime, + typeParam, options, settings ); @@ -407,20 +390,28 @@ export class SyncGroupsImpl implements SyncGroups { }; } - private async *listByDatabasePagingPage( + private async *listLogsPagingPage( resourceGroupName: string, serverName: string, databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams, + syncGroupName: string, + startTime: string, + endTime: string, + typeParam: SyncGroupsType, + options?: SyncGroupsListLogsOptionalParams, settings?: PageSettings - ): AsyncIterableIterator { - let result: SyncGroupsListByDatabaseResponse; + ): AsyncIterableIterator { + let result: SyncGroupsListLogsResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByDatabase( + result = await this._listLogs( resourceGroupName, serverName, databaseName, + syncGroupName, + startTime, + endTime, + typeParam, options ); let page = result.value || []; @@ -429,10 +420,11 @@ export class SyncGroupsImpl implements SyncGroups { yield page; } while (continuationToken) { - result = await this._listByDatabaseNext( + result = await this._listLogsNext( resourceGroupName, serverName, databaseName, + syncGroupName, continuationToken, options ); @@ -443,16 +435,24 @@ export class SyncGroupsImpl implements SyncGroups { } } - private async *listByDatabasePagingAll( + private async *listLogsPagingAll( resourceGroupName: string, serverName: string, databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByDatabasePagingPage( + syncGroupName: string, + startTime: string, + endTime: string, + typeParam: SyncGroupsType, + options?: SyncGroupsListLogsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listLogsPagingPage( resourceGroupName, serverName, databaseName, + syncGroupName, + startTime, + endTime, + typeParam, options )) { yield* page; @@ -475,7 +475,27 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Refreshes a hub database schema. + * Lists sync groups under a hub database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SyncGroupsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + + /** + * Gets a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -483,17 +503,46 @@ export class SyncGroupsImpl implements SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - async beginRefreshHubSchema( + get( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsRefreshHubSchemaOptionalParams - ): Promise, void>> { + options?: SyncGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a sync group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + parameters: SyncGroup, + options?: SyncGroupsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + SyncGroupsCreateOrUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -536,11 +585,15 @@ export class SyncGroupsImpl implements SyncGroups { serverName, databaseName, syncGroupName, + parameters, options }, - spec: refreshHubSchemaOperationSpec + spec: createOrUpdateOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + SyncGroupsCreateOrUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -549,183 +602,54 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Refreshes a hub database schema. + * Creates or updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginRefreshHubSchemaAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsRefreshHubSchemaOptionalParams - ): Promise { - const poller = await this.beginRefreshHubSchema( + parameters: SyncGroup, + options?: SyncGroupsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, serverName, databaseName, syncGroupName, + parameters, options ); return poller.pollUntilDone(); } /** - * Gets a collection of hub database schemas. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - private _listHubSchemas( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncGroupsListHubSchemasOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - listHubSchemasOperationSpec - ); - } - - /** - * Gets a collection of sync group logs. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param startTime Get logs generated after this time. - * @param endTime Get logs generated before this time. - * @param typeParam The types of logs to retrieve. - * @param options The options parameters. - */ - private _listLogs( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - startTime: string, - endTime: string, - typeParam: SyncGroupsType, - options?: SyncGroupsListLogsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - startTime, - endTime, - typeParam, - options - }, - listLogsOperationSpec - ); - } - - /** - * Cancels a sync group synchronization. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - cancelSync( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncGroupsCancelSyncOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - cancelSyncOperationSpec - ); - } - - /** - * Triggers a sync group synchronization. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - triggerSync( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncGroupsTriggerSyncOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - triggerSyncOperationSpec - ); - } - - /** - * Gets a sync group. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncGroupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - getOperationSpec - ); - } - - /** - * Creates or updates a sync group. + * Deletes a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginDelete( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SyncGroupsCreateOrUpdateResponse - > - > { + options?: SyncGroupsDeleteOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -768,15 +692,11 @@ export class SyncGroupsImpl implements SyncGroups { serverName, databaseName, syncGroupName, - parameters, options }, - spec: createOrUpdateOperationSpec + spec: deleteOperationSpec }); - const poller = await createHttpPoller< - SyncGroupsCreateOrUpdateResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -785,54 +705,58 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Creates or updates a sync group. + * Deletes a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginDeleteAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + options?: SyncGroupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( resourceGroupName, serverName, databaseName, syncGroupName, - parameters, options ); return poller.pollUntilDone(); } /** - * Deletes a sync group. + * Updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginDelete( + async beginUpdate( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsDeleteOptionalParams - ): Promise, void>> { + parameters: SyncGroup, + options?: SyncGroupsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + SyncGroupsUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -875,11 +799,15 @@ export class SyncGroupsImpl implements SyncGroups { serverName, databaseName, syncGroupName, + parameters, options }, - spec: deleteOperationSpec + spec: updateOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + SyncGroupsUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -888,58 +816,135 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Deletes a sync group. + * Updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginDeleteAndWait( + async beginUpdateAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( + parameters: SyncGroup, + options?: SyncGroupsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( resourceGroupName, serverName, databaseName, syncGroupName, + parameters, options ); return poller.pollUntilDone(); } /** - * Updates a sync group. + * Cancels a sync group synchronization. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginUpdate( + cancelSync( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SyncGroupsUpdateResponse - > - > { + options?: SyncGroupsCancelSyncOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + cancelSyncOperationSpec + ); + } + + /** + * Gets a collection of hub database schemas. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param options The options parameters. + */ + private _listHubSchemas( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + options?: SyncGroupsListHubSchemasOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + listHubSchemasOperationSpec + ); + } + + /** + * Gets a collection of sync group logs. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param startTime Get logs generated after this time. + * @param endTime Get logs generated before this time. + * @param typeParam The types of logs to retrieve. + * @param options The options parameters. + */ + private _listLogs( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + startTime: string, + endTime: string, + typeParam: SyncGroupsType, + options?: SyncGroupsListLogsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + syncGroupName, + startTime, + endTime, + typeParam, + options + }, + listLogsOperationSpec + ); + } + + /** + * Refreshes a hub database schema. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param options The options parameters. + */ + async beginRefreshHubSchema( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + options?: SyncGroupsRefreshHubSchemaOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -982,15 +987,11 @@ export class SyncGroupsImpl implements SyncGroups { serverName, databaseName, syncGroupName, - parameters, options }, - spec: updateOperationSpec + spec: refreshHubSchemaOperationSpec }); - const poller = await createHttpPoller< - SyncGroupsUpdateResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -999,51 +1000,50 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Updates a sync group. + * Refreshes a hub database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginUpdateAndWait( + async beginRefreshHubSchemaAndWait( resourceGroupName: string, serverName: string, - databaseName: string, - syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( + databaseName: string, + syncGroupName: string, + options?: SyncGroupsRefreshHubSchemaOptionalParams + ): Promise { + const poller = await this.beginRefreshHubSchema( resourceGroupName, serverName, databaseName, syncGroupName, - parameters, options ); return poller.pollUntilDone(); } /** - * Lists sync groups under a hub database. + * Triggers a sync group synchronization. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - private _listByDatabase( + triggerSync( resourceGroupName: string, serverName: string, databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams - ): Promise { + syncGroupName: string, + options?: SyncGroupsTriggerSyncOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + triggerSyncOperationSpec ); } @@ -1064,6 +1064,28 @@ export class SyncGroupsImpl implements SyncGroups { ); } + /** + * ListByDatabaseNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. + * @param options The options parameters. + */ + private _listByDatabaseNext( + resourceGroupName: string, + serverName: string, + databaseName: string, + nextLink: string, + options?: SyncGroupsListByDatabaseNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, nextLink, options }, + listByDatabaseNextOperationSpec + ); + } + /** * ListHubSchemasNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -1125,28 +1147,6 @@ export class SyncGroupsImpl implements SyncGroups { listLogsNextOperationSpec ); } - - /** - * ListByDatabaseNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. - * @param options The options parameters. - */ - private _listByDatabaseNext( - resourceGroupName: string, - serverName: string, - databaseName: string, - nextLink: string, - options?: SyncGroupsListByDatabaseNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, nextLink, options }, - listByDatabaseNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -1161,7 +1161,7 @@ const listSyncDatabaseIdsOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1170,104 +1170,27 @@ const listSyncDatabaseIdsOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const refreshHubSchemaOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/refreshHubSchema", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName - ], - serializer -}; -const listHubSchemasOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/hubSchemas", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SyncFullSchemaPropertiesListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listLogsOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/logs", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncGroupLogListResult + bodyMapper: Mappers.SyncGroupListResult }, default: {} }, - queryParameters: [ - Parameters.apiVersion3, - Parameters.startTime1, - Parameters.endTime1, - Parameters.typeParam, - Parameters.continuationToken - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.syncGroupName + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; -const cancelSyncOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/cancelSync", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName - ], - serializer -}; -const triggerSyncOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/triggerSync", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName - ], - serializer -}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}", @@ -1278,13 +1201,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName ], headerParameters: [Parameters.accept], @@ -1309,17 +1232,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters57, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters100, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1328,13 +1251,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName ], serializer @@ -1358,41 +1281,118 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters57, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters100, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const cancelSyncOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/cancelSync", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName + ], + serializer +}; +const listHubSchemasOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/hubSchemas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncGroupListResult + bodyMapper: Mappers.SyncFullSchemaPropertiesListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, Parameters.subscriptionId, + Parameters.syncGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listLogsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/logs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SyncGroupLogListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.startTime1, + Parameters.endTime1, + Parameters.typeParam, + Parameters.continuationToken + ], + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName ], headerParameters: [Parameters.accept], serializer }; +const refreshHubSchemaOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/refreshHubSchema", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName + ], + serializer +}; +const triggerSyncOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/triggerSync", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName + ], + serializer +}; const listSyncDatabaseIdsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -1411,64 +1411,64 @@ const listSyncDatabaseIdsNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listHubSchemasNextOperationSpec: coreClient.OperationSpec = { +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncFullSchemaPropertiesListResult + bodyMapper: Mappers.SyncGroupListResult }, default: {} }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.nextLink, - Parameters.syncGroupName + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer }; -const listLogsNextOperationSpec: coreClient.OperationSpec = { +const listHubSchemasNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncGroupLogListResult + bodyMapper: Mappers.SyncFullSchemaPropertiesListResult }, default: {} }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.syncGroupName ], headerParameters: [Parameters.accept], serializer }; -const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { +const listLogsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncGroupListResult + bodyMapper: Mappers.SyncGroupLogListResult }, default: {} }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.syncGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/syncMembers.ts b/sdk/sql/arm-sql/src/operations/syncMembers.ts index 01c6585ed644..698546bf1328 100644 --- a/sdk/sql/arm-sql/src/operations/syncMembers.ts +++ b/sdk/sql/arm-sql/src/operations/syncMembers.ts @@ -268,6 +268,28 @@ export class SyncMembersImpl implements SyncMembers { } } + /** + * Lists sync members in the given sync group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param options The options parameters. + */ + private _listBySyncGroup( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + options?: SyncMembersListBySyncGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + listBySyncGroupOperationSpec + ); + } + /** * Gets a sync member. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -645,59 +667,6 @@ export class SyncMembersImpl implements SyncMembers { return poller.pollUntilDone(); } - /** - * Lists sync members in the given sync group. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - private _listBySyncGroup( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncMembersListBySyncGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - listBySyncGroupOperationSpec - ); - } - - /** - * Gets a sync member database schema. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group on which the sync member is hosted. - * @param syncMemberName The name of the sync member. - * @param options The options parameters. - */ - private _listMemberSchemas( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - syncMemberName: string, - options?: SyncMembersListMemberSchemasOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - syncMemberName, - options - }, - listMemberSchemasOperationSpec - ); - } - /** * Refreshes a sync member database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -804,6 +773,37 @@ export class SyncMembersImpl implements SyncMembers { return poller.pollUntilDone(); } + /** + * Gets a sync member database schema. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group on which the sync member is hosted. + * @param syncMemberName The name of the sync member. + * @param options The options parameters. + */ + private _listMemberSchemas( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + syncMemberName: string, + options?: SyncMembersListMemberSchemasOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + syncGroupName, + syncMemberName, + options + }, + listMemberSchemasOperationSpec + ); + } + /** * ListBySyncGroupNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -872,6 +872,28 @@ export class SyncMembersImpl implements SyncMembers { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listBySyncGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SyncMemberListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}", @@ -882,13 +904,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName, Parameters.syncMemberName ], @@ -914,18 +936,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters58, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters101, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName, Parameters.syncMemberName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -934,13 +956,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName, Parameters.syncMemberName ], @@ -965,41 +987,36 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters58, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters101, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName, Parameters.syncMemberName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listBySyncGroupOperationSpec: coreClient.OperationSpec = { +const refreshMemberSchemaOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SyncMemberListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}/refreshSchema", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.syncGroupName + Parameters.subscriptionId, + Parameters.syncGroupName, + Parameters.syncMemberName ], - headerParameters: [Parameters.accept], serializer }; const listMemberSchemasOperationSpec: coreClient.OperationSpec = { @@ -1012,34 +1029,17 @@ const listMemberSchemasOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.syncGroupName, - Parameters.syncMemberName - ], - headerParameters: [Parameters.accept], - serializer -}; -const refreshMemberSchemaOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}/refreshSchema", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, Parameters.syncGroupName, Parameters.syncMemberName ], + headerParameters: [Parameters.accept], serializer }; const listBySyncGroupNextOperationSpec: coreClient.OperationSpec = { @@ -1053,10 +1053,10 @@ const listBySyncGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.syncGroupName ], @@ -1074,10 +1074,10 @@ const listMemberSchemasNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.syncGroupName, Parameters.syncMemberName diff --git a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts index bb34783b6e22..fa5e3a9fc21b 100644 --- a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts @@ -128,13 +128,13 @@ const createOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/tdeCertificates", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters41, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters69, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", diff --git a/sdk/sql/arm-sql/src/operations/timeZones.ts b/sdk/sql/arm-sql/src/operations/timeZones.ts index b4188003f731..2cb598dd6fd3 100644 --- a/sdk/sql/arm-sql/src/operations/timeZones.ts +++ b/sdk/sql/arm-sql/src/operations/timeZones.ts @@ -163,7 +163,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -182,7 +182,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts index 0c05cfb6fc3a..0d4e4fe9dfbb 100644 --- a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts +++ b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts @@ -336,13 +336,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -357,13 +357,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.tdeName ], headerParameters: [Parameters.accept], @@ -388,17 +388,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters105, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters102, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.tdeName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -413,10 +413,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/usages.ts b/sdk/sql/arm-sql/src/operations/usages.ts index ae84548ce8ff..06ce5078b66c 100644 --- a/sdk/sql/arm-sql/src/operations/usages.ts +++ b/sdk/sql/arm-sql/src/operations/usages.ts @@ -170,11 +170,11 @@ const listByInstancePoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5, Parameters.expandChildren], + queryParameters: [Parameters.apiVersion, Parameters.expandChildren], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], headerParameters: [Parameters.accept], @@ -191,8 +191,8 @@ const listByInstancePoolNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.instancePoolName ], diff --git a/sdk/sql/arm-sql/src/operations/virtualClusters.ts b/sdk/sql/arm-sql/src/operations/virtualClusters.ts index 75795cfde8f6..0ec3b2497930 100644 --- a/sdk/sql/arm-sql/src/operations/virtualClusters.ts +++ b/sdk/sql/arm-sql/src/operations/virtualClusters.ts @@ -539,7 +539,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -554,11 +554,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -573,11 +573,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.virtualClusterName ], headerParameters: [Parameters.accept], @@ -588,11 +588,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.virtualClusterName ], serializer @@ -616,15 +616,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters89, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters103, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.virtualClusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -647,11 +647,11 @@ const updateDnsServersOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.virtualClusterName ], headerParameters: [Parameters.accept], @@ -685,8 +685,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts index 9e12e44c6e17..d289b60a9c6a 100644 --- a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts +++ b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts @@ -126,6 +126,24 @@ export class VirtualNetworkRulesImpl implements VirtualNetworkRules { } } + /** + * Gets a list of virtual network rules in a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: VirtualNetworkRulesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a virtual network rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -343,24 +361,6 @@ export class VirtualNetworkRulesImpl implements VirtualNetworkRules { return poller.pollUntilDone(); } - /** - * Gets a list of virtual network rules in a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: VirtualNetworkRulesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -384,6 +384,26 @@ export class VirtualNetworkRulesImpl implements VirtualNetworkRules { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", @@ -394,12 +414,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.virtualNetworkRuleName ], headerParameters: [Parameters.accept], @@ -424,16 +444,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters59, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters104, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.virtualNetworkRuleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -442,34 +462,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.virtualNetworkRuleName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRuleListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.virtualNetworkRuleName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -483,9 +483,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts index b0c2b4457082..db95990169fd 100644 --- a/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts +++ b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts @@ -148,6 +148,34 @@ export class WorkloadClassifiersImpl implements WorkloadClassifiers { } } + /** + * Gets the list of workload classifiers for a workload group + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param workloadGroupName The name of the workload group from which to receive the classifiers from. + * @param options The options parameters. + */ + private _listByWorkloadGroup( + resourceGroupName: string, + serverName: string, + databaseName: string, + workloadGroupName: string, + options?: WorkloadClassifiersListByWorkloadGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + workloadGroupName, + options + }, + listByWorkloadGroupOperationSpec + ); + } + /** * Gets a workload classifier * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -405,34 +433,6 @@ export class WorkloadClassifiersImpl implements WorkloadClassifiers { return poller.pollUntilDone(); } - /** - * Gets the list of workload classifiers for a workload group - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param workloadGroupName The name of the workload group from which to receive the classifiers from. - * @param options The options parameters. - */ - private _listByWorkloadGroup( - resourceGroupName: string, - serverName: string, - databaseName: string, - workloadGroupName: string, - options?: WorkloadClassifiersListByWorkloadGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - workloadGroupName, - options - }, - listByWorkloadGroupOperationSpec - ); - } - /** * ListByWorkloadGroupNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -467,6 +467,28 @@ export class WorkloadClassifiersImpl implements WorkloadClassifiers { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByWorkloadGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkloadClassifierListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.workloadGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", @@ -477,13 +499,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName, Parameters.workloadClassifierName ], @@ -509,18 +531,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters60, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters105, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName, Parameters.workloadClassifierName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -529,40 +551,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName, Parameters.workloadClassifierName ], serializer }; -const listByWorkloadGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.WorkloadClassifierListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.workloadGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByWorkloadGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -574,10 +574,10 @@ const listByWorkloadGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.workloadGroupName ], diff --git a/sdk/sql/arm-sql/src/operations/workloadGroups.ts b/sdk/sql/arm-sql/src/operations/workloadGroups.ts index 9d89473a34e3..ebc5e55e85d4 100644 --- a/sdk/sql/arm-sql/src/operations/workloadGroups.ts +++ b/sdk/sql/arm-sql/src/operations/workloadGroups.ts @@ -139,6 +139,26 @@ export class WorkloadGroupsImpl implements WorkloadGroups { } } + /** + * Gets the list of workload groups + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: WorkloadGroupsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a workload group * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -381,26 +401,6 @@ export class WorkloadGroupsImpl implements WorkloadGroups { return poller.pollUntilDone(); } - /** - * Gets the list of workload groups - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: WorkloadGroupsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -426,6 +426,27 @@ export class WorkloadGroupsImpl implements WorkloadGroups { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkloadGroupListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}", @@ -436,13 +457,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName ], headerParameters: [Parameters.accept], @@ -467,17 +488,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters61, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters106, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -486,36 +507,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.workloadGroupName - ], - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.WorkloadGroupListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.workloadGroupName ], - headerParameters: [Parameters.accept], serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -529,10 +529,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingPolicies.ts index c2869cb72d2c..8923ae23a9e2 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingPolicies.ts @@ -7,43 +7,48 @@ */ import { + DataMaskingPolicyName, + DataMaskingPoliciesGetOptionalParams, + DataMaskingPoliciesGetResponse, DataMaskingPolicy, DataMaskingPoliciesCreateOrUpdateOptionalParams, - DataMaskingPoliciesCreateOrUpdateResponse, - DataMaskingPoliciesGetOptionalParams, - DataMaskingPoliciesGetResponse + DataMaskingPoliciesCreateOrUpdateResponse } from "../models"; /** Interface representing a DataMaskingPolicies. */ export interface DataMaskingPolicies { /** - * Creates or updates a database data masking policy + * Gets the database data masking policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param parameters Parameters for creating or updating a data masking policy. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, - parameters: DataMaskingPolicy, - options?: DataMaskingPoliciesCreateOrUpdateOptionalParams - ): Promise; + dataMaskingPolicyName: DataMaskingPolicyName, + options?: DataMaskingPoliciesGetOptionalParams + ): Promise; /** - * Gets a database data masking policy. + * Creates or updates a database data masking policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. + * @param parameters Parameters for creating or updating a data masking policy. * @param options The options parameters. */ - get( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, - options?: DataMaskingPoliciesGetOptionalParams - ): Promise; + dataMaskingPolicyName: DataMaskingPolicyName, + parameters: DataMaskingPolicy, + options?: DataMaskingPoliciesCreateOrUpdateOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingRules.ts b/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingRules.ts index 6bf212be628a..6e0a6759777b 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingRules.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingRules.ts @@ -9,6 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DataMaskingRule, + DataMaskingPolicyName, DataMaskingRulesListByDatabaseOptionalParams, DataMaskingRulesCreateOrUpdateOptionalParams, DataMaskingRulesCreateOrUpdateResponse @@ -23,12 +24,14 @@ export interface DataMaskingRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking rule applies. * @param options The options parameters. */ listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams ): PagedAsyncIterableIterator; /** @@ -37,6 +40,7 @@ export interface DataMaskingRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. * @param dataMaskingRuleName The name of the data masking rule. * @param parameters The required parameters for creating or updating a data masking rule. * @param options The options parameters. @@ -45,6 +49,7 @@ export interface DataMaskingRules { resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseExtensionsOperations.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseExtensionsOperations.ts index 7a44394d45f9..7a641d988afa 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/databaseExtensionsOperations.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseExtensionsOperations.ts @@ -51,7 +51,7 @@ export interface DatabaseExtensionsOperations { options?: DatabaseExtensionsGetOptionalParams ): Promise; /** - * Perform a database extension operation, like polybase import + * Perform a database extension operation, like database import, database export, or polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -74,7 +74,7 @@ export interface DatabaseExtensionsOperations { > >; /** - * Perform a database extension operation, like polybase import + * Perform a database extension operation, like database import, database export, or polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseVulnerabilityAssessmentScans.ts index 867519ccf003..fcab875bd5e4 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/databaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseVulnerabilityAssessmentScans.ts @@ -12,11 +12,11 @@ import { VulnerabilityAssessmentScanRecord, VulnerabilityAssessmentName, DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams, - DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, DatabaseVulnerabilityAssessmentScansGetOptionalParams, DatabaseVulnerabilityAssessmentScansGetResponse, DatabaseVulnerabilityAssessmentScansExportOptionalParams, - DatabaseVulnerabilityAssessmentScansExportResponse + DatabaseVulnerabilityAssessmentScansExportResponse, + DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams } from "../models"; /// @@ -39,7 +39,7 @@ export interface DatabaseVulnerabilityAssessmentScans { options?: DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams ): PagedAsyncIterableIterator; /** - * Executes a Vulnerability Assessment database scan. + * Gets a vulnerability assessment scan record of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -48,34 +48,34 @@ export interface DatabaseVulnerabilityAssessmentScans { * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - beginInitiateScan( + get( resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise, void>>; + options?: DatabaseVulnerabilityAssessmentScansGetOptionalParams + ): Promise; /** - * Executes a Vulnerability Assessment database scan. + * Convert an existing scan result to a human readable format. If already exists nothing happens * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. + * @param databaseName The name of the scanned database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param scanId The vulnerability assessment scan Id. * @param options The options parameters. */ - beginInitiateScanAndWait( + export( resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise; + options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams + ): Promise; /** - * Gets a vulnerability assessment scan record of a database. + * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -84,30 +84,30 @@ export interface DatabaseVulnerabilityAssessmentScans { * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - get( + beginInitiateScan( resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: DatabaseVulnerabilityAssessmentScansGetOptionalParams - ): Promise; + options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise, void>>; /** - * Convert an existing scan result to a human readable format. If already exists nothing happens + * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the scanned database. + * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - export( + beginInitiateScanAndWait( resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams - ): Promise; + options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts index 8f79003b89da..f5536fb35b9d 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts @@ -9,10 +9,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { - Metric, - DatabasesListMetricsOptionalParams, - MetricDefinition, - DatabasesListMetricDefinitionsOptionalParams, Database, DatabasesListByServerOptionalParams, DatabasesListByElasticPoolOptionalParams, @@ -44,36 +40,6 @@ import { /// /** Interface representing a Databases. */ export interface Databases { - /** - * Returns database metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - listMetrics( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams - ): PagedAsyncIterableIterator; - /** - * Returns database metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - listMetricDefinitions( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams - ): PagedAsyncIterableIterator; /** * Gets a list of databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts index 3cb9703777b3..1ca81d4da40a 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts @@ -13,11 +13,15 @@ import { DistributedAvailabilityGroupsListByInstanceOptionalParams, DistributedAvailabilityGroupsGetOptionalParams, DistributedAvailabilityGroupsGetResponse, + DistributedAvailabilityGroupsCreateOrUpdateRequestBody, DistributedAvailabilityGroupsCreateOrUpdateOptionalParams, DistributedAvailabilityGroupsCreateOrUpdateResponse, DistributedAvailabilityGroupsDeleteOptionalParams, DistributedAvailabilityGroupsUpdateOptionalParams, - DistributedAvailabilityGroupsUpdateResponse + DistributedAvailabilityGroupsUpdateResponse, + DistributedAvailabilityGroupSetRole, + DistributedAvailabilityGroupsSetRoleOptionalParams, + DistributedAvailabilityGroupsSetRoleResponse } from "../models"; /// @@ -62,7 +66,7 @@ export interface DistributedAvailabilityGroups { resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, - parameters: DistributedAvailabilityGroup, + parameters: DistributedAvailabilityGroupsCreateOrUpdateRequestBody, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< @@ -83,7 +87,7 @@ export interface DistributedAvailabilityGroups { resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, - parameters: DistributedAvailabilityGroup, + parameters: DistributedAvailabilityGroupsCreateOrUpdateRequestBody, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams ): Promise; /** @@ -151,4 +155,41 @@ export interface DistributedAvailabilityGroups { parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams ): Promise; + /** + * Sets the role for managed instance in a distributed availability group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group set role request parameters. + * @param options The options parameters. + */ + beginSetRole( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroupSetRole, + options?: DistributedAvailabilityGroupsSetRoleOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DistributedAvailabilityGroupsSetRoleResponse + > + >; + /** + * Sets the role for managed instance in a distributed availability group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group set role request parameters. + * @param options The options parameters. + */ + beginSetRoleAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroupSetRole, + options?: DistributedAvailabilityGroupsSetRoleOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolActivities.ts b/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolActivities.ts deleted file mode 100644 index 8ed1453d251f..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolActivities.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - ElasticPoolActivity, - ElasticPoolActivitiesListByElasticPoolOptionalParams -} from "../models"; - -/// -/** Interface representing a ElasticPoolActivities. */ -export interface ElasticPoolActivities { - /** - * Returns elastic pool activities. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool for which to get the current activity. - * @param options The options parameters. - */ - listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolDatabaseActivities.ts b/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolDatabaseActivities.ts deleted file mode 100644 index c89936b0d92b..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolDatabaseActivities.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - ElasticPoolDatabaseActivity, - ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams -} from "../models"; - -/// -/** Interface representing a ElasticPoolDatabaseActivities. */ -export interface ElasticPoolDatabaseActivities { - /** - * Returns activity on databases inside of an elastic pool. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPools.ts b/sdk/sql/arm-sql/src/operationsInterfaces/elasticPools.ts index b541bbe69419..063a1e86a954 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPools.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/elasticPools.ts @@ -9,10 +9,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { - Metric, - ElasticPoolsListMetricsOptionalParams, - MetricDefinition, - ElasticPoolsListMetricDefinitionsOptionalParams, ElasticPool, ElasticPoolsListByServerOptionalParams, ElasticPoolsGetOptionalParams, @@ -29,36 +25,6 @@ import { /// /** Interface representing a ElasticPools. */ export interface ElasticPools { - /** - * Returns elastic pool metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - listMetrics( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams - ): PagedAsyncIterableIterator; - /** - * Returns elastic pool metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - listMetricDefinitions( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams - ): PagedAsyncIterableIterator; /** * Gets all elastic pools in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/failoverGroups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/failoverGroups.ts index 35369b01de90..8708d43cd778 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/failoverGroups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/failoverGroups.ts @@ -22,7 +22,9 @@ import { FailoverGroupsFailoverOptionalParams, FailoverGroupsFailoverResponse, FailoverGroupsForceFailoverAllowDataLossOptionalParams, - FailoverGroupsForceFailoverAllowDataLossResponse + FailoverGroupsForceFailoverAllowDataLossResponse, + FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams, + FailoverGroupsTryPlannedBeforeForcedFailoverResponse } from "../models"; /// @@ -222,4 +224,39 @@ export interface FailoverGroups { failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams ): Promise; + /** + * Fails over from the current primary server to this server. This operation tries planned before + * forced failover but might still 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 failoverGroupName The name of the failover group. + * @param options The options parameters. + */ + beginTryPlannedBeforeForcedFailover( + resourceGroupName: string, + serverName: string, + failoverGroupName: string, + options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FailoverGroupsTryPlannedBeforeForcedFailoverResponse + > + >; + /** + * Fails over from the current primary server to this server. This operation tries planned before + * forced failover but might still 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 failoverGroupName The name of the failover group. + * @param options The options parameters. + */ + beginTryPlannedBeforeForcedFailoverAndWait( + resourceGroupName: string, + serverName: string, + failoverGroupName: string, + options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/firewallRules.ts b/sdk/sql/arm-sql/src/operationsInterfaces/firewallRules.ts index b9045ebd226a..5f8e53550314 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/firewallRules.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/firewallRules.ts @@ -10,14 +10,14 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { FirewallRule, FirewallRulesListByServerOptionalParams, + FirewallRuleList, + FirewallRulesReplaceOptionalParams, + FirewallRulesReplaceResponse, FirewallRulesGetOptionalParams, FirewallRulesGetResponse, FirewallRulesCreateOrUpdateOptionalParams, FirewallRulesCreateOrUpdateResponse, - FirewallRulesDeleteOptionalParams, - FirewallRuleList, - FirewallRulesReplaceOptionalParams, - FirewallRulesReplaceResponse + FirewallRulesDeleteOptionalParams } from "../models"; /// @@ -35,6 +35,20 @@ export interface FirewallRules { serverName: string, options?: FirewallRulesListByServerOptionalParams ): PagedAsyncIterableIterator; + /** + * Replaces all firewall rules on the server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters A list of server firewall rules. + * @param options The options parameters. + */ + replace( + resourceGroupName: string, + serverName: string, + parameters: FirewallRuleList, + options?: FirewallRulesReplaceOptionalParams + ): Promise; /** * Gets a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -79,18 +93,4 @@ export interface FirewallRules { firewallRuleName: string, options?: FirewallRulesDeleteOptionalParams ): Promise; - /** - * Replaces all firewall rules on the server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters A list of server firewall rules. - * @param options The options parameters. - */ - replace( - resourceGroupName: string, - serverName: string, - parameters: FirewallRuleList, - options?: FirewallRulesReplaceOptionalParams - ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/geoBackupPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/geoBackupPolicies.ts index 597dd83ae5ff..3310663b5299 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/geoBackupPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/geoBackupPolicies.ts @@ -9,63 +9,63 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { GeoBackupPolicy, - GeoBackupPoliciesListByDatabaseOptionalParams, + GeoBackupPoliciesListOptionalParams, GeoBackupPolicyName, - GeoBackupPoliciesCreateOrUpdateOptionalParams, - GeoBackupPoliciesCreateOrUpdateResponse, GeoBackupPoliciesGetOptionalParams, - GeoBackupPoliciesGetResponse + GeoBackupPoliciesGetResponse, + GeoBackupPoliciesCreateOrUpdateOptionalParams, + GeoBackupPoliciesCreateOrUpdateResponse } from "../models"; /// /** Interface representing a GeoBackupPolicies. */ export interface GeoBackupPolicies { /** - * Returns a list of geo backup policies. + * Gets a list of Geo backup policies for the given database resource. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ - listByDatabase( + list( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams + options?: GeoBackupPoliciesListOptionalParams ): PagedAsyncIterableIterator; /** - * Updates a database geo backup policy. + * Gets a Geo backup policy for the given database resource. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param geoBackupPolicyName The name of the geo backup policy. - * @param parameters The required parameters for creating or updating the geo backup policy. + * @param geoBackupPolicyName The name of the Geo backup policy. This should always be 'Default'. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, - parameters: GeoBackupPolicy, - options?: GeoBackupPoliciesCreateOrUpdateOptionalParams - ): Promise; + options?: GeoBackupPoliciesGetOptionalParams + ): Promise; /** - * Gets a geo backup policy. + * Create or update a database default Geo backup policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param geoBackupPolicyName The name of the geo backup policy. + * @param geoBackupPolicyName The name of the Geo backup policy. This should always be 'Default'. + * @param parameters The required parameters for creating or updating the geo backup policy. * @param options The options parameters. */ - get( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, - options?: GeoBackupPoliciesGetOptionalParams - ): Promise; + parameters: GeoBackupPolicy, + options?: GeoBackupPoliciesCreateOrUpdateOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts index c5f2c323d80d..c10041cb37aa 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts @@ -6,59 +6,85 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./backupShortTermRetentionPolicies"; +export * from "./serverBlobAuditingPolicies"; +export * from "./databaseBlobAuditingPolicies"; +export * from "./extendedDatabaseBlobAuditingPolicies"; +export * from "./extendedServerBlobAuditingPolicies"; export * from "./dataMaskingPolicies"; export * from "./dataMaskingRules"; -export * from "./geoBackupPolicies"; -export * from "./databases"; -export * from "./elasticPools"; -export * from "./serverCommunicationLinks"; -export * from "./serviceObjectives"; -export * from "./elasticPoolActivities"; -export * from "./elasticPoolDatabaseActivities"; -export * from "./serverUsages"; +export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseAdvancedThreatProtectionSettings"; export * from "./databaseAdvisors"; export * from "./databaseAutomaticTuningOperations"; export * from "./databaseColumns"; +export * from "./databaseEncryptionProtectors"; +export * from "./databaseExtensionsOperations"; +export * from "./databaseOperations"; export * from "./databaseRecommendedActions"; export * from "./databaseSchemas"; export * from "./databaseSecurityAlertPolicies"; +export * from "./databaseSqlVulnerabilityAssessmentBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; +export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentScanResult"; +export * from "./databaseSqlVulnerabilityAssessmentScans"; +export * from "./databaseSqlVulnerabilityAssessmentsSettings"; export * from "./databaseTables"; +export * from "./databaseUsages"; export * from "./databaseVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseVulnerabilityAssessments"; export * from "./databaseVulnerabilityAssessmentScans"; -export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseVulnerabilityAssessments"; +export * from "./databases"; export * from "./deletedServers"; +export * from "./distributedAvailabilityGroups"; export * from "./elasticPoolOperations"; +export * from "./elasticPools"; export * from "./encryptionProtectors"; +export * from "./endpointCertificates"; export * from "./failoverGroups"; export * from "./firewallRules"; +export * from "./geoBackupPolicies"; +export * from "./iPv6FirewallRules"; +export * from "./instanceFailoverGroups"; export * from "./instancePools"; export * from "./jobAgents"; export * from "./jobCredentials"; export * from "./jobExecutions"; -export * from "./jobs"; export * from "./jobStepExecutions"; export * from "./jobSteps"; export * from "./jobTargetExecutions"; export * from "./jobTargetGroups"; export * from "./jobVersions"; +export * from "./jobs"; +export * from "./ledgerDigestUploadsOperations"; export * from "./capabilities"; +export * from "./longTermRetentionBackups"; +export * from "./longTermRetentionManagedInstanceBackups"; export * from "./longTermRetentionPolicies"; export * from "./maintenanceWindowOptionsOperations"; export * from "./maintenanceWindowsOperations"; export * from "./managedBackupShortTermRetentionPolicies"; +export * from "./managedDatabaseAdvancedThreatProtectionSettings"; export * from "./managedDatabaseColumns"; +export * from "./managedDatabaseMoveOperations"; export * from "./managedDatabaseQueries"; +export * from "./managedDatabaseRestoreDetails"; export * from "./managedDatabaseSchemas"; export * from "./managedDatabaseSecurityAlertPolicies"; export * from "./managedDatabaseSecurityEvents"; +export * from "./managedDatabaseSensitivityLabels"; +export * from "./managedDatabaseRecommendedSensitivityLabels"; export * from "./managedDatabaseTables"; export * from "./managedDatabaseTransparentDataEncryption"; export * from "./managedDatabaseVulnerabilityAssessmentRuleBaselines"; -export * from "./managedDatabaseVulnerabilityAssessments"; export * from "./managedDatabaseVulnerabilityAssessmentScans"; +export * from "./managedDatabaseVulnerabilityAssessments"; +export * from "./managedDatabases"; export * from "./managedInstanceAdministrators"; +export * from "./managedInstanceAdvancedThreatProtectionSettings"; export * from "./managedInstanceAzureADOnlyAuthentications"; +export * from "./managedInstanceDtcs"; export * from "./managedInstanceEncryptionProtectors"; export * from "./managedInstanceKeys"; export * from "./managedInstanceLongTermRetentionPolicies"; @@ -67,69 +93,42 @@ export * from "./managedInstancePrivateEndpointConnections"; export * from "./managedInstancePrivateLinkResources"; export * from "./managedInstanceTdeCertificates"; export * from "./managedInstanceVulnerabilityAssessments"; +export * from "./managedInstances"; +export * from "./managedLedgerDigestUploadsOperations"; export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; +export * from "./managedServerDnsAliases"; export * from "./managedServerSecurityAlertPolicies"; +export * from "./networkSecurityPerimeterConfigurations"; export * from "./operations"; +export * from "./outboundFirewallRules"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./recoverableDatabases"; export * from "./recoverableManagedDatabases"; +export * from "./replicationLinks"; +export * from "./restorableDroppedDatabases"; +export * from "./restorableDroppedManagedDatabases"; export * from "./restorePoints"; +export * from "./sensitivityLabels"; +export * from "./recommendedSensitivityLabels"; +export * from "./serverAdvancedThreatProtectionSettings"; export * from "./serverAdvisors"; export * from "./serverAutomaticTuningOperations"; export * from "./serverAzureADAdministrators"; export * from "./serverAzureADOnlyAuthentications"; +export * from "./serverConfigurationOptions"; +export * from "./serverConnectionPolicies"; export * from "./serverDevOpsAuditSettings"; export * from "./serverDnsAliases"; export * from "./serverKeys"; export * from "./serverOperations"; export * from "./serverSecurityAlertPolicies"; +export * from "./serverTrustCertificates"; export * from "./serverTrustGroups"; +export * from "./serverUsages"; export * from "./serverVulnerabilityAssessments"; +export * from "./servers"; export * from "./sqlAgent"; -export * from "./subscriptionUsages"; -export * from "./syncAgents"; -export * from "./syncGroups"; -export * from "./syncMembers"; -export * from "./tdeCertificates"; -export * from "./timeZones"; -export * from "./virtualNetworkRules"; -export * from "./workloadClassifiers"; -export * from "./workloadGroups"; -export * from "./backupShortTermRetentionPolicies"; -export * from "./databaseExtensionsOperations"; -export * from "./databaseOperations"; -export * from "./databaseUsages"; -export * from "./ledgerDigestUploadsOperations"; -export * from "./outboundFirewallRules"; -export * from "./usages"; -export * from "./longTermRetentionBackups"; -export * from "./longTermRetentionManagedInstanceBackups"; -export * from "./restorableDroppedManagedDatabases"; -export * from "./serverConnectionPolicies"; -export * from "./distributedAvailabilityGroups"; -export * from "./serverTrustCertificates"; -export * from "./iPv6FirewallRules"; -export * from "./endpointCertificates"; -export * from "./managedDatabaseSensitivityLabels"; -export * from "./managedDatabaseRecommendedSensitivityLabels"; -export * from "./sensitivityLabels"; -export * from "./recommendedSensitivityLabels"; -export * from "./serverBlobAuditingPolicies"; -export * from "./databaseBlobAuditingPolicies"; -export * from "./extendedDatabaseBlobAuditingPolicies"; -export * from "./extendedServerBlobAuditingPolicies"; -export * from "./databaseAdvancedThreatProtectionSettings"; -export * from "./serverAdvancedThreatProtectionSettings"; -export * from "./managedServerDnsAliases"; -export * from "./databaseSqlVulnerabilityAssessmentBaselines"; -export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; -export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseSqlVulnerabilityAssessmentScanResult"; -export * from "./databaseSqlVulnerabilityAssessmentScans"; -export * from "./databaseSqlVulnerabilityAssessmentsSettings"; -export * from "./managedDatabaseAdvancedThreatProtectionSettings"; -export * from "./managedInstanceAdvancedThreatProtectionSettings"; -export * from "./replicationLinks"; export * from "./sqlVulnerabilityAssessmentBaseline"; export * from "./sqlVulnerabilityAssessmentBaselines"; export * from "./sqlVulnerabilityAssessmentExecuteScan"; @@ -139,19 +138,17 @@ export * from "./sqlVulnerabilityAssessmentScanResult"; export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentsSettings"; export * from "./sqlVulnerabilityAssessments"; -export * from "./managedDatabaseMoveOperations"; -export * from "./managedInstanceDtcs"; -export * from "./synapseLinkWorkspaces"; -export * from "./virtualClusters"; -export * from "./instanceFailoverGroups"; -export * from "./managedDatabaseRestoreDetails"; -export * from "./managedDatabases"; -export * from "./databaseEncryptionProtectors"; -export * from "./managedInstances"; -export * from "./managedLedgerDigestUploadsOperations"; -export * from "./recoverableDatabases"; -export * from "./restorableDroppedDatabases"; -export * from "./serverConfigurationOptions"; -export * from "./servers"; export * from "./startStopManagedInstanceSchedules"; +export * from "./subscriptionUsages"; +export * from "./synapseLinkWorkspaces"; +export * from "./syncAgents"; +export * from "./syncGroups"; +export * from "./syncMembers"; +export * from "./tdeCertificates"; +export * from "./timeZones"; export * from "./transparentDataEncryptions"; +export * from "./usages"; +export * from "./virtualClusters"; +export * from "./virtualNetworkRules"; +export * from "./workloadClassifiers"; +export * from "./workloadGroups"; diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/instancePools.ts b/sdk/sql/arm-sql/src/operationsInterfaces/instancePools.ts index abd5edb6b950..ad85070b5916 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/instancePools.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/instancePools.ts @@ -10,8 +10,8 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { InstancePool, - InstancePoolsListByResourceGroupOptionalParams, InstancePoolsListOptionalParams, + InstancePoolsListByResourceGroupOptionalParams, InstancePoolsGetOptionalParams, InstancePoolsGetResponse, InstancePoolsCreateOrUpdateOptionalParams, @@ -25,6 +25,13 @@ import { /// /** Interface representing a InstancePools. */ export interface InstancePools { + /** + * Gets a list of all instance pools in the subscription. + * @param options The options parameters. + */ + list( + options?: InstancePoolsListOptionalParams + ): PagedAsyncIterableIterator; /** * Gets a list of instance pools in the resource group * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -35,13 +42,6 @@ export interface InstancePools { resourceGroupName: string, options?: InstancePoolsListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; - /** - * Gets a list of all instance pools in the subscription. - * @param options The options parameters. - */ - list( - options?: InstancePoolsListOptionalParams - ): PagedAsyncIterableIterator; /** * Gets an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/jobExecutions.ts b/sdk/sql/arm-sql/src/operationsInterfaces/jobExecutions.ts index d74fc17c51d6..bd1f03157e8b 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/jobExecutions.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/jobExecutions.ts @@ -12,13 +12,13 @@ import { JobExecution, JobExecutionsListByAgentOptionalParams, JobExecutionsListByJobOptionalParams, - JobExecutionsCancelOptionalParams, - JobExecutionsCreateOptionalParams, - JobExecutionsCreateResponse, JobExecutionsGetOptionalParams, JobExecutionsGetResponse, JobExecutionsCreateOrUpdateOptionalParams, - JobExecutionsCreateOrUpdateResponse + JobExecutionsCreateOrUpdateResponse, + JobExecutionsCancelOptionalParams, + JobExecutionsCreateOptionalParams, + JobExecutionsCreateResponse } from "../models"; /// @@ -55,117 +55,117 @@ export interface JobExecutions { options?: JobExecutionsListByJobOptionalParams ): PagedAsyncIterableIterator; /** - * Requests cancellation of a job execution. + * Gets a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobExecutionId The id of the job execution to cancel. + * @param jobExecutionId The id of the job execution * @param options The options parameters. */ - cancel( + get( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobExecutionsCancelOptionalParams - ): Promise; + options?: JobExecutionsGetOptionalParams + ): Promise; /** - * Starts an elastic job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - beginCreate( + beginCreateOrUpdate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobExecutionsCreateOptionalParams + jobExecutionId: string, + options?: JobExecutionsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< - OperationState, - JobExecutionsCreateResponse + OperationState, + JobExecutionsCreateOrUpdateResponse > >; /** - * Starts an elastic job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - beginCreateAndWait( + beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobExecutionsCreateOptionalParams - ): Promise; + jobExecutionId: string, + options?: JobExecutionsCreateOrUpdateOptionalParams + ): Promise; /** - * Gets a job execution. + * Requests cancellation of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobExecutionId The id of the job execution + * @param jobExecutionId The id of the job execution to cancel. * @param options The options parameters. */ - get( + cancel( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobExecutionsGetOptionalParams - ): Promise; + options?: JobExecutionsCancelOptionalParams + ): Promise; /** - * Creates or updates a job execution. + * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - beginCreateOrUpdate( + beginCreate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobExecutionId: string, - options?: JobExecutionsCreateOrUpdateOptionalParams + options?: JobExecutionsCreateOptionalParams ): Promise< SimplePollerLike< - OperationState, - JobExecutionsCreateOrUpdateResponse + OperationState, + JobExecutionsCreateResponse > >; /** - * Creates or updates a job execution. + * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - beginCreateOrUpdateAndWait( + beginCreateAndWait( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobExecutionId: string, - options?: JobExecutionsCreateOrUpdateOptionalParams - ): Promise; + options?: JobExecutionsCreateOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/jobSteps.ts b/sdk/sql/arm-sql/src/operationsInterfaces/jobSteps.ts index a6b38d15ea5b..6d1be1898afd 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/jobSteps.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/jobSteps.ts @@ -9,38 +9,20 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { JobStep, - JobStepsListByVersionOptionalParams, JobStepsListByJobOptionalParams, - JobStepsGetByVersionOptionalParams, - JobStepsGetByVersionResponse, + JobStepsListByVersionOptionalParams, JobStepsGetOptionalParams, JobStepsGetResponse, JobStepsCreateOrUpdateOptionalParams, JobStepsCreateOrUpdateResponse, - JobStepsDeleteOptionalParams + JobStepsDeleteOptionalParams, + JobStepsGetByVersionOptionalParams, + JobStepsGetByVersionResponse } from "../models"; /// /** Interface representing a JobSteps. */ export interface JobSteps { - /** - * Gets all job steps in the specified job version. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param jobAgentName The name of the job agent. - * @param jobName The name of the job to get. - * @param jobVersion The version of the job to get. - * @param options The options parameters. - */ - listByVersion( - resourceGroupName: string, - serverName: string, - jobAgentName: string, - jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams - ): PagedAsyncIterableIterator; /** * Gets all job steps for a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -58,25 +40,23 @@ export interface JobSteps { options?: JobStepsListByJobOptionalParams ): PagedAsyncIterableIterator; /** - * Gets the specified version of a job step. + * Gets all job steps in the specified job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. - * @param jobName The name of the job. + * @param jobName The name of the job to get. * @param jobVersion The version of the job to get. - * @param stepName The name of the job step. * @param options The options parameters. */ - getByVersion( + listByVersion( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, - stepName: string, - options?: JobStepsGetByVersionOptionalParams - ): Promise; + options?: JobStepsListByVersionOptionalParams + ): PagedAsyncIterableIterator; /** * Gets a job step in a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -133,4 +113,24 @@ export interface JobSteps { stepName: string, options?: JobStepsDeleteOptionalParams ): Promise; + /** + * Gets the specified version of a job step. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param jobAgentName The name of the job agent. + * @param jobName The name of the job. + * @param jobVersion The version of the job to get. + * @param stepName The name of the job step. + * @param options The options parameters. + */ + getByVersion( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + jobName: string, + jobVersion: number, + stepName: string, + options?: JobStepsGetByVersionOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/jobTargetExecutions.ts b/sdk/sql/arm-sql/src/operationsInterfaces/jobTargetExecutions.ts index 9fc54e524215..7559b110bf62 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/jobTargetExecutions.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/jobTargetExecutions.ts @@ -9,8 +9,8 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { JobExecution, - JobTargetExecutionsListByJobExecutionOptionalParams, JobTargetExecutionsListByStepOptionalParams, + JobTargetExecutionsListByJobExecutionOptionalParams, JobTargetExecutionsGetOptionalParams, JobTargetExecutionsGetResponse } from "../models"; @@ -19,42 +19,42 @@ import { /** Interface representing a JobTargetExecutions. */ export interface JobTargetExecutions { /** - * Lists target executions for all steps of a job execution. + * Lists the target executions of a job step execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution + * @param stepName The name of the step. * @param options The options parameters. */ - listByJobExecution( + listByStep( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams ): PagedAsyncIterableIterator; /** - * Lists the target executions of a job step execution. + * Lists target executions for all steps of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution - * @param stepName The name of the step. * @param options The options parameters. */ - listByStep( + listByJobExecution( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams + options?: JobTargetExecutionsListByJobExecutionOptionalParams ): PagedAsyncIterableIterator; /** * Gets a target execution. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts index 1eb1ef588d07..1aefe1d8bd53 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts @@ -10,46 +10,33 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { LongTermRetentionBackup, - LongTermRetentionBackupsListByDatabaseOptionalParams, LongTermRetentionBackupsListByLocationOptionalParams, LongTermRetentionBackupsListByServerOptionalParams, - LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + LongTermRetentionBackupsListByDatabaseOptionalParams, LongTermRetentionBackupsListByResourceGroupLocationOptionalParams, LongTermRetentionBackupsListByResourceGroupServerOptionalParams, + LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + LongTermRetentionBackupsGetOptionalParams, + LongTermRetentionBackupsGetResponse, + LongTermRetentionBackupsDeleteOptionalParams, CopyLongTermRetentionBackupParameters, LongTermRetentionBackupsCopyOptionalParams, LongTermRetentionBackupsCopyResponse, UpdateLongTermRetentionBackupParameters, LongTermRetentionBackupsUpdateOptionalParams, LongTermRetentionBackupsUpdateResponse, - LongTermRetentionBackupsGetOptionalParams, - LongTermRetentionBackupsGetResponse, - LongTermRetentionBackupsDeleteOptionalParams, + LongTermRetentionBackupsGetByResourceGroupOptionalParams, + LongTermRetentionBackupsGetByResourceGroupResponse, + LongTermRetentionBackupsDeleteByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupResponse, LongTermRetentionBackupsUpdateByResourceGroupOptionalParams, - LongTermRetentionBackupsUpdateByResourceGroupResponse, - LongTermRetentionBackupsGetByResourceGroupOptionalParams, - LongTermRetentionBackupsGetByResourceGroupResponse, - LongTermRetentionBackupsDeleteByResourceGroupOptionalParams + LongTermRetentionBackupsUpdateByResourceGroupResponse } from "../models"; /// /** Interface representing a LongTermRetentionBackups. */ export interface LongTermRetentionBackups { - /** - * Lists all long term retention backups for a database. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param options The options parameters. - */ - listByDatabase( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): PagedAsyncIterableIterator; /** * Lists the long term retention backups for a given location. * @param locationName The location of the database @@ -72,19 +59,16 @@ export interface LongTermRetentionBackups { ): PagedAsyncIterableIterator; /** * Lists all long term retention backups for a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ - listByResourceGroupDatabase( - resourceGroupName: string, + listByDatabase( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + options?: LongTermRetentionBackupsListByDatabaseOptionalParams ): PagedAsyncIterableIterator; /** * Lists the long term retention backups for a given location. @@ -112,6 +96,67 @@ export interface LongTermRetentionBackups { longTermRetentionServerName: string, options?: LongTermRetentionBackupsListByResourceGroupServerOptionalParams ): PagedAsyncIterableIterator; + /** + * Lists all long term retention backups for a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param options The options parameters. + */ + listByResourceGroupDatabase( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a long term retention backup. + * @param locationName The location of the database. + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + get( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsGetOptionalParams + ): Promise; + /** + * Deletes a long term retention backup. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + beginDelete( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a long term retention backup. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + beginDeleteAndWait( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise; /** * Copy an existing long term retention backup. * @param locationName The location of the database. @@ -192,48 +237,57 @@ export interface LongTermRetentionBackups { ): Promise; /** * Gets a long term retention backup. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ - get( + getByResourceGroup( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsGetOptionalParams - ): Promise; + options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams + ): Promise; /** * Deletes a long term retention backup. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ - beginDelete( + beginDeleteByResourceGroup( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams + options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams ): Promise, void>>; /** * Deletes a long term retention backup. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ - beginDeleteAndWait( + beginDeleteByResourceGroupAndWait( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams + options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams ): Promise; /** * Copy an existing long term retention backup to a different server. @@ -325,58 +379,4 @@ export interface LongTermRetentionBackups { parameters: UpdateLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams ): Promise; - /** - * Gets a long term retention backup. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database. - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param options The options parameters. - */ - getByResourceGroup( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams - ): Promise; - /** - * Deletes a long term retention backup. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param options The options parameters. - */ - beginDeleteByResourceGroup( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - ): Promise, void>>; - /** - * Deletes a long term retention backup. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param options The options parameters. - */ - beginDeleteByResourceGroupAndWait( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionManagedInstanceBackups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionManagedInstanceBackups.ts index b69527af808c..02115fbf09f6 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionManagedInstanceBackups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionManagedInstanceBackups.ts @@ -10,12 +10,12 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ManagedInstanceLongTermRetentionBackup, + LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams, LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams, - LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, LongTermRetentionManagedInstanceBackupsGetOptionalParams, LongTermRetentionManagedInstanceBackupsGetResponse, LongTermRetentionManagedInstanceBackupsDeleteOptionalParams, @@ -27,6 +27,15 @@ import { /// /** Interface representing a LongTermRetentionManagedInstanceBackups. */ export interface LongTermRetentionManagedInstanceBackups { + /** + * Lists the long term retention backups for managed databases in a given location. + * @param locationName The location of the database. + * @param options The options parameters. + */ + listByLocation( + locationName: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + ): PagedAsyncIterableIterator; /** * Lists all long term retention backups for a managed database. * @param locationName The location of the database. @@ -53,12 +62,15 @@ export interface LongTermRetentionManagedInstanceBackups { ): PagedAsyncIterableIterator; /** * Lists the long term retention backups for managed databases in a given location. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param options The options parameters. */ - listByLocation( + listByResourceGroupLocation( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams ): PagedAsyncIterableIterator; /** * Lists all long term retention backups for a managed database. @@ -90,18 +102,6 @@ export interface LongTermRetentionManagedInstanceBackups { managedInstanceName: string, options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams ): PagedAsyncIterableIterator; - /** - * Lists the long term retention backups for managed databases in a given location. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database. - * @param options The options parameters. - */ - listByResourceGroupLocation( - resourceGroupName: string, - locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams - ): PagedAsyncIterableIterator; /** * Gets a long term retention backup for a managed database. * @param locationName The location of the database. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseSensitivityLabels.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseSensitivityLabels.ts index d9e14da84f1f..f0c117f4b1a8 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseSensitivityLabels.ts @@ -11,6 +11,9 @@ import { SensitivityLabel, ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams, ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams, + ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams, + SensitivityLabelUpdateList, + ManagedDatabaseSensitivityLabelsUpdateOptionalParams, SensitivityLabelSource, ManagedDatabaseSensitivityLabelsGetOptionalParams, ManagedDatabaseSensitivityLabelsGetResponse, @@ -18,9 +21,7 @@ import { ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse, ManagedDatabaseSensitivityLabelsDeleteOptionalParams, ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams, - ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams, - SensitivityLabelUpdateList, - ManagedDatabaseSensitivityLabelsUpdateOptionalParams + ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams } from "../models"; /// @@ -54,6 +55,36 @@ export interface ManagedDatabaseSensitivityLabels { databaseName: string, options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams ): PagedAsyncIterableIterator; + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; + /** + * Update sensitivity labels of a given database using an operations batch. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters A list of sensitivity label update operations. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: SensitivityLabelUpdateList, + options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams + ): Promise; /** * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -159,20 +190,4 @@ export interface ManagedDatabaseSensitivityLabels { columnName: string, options?: ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams ): Promise; - /** - * Update sensitivity labels of a given database using an operations batch. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param parameters A list of sensitivity label update operations. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - parameters: SensitivityLabelUpdateList, - options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams - ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts index 805767112711..9ddcbf80a1d4 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts @@ -11,7 +11,7 @@ import { VulnerabilityAssessmentPolicyBaselineName, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse, - DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams @@ -62,7 +62,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, - parameters: DatabaseVulnerabilityAssessmentRuleBaseline, + parameters: DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams ): Promise< ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentScans.ts index 4730f0544871..01e0fbabe295 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentScans.ts @@ -12,11 +12,11 @@ import { VulnerabilityAssessmentScanRecord, VulnerabilityAssessmentName, ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams, - ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, + ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams, + ManagedDatabaseVulnerabilityAssessmentScansGetResponse, ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansExportResponse, - ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams, - ManagedDatabaseVulnerabilityAssessmentScansGetResponse + ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams } from "../models"; /// @@ -39,7 +39,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { options?: ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams ): PagedAsyncIterableIterator; /** - * Executes a Vulnerability Assessment database scan. + * Gets a vulnerability assessment scan record of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. @@ -48,52 +48,52 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - beginInitiateScan( + get( resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise, void>>; + options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams + ): Promise; /** - * Executes a Vulnerability Assessment database scan. + * Convert an existing scan result to a human readable format. If already exists nothing happens * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. + * @param databaseName The name of the scanned database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param scanId The vulnerability assessment scan Id. * @param options The options parameters. */ - beginInitiateScanAndWait( + export( resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise; + options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams + ): Promise; /** - * Convert an existing scan result to a human readable format. If already exists nothing happens + * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the scanned database. + * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - export( + beginInitiateScan( resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams - ): Promise; + options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise, void>>; /** - * Gets a vulnerability assessment scan record of a database. + * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. @@ -102,12 +102,12 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - get( + beginInitiateScanAndWait( resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams - ): Promise; + options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceEncryptionProtectors.ts index 278f0b4c3c42..e9c1556de46a 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceEncryptionProtectors.ts @@ -12,11 +12,11 @@ import { ManagedInstanceEncryptionProtector, ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams, EncryptionProtectorName, - ManagedInstanceEncryptionProtectorsRevalidateOptionalParams, ManagedInstanceEncryptionProtectorsGetOptionalParams, ManagedInstanceEncryptionProtectorsGetResponse, ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams, - ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse + ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse, + ManagedInstanceEncryptionProtectorsRevalidateOptionalParams } from "../models"; /// @@ -34,34 +34,6 @@ export interface ManagedInstanceEncryptionProtectors { managedInstanceName: string, options?: ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams ): PagedAsyncIterableIterator; - /** - * Revalidates an existing encryption protector. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param encryptionProtectorName The name of the encryption protector to be updated. - * @param options The options parameters. - */ - beginRevalidate( - resourceGroupName: string, - managedInstanceName: string, - encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - ): Promise, void>>; - /** - * Revalidates an existing encryption protector. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param encryptionProtectorName The name of the encryption protector to be updated. - * @param options The options parameters. - */ - beginRevalidateAndWait( - resourceGroupName: string, - managedInstanceName: string, - encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - ): Promise; /** * Gets a managed instance encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -113,4 +85,32 @@ export interface ManagedInstanceEncryptionProtectors { parameters: ManagedInstanceEncryptionProtector, options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams ): Promise; + /** + * Revalidates an existing encryption protector. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param encryptionProtectorName The name of the encryption protector to be updated. + * @param options The options parameters. + */ + beginRevalidate( + resourceGroupName: string, + managedInstanceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + ): Promise, void>>; + /** + * Revalidates an existing encryption protector. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param encryptionProtectorName The name of the encryption protector to be updated. + * @param options The options parameters. + */ + beginRevalidateAndWait( + resourceGroupName: string, + managedInstanceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceLongTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceLongTermRetentionPolicies.ts index 564702efdb0a..ac05a3216c5a 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceLongTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceLongTermRetentionPolicies.ts @@ -15,7 +15,9 @@ import { ManagedInstanceLongTermRetentionPoliciesGetOptionalParams, ManagedInstanceLongTermRetentionPoliciesGetResponse, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams, - ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse + ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse, + ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams, + ManagedInstanceLongTermRetentionPoliciesDeleteResponse } from "../models"; /// @@ -94,4 +96,41 @@ export interface ManagedInstanceLongTermRetentionPolicies { parameters: ManagedInstanceLongTermRetentionPolicy, options?: ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams ): Promise; + /** + * Deletes a managed database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param policyName The policy name. Should always be Default. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + policyName: ManagedInstanceLongTermRetentionPolicyName, + options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstanceLongTermRetentionPoliciesDeleteResponse + > + >; + /** + * Deletes a managed database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param policyName The policy name. Should always be Default. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + policyName: ManagedInstanceLongTermRetentionPolicyName, + options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts index 8be022d6aaec..54d21d5143d7 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts @@ -26,8 +26,12 @@ import { ManagedInstancesUpdateOptionalParams, ManagedInstancesUpdateResponse, ManagedInstancesFailoverOptionalParams, + ManagedInstancesRefreshStatusOptionalParams, + ManagedInstancesRefreshStatusResponse, ManagedInstancesStartOptionalParams, - ManagedInstancesStopOptionalParams + ManagedInstancesStartResponse, + ManagedInstancesStopOptionalParams, + ManagedInstancesStopResponse } from "../models"; /// @@ -212,6 +216,35 @@ export interface ManagedInstances { managedInstanceName: string, options?: ManagedInstancesFailoverOptionalParams ): Promise; + /** + * Refresh external governance enablement status. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + beginRefreshStatus( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesRefreshStatusOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesRefreshStatusResponse + > + >; + /** + * Refresh external governance enablement status. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + beginRefreshStatusAndWait( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesRefreshStatusOptionalParams + ): Promise; /** * Starts the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -223,7 +256,12 @@ export interface ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesStartResponse + > + >; /** * Starts the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -235,7 +273,7 @@ export interface ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams - ): Promise; + ): Promise; /** * Stops the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -247,7 +285,12 @@ export interface ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesStopResponse + > + >; /** * Stops the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -259,5 +302,5 @@ export interface ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams - ): Promise; + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedServerSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedServerSecurityAlertPolicies.ts index cb8ed03f3506..6427586070b5 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedServerSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedServerSecurityAlertPolicies.ts @@ -11,7 +11,7 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ManagedServerSecurityAlertPolicy, ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams, - SecurityAlertPolicyName, + SecurityAlertPolicyNameAutoGenerated, ManagedServerSecurityAlertPoliciesGetOptionalParams, ManagedServerSecurityAlertPoliciesGetResponse, ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams, @@ -44,7 +44,7 @@ export interface ManagedServerSecurityAlertPolicies { get( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams ): Promise; /** @@ -59,7 +59,7 @@ export interface ManagedServerSecurityAlertPolicies { beginCreateOrUpdate( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise< @@ -80,7 +80,7 @@ export interface ManagedServerSecurityAlertPolicies { beginCreateOrUpdateAndWait( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise; diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts b/sdk/sql/arm-sql/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts new file mode 100644 index 000000000000..a58b36488f28 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts @@ -0,0 +1,82 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NetworkSecurityPerimeterConfiguration, + NetworkSecurityPerimeterConfigurationsListByServerOptionalParams, + NetworkSecurityPerimeterConfigurationsGetOptionalParams, + NetworkSecurityPerimeterConfigurationsGetResponse, + NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + NetworkSecurityPerimeterConfigurationsReconcileResponse +} from "../models"; + +/// +/** Interface representing a NetworkSecurityPerimeterConfigurations. */ +export interface NetworkSecurityPerimeterConfigurations { + /** + * Gets a list of NSP configurations for a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + listByServer( + resourceGroupName: string, + serverName: string, + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a network security perimeter configuration. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nspConfigName + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams + ): Promise; + /** + * Reconcile network security perimeter configuration for SQL Resource Provider + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nspConfigName + * @param options The options parameters. + */ + beginReconcile( + resourceGroupName: string, + serverName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkSecurityPerimeterConfigurationsReconcileResponse + > + >; + /** + * Reconcile network security perimeter configuration for SQL Resource Provider + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nspConfigName + * @param options The options parameters. + */ + beginReconcileAndWait( + resourceGroupName: string, + serverName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/outboundFirewallRules.ts b/sdk/sql/arm-sql/src/operationsInterfaces/outboundFirewallRules.ts index 29322a46884a..41e1fcd9752d 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/outboundFirewallRules.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/outboundFirewallRules.ts @@ -53,14 +53,12 @@ export interface OutboundFirewallRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn - * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ beginCreateOrUpdate( resourceGroupName: string, serverName: string, outboundRuleFqdn: string, - parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< @@ -74,14 +72,12 @@ export interface OutboundFirewallRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn - * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, outboundRuleFqdn: string, - parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams ): Promise; /** diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/sensitivityLabels.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sensitivityLabels.ts index 2e29e28ed53b..8e4d638bebd8 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/sensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sensitivityLabels.ts @@ -11,16 +11,17 @@ import { SensitivityLabel, SensitivityLabelsListCurrentByDatabaseOptionalParams, SensitivityLabelsListRecommendedByDatabaseOptionalParams, + SensitivityLabelsListByDatabaseOptionalParams, SensitivityLabelUpdateList, SensitivityLabelsUpdateOptionalParams, - SensitivityLabelsEnableRecommendationOptionalParams, - SensitivityLabelsDisableRecommendationOptionalParams, SensitivityLabelSource, SensitivityLabelsGetOptionalParams, SensitivityLabelsGetResponse, SensitivityLabelsCreateOrUpdateOptionalParams, SensitivityLabelsCreateOrUpdateResponse, - SensitivityLabelsDeleteOptionalParams + SensitivityLabelsDeleteOptionalParams, + SensitivityLabelsDisableRecommendationOptionalParams, + SensitivityLabelsEnableRecommendationOptionalParams } from "../models"; /// @@ -54,6 +55,20 @@ export interface SensitivityLabels { databaseName: string, options?: SensitivityLabelsListRecommendedByDatabaseOptionalParams ): PagedAsyncIterableIterator; + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SensitivityLabelsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; /** * Update sensitivity labels of a given database using an operations batch. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -71,8 +86,7 @@ export interface SensitivityLabels { options?: SensitivityLabelsUpdateOptionalParams ): Promise; /** - * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all - * columns) + * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -80,19 +94,21 @@ export interface SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ - enableRecommendation( + get( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsEnableRecommendationOptionalParams - ): Promise; + sensitivityLabelSource: SensitivityLabelSource, + options?: SensitivityLabelsGetOptionalParams + ): Promise; /** - * Disables sensitivity recommendations on a given column + * Creates or updates the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -100,19 +116,21 @@ export interface SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. * @param options The options parameters. */ - disableRecommendation( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsDisableRecommendationOptionalParams - ): Promise; + parameters: SensitivityLabel, + options?: SensitivityLabelsCreateOrUpdateOptionalParams + ): Promise; /** - * Gets the sensitivity label of a given column + * Deletes the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -120,21 +138,19 @@ export interface SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ - get( + delete( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - sensitivityLabelSource: SensitivityLabelSource, - options?: SensitivityLabelsGetOptionalParams - ): Promise; + options?: SensitivityLabelsDeleteOptionalParams + ): Promise; /** - * Creates or updates the sensitivity label of a given column + * Disables sensitivity recommendations on a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -142,21 +158,20 @@ export interface SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @param parameters The column sensitivity label resource. * @param options The options parameters. */ - createOrUpdate( + disableRecommendation( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - parameters: SensitivityLabel, - options?: SensitivityLabelsCreateOrUpdateOptionalParams - ): Promise; + options?: SensitivityLabelsDisableRecommendationOptionalParams + ): Promise; /** - * Deletes the sensitivity label of a given column + * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all + * columns) * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -166,13 +181,13 @@ export interface SensitivityLabels { * @param columnName The name of the column. * @param options The options parameters. */ - delete( + enableRecommendation( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsDeleteOptionalParams + options?: SensitivityLabelsEnableRecommendationOptionalParams ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverCommunicationLinks.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverCommunicationLinks.ts deleted file mode 100644 index addf8110e3b0..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serverCommunicationLinks.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - ServerCommunicationLink, - ServerCommunicationLinksListByServerOptionalParams, - ServerCommunicationLinksDeleteOptionalParams, - ServerCommunicationLinksGetOptionalParams, - ServerCommunicationLinksGetResponse, - ServerCommunicationLinksCreateOrUpdateOptionalParams, - ServerCommunicationLinksCreateOrUpdateResponse -} from "../models"; - -/// -/** Interface representing a ServerCommunicationLinks. */ -export interface ServerCommunicationLinks { - /** - * Gets a list of server communication links. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams - ): PagedAsyncIterableIterator; - /** - * Deletes a server communication link. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - serverName: string, - communicationLinkName: string, - options?: ServerCommunicationLinksDeleteOptionalParams - ): Promise; - /** - * Returns a server communication link. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - communicationLinkName: string, - options?: ServerCommunicationLinksGetOptionalParams - ): Promise; - /** - * Creates a server communication link. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serverName: string, - communicationLinkName: string, - parameters: ServerCommunicationLink, - options?: ServerCommunicationLinksCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ServerCommunicationLinksCreateOrUpdateResponse - > - >; - /** - * Creates a server communication link. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serverName: string, - communicationLinkName: string, - parameters: ServerCommunicationLink, - options?: ServerCommunicationLinksCreateOrUpdateOptionalParams - ): Promise; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverSecurityAlertPolicies.ts index 1822ab56744c..d75617a8a677 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serverSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/serverSecurityAlertPolicies.ts @@ -11,7 +11,7 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ServerSecurityAlertPolicy, ServerSecurityAlertPoliciesListByServerOptionalParams, - SecurityAlertPolicyName, + SecurityAlertPolicyNameAutoGenerated, ServerSecurityAlertPoliciesGetOptionalParams, ServerSecurityAlertPoliciesGetResponse, ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams, @@ -44,7 +44,7 @@ export interface ServerSecurityAlertPolicies { get( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ServerSecurityAlertPoliciesGetOptionalParams ): Promise; /** @@ -59,7 +59,7 @@ export interface ServerSecurityAlertPolicies { beginCreateOrUpdate( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise< @@ -80,7 +80,7 @@ export interface ServerSecurityAlertPolicies { beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise; diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverUsages.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverUsages.ts index 8f0e03fb7a9e..5da881ab19de 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serverUsages.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/serverUsages.ts @@ -13,7 +13,7 @@ import { ServerUsage, ServerUsagesListByServerOptionalParams } from "../models"; /** Interface representing a ServerUsages. */ export interface ServerUsages { /** - * Returns server usages. + * Gets server usages. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serviceObjectives.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serviceObjectives.ts deleted file mode 100644 index 3c14a0a36783..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serviceObjectives.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - ServiceObjective, - ServiceObjectivesListByServerOptionalParams, - ServiceObjectivesGetOptionalParams, - ServiceObjectivesGetResponse -} from "../models"; - -/// -/** Interface representing a ServiceObjectives. */ -export interface ServiceObjectives { - /** - * Returns database service objectives. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - listByServer( - resourceGroupName: string, - serverName: string, - options?: ServiceObjectivesListByServerOptionalParams - ): PagedAsyncIterableIterator; - /** - * Gets a database service objective. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param serviceObjectiveName The name of the service objective to retrieve. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - serviceObjectiveName: string, - options?: ServiceObjectivesGetOptionalParams - ): Promise; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts index b5e658e4de5f..57849b89ace3 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts @@ -11,23 +11,23 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SyncDatabaseIdProperties, SyncGroupsListSyncDatabaseIdsOptionalParams, + SyncGroup, + SyncGroupsListByDatabaseOptionalParams, SyncFullSchemaProperties, SyncGroupsListHubSchemasOptionalParams, SyncGroupLogProperties, SyncGroupsType, SyncGroupsListLogsOptionalParams, - SyncGroup, - SyncGroupsListByDatabaseOptionalParams, - SyncGroupsRefreshHubSchemaOptionalParams, - SyncGroupsCancelSyncOptionalParams, - SyncGroupsTriggerSyncOptionalParams, SyncGroupsGetOptionalParams, SyncGroupsGetResponse, SyncGroupsCreateOrUpdateOptionalParams, SyncGroupsCreateOrUpdateResponse, SyncGroupsDeleteOptionalParams, SyncGroupsUpdateOptionalParams, - SyncGroupsUpdateResponse + SyncGroupsUpdateResponse, + SyncGroupsCancelSyncOptionalParams, + SyncGroupsRefreshHubSchemaOptionalParams, + SyncGroupsTriggerSyncOptionalParams } from "../models"; /// @@ -42,6 +42,20 @@ export interface SyncGroups { locationName: string, options?: SyncGroupsListSyncDatabaseIdsOptionalParams ): PagedAsyncIterableIterator; + /** + * Lists sync groups under a hub database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param options The options parameters. + */ + listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SyncGroupsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; /** * Gets a collection of hub database schemas. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -81,21 +95,7 @@ export interface SyncGroups { options?: SyncGroupsListLogsOptionalParams ): PagedAsyncIterableIterator; /** - * Lists sync groups under a hub database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param options The options parameters. - */ - listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams - ): PagedAsyncIterableIterator; - /** - * Refreshes a hub database schema. + * Gets a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -103,47 +103,56 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - beginRefreshHubSchema( + get( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsRefreshHubSchemaOptionalParams - ): Promise, void>>; + options?: SyncGroupsGetOptionalParams + ): Promise; /** - * Refreshes a hub database schema. + * Creates or updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginRefreshHubSchemaAndWait( + beginCreateOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsRefreshHubSchemaOptionalParams - ): Promise; + parameters: SyncGroup, + options?: SyncGroupsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + SyncGroupsCreateOrUpdateResponse + > + >; /** - * Cancels a sync group synchronization. + * Creates or updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - cancelSync( + beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsCancelSyncOptionalParams - ): Promise; + parameters: SyncGroup, + options?: SyncGroupsCreateOrUpdateOptionalParams + ): Promise; /** - * Triggers a sync group synchronization. + * Deletes a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -151,15 +160,15 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - triggerSync( + beginDelete( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsTriggerSyncOptionalParams - ): Promise; + options?: SyncGroupsDeleteOptionalParams + ): Promise, void>>; /** - * Gets a sync group. + * Deletes a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -167,15 +176,15 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - get( + beginDeleteAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsGetOptionalParams - ): Promise; + options?: SyncGroupsDeleteOptionalParams + ): Promise; /** - * Creates or updates a sync group. + * Updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -184,21 +193,21 @@ export interface SyncGroups { * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginCreateOrUpdate( + beginUpdate( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: SyncGroup, - options?: SyncGroupsCreateOrUpdateOptionalParams + options?: SyncGroupsUpdateOptionalParams ): Promise< SimplePollerLike< - OperationState, - SyncGroupsCreateOrUpdateResponse + OperationState, + SyncGroupsUpdateResponse > >; /** - * Creates or updates a sync group. + * Updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -207,16 +216,16 @@ export interface SyncGroups { * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginCreateOrUpdateAndWait( + beginUpdateAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: SyncGroup, - options?: SyncGroupsCreateOrUpdateOptionalParams - ): Promise; + options?: SyncGroupsUpdateOptionalParams + ): Promise; /** - * Deletes a sync group. + * Cancels a sync group synchronization. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -224,15 +233,15 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - beginDelete( + cancelSync( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsDeleteOptionalParams - ): Promise, void>>; + options?: SyncGroupsCancelSyncOptionalParams + ): Promise; /** - * Deletes a sync group. + * Refreshes a hub database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -240,52 +249,43 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - beginDeleteAndWait( + beginRefreshHubSchema( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsDeleteOptionalParams - ): Promise; + options?: SyncGroupsRefreshHubSchemaOptionalParams + ): Promise, void>>; /** - * Updates a sync group. + * Refreshes a hub database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginUpdate( + beginRefreshHubSchemaAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SyncGroupsUpdateResponse - > - >; + options?: SyncGroupsRefreshHubSchemaOptionalParams + ): Promise; /** - * Updates a sync group. + * Triggers a sync group synchronization. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginUpdateAndWait( + triggerSync( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsUpdateOptionalParams - ): Promise; + options?: SyncGroupsTriggerSyncOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/sqlManagementClient.ts b/sdk/sql/arm-sql/src/sqlManagementClient.ts index 661a39ff3973..c025eb6b5c3b 100644 --- a/sdk/sql/arm-sql/src/sqlManagementClient.ts +++ b/sdk/sql/arm-sql/src/sqlManagementClient.ts @@ -8,61 +8,92 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { + BackupShortTermRetentionPoliciesImpl, + ServerBlobAuditingPoliciesImpl, + DatabaseBlobAuditingPoliciesImpl, + ExtendedDatabaseBlobAuditingPoliciesImpl, + ExtendedServerBlobAuditingPoliciesImpl, DataMaskingPoliciesImpl, DataMaskingRulesImpl, - GeoBackupPoliciesImpl, - DatabasesImpl, - ElasticPoolsImpl, - ServerCommunicationLinksImpl, - ServiceObjectivesImpl, - ElasticPoolActivitiesImpl, - ElasticPoolDatabaseActivitiesImpl, - ServerUsagesImpl, + DataWarehouseUserActivitiesOperationsImpl, + DatabaseAdvancedThreatProtectionSettingsImpl, DatabaseAdvisorsImpl, DatabaseAutomaticTuningOperationsImpl, DatabaseColumnsImpl, + DatabaseEncryptionProtectorsImpl, + DatabaseExtensionsOperationsImpl, + DatabaseOperationsImpl, DatabaseRecommendedActionsImpl, DatabaseSchemasImpl, DatabaseSecurityAlertPoliciesImpl, + DatabaseSqlVulnerabilityAssessmentBaselinesImpl, + DatabaseSqlVulnerabilityAssessmentExecuteScanImpl, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl, + DatabaseSqlVulnerabilityAssessmentScanResultImpl, + DatabaseSqlVulnerabilityAssessmentScansImpl, + DatabaseSqlVulnerabilityAssessmentsSettingsImpl, DatabaseTablesImpl, + DatabaseUsagesImpl, DatabaseVulnerabilityAssessmentRuleBaselinesImpl, - DatabaseVulnerabilityAssessmentsImpl, DatabaseVulnerabilityAssessmentScansImpl, - DataWarehouseUserActivitiesOperationsImpl, + DatabaseVulnerabilityAssessmentsImpl, + DatabasesImpl, DeletedServersImpl, + DistributedAvailabilityGroupsImpl, ElasticPoolOperationsImpl, + ElasticPoolsImpl, EncryptionProtectorsImpl, + EndpointCertificatesImpl, FailoverGroupsImpl, FirewallRulesImpl, + GeoBackupPoliciesImpl, + IPv6FirewallRulesImpl, + InstanceFailoverGroupsImpl, InstancePoolsImpl, JobAgentsImpl, JobCredentialsImpl, JobExecutionsImpl, - JobsImpl, JobStepExecutionsImpl, JobStepsImpl, JobTargetExecutionsImpl, JobTargetGroupsImpl, JobVersionsImpl, + JobsImpl, + LedgerDigestUploadsOperationsImpl, CapabilitiesImpl, + LongTermRetentionBackupsImpl, + LongTermRetentionManagedInstanceBackupsImpl, LongTermRetentionPoliciesImpl, MaintenanceWindowOptionsOperationsImpl, MaintenanceWindowsOperationsImpl, ManagedBackupShortTermRetentionPoliciesImpl, + ManagedDatabaseAdvancedThreatProtectionSettingsImpl, ManagedDatabaseColumnsImpl, + ManagedDatabaseMoveOperationsImpl, ManagedDatabaseQueriesImpl, + ManagedDatabaseRestoreDetailsImpl, ManagedDatabaseSchemasImpl, ManagedDatabaseSecurityAlertPoliciesImpl, ManagedDatabaseSecurityEventsImpl, + ManagedDatabaseSensitivityLabelsImpl, + ManagedDatabaseRecommendedSensitivityLabelsImpl, ManagedDatabaseTablesImpl, ManagedDatabaseTransparentDataEncryptionImpl, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl, - ManagedDatabaseVulnerabilityAssessmentsImpl, ManagedDatabaseVulnerabilityAssessmentScansImpl, + ManagedDatabaseVulnerabilityAssessmentsImpl, + ManagedDatabasesImpl, ManagedInstanceAdministratorsImpl, + ManagedInstanceAdvancedThreatProtectionSettingsImpl, ManagedInstanceAzureADOnlyAuthenticationsImpl, + ManagedInstanceDtcsImpl, ManagedInstanceEncryptionProtectorsImpl, ManagedInstanceKeysImpl, ManagedInstanceLongTermRetentionPoliciesImpl, @@ -71,69 +102,42 @@ import { ManagedInstancePrivateLinkResourcesImpl, ManagedInstanceTdeCertificatesImpl, ManagedInstanceVulnerabilityAssessmentsImpl, + ManagedInstancesImpl, + ManagedLedgerDigestUploadsOperationsImpl, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImpl, + ManagedServerDnsAliasesImpl, ManagedServerSecurityAlertPoliciesImpl, + NetworkSecurityPerimeterConfigurationsImpl, OperationsImpl, + OutboundFirewallRulesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, + RecoverableDatabasesImpl, RecoverableManagedDatabasesImpl, + ReplicationLinksImpl, + RestorableDroppedDatabasesImpl, + RestorableDroppedManagedDatabasesImpl, RestorePointsImpl, + SensitivityLabelsImpl, + RecommendedSensitivityLabelsImpl, + ServerAdvancedThreatProtectionSettingsImpl, ServerAdvisorsImpl, ServerAutomaticTuningOperationsImpl, ServerAzureADAdministratorsImpl, ServerAzureADOnlyAuthenticationsImpl, + ServerConfigurationOptionsImpl, + ServerConnectionPoliciesImpl, ServerDevOpsAuditSettingsImpl, ServerDnsAliasesImpl, ServerKeysImpl, ServerOperationsImpl, ServerSecurityAlertPoliciesImpl, + ServerTrustCertificatesImpl, ServerTrustGroupsImpl, + ServerUsagesImpl, ServerVulnerabilityAssessmentsImpl, + ServersImpl, SqlAgentImpl, - SubscriptionUsagesImpl, - SyncAgentsImpl, - SyncGroupsImpl, - SyncMembersImpl, - TdeCertificatesImpl, - TimeZonesImpl, - VirtualNetworkRulesImpl, - WorkloadClassifiersImpl, - WorkloadGroupsImpl, - BackupShortTermRetentionPoliciesImpl, - DatabaseExtensionsOperationsImpl, - DatabaseOperationsImpl, - DatabaseUsagesImpl, - LedgerDigestUploadsOperationsImpl, - OutboundFirewallRulesImpl, - UsagesImpl, - LongTermRetentionBackupsImpl, - LongTermRetentionManagedInstanceBackupsImpl, - RestorableDroppedManagedDatabasesImpl, - ServerConnectionPoliciesImpl, - DistributedAvailabilityGroupsImpl, - ServerTrustCertificatesImpl, - IPv6FirewallRulesImpl, - EndpointCertificatesImpl, - ManagedDatabaseSensitivityLabelsImpl, - ManagedDatabaseRecommendedSensitivityLabelsImpl, - SensitivityLabelsImpl, - RecommendedSensitivityLabelsImpl, - ServerBlobAuditingPoliciesImpl, - DatabaseBlobAuditingPoliciesImpl, - ExtendedDatabaseBlobAuditingPoliciesImpl, - ExtendedServerBlobAuditingPoliciesImpl, - DatabaseAdvancedThreatProtectionSettingsImpl, - ServerAdvancedThreatProtectionSettingsImpl, - ManagedServerDnsAliasesImpl, - DatabaseSqlVulnerabilityAssessmentBaselinesImpl, - DatabaseSqlVulnerabilityAssessmentExecuteScanImpl, - DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl, - DatabaseSqlVulnerabilityAssessmentScanResultImpl, - DatabaseSqlVulnerabilityAssessmentScansImpl, - DatabaseSqlVulnerabilityAssessmentsSettingsImpl, - ManagedDatabaseAdvancedThreatProtectionSettingsImpl, - ManagedInstanceAdvancedThreatProtectionSettingsImpl, - ReplicationLinksImpl, SqlVulnerabilityAssessmentBaselineImpl, SqlVulnerabilityAssessmentBaselinesImpl, SqlVulnerabilityAssessmentExecuteScanImpl, @@ -143,77 +147,101 @@ import { SqlVulnerabilityAssessmentScansImpl, SqlVulnerabilityAssessmentsSettingsImpl, SqlVulnerabilityAssessmentsImpl, - ManagedDatabaseMoveOperationsImpl, - ManagedInstanceDtcsImpl, + StartStopManagedInstanceSchedulesImpl, + SubscriptionUsagesImpl, SynapseLinkWorkspacesImpl, + SyncAgentsImpl, + SyncGroupsImpl, + SyncMembersImpl, + TdeCertificatesImpl, + TimeZonesImpl, + TransparentDataEncryptionsImpl, + UsagesImpl, VirtualClustersImpl, - InstanceFailoverGroupsImpl, - ManagedDatabaseRestoreDetailsImpl, - ManagedDatabasesImpl, - DatabaseEncryptionProtectorsImpl, - ManagedInstancesImpl, - ManagedLedgerDigestUploadsOperationsImpl, - RecoverableDatabasesImpl, - RestorableDroppedDatabasesImpl, - ServerConfigurationOptionsImpl, - ServersImpl, - StartStopManagedInstanceSchedulesImpl, - TransparentDataEncryptionsImpl + VirtualNetworkRulesImpl, + WorkloadClassifiersImpl, + WorkloadGroupsImpl } from "./operations"; import { + BackupShortTermRetentionPolicies, + ServerBlobAuditingPolicies, + DatabaseBlobAuditingPolicies, + ExtendedDatabaseBlobAuditingPolicies, + ExtendedServerBlobAuditingPolicies, DataMaskingPolicies, DataMaskingRules, - GeoBackupPolicies, - Databases, - ElasticPools, - ServerCommunicationLinks, - ServiceObjectives, - ElasticPoolActivities, - ElasticPoolDatabaseActivities, - ServerUsages, + DataWarehouseUserActivitiesOperations, + DatabaseAdvancedThreatProtectionSettings, DatabaseAdvisors, DatabaseAutomaticTuningOperations, DatabaseColumns, + DatabaseEncryptionProtectors, + DatabaseExtensionsOperations, + DatabaseOperations, DatabaseRecommendedActions, DatabaseSchemas, DatabaseSecurityAlertPolicies, + DatabaseSqlVulnerabilityAssessmentBaselines, + DatabaseSqlVulnerabilityAssessmentExecuteScan, + DatabaseSqlVulnerabilityAssessmentRuleBaselines, + DatabaseSqlVulnerabilityAssessmentScanResult, + DatabaseSqlVulnerabilityAssessmentScans, + DatabaseSqlVulnerabilityAssessmentsSettings, DatabaseTables, + DatabaseUsages, DatabaseVulnerabilityAssessmentRuleBaselines, - DatabaseVulnerabilityAssessments, DatabaseVulnerabilityAssessmentScans, - DataWarehouseUserActivitiesOperations, + DatabaseVulnerabilityAssessments, + Databases, DeletedServers, + DistributedAvailabilityGroups, ElasticPoolOperations, + ElasticPools, EncryptionProtectors, + EndpointCertificates, FailoverGroups, FirewallRules, + GeoBackupPolicies, + IPv6FirewallRules, + InstanceFailoverGroups, InstancePools, JobAgents, JobCredentials, JobExecutions, - Jobs, JobStepExecutions, JobSteps, JobTargetExecutions, JobTargetGroups, JobVersions, + Jobs, + LedgerDigestUploadsOperations, Capabilities, + LongTermRetentionBackups, + LongTermRetentionManagedInstanceBackups, LongTermRetentionPolicies, MaintenanceWindowOptionsOperations, MaintenanceWindowsOperations, ManagedBackupShortTermRetentionPolicies, + ManagedDatabaseAdvancedThreatProtectionSettings, ManagedDatabaseColumns, + ManagedDatabaseMoveOperations, ManagedDatabaseQueries, + ManagedDatabaseRestoreDetails, ManagedDatabaseSchemas, ManagedDatabaseSecurityAlertPolicies, ManagedDatabaseSecurityEvents, + ManagedDatabaseSensitivityLabels, + ManagedDatabaseRecommendedSensitivityLabels, ManagedDatabaseTables, ManagedDatabaseTransparentDataEncryption, ManagedDatabaseVulnerabilityAssessmentRuleBaselines, - ManagedDatabaseVulnerabilityAssessments, ManagedDatabaseVulnerabilityAssessmentScans, + ManagedDatabaseVulnerabilityAssessments, + ManagedDatabases, ManagedInstanceAdministrators, + ManagedInstanceAdvancedThreatProtectionSettings, ManagedInstanceAzureADOnlyAuthentications, + ManagedInstanceDtcs, ManagedInstanceEncryptionProtectors, ManagedInstanceKeys, ManagedInstanceLongTermRetentionPolicies, @@ -222,69 +250,42 @@ import { ManagedInstancePrivateLinkResources, ManagedInstanceTdeCertificates, ManagedInstanceVulnerabilityAssessments, + ManagedInstances, + ManagedLedgerDigestUploadsOperations, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies, + ManagedServerDnsAliases, ManagedServerSecurityAlertPolicies, + NetworkSecurityPerimeterConfigurations, Operations, + OutboundFirewallRules, PrivateEndpointConnections, PrivateLinkResources, + RecoverableDatabases, RecoverableManagedDatabases, + ReplicationLinks, + RestorableDroppedDatabases, + RestorableDroppedManagedDatabases, RestorePoints, + SensitivityLabels, + RecommendedSensitivityLabels, + ServerAdvancedThreatProtectionSettings, ServerAdvisors, ServerAutomaticTuningOperations, ServerAzureADAdministrators, ServerAzureADOnlyAuthentications, + ServerConfigurationOptions, + ServerConnectionPolicies, ServerDevOpsAuditSettings, ServerDnsAliases, ServerKeys, ServerOperations, ServerSecurityAlertPolicies, + ServerTrustCertificates, ServerTrustGroups, + ServerUsages, ServerVulnerabilityAssessments, + Servers, SqlAgent, - SubscriptionUsages, - SyncAgents, - SyncGroups, - SyncMembers, - TdeCertificates, - TimeZones, - VirtualNetworkRules, - WorkloadClassifiers, - WorkloadGroups, - BackupShortTermRetentionPolicies, - DatabaseExtensionsOperations, - DatabaseOperations, - DatabaseUsages, - LedgerDigestUploadsOperations, - OutboundFirewallRules, - Usages, - LongTermRetentionBackups, - LongTermRetentionManagedInstanceBackups, - RestorableDroppedManagedDatabases, - ServerConnectionPolicies, - DistributedAvailabilityGroups, - ServerTrustCertificates, - IPv6FirewallRules, - EndpointCertificates, - ManagedDatabaseSensitivityLabels, - ManagedDatabaseRecommendedSensitivityLabels, - SensitivityLabels, - RecommendedSensitivityLabels, - ServerBlobAuditingPolicies, - DatabaseBlobAuditingPolicies, - ExtendedDatabaseBlobAuditingPolicies, - ExtendedServerBlobAuditingPolicies, - DatabaseAdvancedThreatProtectionSettings, - ServerAdvancedThreatProtectionSettings, - ManagedServerDnsAliases, - DatabaseSqlVulnerabilityAssessmentBaselines, - DatabaseSqlVulnerabilityAssessmentExecuteScan, - DatabaseSqlVulnerabilityAssessmentRuleBaselines, - DatabaseSqlVulnerabilityAssessmentScanResult, - DatabaseSqlVulnerabilityAssessmentScans, - DatabaseSqlVulnerabilityAssessmentsSettings, - ManagedDatabaseAdvancedThreatProtectionSettings, - ManagedInstanceAdvancedThreatProtectionSettings, - ReplicationLinks, SqlVulnerabilityAssessmentBaseline, SqlVulnerabilityAssessmentBaselines, SqlVulnerabilityAssessmentExecuteScan, @@ -294,28 +295,27 @@ import { SqlVulnerabilityAssessmentScans, SqlVulnerabilityAssessmentsSettings, SqlVulnerabilityAssessments, - ManagedDatabaseMoveOperations, - ManagedInstanceDtcs, + StartStopManagedInstanceSchedules, + SubscriptionUsages, SynapseLinkWorkspaces, + SyncAgents, + SyncGroups, + SyncMembers, + TdeCertificates, + TimeZones, + TransparentDataEncryptions, + Usages, VirtualClusters, - InstanceFailoverGroups, - ManagedDatabaseRestoreDetails, - ManagedDatabases, - DatabaseEncryptionProtectors, - ManagedInstances, - ManagedLedgerDigestUploadsOperations, - RecoverableDatabases, - RestorableDroppedDatabases, - ServerConfigurationOptions, - Servers, - StartStopManagedInstanceSchedules, - TransparentDataEncryptions -} from "./operationsInterfaces"; + VirtualNetworkRules, + WorkloadClassifiers, + WorkloadGroups +} from "./operationsInterfaces"; import { SqlManagementClientOptionalParams } from "./models"; export class SqlManagementClient extends coreClient.ServiceClient { $host: string; subscriptionId: string; + apiVersion: string; /** * Initializes a new instance of the SqlManagementClient class. @@ -344,7 +344,7 @@ export class SqlManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-sql/10.0.0`; + const packageDetails = `azsdk-js-arm-sql/11.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -397,57 +397,106 @@ export class SqlManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2023-02-01-preview"; + this.backupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesImpl( + this + ); + this.serverBlobAuditingPolicies = new ServerBlobAuditingPoliciesImpl(this); + this.databaseBlobAuditingPolicies = new DatabaseBlobAuditingPoliciesImpl( + this + ); + this.extendedDatabaseBlobAuditingPolicies = new ExtendedDatabaseBlobAuditingPoliciesImpl( + this + ); + this.extendedServerBlobAuditingPolicies = new ExtendedServerBlobAuditingPoliciesImpl( + this + ); this.dataMaskingPolicies = new DataMaskingPoliciesImpl(this); this.dataMaskingRules = new DataMaskingRulesImpl(this); - this.geoBackupPolicies = new GeoBackupPoliciesImpl(this); - this.databases = new DatabasesImpl(this); - this.elasticPools = new ElasticPoolsImpl(this); - this.serverCommunicationLinks = new ServerCommunicationLinksImpl(this); - this.serviceObjectives = new ServiceObjectivesImpl(this); - this.elasticPoolActivities = new ElasticPoolActivitiesImpl(this); - this.elasticPoolDatabaseActivities = new ElasticPoolDatabaseActivitiesImpl( + this.dataWarehouseUserActivitiesOperations = new DataWarehouseUserActivitiesOperationsImpl( + this + ); + this.databaseAdvancedThreatProtectionSettings = new DatabaseAdvancedThreatProtectionSettingsImpl( this ); - this.serverUsages = new ServerUsagesImpl(this); this.databaseAdvisors = new DatabaseAdvisorsImpl(this); this.databaseAutomaticTuningOperations = new DatabaseAutomaticTuningOperationsImpl( this ); this.databaseColumns = new DatabaseColumnsImpl(this); + this.databaseEncryptionProtectors = new DatabaseEncryptionProtectorsImpl( + this + ); + this.databaseExtensionsOperations = new DatabaseExtensionsOperationsImpl( + this + ); + this.databaseOperations = new DatabaseOperationsImpl(this); this.databaseRecommendedActions = new DatabaseRecommendedActionsImpl(this); this.databaseSchemas = new DatabaseSchemasImpl(this); this.databaseSecurityAlertPolicies = new DatabaseSecurityAlertPoliciesImpl( this ); - this.databaseTables = new DatabaseTablesImpl(this); - this.databaseVulnerabilityAssessmentRuleBaselines = new DatabaseVulnerabilityAssessmentRuleBaselinesImpl( + this.databaseSqlVulnerabilityAssessmentBaselines = new DatabaseSqlVulnerabilityAssessmentBaselinesImpl( this ); - this.databaseVulnerabilityAssessments = new DatabaseVulnerabilityAssessmentsImpl( + this.databaseSqlVulnerabilityAssessmentExecuteScan = new DatabaseSqlVulnerabilityAssessmentExecuteScanImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentRuleBaselines = new DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentScanResult = new DatabaseSqlVulnerabilityAssessmentScanResultImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentScans = new DatabaseSqlVulnerabilityAssessmentScansImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentsSettings = new DatabaseSqlVulnerabilityAssessmentsSettingsImpl( + this + ); + this.databaseTables = new DatabaseTablesImpl(this); + this.databaseUsages = new DatabaseUsagesImpl(this); + this.databaseVulnerabilityAssessmentRuleBaselines = new DatabaseVulnerabilityAssessmentRuleBaselinesImpl( this ); this.databaseVulnerabilityAssessmentScans = new DatabaseVulnerabilityAssessmentScansImpl( this ); - this.dataWarehouseUserActivitiesOperations = new DataWarehouseUserActivitiesOperationsImpl( + this.databaseVulnerabilityAssessments = new DatabaseVulnerabilityAssessmentsImpl( this ); + this.databases = new DatabasesImpl(this); this.deletedServers = new DeletedServersImpl(this); + this.distributedAvailabilityGroups = new DistributedAvailabilityGroupsImpl( + this + ); this.elasticPoolOperations = new ElasticPoolOperationsImpl(this); + this.elasticPools = new ElasticPoolsImpl(this); this.encryptionProtectors = new EncryptionProtectorsImpl(this); + this.endpointCertificates = new EndpointCertificatesImpl(this); this.failoverGroups = new FailoverGroupsImpl(this); this.firewallRules = new FirewallRulesImpl(this); + this.geoBackupPolicies = new GeoBackupPoliciesImpl(this); + this.iPv6FirewallRules = new IPv6FirewallRulesImpl(this); + this.instanceFailoverGroups = new InstanceFailoverGroupsImpl(this); this.instancePools = new InstancePoolsImpl(this); this.jobAgents = new JobAgentsImpl(this); this.jobCredentials = new JobCredentialsImpl(this); this.jobExecutions = new JobExecutionsImpl(this); - this.jobs = new JobsImpl(this); this.jobStepExecutions = new JobStepExecutionsImpl(this); this.jobSteps = new JobStepsImpl(this); this.jobTargetExecutions = new JobTargetExecutionsImpl(this); this.jobTargetGroups = new JobTargetGroupsImpl(this); this.jobVersions = new JobVersionsImpl(this); + this.jobs = new JobsImpl(this); + this.ledgerDigestUploadsOperations = new LedgerDigestUploadsOperationsImpl( + this + ); this.capabilities = new CapabilitiesImpl(this); + this.longTermRetentionBackups = new LongTermRetentionBackupsImpl(this); + this.longTermRetentionManagedInstanceBackups = new LongTermRetentionManagedInstanceBackupsImpl( + this + ); this.longTermRetentionPolicies = new LongTermRetentionPoliciesImpl(this); this.maintenanceWindowOptionsOperations = new MaintenanceWindowOptionsOperationsImpl( this @@ -458,8 +507,17 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedBackupShortTermRetentionPolicies = new ManagedBackupShortTermRetentionPoliciesImpl( this ); + this.managedDatabaseAdvancedThreatProtectionSettings = new ManagedDatabaseAdvancedThreatProtectionSettingsImpl( + this + ); this.managedDatabaseColumns = new ManagedDatabaseColumnsImpl(this); + this.managedDatabaseMoveOperations = new ManagedDatabaseMoveOperationsImpl( + this + ); this.managedDatabaseQueries = new ManagedDatabaseQueriesImpl(this); + this.managedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsImpl( + this + ); this.managedDatabaseSchemas = new ManagedDatabaseSchemasImpl(this); this.managedDatabaseSecurityAlertPolicies = new ManagedDatabaseSecurityAlertPoliciesImpl( this @@ -467,6 +525,12 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedDatabaseSecurityEvents = new ManagedDatabaseSecurityEventsImpl( this ); + this.managedDatabaseSensitivityLabels = new ManagedDatabaseSensitivityLabelsImpl( + this + ); + this.managedDatabaseRecommendedSensitivityLabels = new ManagedDatabaseRecommendedSensitivityLabelsImpl( + this + ); this.managedDatabaseTables = new ManagedDatabaseTablesImpl(this); this.managedDatabaseTransparentDataEncryption = new ManagedDatabaseTransparentDataEncryptionImpl( this @@ -474,18 +538,23 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedDatabaseVulnerabilityAssessmentRuleBaselines = new ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl( this ); - this.managedDatabaseVulnerabilityAssessments = new ManagedDatabaseVulnerabilityAssessmentsImpl( + this.managedDatabaseVulnerabilityAssessmentScans = new ManagedDatabaseVulnerabilityAssessmentScansImpl( this ); - this.managedDatabaseVulnerabilityAssessmentScans = new ManagedDatabaseVulnerabilityAssessmentScansImpl( + this.managedDatabaseVulnerabilityAssessments = new ManagedDatabaseVulnerabilityAssessmentsImpl( this ); + this.managedDatabases = new ManagedDatabasesImpl(this); this.managedInstanceAdministrators = new ManagedInstanceAdministratorsImpl( this ); + this.managedInstanceAdvancedThreatProtectionSettings = new ManagedInstanceAdvancedThreatProtectionSettingsImpl( + this + ); this.managedInstanceAzureADOnlyAuthentications = new ManagedInstanceAzureADOnlyAuthenticationsImpl( this ); + this.managedInstanceDtcs = new ManagedInstanceDtcsImpl(this); this.managedInstanceEncryptionProtectors = new ManagedInstanceEncryptionProtectorsImpl( this ); @@ -506,19 +575,41 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedInstanceVulnerabilityAssessments = new ManagedInstanceVulnerabilityAssessmentsImpl( this ); + this.managedInstances = new ManagedInstancesImpl(this); + this.managedLedgerDigestUploadsOperations = new ManagedLedgerDigestUploadsOperationsImpl( + this + ); this.managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies = new ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImpl( this ); + this.managedServerDnsAliases = new ManagedServerDnsAliasesImpl(this); this.managedServerSecurityAlertPolicies = new ManagedServerSecurityAlertPoliciesImpl( this ); + this.networkSecurityPerimeterConfigurations = new NetworkSecurityPerimeterConfigurationsImpl( + this + ); this.operations = new OperationsImpl(this); + this.outboundFirewallRules = new OutboundFirewallRulesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.recoverableDatabases = new RecoverableDatabasesImpl(this); this.recoverableManagedDatabases = new RecoverableManagedDatabasesImpl( this ); + this.replicationLinks = new ReplicationLinksImpl(this); + this.restorableDroppedDatabases = new RestorableDroppedDatabasesImpl(this); + this.restorableDroppedManagedDatabases = new RestorableDroppedManagedDatabasesImpl( + this + ); this.restorePoints = new RestorePointsImpl(this); + this.sensitivityLabels = new SensitivityLabelsImpl(this); + this.recommendedSensitivityLabels = new RecommendedSensitivityLabelsImpl( + this + ); + this.serverAdvancedThreatProtectionSettings = new ServerAdvancedThreatProtectionSettingsImpl( + this + ); this.serverAdvisors = new ServerAdvisorsImpl(this); this.serverAutomaticTuningOperations = new ServerAutomaticTuningOperationsImpl( this @@ -529,6 +620,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.serverAzureADOnlyAuthentications = new ServerAzureADOnlyAuthenticationsImpl( this ); + this.serverConfigurationOptions = new ServerConfigurationOptionsImpl(this); + this.serverConnectionPolicies = new ServerConnectionPoliciesImpl(this); this.serverDevOpsAuditSettings = new ServerDevOpsAuditSettingsImpl(this); this.serverDnsAliases = new ServerDnsAliasesImpl(this); this.serverKeys = new ServerKeysImpl(this); @@ -536,99 +629,14 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.serverSecurityAlertPolicies = new ServerSecurityAlertPoliciesImpl( this ); + this.serverTrustCertificates = new ServerTrustCertificatesImpl(this); this.serverTrustGroups = new ServerTrustGroupsImpl(this); + this.serverUsages = new ServerUsagesImpl(this); this.serverVulnerabilityAssessments = new ServerVulnerabilityAssessmentsImpl( this ); + this.servers = new ServersImpl(this); this.sqlAgent = new SqlAgentImpl(this); - this.subscriptionUsages = new SubscriptionUsagesImpl(this); - this.syncAgents = new SyncAgentsImpl(this); - this.syncGroups = new SyncGroupsImpl(this); - this.syncMembers = new SyncMembersImpl(this); - this.tdeCertificates = new TdeCertificatesImpl(this); - this.timeZones = new TimeZonesImpl(this); - this.virtualNetworkRules = new VirtualNetworkRulesImpl(this); - this.workloadClassifiers = new WorkloadClassifiersImpl(this); - this.workloadGroups = new WorkloadGroupsImpl(this); - this.backupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesImpl( - this - ); - this.databaseExtensionsOperations = new DatabaseExtensionsOperationsImpl( - this - ); - this.databaseOperations = new DatabaseOperationsImpl(this); - this.databaseUsages = new DatabaseUsagesImpl(this); - this.ledgerDigestUploadsOperations = new LedgerDigestUploadsOperationsImpl( - this - ); - this.outboundFirewallRules = new OutboundFirewallRulesImpl(this); - this.usages = new UsagesImpl(this); - this.longTermRetentionBackups = new LongTermRetentionBackupsImpl(this); - this.longTermRetentionManagedInstanceBackups = new LongTermRetentionManagedInstanceBackupsImpl( - this - ); - this.restorableDroppedManagedDatabases = new RestorableDroppedManagedDatabasesImpl( - this - ); - this.serverConnectionPolicies = new ServerConnectionPoliciesImpl(this); - this.distributedAvailabilityGroups = new DistributedAvailabilityGroupsImpl( - this - ); - this.serverTrustCertificates = new ServerTrustCertificatesImpl(this); - this.iPv6FirewallRules = new IPv6FirewallRulesImpl(this); - this.endpointCertificates = new EndpointCertificatesImpl(this); - this.managedDatabaseSensitivityLabels = new ManagedDatabaseSensitivityLabelsImpl( - this - ); - this.managedDatabaseRecommendedSensitivityLabels = new ManagedDatabaseRecommendedSensitivityLabelsImpl( - this - ); - this.sensitivityLabels = new SensitivityLabelsImpl(this); - this.recommendedSensitivityLabels = new RecommendedSensitivityLabelsImpl( - this - ); - this.serverBlobAuditingPolicies = new ServerBlobAuditingPoliciesImpl(this); - this.databaseBlobAuditingPolicies = new DatabaseBlobAuditingPoliciesImpl( - this - ); - this.extendedDatabaseBlobAuditingPolicies = new ExtendedDatabaseBlobAuditingPoliciesImpl( - this - ); - this.extendedServerBlobAuditingPolicies = new ExtendedServerBlobAuditingPoliciesImpl( - this - ); - this.databaseAdvancedThreatProtectionSettings = new DatabaseAdvancedThreatProtectionSettingsImpl( - this - ); - this.serverAdvancedThreatProtectionSettings = new ServerAdvancedThreatProtectionSettingsImpl( - this - ); - this.managedServerDnsAliases = new ManagedServerDnsAliasesImpl(this); - this.databaseSqlVulnerabilityAssessmentBaselines = new DatabaseSqlVulnerabilityAssessmentBaselinesImpl( - this - ); - this.databaseSqlVulnerabilityAssessmentExecuteScan = new DatabaseSqlVulnerabilityAssessmentExecuteScanImpl( - this - ); - this.databaseSqlVulnerabilityAssessmentRuleBaselines = new DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl( - this - ); - this.databaseSqlVulnerabilityAssessmentScanResult = new DatabaseSqlVulnerabilityAssessmentScanResultImpl( - this - ); - this.databaseSqlVulnerabilityAssessmentScans = new DatabaseSqlVulnerabilityAssessmentScansImpl( - this - ); - this.databaseSqlVulnerabilityAssessmentsSettings = new DatabaseSqlVulnerabilityAssessmentsSettingsImpl( - this - ); - this.managedDatabaseAdvancedThreatProtectionSettings = new ManagedDatabaseAdvancedThreatProtectionSettingsImpl( - this - ); - this.managedInstanceAdvancedThreatProtectionSettings = new ManagedInstanceAdvancedThreatProtectionSettingsImpl( - this - ); - this.replicationLinks = new ReplicationLinksImpl(this); this.sqlVulnerabilityAssessmentBaseline = new SqlVulnerabilityAssessmentBaselineImpl( this ); @@ -656,87 +664,132 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.sqlVulnerabilityAssessments = new SqlVulnerabilityAssessmentsImpl( this ); - this.managedDatabaseMoveOperations = new ManagedDatabaseMoveOperationsImpl( - this - ); - this.managedInstanceDtcs = new ManagedInstanceDtcsImpl(this); - this.synapseLinkWorkspaces = new SynapseLinkWorkspacesImpl(this); - this.virtualClusters = new VirtualClustersImpl(this); - this.instanceFailoverGroups = new InstanceFailoverGroupsImpl(this); - this.managedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsImpl( - this - ); - this.managedDatabases = new ManagedDatabasesImpl(this); - this.databaseEncryptionProtectors = new DatabaseEncryptionProtectorsImpl( - this - ); - this.managedInstances = new ManagedInstancesImpl(this); - this.managedLedgerDigestUploadsOperations = new ManagedLedgerDigestUploadsOperationsImpl( - this - ); - this.recoverableDatabases = new RecoverableDatabasesImpl(this); - this.restorableDroppedDatabases = new RestorableDroppedDatabasesImpl(this); - this.serverConfigurationOptions = new ServerConfigurationOptionsImpl(this); - this.servers = new ServersImpl(this); this.startStopManagedInstanceSchedules = new StartStopManagedInstanceSchedulesImpl( this ); + this.subscriptionUsages = new SubscriptionUsagesImpl(this); + this.synapseLinkWorkspaces = new SynapseLinkWorkspacesImpl(this); + this.syncAgents = new SyncAgentsImpl(this); + this.syncGroups = new SyncGroupsImpl(this); + this.syncMembers = new SyncMembersImpl(this); + this.tdeCertificates = new TdeCertificatesImpl(this); + this.timeZones = new TimeZonesImpl(this); this.transparentDataEncryptions = new TransparentDataEncryptionsImpl(this); + this.usages = new UsagesImpl(this); + this.virtualClusters = new VirtualClustersImpl(this); + this.virtualNetworkRules = new VirtualNetworkRulesImpl(this); + this.workloadClassifiers = new WorkloadClassifiersImpl(this); + this.workloadGroups = new WorkloadGroupsImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); } + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); + } + + backupShortTermRetentionPolicies: BackupShortTermRetentionPolicies; + serverBlobAuditingPolicies: ServerBlobAuditingPolicies; + databaseBlobAuditingPolicies: DatabaseBlobAuditingPolicies; + extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; + extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; dataMaskingPolicies: DataMaskingPolicies; dataMaskingRules: DataMaskingRules; - geoBackupPolicies: GeoBackupPolicies; - databases: Databases; - elasticPools: ElasticPools; - serverCommunicationLinks: ServerCommunicationLinks; - serviceObjectives: ServiceObjectives; - elasticPoolActivities: ElasticPoolActivities; - elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; - serverUsages: ServerUsages; + dataWarehouseUserActivitiesOperations: DataWarehouseUserActivitiesOperations; + databaseAdvancedThreatProtectionSettings: DatabaseAdvancedThreatProtectionSettings; databaseAdvisors: DatabaseAdvisors; databaseAutomaticTuningOperations: DatabaseAutomaticTuningOperations; databaseColumns: DatabaseColumns; + databaseEncryptionProtectors: DatabaseEncryptionProtectors; + databaseExtensionsOperations: DatabaseExtensionsOperations; + databaseOperations: DatabaseOperations; databaseRecommendedActions: DatabaseRecommendedActions; databaseSchemas: DatabaseSchemas; databaseSecurityAlertPolicies: DatabaseSecurityAlertPolicies; + databaseSqlVulnerabilityAssessmentBaselines: DatabaseSqlVulnerabilityAssessmentBaselines; + databaseSqlVulnerabilityAssessmentExecuteScan: DatabaseSqlVulnerabilityAssessmentExecuteScan; + databaseSqlVulnerabilityAssessmentRuleBaselines: DatabaseSqlVulnerabilityAssessmentRuleBaselines; + databaseSqlVulnerabilityAssessmentScanResult: DatabaseSqlVulnerabilityAssessmentScanResult; + databaseSqlVulnerabilityAssessmentScans: DatabaseSqlVulnerabilityAssessmentScans; + databaseSqlVulnerabilityAssessmentsSettings: DatabaseSqlVulnerabilityAssessmentsSettings; databaseTables: DatabaseTables; + databaseUsages: DatabaseUsages; databaseVulnerabilityAssessmentRuleBaselines: DatabaseVulnerabilityAssessmentRuleBaselines; - databaseVulnerabilityAssessments: DatabaseVulnerabilityAssessments; databaseVulnerabilityAssessmentScans: DatabaseVulnerabilityAssessmentScans; - dataWarehouseUserActivitiesOperations: DataWarehouseUserActivitiesOperations; + databaseVulnerabilityAssessments: DatabaseVulnerabilityAssessments; + databases: Databases; deletedServers: DeletedServers; + distributedAvailabilityGroups: DistributedAvailabilityGroups; elasticPoolOperations: ElasticPoolOperations; + elasticPools: ElasticPools; encryptionProtectors: EncryptionProtectors; + endpointCertificates: EndpointCertificates; failoverGroups: FailoverGroups; firewallRules: FirewallRules; + geoBackupPolicies: GeoBackupPolicies; + iPv6FirewallRules: IPv6FirewallRules; + instanceFailoverGroups: InstanceFailoverGroups; instancePools: InstancePools; jobAgents: JobAgents; jobCredentials: JobCredentials; jobExecutions: JobExecutions; - jobs: Jobs; jobStepExecutions: JobStepExecutions; jobSteps: JobSteps; jobTargetExecutions: JobTargetExecutions; jobTargetGroups: JobTargetGroups; jobVersions: JobVersions; + jobs: Jobs; + ledgerDigestUploadsOperations: LedgerDigestUploadsOperations; capabilities: Capabilities; + longTermRetentionBackups: LongTermRetentionBackups; + longTermRetentionManagedInstanceBackups: LongTermRetentionManagedInstanceBackups; longTermRetentionPolicies: LongTermRetentionPolicies; maintenanceWindowOptionsOperations: MaintenanceWindowOptionsOperations; maintenanceWindowsOperations: MaintenanceWindowsOperations; managedBackupShortTermRetentionPolicies: ManagedBackupShortTermRetentionPolicies; + managedDatabaseAdvancedThreatProtectionSettings: ManagedDatabaseAdvancedThreatProtectionSettings; managedDatabaseColumns: ManagedDatabaseColumns; + managedDatabaseMoveOperations: ManagedDatabaseMoveOperations; managedDatabaseQueries: ManagedDatabaseQueries; + managedDatabaseRestoreDetails: ManagedDatabaseRestoreDetails; managedDatabaseSchemas: ManagedDatabaseSchemas; managedDatabaseSecurityAlertPolicies: ManagedDatabaseSecurityAlertPolicies; managedDatabaseSecurityEvents: ManagedDatabaseSecurityEvents; + managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; + managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; managedDatabaseTables: ManagedDatabaseTables; managedDatabaseTransparentDataEncryption: ManagedDatabaseTransparentDataEncryption; managedDatabaseVulnerabilityAssessmentRuleBaselines: ManagedDatabaseVulnerabilityAssessmentRuleBaselines; - managedDatabaseVulnerabilityAssessments: ManagedDatabaseVulnerabilityAssessments; managedDatabaseVulnerabilityAssessmentScans: ManagedDatabaseVulnerabilityAssessmentScans; + managedDatabaseVulnerabilityAssessments: ManagedDatabaseVulnerabilityAssessments; + managedDatabases: ManagedDatabases; managedInstanceAdministrators: ManagedInstanceAdministrators; + managedInstanceAdvancedThreatProtectionSettings: ManagedInstanceAdvancedThreatProtectionSettings; managedInstanceAzureADOnlyAuthentications: ManagedInstanceAzureADOnlyAuthentications; + managedInstanceDtcs: ManagedInstanceDtcs; managedInstanceEncryptionProtectors: ManagedInstanceEncryptionProtectors; managedInstanceKeys: ManagedInstanceKeys; managedInstanceLongTermRetentionPolicies: ManagedInstanceLongTermRetentionPolicies; @@ -745,69 +798,42 @@ export class SqlManagementClient extends coreClient.ServiceClient { managedInstancePrivateLinkResources: ManagedInstancePrivateLinkResources; managedInstanceTdeCertificates: ManagedInstanceTdeCertificates; managedInstanceVulnerabilityAssessments: ManagedInstanceVulnerabilityAssessments; + managedInstances: ManagedInstances; + managedLedgerDigestUploadsOperations: ManagedLedgerDigestUploadsOperations; managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies; + managedServerDnsAliases: ManagedServerDnsAliases; managedServerSecurityAlertPolicies: ManagedServerSecurityAlertPolicies; + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; operations: Operations; + outboundFirewallRules: OutboundFirewallRules; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; + recoverableDatabases: RecoverableDatabases; recoverableManagedDatabases: RecoverableManagedDatabases; + replicationLinks: ReplicationLinks; + restorableDroppedDatabases: RestorableDroppedDatabases; + restorableDroppedManagedDatabases: RestorableDroppedManagedDatabases; restorePoints: RestorePoints; + sensitivityLabels: SensitivityLabels; + recommendedSensitivityLabels: RecommendedSensitivityLabels; + serverAdvancedThreatProtectionSettings: ServerAdvancedThreatProtectionSettings; serverAdvisors: ServerAdvisors; serverAutomaticTuningOperations: ServerAutomaticTuningOperations; serverAzureADAdministrators: ServerAzureADAdministrators; serverAzureADOnlyAuthentications: ServerAzureADOnlyAuthentications; + serverConfigurationOptions: ServerConfigurationOptions; + serverConnectionPolicies: ServerConnectionPolicies; serverDevOpsAuditSettings: ServerDevOpsAuditSettings; serverDnsAliases: ServerDnsAliases; serverKeys: ServerKeys; serverOperations: ServerOperations; serverSecurityAlertPolicies: ServerSecurityAlertPolicies; + serverTrustCertificates: ServerTrustCertificates; serverTrustGroups: ServerTrustGroups; + serverUsages: ServerUsages; serverVulnerabilityAssessments: ServerVulnerabilityAssessments; + servers: Servers; sqlAgent: SqlAgent; - subscriptionUsages: SubscriptionUsages; - syncAgents: SyncAgents; - syncGroups: SyncGroups; - syncMembers: SyncMembers; - tdeCertificates: TdeCertificates; - timeZones: TimeZones; - virtualNetworkRules: VirtualNetworkRules; - workloadClassifiers: WorkloadClassifiers; - workloadGroups: WorkloadGroups; - backupShortTermRetentionPolicies: BackupShortTermRetentionPolicies; - databaseExtensionsOperations: DatabaseExtensionsOperations; - databaseOperations: DatabaseOperations; - databaseUsages: DatabaseUsages; - ledgerDigestUploadsOperations: LedgerDigestUploadsOperations; - outboundFirewallRules: OutboundFirewallRules; - usages: Usages; - longTermRetentionBackups: LongTermRetentionBackups; - longTermRetentionManagedInstanceBackups: LongTermRetentionManagedInstanceBackups; - restorableDroppedManagedDatabases: RestorableDroppedManagedDatabases; - serverConnectionPolicies: ServerConnectionPolicies; - distributedAvailabilityGroups: DistributedAvailabilityGroups; - serverTrustCertificates: ServerTrustCertificates; - iPv6FirewallRules: IPv6FirewallRules; - endpointCertificates: EndpointCertificates; - managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; - managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; - sensitivityLabels: SensitivityLabels; - recommendedSensitivityLabels: RecommendedSensitivityLabels; - serverBlobAuditingPolicies: ServerBlobAuditingPolicies; - databaseBlobAuditingPolicies: DatabaseBlobAuditingPolicies; - extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; - extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; - databaseAdvancedThreatProtectionSettings: DatabaseAdvancedThreatProtectionSettings; - serverAdvancedThreatProtectionSettings: ServerAdvancedThreatProtectionSettings; - managedServerDnsAliases: ManagedServerDnsAliases; - databaseSqlVulnerabilityAssessmentBaselines: DatabaseSqlVulnerabilityAssessmentBaselines; - databaseSqlVulnerabilityAssessmentExecuteScan: DatabaseSqlVulnerabilityAssessmentExecuteScan; - databaseSqlVulnerabilityAssessmentRuleBaselines: DatabaseSqlVulnerabilityAssessmentRuleBaselines; - databaseSqlVulnerabilityAssessmentScanResult: DatabaseSqlVulnerabilityAssessmentScanResult; - databaseSqlVulnerabilityAssessmentScans: DatabaseSqlVulnerabilityAssessmentScans; - databaseSqlVulnerabilityAssessmentsSettings: DatabaseSqlVulnerabilityAssessmentsSettings; - managedDatabaseAdvancedThreatProtectionSettings: ManagedDatabaseAdvancedThreatProtectionSettings; - managedInstanceAdvancedThreatProtectionSettings: ManagedInstanceAdvancedThreatProtectionSettings; - replicationLinks: ReplicationLinks; sqlVulnerabilityAssessmentBaseline: SqlVulnerabilityAssessmentBaseline; sqlVulnerabilityAssessmentBaselines: SqlVulnerabilityAssessmentBaselines; sqlVulnerabilityAssessmentExecuteScan: SqlVulnerabilityAssessmentExecuteScan; @@ -817,20 +843,18 @@ export class SqlManagementClient extends coreClient.ServiceClient { sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; sqlVulnerabilityAssessmentsSettings: SqlVulnerabilityAssessmentsSettings; sqlVulnerabilityAssessments: SqlVulnerabilityAssessments; - managedDatabaseMoveOperations: ManagedDatabaseMoveOperations; - managedInstanceDtcs: ManagedInstanceDtcs; - synapseLinkWorkspaces: SynapseLinkWorkspaces; - virtualClusters: VirtualClusters; - instanceFailoverGroups: InstanceFailoverGroups; - managedDatabaseRestoreDetails: ManagedDatabaseRestoreDetails; - managedDatabases: ManagedDatabases; - databaseEncryptionProtectors: DatabaseEncryptionProtectors; - managedInstances: ManagedInstances; - managedLedgerDigestUploadsOperations: ManagedLedgerDigestUploadsOperations; - recoverableDatabases: RecoverableDatabases; - restorableDroppedDatabases: RestorableDroppedDatabases; - serverConfigurationOptions: ServerConfigurationOptions; - servers: Servers; startStopManagedInstanceSchedules: StartStopManagedInstanceSchedules; + subscriptionUsages: SubscriptionUsages; + synapseLinkWorkspaces: SynapseLinkWorkspaces; + syncAgents: SyncAgents; + syncGroups: SyncGroups; + syncMembers: SyncMembers; + tdeCertificates: TdeCertificates; + timeZones: TimeZones; transparentDataEncryptions: TransparentDataEncryptions; + usages: Usages; + virtualClusters: VirtualClusters; + virtualNetworkRules: VirtualNetworkRules; + workloadClassifiers: WorkloadClassifiers; + workloadGroups: WorkloadGroups; } diff --git a/sdk/sql/arm-sql/test/sampleTest.ts b/sdk/sql/arm-sql/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/sql/arm-sql/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/sql/arm-sql/tsconfig.json b/sdk/sql/arm-sql/tsconfig.json index c6da67f236cf..3e6ae96443f3 100644 --- a/sdk/sql/arm-sql/tsconfig.json +++ b/sdk/sql/arm-sql/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-sql": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"