diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 2b4be0873429..be04d90f1f3a 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -13188,23 +13188,23 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-gEhqj5EmlF2VxSwfvw7oW8pRUX93PvKxHF5j1Z1bY7qqNOxHapMzlw47gg4WtGhJ2sWzCK5fSwXiZ58Q25KlsQ==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-O3WZiFZg4Pl8tyL+mOju6FqvGZ7bqNSoSAYR0UlsZChyFgezq8O23UYh1nJlCdMZxEL2Nuo8MTMQM7FGBq8YGA==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@azure/identity': 2.0.4 - '@microsoft/api-extractor': 7.18.11 - '@rollup/plugin-commonjs': 21.0.3_rollup@2.70.1 - '@rollup/plugin-json': 4.1.0_rollup@2.70.1 - '@rollup/plugin-multi-entry': 3.0.1_rollup@2.70.1 - '@rollup/plugin-node-resolve': 8.4.0_rollup@2.70.1 + '@microsoft/api-extractor': 7.22.1 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.70.1 - rollup-plugin-sourcemaps: 0.4.2_rollup@2.70.1 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.15.4 @@ -13872,7 +13872,7 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-F2p5XwoV7jQhN9ZEN8CJLDdTq1UBXLM0Ch9Ciz0KgJIsHFEnC6gts26YWXpJnvqligsIbdgdSoEGQSGxEEcfAA==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-FqxHOpHgvyJ+4HOwbd46Dnvs0GLTHf2yn8GXEM+q7A+SdJlVRoSFkc0p+778/j5MjMec4wUI8o9vjwqo4NpSqg==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: @@ -14012,7 +14012,7 @@ packages: dev: false file:projects/communication-network-traversal.tgz: - resolution: {integrity: sha512-ObCHY5MD0EY7Fe3Dy4+XGii/Q8e3qZN+Kz7Jvfz0hMv6uwi3ZLwgtOSJU8lUk38imK+bXK52CI+0tb83AvtstA==, tarball: file:projects/communication-network-traversal.tgz} + resolution: {integrity: sha512-DfS473YHDZzO8h8P+pqAvJz/guSyj1BoDLKr1ifuQOT35RNVF/XxL2ydwAAXdbYA0iFpkPD5UwDXLvknVCm7mA==, tarball: file:projects/communication-network-traversal.tgz} name: '@rush-temp/communication-network-traversal' version: 0.0.0 dependencies: @@ -14021,7 +14021,7 @@ packages: '@azure/communication-identity': 1.0.0 '@azure/core-tracing': 1.0.0-preview.13 '@azure/identity': 2.0.4 - '@microsoft/api-extractor': 7.18.11 + '@microsoft/api-extractor': 7.22.1 '@rollup/plugin-commonjs': 21.0.3_rollup@2.70.1 '@rollup/plugin-json': 4.1.0_rollup@2.70.1 '@rollup/plugin-multi-entry': 3.0.1_rollup@2.70.1 @@ -14066,7 +14066,6 @@ packages: transitivePeerDependencies: - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -14168,7 +14167,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-FLvHt8YCR95J93gFFd+J0Q6yX1RQMrjeteihyIWNmdk/tukSYrqDAWOlTgvJtPFc9Rw5wVPPkvhkY7GtEjz7xQ==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-E/nwbz1Zg3kgLv1+MLlZeHvQByxJ2oNMrPKsRs1C0qF1T+T3lVNHUjQfoCYT/PiQZ9JG0VBP3IMSE9Wseb2dgg==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -14176,7 +14175,7 @@ packages: '@azure/communication-common': 1.1.0 '@azure/core-tracing': 1.0.0-preview.13 '@azure/identity': 2.0.4 - '@microsoft/api-extractor': 7.18.11 + '@microsoft/api-extractor': 7.22.1 '@types/chai': 4.3.0 '@types/mocha': 7.0.2 '@types/node': 12.20.47 @@ -14212,7 +14211,6 @@ packages: transitivePeerDependencies: - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -14306,7 +14304,7 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-XUaZ6jz58zipElE+mk/rMwBQTwKpR1/hduBJOz/KhuPF8H5NmjoQqHIQM2esvZykdnEmWz5s6M0LQrkufHB0bQ==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-jby3YSj0rQG0F50w/ua0POKVlA0LZyYsCzrl7xf7nbkbIxYqa1iNYpUPJ958WI9RKSChnC5I3naI7yG0l66bow==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: diff --git a/sdk/sql/arm-sql/CHANGELOG.md b/sdk/sql/arm-sql/CHANGELOG.md index 61dfb0f2cc9c..58a6f7d46e61 100644 --- a/sdk/sql/arm-sql/CHANGELOG.md +++ b/sdk/sql/arm-sql/CHANGELOG.md @@ -1,15 +1,83 @@ # Release History + +## 10.0.0-beta.1 (2022-04-27) + +**Features** -## 9.0.1 (Unreleased) + - Added operation group DistributedAvailabilityGroups + - Added operation group EndpointCertificates + - Added operation group IPv6FirewallRules + - Added operation group ServerTrustCertificates + - Added Interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams + - Added Interface DistributedAvailabilityGroupsDeleteOptionalParams + - Added Interface DistributedAvailabilityGroupsGetOptionalParams + - Added Interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams + - Added Interface DistributedAvailabilityGroupsListByInstanceOptionalParams + - Added Interface DistributedAvailabilityGroupsListResult + - Added Interface DistributedAvailabilityGroupsUpdateOptionalParams + - Added Interface EndpointCertificateListResult + - Added Interface EndpointCertificatesGetOptionalParams + - Added Interface EndpointCertificatesListByInstanceNextOptionalParams + - Added Interface EndpointCertificatesListByInstanceOptionalParams + - Added Interface IPv6FirewallRuleListResult + - Added Interface IPv6FirewallRulesCreateOrUpdateOptionalParams + - Added Interface IPv6FirewallRulesDeleteOptionalParams + - Added Interface IPv6FirewallRulesGetOptionalParams + - Added Interface IPv6FirewallRulesListByServerNextOptionalParams + - Added Interface IPv6FirewallRulesListByServerOptionalParams + - Added Interface ServerTrustCertificatesCreateOrUpdateOptionalParams + - Added Interface ServerTrustCertificatesDeleteOptionalParams + - Added Interface ServerTrustCertificatesGetOptionalParams + - Added Interface ServerTrustCertificatesListByInstanceNextOptionalParams + - Added Interface ServerTrustCertificatesListByInstanceOptionalParams + - Added Interface ServerTrustCertificatesListResult + - Added Type Alias DistributedAvailabilityGroup + - Added Type Alias DistributedAvailabilityGroupsCreateOrUpdateResponse + - Added Type Alias DistributedAvailabilityGroupsGetResponse + - Added Type Alias DistributedAvailabilityGroupsListByInstanceNextResponse + - Added Type Alias DistributedAvailabilityGroupsListByInstanceResponse + - Added Type Alias DistributedAvailabilityGroupsUpdateResponse + - Added Type Alias EndpointCertificate + - Added Type Alias EndpointCertificatesGetResponse + - Added Type Alias EndpointCertificatesListByInstanceNextResponse + - Added Type Alias EndpointCertificatesListByInstanceResponse + - Added Type Alias IPv6FirewallRule + - Added Type Alias IPv6FirewallRulesCreateOrUpdateResponse + - Added Type Alias IPv6FirewallRulesGetResponse + - Added Type Alias IPv6FirewallRulesListByServerNextResponse + - Added Type Alias IPv6FirewallRulesListByServerResponse + - Added Type Alias ReplicationMode + - Added Type Alias ServerTrustCertificate + - Added Type Alias ServerTrustCertificatesCreateOrUpdateResponse + - Added Type Alias ServerTrustCertificatesGetResponse + - Added Type Alias ServerTrustCertificatesListByInstanceNextResponse + - Added Type Alias ServerTrustCertificatesListByInstanceResponse + - Added Type Alias SyncGroupsType + - Interface ElasticPoolUpdate has a new optional parameter highAvailabilityReplicaCount + - Class SqlManagementClient has a new parameter distributedAvailabilityGroups + - Class SqlManagementClient has a new parameter endpointCertificates + - Class SqlManagementClient has a new parameter iPv6FirewallRules + - Class SqlManagementClient has a new parameter serverTrustCertificates + - Type Alias Database has a new parameter sourceResourceId + - Type Alias DatabaseBlobAuditingPolicy has a new parameter isManagedIdentityInUse + - Type Alias ElasticPool has a new parameter highAvailabilityReplicaCount + - Type Alias ExtendedDatabaseBlobAuditingPolicy has a new parameter isManagedIdentityInUse + - Type Alias ExtendedServerBlobAuditingPolicy has a new parameter isManagedIdentityInUse + - Type Alias ServerBlobAuditingPolicy has a new parameter isManagedIdentityInUse + - Added Enum KnownReplicationMode + - Added Enum KnownSyncGroupsType -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +**Breaking Changes** + - Removed operation group OperationsHealthOperations + - Operation SyncGroups.listLogs has a new signature + - Interface DatabaseIdentity no longer has parameter delegatedResources + - Interface DatabaseUpdate no longer has parameter primaryDelegatedIdentityClientId + - Class SqlManagementClient no longer has parameter operationsHealthOperations + - Type Alias Database no longer has parameter primaryDelegatedIdentityClientId + - Removed Enum KnownEnum60 + + ## 9.0.0 (2021-12-07) The package of @azure/arm-sql is using our next generation design principles since version 9.0.0, which contains breaking changes. diff --git a/sdk/sql/arm-sql/LICENSE b/sdk/sql/arm-sql/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/sql/arm-sql/LICENSE +++ b/sdk/sql/arm-sql/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/sql/arm-sql/README.md b/sdk/sql/arm-sql/README.md index f00695d7daa4..1926a5e95216 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 a11dd294cb17..2b72a6334782 100644 --- a/sdk/sql/arm-sql/_meta.json +++ b/sdk/sql/arm-sql/_meta.json @@ -1,7 +1,8 @@ { - "commit": "a42f1b58607091c4f255ead152a8ef323fa0b280", + "commit": "8fdd9f5f15ecdd7c7f042fde363bee61bf88a247", "readme": "specification/sql/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/sql/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --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-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/sql/arm-sql/api-extractor.json b/sdk/sql/arm-sql/api-extractor.json index 8047a09425ac..de40add47a92 100644 --- a/sdk/sql/arm-sql/api-extractor.json +++ b/sdk/sql/arm-sql/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-sql.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/sql/arm-sql/package.json b/sdk/sql/arm-sql/package.json index 79bdc061adde..f22a111f0d0a 100644 --- a/sdk/sql/arm-sql/package.json +++ b/sdk/sql/arm-sql/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SqlManagementClient.", - "version": "9.0.1", + "version": "10.0.0-beta.1", "engines": { "node": ">=12.0.0" }, @@ -28,13 +28,13 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-sql.d.ts", "devDependencies": { - "@microsoft/api-extractor": "7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", + "@microsoft/api-extractor": "^7.18.11", + "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-json": "^4.0.0", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.0.0", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/sql/arm-sql/review/arm-sql.api.md b/sdk/sql/arm-sql/review/arm-sql.api.md index 4366bc263db6..2a50b5051c9d 100644 --- a/sdk/sql/arm-sql/review/arm-sql.api.md +++ b/sdk/sql/arm-sql/review/arm-sql.api.md @@ -283,7 +283,7 @@ export type Database = TrackedResource & { isLedgerOn?: boolean; readonly isInfraEncryptionEnabled?: boolean; federatedClientId?: string; - primaryDelegatedIdentityClientId?: string; + sourceResourceId?: string; }; // @public @@ -387,6 +387,7 @@ export type DatabaseBlobAuditingPolicy = ProxyResource & { isStorageSecondaryKeyInUse?: boolean; isAzureMonitorTargetEnabled?: boolean; queueDelayMs?: number; + isManagedIdentityInUse?: boolean; state?: BlobAuditingPolicyState; storageEndpoint?: string; storageAccountAccessKey?: string; @@ -512,9 +513,6 @@ export interface DatabaseExtensionsOperations { // @public export interface DatabaseIdentity { - delegatedResources?: { - [propertyName: string]: Delegation; - }; readonly tenantId?: string; type?: DatabaseIdentityType; userAssignedIdentities?: { @@ -952,7 +950,6 @@ export interface DatabaseUpdate { maxSizeBytes?: number; minCapacity?: number; readonly pausedDate?: Date; - primaryDelegatedIdentityClientId?: string; readScale?: DatabaseReadScale; recoverableDatabaseId?: string; recoveryServicesRecoveryPointId?: string; @@ -1275,12 +1272,6 @@ export type DataWarehouseUserActivityName = string; // @public export type DayOfWeek = string; -// @public -export interface Delegation { - resourceId?: string; - readonly tenantId?: string; -} - // @public export type DeletedServer = ProxyResource & { readonly version?: string; @@ -1351,6 +1342,83 @@ export type DeletedServersRecoverResponse = DeletedServer; // @public export type DiffBackupIntervalInHours = number; +// @public +export type DistributedAvailabilityGroup = ProxyResource & { + targetDatabase?: string; + sourceEndpoint?: string; + primaryAvailabilityGroupName?: string; + secondaryAvailabilityGroupName?: string; + replicationMode?: ReplicationMode; + readonly distributedAvailabilityGroupId?: string; + readonly sourceReplicaId?: string; + readonly targetReplicaId?: string; + readonly linkState?: string; + readonly lastHardenedLsn?: string; +}; + +// @public +export interface DistributedAvailabilityGroups { + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise, DistributedAvailabilityGroupsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams): Promise, DistributedAvailabilityGroupsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsGetOptionalParams): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: DistributedAvailabilityGroupsListByInstanceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; + +// @public +export interface DistributedAvailabilityGroupsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; + +// @public +export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; + +// @public +export interface DistributedAvailabilityGroupsListByInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; + +// @public +export interface DistributedAvailabilityGroupsListResult { + readonly nextLink?: string; + readonly value?: DistributedAvailabilityGroup[]; +} + +// @public +export interface DistributedAvailabilityGroupsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; + // @public export type DnsRefreshConfigurationPropertiesStatus = string; @@ -1376,6 +1444,7 @@ export type ElasticPool = TrackedResource & { zoneRedundant?: boolean; licenseType?: ElasticPoolLicenseType; maintenanceConfigurationId?: string; + highAvailabilityReplicaCount?: number; }; // @public @@ -1650,6 +1719,7 @@ export type ElasticPoolsUpdateResponse = ElasticPool; // @public export interface ElasticPoolUpdate { + highAvailabilityReplicaCount?: number; licenseType?: ElasticPoolLicenseType; maintenanceConfigurationId?: string; maxSizeBytes?: number; @@ -1729,7 +1799,42 @@ export interface EncryptionProtectorsRevalidateOptionalParams extends coreClient } // @public -export type Enum60 = string; +export type EndpointCertificate = ProxyResource & { + publicBlob?: string; +}; + +// @public +export interface EndpointCertificateListResult { + readonly nextLink?: string; + readonly value?: EndpointCertificate[]; +} + +// @public +export interface EndpointCertificates { + get(resourceGroupName: string, managedInstanceName: string, endpointType: string, options?: EndpointCertificatesGetOptionalParams): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: EndpointCertificatesListByInstanceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface EndpointCertificatesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EndpointCertificatesGetResponse = EndpointCertificate; + +// @public +export interface EndpointCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; + +// @public +export interface EndpointCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; // @public export interface ExportDatabaseDefinition { @@ -1785,6 +1890,7 @@ export type ExtendedDatabaseBlobAuditingPolicy = ProxyResource & { isStorageSecondaryKeyInUse?: boolean; isAzureMonitorTargetEnabled?: boolean; queueDelayMs?: number; + isManagedIdentityInUse?: boolean; state?: BlobAuditingPolicyState; storageEndpoint?: string; storageAccountAccessKey?: string; @@ -1844,6 +1950,7 @@ export type ExtendedServerBlobAuditingPolicy = ProxyResource & { isStorageSecondaryKeyInUse?: boolean; isAzureMonitorTargetEnabled?: boolean; queueDelayMs?: number; + isManagedIdentityInUse?: boolean; state?: BlobAuditingPolicyState; storageEndpoint?: string; storageAccountAccessKey?: string; @@ -2375,6 +2482,58 @@ export interface InstancePoolVcoresCapability { readonly value?: number; } +// @public +export type IPv6FirewallRule = ProxyResourceWithWritableName & { + startIPv6Address?: string; + endIPv6Address?: string; +}; + +// @public +export interface IPv6FirewallRuleListResult { + readonly nextLink?: string; + readonly value?: IPv6FirewallRule[]; +} + +// @public +export interface IPv6FirewallRules { + createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: IPv6FirewallRule, options?: IPv6FirewallRulesCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: IPv6FirewallRulesDeleteOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: IPv6FirewallRulesGetOptionalParams): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: IPv6FirewallRulesListByServerOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface IPv6FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; + +// @public +export interface IPv6FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface IPv6FirewallRulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IPv6FirewallRulesGetResponse = IPv6FirewallRule; + +// @public +export interface IPv6FirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; + +// @public +export interface IPv6FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; + // @public export type IsRetryable = "Yes" | "No"; @@ -3366,18 +3525,6 @@ export enum KnownEncryptionProtectorName { Current = "current" } -// @public -export enum KnownEnum60 { - // (undocumented) - All = "All", - // (undocumented) - Error = "Error", - // (undocumented) - Success = "Success", - // (undocumented) - Warning = "Warning" -} - // @public export enum KnownFailoverGroupReplicationRole { // (undocumented) @@ -3844,6 +3991,14 @@ export enum KnownReplicationLinkType { Named = "NAMED" } +// @public +export enum KnownReplicationMode { + // (undocumented) + Async = "Async", + // (undocumented) + Sync = "Sync" +} + // @public export enum KnownReplicationState { // (undocumented) @@ -4164,6 +4319,18 @@ export enum KnownSyncGroupState { Warning = "Warning" } +// @public +export enum KnownSyncGroupsType { + // (undocumented) + All = "All", + // (undocumented) + Error = "Error", + // (undocumented) + Success = "Success", + // (undocumented) + Warning = "Warning" +} + // @public export enum KnownSyncMemberDbType { // (undocumented) @@ -6742,38 +6909,6 @@ export interface Operations { list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } -// @public -export type OperationsHealth = ProxyResource & { - readonly namePropertiesName?: string; - readonly health?: string; - readonly description?: string; -}; - -// @public -export interface OperationsHealthListByLocationNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationsHealthListByLocationNextResponse = OperationsHealthListResult; - -// @public -export interface OperationsHealthListByLocationOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationsHealthListByLocationResponse = OperationsHealthListResult; - -// @public -export interface OperationsHealthListResult { - readonly nextLink?: string; - readonly value?: OperationsHealth[]; -} - -// @public -export interface OperationsHealthOperations { - listByLocation(locationName: string, options?: OperationsHealthListByLocationOptionalParams): PagedAsyncIterableIterator; -} - // @public export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { } @@ -7348,6 +7483,9 @@ export interface ReplicationLinksUnlinkOptionalParams extends coreClient.Operati // @public export type ReplicationLinkType = string; +// @public +export type ReplicationMode = string; + // @public export type ReplicationRole = "Primary" | "Secondary" | "NonReadableSecondary" | "Source" | "Copy"; @@ -7955,6 +8093,7 @@ export type ServerBlobAuditingPolicy = ProxyResource & { isStorageSecondaryKeyInUse?: boolean; isAzureMonitorTargetEnabled?: boolean; queueDelayMs?: number; + isManagedIdentityInUse?: boolean; state?: BlobAuditingPolicyState; storageEndpoint?: string; storageAccountAccessKey?: string; @@ -8483,6 +8622,65 @@ export interface ServersUpdateOptionalParams extends coreClient.OperationOptions // @public export type ServersUpdateResponse = Server; +// @public +export type ServerTrustCertificate = ProxyResource & { + publicBlob?: string; + readonly thumbprint?: string; + readonly certificateName?: string; +}; + +// @public +export interface ServerTrustCertificates { + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, certificateName: string, parameters: ServerTrustCertificate, options?: ServerTrustCertificatesCreateOrUpdateOptionalParams): Promise, ServerTrustCertificatesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, certificateName: string, parameters: ServerTrustCertificate, options?: ServerTrustCertificatesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, managedInstanceName: string, certificateName: string, options?: ServerTrustCertificatesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, certificateName: string, options?: ServerTrustCertificatesDeleteOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, certificateName: string, options?: ServerTrustCertificatesGetOptionalParams): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ServerTrustCertificatesListByInstanceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ServerTrustCertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; + +// @public +export interface ServerTrustCertificatesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ServerTrustCertificatesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; + +// @public +export interface ServerTrustCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; + +// @public +export interface ServerTrustCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; + +// @public +export interface ServerTrustCertificatesListResult { + readonly nextLink?: string; + readonly value?: ServerTrustCertificate[]; +} + // @public export type ServerTrustGroup = ProxyResource & { groupMembers?: ServerInfo[]; @@ -8836,6 +9034,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) deletedServers: DeletedServers; // (undocumented) + distributedAvailabilityGroups: DistributedAvailabilityGroups; + // (undocumented) elasticPoolActivities: ElasticPoolActivities; // (undocumented) elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; @@ -8846,6 +9046,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) encryptionProtectors: EncryptionProtectors; // (undocumented) + endpointCertificates: EndpointCertificates; + // (undocumented) extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; // (undocumented) extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; @@ -8860,6 +9062,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) instancePools: InstancePools; // (undocumented) + iPv6FirewallRules: IPv6FirewallRules; + // (undocumented) jobAgents: JobAgents; // (undocumented) jobCredentials: JobCredentials; @@ -8948,8 +9152,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) operations: Operations; // (undocumented) - operationsHealthOperations: OperationsHealthOperations; - // (undocumented) outboundFirewallRules: OutboundFirewallRules; // (undocumented) privateEndpointConnections: PrivateEndpointConnections; @@ -8998,6 +9200,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) serverSecurityAlertPolicies: ServerSecurityAlertPolicies; // (undocumented) + serverTrustCertificates: ServerTrustCertificates; + // (undocumented) serverTrustGroups: ServerTrustGroups; // (undocumented) serverUsages: ServerUsages; @@ -9310,7 +9514,7 @@ export interface SyncGroups { get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsGetOptionalParams): Promise; listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SyncGroupsListByDatabaseOptionalParams): PagedAsyncIterableIterator; listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsListHubSchemasOptionalParams): PagedAsyncIterableIterator; - listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, typeParam: Enum60, options?: SyncGroupsListLogsOptionalParams): PagedAsyncIterableIterator; + listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams): PagedAsyncIterableIterator; listSyncDatabaseIds(locationName: string, options?: SyncGroupsListSyncDatabaseIdsOptionalParams): PagedAsyncIterableIterator; triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsTriggerSyncOptionalParams): Promise; } @@ -9431,6 +9635,9 @@ export type SyncGroupState = string; export interface SyncGroupsTriggerSyncOptionalParams extends coreClient.OperationOptions { } +// @public +export type SyncGroupsType = string; + // @public export interface SyncGroupsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; diff --git a/sdk/sql/arm-sql/src/models/index.ts b/sdk/sql/arm-sql/src/models/index.ts index cc2348c4c4e2..dbc01cf2554b 100644 --- a/sdk/sql/arm-sql/src/models/index.ts +++ b/sdk/sql/arm-sql/src/models/index.ts @@ -257,62 +257,6 @@ export interface ServerUsage { readonly nextResetTime?: Date; } -/** A list of database extended auditing settings. */ -export interface ExtendedDatabaseBlobAuditingPolicyListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ExtendedDatabaseBlobAuditingPolicy[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** A list of server extended auditing settings. */ -export interface ExtendedServerBlobAuditingPolicyListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ExtendedServerBlobAuditingPolicy[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** A list of server auditing settings. */ -export interface ServerBlobAuditingPolicyListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ServerBlobAuditingPolicy[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** A list of database auditing settings. */ -export interface DatabaseBlobAuditingPolicyListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: DatabaseBlobAuditingPolicy[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - /** Contains information of current state for an Azure SQL Database, Server or Elastic Pool Recommended Action. */ export interface RecommendedActionStateInfo { /** Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action. */ @@ -608,60 +552,6 @@ export interface ElasticPoolOperationListResult { readonly nextLink?: string; } -/** The result of an elastic pool list request. */ -export interface ElasticPoolListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ElasticPool[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** An ARM Resource SKU. */ -export interface Sku { - /** The name of the SKU, typically, a letter + Number code, e.g. P3. */ - name: string; - /** The tier or edition of the particular SKU, e.g. Basic, Premium. */ - tier?: string; - /** Size of the particular SKU */ - size?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** Capacity of the particular SKU. */ - capacity?: number; -} - -/** Per database settings of an elastic pool. */ -export interface ElasticPoolPerDatabaseSettings { - /** The minimum capacity all databases are guaranteed. */ - minCapacity?: number; - /** The maximum capacity any one database can consume. */ - maxCapacity?: number; -} - -/** An elastic pool update. */ -export interface ElasticPoolUpdate { - /** An ARM Resource SKU. */ - sku?: Sku; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The storage limit for the database elastic pool in bytes. */ - maxSizeBytes?: number; - /** The per database settings for the elastic pool. */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; - /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ - zoneRedundant?: boolean; - /** The license type to apply for this elastic pool. */ - licenseType?: ElasticPoolLicenseType; - /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ - maintenanceConfigurationId?: string; -} - /** A list of server encryption protectors. */ export interface EncryptionProtectorListResult { /** @@ -814,6 +704,20 @@ export interface InstanceFailoverGroupListResult { readonly nextLink?: string; } +/** An ARM Resource SKU. */ +export interface Sku { + /** The name of the SKU, typically, a letter + Number code, e.g. P3. */ + name: string; + /** The tier or edition of the particular SKU, e.g. Basic, Premium. */ + tier?: string; + /** Size of the particular SKU */ + size?: string; + /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ + family?: string; + /** Capacity of the particular SKU. */ + capacity?: number; +} + /** An update to an Instance pool. */ export interface InstancePoolUpdate { /** Resource tags. */ @@ -2031,30 +1935,6 @@ export interface SecurityEventSqlInjectionAdditionalProperties { readonly errorMessage?: string; } -/** A list of sensitivity labels. */ -export interface SensitivityLabelListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: SensitivityLabel[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** A list of sensitivity label update operations. */ -export interface SensitivityLabelUpdateList { - operations?: SensitivityLabelUpdate[]; -} - -/** A list of recommended sensitivity label update operations. */ -export interface RecommendedSensitivityLabelUpdateList { - operations?: RecommendedSensitivityLabelUpdate[]; -} - /** A list of managed transparent data encryptions */ export interface ManagedTransparentDataEncryptionListResult { /** @@ -2361,20 +2241,6 @@ export interface OperationDisplay { readonly description?: string; } -/** A list of service health statuses in a location. */ -export interface OperationsHealthListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: OperationsHealth[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - /** Properties of a private endpoint connection. */ export interface PrivateEndpointConnectionProperties { /** Private endpoint which the connection belongs to. */ @@ -3105,20 +2971,6 @@ export interface OutboundFirewallRuleListResult { readonly nextLink?: string; } -/** A list of replication links. */ -export interface ReplicationLinkListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ReplicationLink[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - /** A list of servers. */ export interface ServerListResult { /** @@ -3412,8 +3264,6 @@ export interface DatabaseIdentity { readonly tenantId?: string; /** The resource ids of the user assigned identities to use */ userAssignedIdentities?: { [propertyName: string]: DatabaseUserIdentity }; - /** Resources delegated to the database - Internal Use Only */ - delegatedResources?: { [propertyName: string]: Delegation }; } /** Azure Active Directory identity configuration for a resource. */ @@ -3430,18 +3280,7 @@ export interface DatabaseUserIdentity { readonly clientId?: string; } -/** Delegated Resource Properties - Internal Use Only */ -export interface Delegation { - /** The resource id of the source resource - Internal Use Only */ - resourceId?: string; - /** - * AAD tenant guid of the source resource identity - Internal Use Only. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; -} - -/** A database resource. */ +/** A database update resource. */ export interface DatabaseUpdate { /** The name and tier of the SKU. */ sku?: Sku; @@ -3542,9 +3381,9 @@ export interface DatabaseUpdate { * 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. */ + /** 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. */ + /** 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 and Named. */ secondaryType?: SecondaryType; @@ -3585,18 +3424,10 @@ export interface DatabaseUpdate { readonly isInfraEncryptionEnabled?: boolean; /** The Client id used for cross tenant per database CMK scenario */ federatedClientId?: string; - /** The Primary Delegated Identity Client id used for per database CMK - for internal use only */ - primaryDelegatedIdentityClientId?: string; -} - -/** Contains the information necessary to perform a resource move (rename). */ -export interface ResourceMoveDefinition { - /** The target ID for the resource */ - id: string; } -/** Contains the information necessary to perform import operation for existing database. */ -export interface ImportExistingDatabaseDefinition { +/** Contains the information necessary to perform export database operation. */ +export interface ExportDatabaseDefinition { /** Storage key type. */ storageKeyType: StorageKeyType; /** Storage key. */ @@ -3613,8 +3444,8 @@ export interface ImportExistingDatabaseDefinition { networkIsolation?: NetworkIsolationSettings; } -/** Contains the information necessary to perform export database operation. */ -export interface ExportDatabaseDefinition { +/** Contains the information necessary to perform import operation for existing database. */ +export interface ImportExistingDatabaseDefinition { /** Storage key type. */ storageKeyType: StorageKeyType; /** Storage key. */ @@ -3631,6 +3462,12 @@ export interface ExportDatabaseDefinition { networkIsolation?: NetworkIsolationSettings; } +/** Contains the information necessary to perform a resource move (rename). */ +export interface ResourceMoveDefinition { + /** The target ID for the resource */ + id: string; +} + /** Contains the information necessary to perform long term retention backup copy operation. */ export interface CopyLongTermRetentionBackupParameters { /** The subscription that owns the target server */ @@ -3933,66 +3770,258 @@ export interface ServerConnectionPolicyListResult { readonly nextLink?: string; } -/** A Slo Usage Metric. */ -export interface SloUsageMetric { - /** - * The serviceLevelObjective for SLO usage metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serviceLevelObjective?: ServiceObjectiveName; +/** A list of distributed availability groups in instance. */ +export interface DistributedAvailabilityGroupsListResult { /** - * 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?: DistributedAvailabilityGroup[]; /** - * 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 server trust certificates in instance. */ +export interface ServerTrustCertificatesListResult { /** - * 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?: ServerTrustCertificate[]; /** - * 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; +} + +/** The result of an elastic pool list request. */ +export interface ElasticPoolListResult { /** - * 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?: ElasticPool[]; /** - * The relative impact to dimension (null if not applicable) + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly changeValueRelative?: number; + readonly nextLink?: string; } -/** The properties that are supported in the $filter operation. */ -export interface SecurityEventsFilterParameters { - /** Filter on the event time. */ - eventTime?: Date; - /** Whether to show server records or not. */ - showServerRecords?: boolean; +/** 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; } -/** ARM proxy resource. */ -export type ProxyResource = Resource & {}; - -/** ARM tracked top level resource. */ -export type TrackedResource = Resource & { - /** Resource location. */ - location: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** An elastic pool update. */ +export interface ElasticPoolUpdate { + /** An ARM Resource SKU. */ + sku?: Sku; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The storage limit for the database elastic pool in bytes. */ + maxSizeBytes?: number; + /** The per database settings for the elastic pool. */ + perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ + zoneRedundant?: boolean; + /** The license type to apply for this elastic pool. */ + licenseType?: ElasticPoolLicenseType; + /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ + maintenanceConfigurationId?: string; + /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. */ + highAvailabilityReplicaCount?: number; +} + +/** The response to a list IPv6 firewall rules request */ +export interface IPv6FirewallRuleListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: IPv6FirewallRule[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A list of endpoint certificates on the target instance. */ +export interface EndpointCertificateListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: EndpointCertificate[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A list of replication links. */ +export interface ReplicationLinkListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ReplicationLink[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A list of sensitivity labels. */ +export interface SensitivityLabelListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: SensitivityLabel[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A list of sensitivity label update operations. */ +export interface SensitivityLabelUpdateList { + operations?: SensitivityLabelUpdate[]; +} + +/** A list of recommended sensitivity label update operations. */ +export interface RecommendedSensitivityLabelUpdateList { + operations?: RecommendedSensitivityLabelUpdate[]; +} + +/** A list of server auditing settings. */ +export interface ServerBlobAuditingPolicyListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ServerBlobAuditingPolicy[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A list of database auditing settings. */ +export interface DatabaseBlobAuditingPolicyListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: DatabaseBlobAuditingPolicy[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A list of database extended auditing settings. */ +export interface ExtendedDatabaseBlobAuditingPolicyListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ExtendedDatabaseBlobAuditingPolicy[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A list of server extended auditing settings. */ +export interface ExtendedServerBlobAuditingPolicyListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ExtendedServerBlobAuditingPolicy[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A 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; + /** + * The serviceLevelObjectiveId for SLO usage metric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serviceLevelObjectiveId?: string; + /** + * Gets or sets inRangeTimeRatio for SLO usage metric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inRangeTimeRatio?: number; +} + +/** The impact of an operation, both in absolute and relative terms. */ +export interface OperationImpact { + /** + * The name of the impact dimension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The unit in which estimated impact to dimension is measured. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: string; + /** + * The absolute impact to dimension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly changeValueAbsolute?: number; + /** + * The relative impact to dimension (null if not applicable) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly changeValueRelative?: number; +} + +/** The properties that are supported in the $filter operation. */ +export interface SecurityEventsFilterParameters { + /** Filter on the event time. */ + eventTime?: Date; + /** Whether to show server records or not. */ + showServerRecords?: boolean; +} + +/** ARM proxy resource. */ +export type ProxyResource = Resource & {}; + +/** ARM tracked top level resource. */ +export type TrackedResource = Resource & { + /** Resource location. */ + location: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; }; /** ARM proxy resource. */ @@ -4349,512 +4378,63 @@ export type ElasticPoolDatabaseActivity = ProxyResource & { readonly state?: string; }; -/** An extended database blob auditing policy. */ -export type ExtendedDatabaseBlobAuditingPolicy = 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; +/** Database, Server or Elastic Pool Recommended Action. */ +export type RecommendedAction = ProxyResource & { /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * 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) + * Resource kind. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; + readonly kind?: string; /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * Resource location. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly location?: 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. + * Gets the reason for recommending this action. e.g., DuplicateIndex + * NOTE: This property will not be serialized. It can only be populated by the server. */ - queueDelayMs?: number; - /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ - state?: BlobAuditingPolicyState; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - storageEndpoint?: string; + readonly recommendationReason?: 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) + * Gets the time since when this recommended action is valid. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -}; - -/** An extended server blob auditing policy. */ -export type ExtendedServerBlobAuditingPolicy = ProxyResource & { + readonly validSince?: Date; /** - * 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) - * + * Gets time when this recommended action was last refreshed. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isDevopsAuditEnabled?: boolean; - /** Specifies condition of where clause when creating an audit. */ - predicateExpression?: string; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; + readonly lastRefresh?: Date; + /** Gets the info of the current state the recommended action is in. */ + state?: RecommendedActionStateInfo; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * Gets if this recommended action is actionable by user + * NOTE: This property will not be serialized. It can only be populated by the server. */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; + readonly isExecutableAction?: 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) - * + * Gets if changes applied by this recommended action can be reverted by user + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly isRevertableAction?: 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. + * Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - queueDelayMs?: number; - /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ - state?: BlobAuditingPolicyState; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - storageEndpoint?: string; + readonly isArchivedAction?: boolean; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -}; - -/** A server blob auditing policy. */ -export type ServerBlobAuditingPolicy = ProxyResource & { + readonly executeActionStartTime?: Date; /** - * 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) - * + * Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isDevopsAuditEnabled?: boolean; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; + readonly executeActionDuration?: string; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * 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 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 type DatabaseBlobAuditingPolicy = 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 - * - * 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 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; -}; - -/** Database, Server or Elastic Pool Recommended Action. */ -export type RecommendedAction = ProxyResource & { - /** - * Resource kind. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; - /** - * Resource location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** - * Gets the reason for recommending this action. e.g., DuplicateIndex - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly recommendationReason?: string; - /** - * Gets the time since when this recommended action is valid. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly validSince?: Date; - /** - * Gets time when this recommended action was last refreshed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastRefresh?: Date; - /** Gets the info of the current state the recommended action is in. */ - state?: RecommendedActionStateInfo; - /** - * Gets if this recommended action is actionable by user - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isExecutableAction?: boolean; - /** - * Gets if changes applied by this recommended action can be reverted by user - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isRevertableAction?: boolean; - /** - * Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isArchivedAction?: boolean; - /** - * Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly executeActionStartTime?: Date; - /** - * Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly executeActionDuration?: string; - /** - * Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed. + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly revertActionStartTime?: Date; /** @@ -5603,121 +5183,59 @@ export type SecurityEvent = ProxyResource & { readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; }; -/** A sensitivity label. */ -export type SensitivityLabel = ProxyResource & { +/** A managed database transparent data encryption state. */ +export type ManagedTransparentDataEncryption = ProxyResource & { + /** Specifies the state of the transparent data encryption. */ + state?: TransparentDataEncryptionState; +}; + +/** An Azure SQL managed instance administrator. */ +export type ManagedInstanceAdministrator = ProxyResource & { + /** Type of the managed instance administrator. */ + administratorType?: ManagedInstanceAdministratorType; + /** Login name of the managed instance administrator. */ + login?: string; + /** SID (object ID) of the managed instance administrator. */ + sid?: string; + /** Tenant ID of the managed instance administrator. */ + tenantId?: string; +}; + +/** Azure Active Directory only authentication. */ +export type ManagedInstanceAzureADOnlyAuthentication = ProxyResource & { + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; +}; + +/** The managed instance encryption protector. */ +export type ManagedInstanceEncryptionProtector = ProxyResource & { /** - * Resource that manages the sensitivity label. + * 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 managedBy?: string; + readonly kind?: string; + /** The name of the managed instance key. */ + serverKeyName?: string; + /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; /** - * The schema name. + * The URI of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly schemaName?: string; + readonly uri?: string; /** - * The table name. + * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tableName?: string; + readonly thumbprint?: string; + /** Key auto rotation opt-in flag. Either true or false. */ + autoRotationEnabled?: boolean; +}; + +/** A managed instance key. */ +export type ManagedInstanceKey = ProxyResource & { /** - * The column name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly columnName?: string; - /** The label name. */ - labelName?: string; - /** The label ID. */ - labelId?: string; - /** The information type. */ - informationType?: string; - /** The information type ID. */ - informationTypeId?: string; - /** - * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isDisabled?: boolean; - rank?: SensitivityLabelRank; -}; - -/** A sensitivity label update operation. */ -export type SensitivityLabelUpdate = ProxyResource & { - op?: SensitivityLabelUpdateKind; - /** Schema name of the column to update. */ - schema?: string; - /** Table name of the column to update. */ - table?: string; - /** Column name to update. */ - column?: string; - /** The sensitivity label information to apply on a column. */ - sensitivityLabel?: SensitivityLabel; -}; - -/** A recommended sensitivity label update operation. */ -export type RecommendedSensitivityLabelUpdate = ProxyResource & { - op?: RecommendedSensitivityLabelUpdateKind; - /** Schema name of the column to update. */ - schema?: string; - /** Table name of the column to update. */ - table?: string; - /** Column name to update. */ - column?: string; -}; - -/** A managed database transparent data encryption state. */ -export type ManagedTransparentDataEncryption = ProxyResource & { - /** Specifies the state of the transparent data encryption. */ - state?: TransparentDataEncryptionState; -}; - -/** An Azure SQL managed instance administrator. */ -export type ManagedInstanceAdministrator = ProxyResource & { - /** Type of the managed instance administrator. */ - administratorType?: ManagedInstanceAdministratorType; - /** Login name of the managed instance administrator. */ - login?: string; - /** SID (object ID) of the managed instance administrator. */ - sid?: string; - /** Tenant ID of the managed instance administrator. */ - tenantId?: string; -}; - -/** Azure Active Directory only authentication. */ -export type ManagedInstanceAzureADOnlyAuthentication = ProxyResource & { - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; -}; - -/** The managed instance encryption protector. */ -export type ManagedInstanceEncryptionProtector = ProxyResource & { - /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; - /** The name of the managed instance key. */ - serverKeyName?: string; - /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; - /** - * The URI of the server key. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly uri?: string; - /** - * Thumbprint of the server key. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly thumbprint?: string; - /** Key auto rotation opt-in flag. Either true or false. */ - autoRotationEnabled?: boolean; -}; - -/** A managed instance key. */ -export type ManagedInstanceKey = ProxyResource & { - /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * 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; @@ -5903,25 +5421,6 @@ export type ManagedServerSecurityAlertPolicy = ProxyResource & { readonly creationTime?: Date; }; -/** Operations health status in a location. */ -export type OperationsHealth = ProxyResource & { - /** - * Operation name for the service - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly namePropertiesName?: string; - /** - * Operation health status of the service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly health?: string; - /** - * Health status description. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; -}; - /** A private endpoint connection */ export type PrivateEndpointConnection = ProxyResource & { /** Private endpoint which the connection belongs to. */ @@ -6644,65 +6143,6 @@ export type OutboundFirewallRule = ProxyResource & { readonly provisioningState?: string; }; -/** A replication link. */ -export type ReplicationLink = ProxyResource & { - /** - * Resource partner server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly partnerServer?: string; - /** - * Resource partner database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly partnerDatabase?: string; - /** - * Resource partner location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly partnerLocation?: string; - /** - * Local replication role. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly role?: ReplicationRole; - /** - * Partner replication role. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly partnerRole?: ReplicationRole; - /** - * Replication mode. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly replicationMode?: string; - /** - * Time at which the link was created. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * Seeding completion percentage for the link. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly percentComplete?: number; - /** - * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly replicationState?: ReplicationState; - /** - * Whether the user is currently allowed to terminate the link. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isTerminationAllowed?: boolean; - /** - * Link type (GEO, NAMED). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly linkType?: ReplicationLinkType; -}; - /** An ImportExport operation result resource. */ export type ImportExportOperationResult = ProxyResource & { /** @@ -6932,2967 +6372,4066 @@ export type ServerConnectionPolicy = ProxyResource & { connectionType?: ServerConnectionType; }; -/** An elastic pool. */ -export type ElasticPool = TrackedResource & { +/** Distributed availability group between box and Sql Managed Instance. */ +export type DistributedAvailabilityGroup = ProxyResource & { + /** The name of the target database */ + targetDatabase?: string; + /** The source endpoint */ + sourceEndpoint?: string; + /** The primary availability group name */ + primaryAvailabilityGroupName?: string; + /** The secondary availability group name */ + secondaryAvailabilityGroupName?: string; + /** The replication mode of a distributed availability group. Parameter will be ignored during link creation. */ + replicationMode?: ReplicationMode; /** - * The elastic pool SKU. - * - * The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command: - * - * ```azurecli - * az sql elastic-pool list-editions -l -o table - * ```` - * + * The distributed availability group id + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sku?: Sku; + readonly distributedAvailabilityGroupId?: string; /** - * Kind of elastic pool. This is metadata used for the Azure portal experience. + * The source replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly sourceReplicaId?: string; /** - * The state of the elastic pool. + * The target replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ElasticPoolState; + readonly targetReplicaId?: string; /** - * The creation date of the elastic pool (ISO8601 format). + * The link state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; - /** The storage limit for the database elastic pool in bytes. */ - maxSizeBytes?: number; - /** The per database settings for the elastic pool. */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; - /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ - zoneRedundant?: boolean; - /** The license type to apply for this elastic pool. */ - licenseType?: ElasticPoolLicenseType; - /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ - maintenanceConfigurationId?: string; -}; - -/** An Azure SQL instance pool. */ -export type InstancePool = TrackedResource & { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Resource ID of the subnet to place this instance pool in. */ - subnetId?: string; - /** Count of vCores belonging to this instance pool. */ - vCores?: number; - /** The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). */ - licenseType?: InstancePoolLicenseType; + readonly linkState?: string; + /** + * The last hardened lsn + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastHardenedLsn?: string; }; -/** An Azure SQL job agent. */ -export type JobAgent = TrackedResource & { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Resource ID of the database to store job metadata in. */ - databaseId?: string; +/** Server trust certificate imported from box to enable connection between box and Sql Managed Instance. */ +export type ServerTrustCertificate = ProxyResource & { + /** The certificate public blob */ + publicBlob?: string; /** - * The state of the job agent. + * The certificate thumbprint * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: JobAgentState; + readonly thumbprint?: string; + /** + * The certificate name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly certificateName?: string; }; -/** A managed database resource. */ -export type ManagedDatabase = TrackedResource & { - /** Collation of the managed database. */ - collation?: string; +/** Certificate used on an endpoint on the Managed Instance. */ +export type EndpointCertificate = ProxyResource & { + /** The certificate public blob */ + publicBlob?: string; +}; + +/** A replication link. */ +export type ReplicationLink = ProxyResource & { /** - * Status of the database. + * Resource partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: ManagedDatabaseStatus; + readonly partnerServer?: string; /** - * Creation date of the database. + * Resource partner database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly partnerDatabase?: string; /** - * Earliest restore point in time for point in time restore. + * Resource partner location. * 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 partnerLocation?: string; /** - * Geo paired region. + * Local replication role. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly defaultSecondaryLocation?: string; - /** Collation of the metadata catalog. */ - catalogCollation?: CatalogCollationType; - /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ - createMode?: ManagedDatabaseCreateMode; - /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ - storageContainerUri?: string; - /** The resource identifier of the source database associated with create operation of this database. */ - sourceDatabaseId?: string; - /** The restorable dropped database resource id to restore when creating this database. */ - restorableDroppedDatabaseId?: string; - /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token. */ - storageContainerSasToken?: string; + readonly role?: ReplicationRole; /** - * Instance Failover Group resource identifier that this managed database belongs to. + * Partner replication role. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly failoverGroupId?: string; - /** The resource identifier of the recoverable database associated with create operation of this database. */ - recoverableDatabaseId?: string; - /** The name of the Long Term Retention backup to be used for restore of this managed database. */ - longTermRetentionBackupResourceId?: string; - /** Whether to auto complete restore of this managed database. */ - autoCompleteRestore?: boolean; - /** Last backup file name for restore of this managed database. */ - lastBackupName?: string; -}; - -/** An Azure SQL virtual cluster. */ -export type VirtualCluster = TrackedResource & { + readonly partnerRole?: ReplicationRole; /** - * Subnet resource ID for the virtual cluster. + * Replication mode. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subnetId?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; + readonly replicationMode?: string; /** - * List of resources in this virtual cluster. + * Time at which the link was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly childResources?: string[]; - /** Specifies maintenance configuration id to apply to this virtual cluster. */ - maintenanceConfigurationId?: string; + readonly startTime?: Date; + /** + * Seeding completion percentage for the link. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly percentComplete?: number; + /** + * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly replicationState?: ReplicationState; + /** + * Whether the user is currently allowed to terminate the link. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isTerminationAllowed?: boolean; + /** + * Link type (GEO, NAMED). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly linkType?: ReplicationLinkType; }; -/** An Azure SQL Database server. */ -export type Server = TrackedResource & { - /** The Azure Active Directory identity of the server. */ - identity?: ResourceIdentity; +/** A sensitivity label. */ +export type SensitivityLabel = ProxyResource & { /** - * Kind of sql server. This is metadata used for the Azure portal experience. + * Resource that manages the sensitivity label. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; - /** Administrator username for the server. Once created it cannot be changed. */ - administratorLogin?: string; - /** The administrator login password (required for server creation). */ - administratorLoginPassword?: string; - /** The version of the server. */ - version?: string; + readonly managedBy?: string; /** - * The state of the server. + * The schema name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly schemaName?: string; /** - * The fully qualified domain name of the server. + * The table name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedDomainName?: string; + readonly tableName?: string; /** - * List of private endpoint connections on a server + * The column name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; - /** Minimal TLS version. Allowed values: '1.0', '1.1', '1.2' */ - minimalTlsVersion?: string; - /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ - publicNetworkAccess?: ServerNetworkAccessFlag; + readonly columnName?: string; + /** The label name. */ + labelName?: string; + /** The label ID. */ + labelId?: string; + /** The information type. */ + informationType?: string; + /** The information type ID. */ + informationTypeId?: string; /** - * Whether or not existing server has a workspace created and if it allows connection from workspace + * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workspaceFeature?: ServerWorkspaceFeature; - /** The resource id of a user assigned identity to be used by default. */ - primaryUserAssignedIdentityId?: string; - /** The Client id used for cross tenant CMK scenario */ - federatedClientId?: string; - /** A CMK URI of the key to use for encryption. */ - keyId?: string; - /** The Azure Active Directory identity of the server. */ - administrators?: ServerExternalAdministrator; - /** Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ - restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; + readonly isDisabled?: boolean; + rank?: SensitivityLabelRank; }; -/** A database resource. */ -export type Database = TrackedResource & { +/** A sensitivity label update operation. */ +export type SensitivityLabelUpdate = ProxyResource & { + op?: SensitivityLabelUpdateKind; + /** Schema name of the column to update. */ + schema?: string; + /** Table name of the column to update. */ + table?: string; + /** Column name to update. */ + column?: string; + /** The sensitivity label information to apply on a column. */ + sensitivityLabel?: SensitivityLabel; +}; + +/** A recommended sensitivity label update operation. */ +export type RecommendedSensitivityLabelUpdate = ProxyResource & { + op?: RecommendedSensitivityLabelUpdateKind; + /** Schema name of the column to update. */ + schema?: string; + /** Table name of the column to update. */ + table?: string; + /** Column name to update. */ + column?: string; +}; + +/** A server blob auditing policy. */ +export type ServerBlobAuditingPolicy = ProxyResource & { /** - * The database SKU. + * 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 * - * The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. * - * ```azurecli - * az sql db list-editions -l -o table - * ```` + * 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 * - * ```powershell - * Get-AzSqlServerServiceObjective -Location - * ```` + * 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) * */ - sku?: Sku; - /** - * Kind of database. This is metadata used for the Azure portal experience. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; - /** - * Resource that manages the database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly managedBy?: string; - /** The Azure Active Directory identity of the database. */ - identity?: DatabaseIdentity; + isDevopsAuditEnabled?: boolean; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * Specifies the mode of database creation. + * Specifies the Actions-Groups and Actions to audit. * - * Default: regular database creation. + * 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: * - * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. * - * 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. + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. * - * 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. + * 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): * - * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. + * 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 * - * 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. + * 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. * - * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. + * 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). * - * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. + * 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) */ - 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; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The status of the database. - * 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 status?: DatabaseStatus; + isAzureMonitorTargetEnabled?: boolean; /** - * The ID of the database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly databaseId?: string; - /** - * The creation date of the database (ISO8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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 creationDate?: Date; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The current service level objective name of the database. - * 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 currentServiceObjectiveName?: string; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +}; + +/** A database blob auditing policy. */ +export type DatabaseBlobAuditingPolicy = ProxyResource & { /** - * The requested service level objective name of the database. + * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedServiceObjectiveName?: string; + readonly kind?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The default secondary region for this database. - * 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 defaultSecondaryLocation?: string; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * Failover Group resource identifier that this database belongs to. - * 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 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; + isAzureMonitorTargetEnabled?: boolean; /** - * The max log size for this database. - * 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 maxLogSizeBytes?: 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; /** - * 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. + * 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 earliestRestoreDate?: Date; - /** The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. */ - readScale?: DatabaseReadScale; - /** The number of secondary replicas associated with the database that are used to provide high availability. */ - highAvailabilityReplicaCount?: number; - /** The secondary type of the database if it is a secondary. Valid values are Geo and Named. */ - secondaryType?: SecondaryType; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +}; + +/** An extended database blob auditing policy. */ +export type ExtendedDatabaseBlobAuditingPolicy = ProxyResource & { + /** Specifies condition of where clause when creating an audit. */ + predicateExpression?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The name and tier of the SKU. - * 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 currentSku?: Sku; - /** Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled */ - autoPauseDelay?: number; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * 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. + * 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 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; + isAzureMonitorTargetEnabled?: boolean; /** - * 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. + * 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 pausedDate?: Date; - /** - * The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resumedDate?: Date; - /** Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur. */ - maintenanceConfigurationId?: string; - /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ - isLedgerOn?: boolean; + 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; /** - * Infra encryption is enabled for this database. - * 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 isInfraEncryptionEnabled?: boolean; - /** The Client id used for cross tenant per database CMK scenario */ - federatedClientId?: string; - /** The Primary Delegated Identity Client id used for per database CMK - for internal use only */ - primaryDelegatedIdentityClientId?: string; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; }; -/** An Azure SQL managed instance. */ -export type ManagedInstance = TrackedResource & { - /** The Azure Active Directory identity of the managed instance. */ - identity?: ResourceIdentity; - /** Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5 */ - sku?: Sku; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; +/** An extended server blob auditing policy. */ +export type ExtendedServerBlobAuditingPolicy = ProxyResource & { /** - * Specifies the mode of database creation. + * 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 * - * Default: Regular instance creation. + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) * - * Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. - */ - managedInstanceCreateMode?: ManagedServerCreateMode; - /** - * The fully qualified domain name of the managed instance. - * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedDomainName?: string; - /** Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). */ - administratorLogin?: string; - /** The administrator login password (required for managed instance creation). */ - administratorLoginPassword?: string; - /** Subnet resource ID for the managed instance. */ - subnetId?: string; + 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 state of the managed instance. - * 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 state?: string; - /** The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). */ - licenseType?: ManagedInstanceLicenseType; - /** The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ - vCores?: number; - /** Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. */ - storageSizeInGB?: number; - /** Collation of the managed instance. */ - collation?: string; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The Dns Zone that the managed instance is in. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly 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; + isAzureMonitorTargetEnabled?: boolean; /** - * 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". + * 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. */ - 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; + 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; /** - * List of private endpoint connections on a managed instance. - * 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 privateEndpointConnections?: ManagedInstancePecProperty[]; - /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ - minimalTlsVersion?: string; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +}; + +/** An Azure SQL instance pool. */ +export type InstancePool = 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 type JobAgent = TrackedResource & { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Resource ID of the database to store job metadata in. */ + databaseId?: 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 state of the job agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; - /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; - /** Whether or not the multi-az is enabled. */ - zoneRedundant?: boolean; - /** The resource id of a user assigned identity to be used by default. */ - primaryUserAssignedIdentityId?: string; - /** A CMK URI of the key to use for encryption. */ - keyId?: string; - /** The Azure Active Directory administrator of the server. */ - administrators?: ManagedInstanceExternalAdministrator; - /** The managed instance's service principal. */ - servicePrincipal?: ServicePrincipal; + readonly state?: JobAgentState; }; -/** A restorable dropped managed database resource. */ -export type RestorableDroppedManagedDatabase = TrackedResource & { +/** A managed database resource. */ +export type ManagedDatabase = TrackedResource & { + /** Collation of the managed database. */ + collation?: string; /** - * The name of the database. + * Status of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly status?: ManagedDatabaseStatus; /** - * The creation date of the database (ISO8601 format). + * Creation date of the database. * 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). + * 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 deletionDate?: Date; + readonly earliestRestorePoint?: Date; + /** Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ + restorePointInTime?: Date; /** - * The earliest restore date of the database (ISO8601 format). + * Geo paired region. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; -}; - -/** A server firewall rule. */ -export type FirewallRule = ProxyResourceWithWritableName & { - /** The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all Azure-internal IP addresses. */ - startIpAddress?: string; - /** The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' for all Azure-internal IP addresses. */ - endIpAddress?: string; + readonly defaultSecondaryLocation?: string; + /** Collation of the metadata catalog. */ + catalogCollation?: CatalogCollationType; + /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ + createMode?: ManagedDatabaseCreateMode; + /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ + storageContainerUri?: string; + /** The resource identifier of the source database associated with create operation of this database. */ + sourceDatabaseId?: string; + /** The restorable dropped database resource id to restore when creating this database. */ + restorableDroppedDatabaseId?: string; + /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token. */ + storageContainerSasToken?: string; + /** + * Instance Failover Group resource identifier that this managed database belongs to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly failoverGroupId?: string; + /** The resource identifier of the recoverable database associated with create operation of this database. */ + recoverableDatabaseId?: string; + /** The name of the Long Term Retention backup to be used for restore of this managed database. */ + longTermRetentionBackupResourceId?: string; + /** Whether to auto complete restore of this managed database. */ + autoCompleteRestore?: boolean; + /** Last backup file name for restore of this managed database. */ + lastBackupName?: string; }; -/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ -export enum KnownGeoBackupPolicyName { - Default = "Default" -} - -/** - * Defines values for GeoBackupPolicyName. \ - * {@link KnownGeoBackupPolicyName} can be used interchangeably with GeoBackupPolicyName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** - */ -export type GeoBackupPolicyName = string; - -/** Known values of {@link UnitType} that the service accepts. */ -export enum KnownUnitType { - Count = "count", - Bytes = "bytes", - Seconds = "seconds", - Percent = "percent", - CountPerSecond = "countPerSecond", - BytesPerSecond = "bytesPerSecond" -} - -/** - * Defines values for UnitType. \ - * {@link KnownUnitType} can be used interchangeably with UnitType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **count** \ - * **bytes** \ - * **seconds** \ - * **percent** \ - * **countPerSecond** \ - * **bytesPerSecond** - */ -export type UnitType = string; - -/** Known values of {@link PrimaryAggregationType} that the service accepts. */ -export enum KnownPrimaryAggregationType { - None = "None", - Average = "Average", - Count = "Count", - Minimum = "Minimum", - Maximum = "Maximum", - Total = "Total" -} - -/** - * Defines values for PrimaryAggregationType. \ - * {@link KnownPrimaryAggregationType} can be used interchangeably with PrimaryAggregationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **Average** \ - * **Count** \ - * **Minimum** \ - * **Maximum** \ - * **Total** - */ -export type PrimaryAggregationType = string; - -/** Known values of {@link UnitDefinitionType} that the service accepts. */ -export enum KnownUnitDefinitionType { - Count = "Count", - Bytes = "Bytes", - Seconds = "Seconds", - Percent = "Percent", - CountPerSecond = "CountPerSecond", - BytesPerSecond = "BytesPerSecond" -} - -/** - * Defines values for UnitDefinitionType. \ - * {@link KnownUnitDefinitionType} can be used interchangeably with UnitDefinitionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Count** \ - * **Bytes** \ - * **Seconds** \ - * **Percent** \ - * **CountPerSecond** \ - * **BytesPerSecond** - */ -export type UnitDefinitionType = string; - -/** Known values of {@link RecommendedActionCurrentState} that the service accepts. */ -export enum KnownRecommendedActionCurrentState { - Active = "Active", - Pending = "Pending", - Executing = "Executing", - Verifying = "Verifying", - PendingRevert = "PendingRevert", - RevertCancelled = "RevertCancelled", - Reverting = "Reverting", - Reverted = "Reverted", - Ignored = "Ignored", - Expired = "Expired", - Monitoring = "Monitoring", - Resolved = "Resolved", - Success = "Success", - Error = "Error" -} +/** An Azure SQL virtual cluster. */ +export type VirtualCluster = TrackedResource & { + /** + * Subnet resource ID for the virtual cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subnetId?: string; + /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ + family?: string; + /** + * List of resources in this virtual cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly childResources?: string[]; + /** Specifies maintenance configuration id to apply to this virtual cluster. */ + maintenanceConfigurationId?: string; +}; -/** - * Defines values for RecommendedActionCurrentState. \ - * {@link KnownRecommendedActionCurrentState} can be used interchangeably with RecommendedActionCurrentState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Active** \ - * **Pending** \ - * **Executing** \ - * **Verifying** \ - * **PendingRevert** \ - * **RevertCancelled** \ - * **Reverting** \ - * **Reverted** \ - * **Ignored** \ - * **Expired** \ - * **Monitoring** \ - * **Resolved** \ - * **Success** \ - * **Error** - */ -export type RecommendedActionCurrentState = string; +/** An Azure SQL Database server. */ +export type Server = TrackedResource & { + /** The Azure Active Directory identity of the server. */ + identity?: ResourceIdentity; + /** + * Kind of sql server. This is metadata used for the Azure portal experience. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly kind?: string; + /** Administrator username for the server. Once created it cannot be changed. */ + administratorLogin?: string; + /** The administrator login password (required for server creation). */ + administratorLoginPassword?: string; + /** The version of the server. */ + version?: string; + /** + * The state of the server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: string; + /** + * The fully qualified domain name of the server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullyQualifiedDomainName?: string; + /** + * List of private endpoint connections on a server + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; + /** Minimal TLS version. Allowed values: '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; + /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ + publicNetworkAccess?: ServerNetworkAccessFlag; + /** + * Whether or not existing server has a workspace created and if it allows connection from workspace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workspaceFeature?: ServerWorkspaceFeature; + /** The resource id of a user assigned identity to be used by default. */ + primaryUserAssignedIdentityId?: string; + /** The Client id used for cross tenant CMK scenario */ + federatedClientId?: string; + /** A CMK URI of the key to use for encryption. */ + keyId?: string; + /** The Azure Active Directory identity of the server. */ + administrators?: ServerExternalAdministrator; + /** Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ + restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; +}; -/** Known values of {@link ColumnDataType} that the service accepts. */ -export enum KnownColumnDataType { - Image = "image", - Text = "text", - Uniqueidentifier = "uniqueidentifier", - Date = "date", - Time = "time", - Datetime2 = "datetime2", - Datetimeoffset = "datetimeoffset", - Tinyint = "tinyint", - Smallint = "smallint", - Int = "int", - Smalldatetime = "smalldatetime", - Real = "real", - Money = "money", - Datetime = "datetime", - Float = "float", - SqlVariant = "sql_variant", - Ntext = "ntext", - Bit = "bit", - Decimal = "decimal", - Numeric = "numeric", - Smallmoney = "smallmoney", - Bigint = "bigint", - Hierarchyid = "hierarchyid", - Geometry = "geometry", - Geography = "geography", - Varbinary = "varbinary", - Varchar = "varchar", - Binary = "binary", - Char = "char", - Timestamp = "timestamp", - Nvarchar = "nvarchar", +/** A database resource. */ +export type Database = TrackedResource & { + /** + * The database SKU. + * + * The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: + * + * ```azurecli + * az sql db list-editions -l -o table + * ```` + * + * ```powershell + * Get-AzSqlServerServiceObjective -Location + * ```` + * + */ + sku?: Sku; + /** + * Kind of database. This is metadata used for the Azure portal experience. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly kind?: string; + /** + * Resource that manages the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managedBy?: string; + /** The Azure Active Directory identity of the database. */ + identity?: DatabaseIdentity; + /** + * Specifies the mode of database creation. + * + * Default: regular database creation. + * + * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. + * + * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database. + * + * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified. + * + * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. + * + * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time. + * + * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. + * + * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. + */ + createMode?: CreateMode; + /** The collation of the database. */ + collation?: string; + /** The max size of the database expressed in bytes. */ + maxSizeBytes?: number; + /** The name of the sample schema to apply when creating this database. */ + sampleName?: SampleName; + /** The resource identifier of the elastic pool containing this database. */ + elasticPoolId?: string; + /** The resource identifier of the source database associated with create operation of this database. */ + sourceDatabaseId?: string; + /** + * The status of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: DatabaseStatus; + /** + * The ID of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly databaseId?: string; + /** + * The creation date of the database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** + * The current service level objective name of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentServiceObjectiveName?: string; + /** + * The requested service level objective name of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requestedServiceObjectiveName?: string; + /** + * The default secondary region for this database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly defaultSecondaryLocation?: string; + /** + * Failover Group resource identifier that this database belongs to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly failoverGroupId?: string; + /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ + restorePointInTime?: Date; + /** Specifies the time that the database was deleted. */ + sourceDatabaseDeletionDate?: Date; + /** The resource identifier of the recovery point associated with create operation of this database. */ + recoveryServicesRecoveryPointId?: string; + /** The resource identifier of the long term retention backup associated with create operation of this database. */ + longTermRetentionBackupResourceId?: string; + /** The resource identifier of the recoverable database associated with create operation of this database. */ + recoverableDatabaseId?: string; + /** The resource identifier of the restorable dropped database associated with create operation of this database. */ + restorableDroppedDatabaseId?: string; + /** Collation of the metadata catalog. */ + catalogCollation?: CatalogCollationType; + /** Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. */ + zoneRedundant?: boolean; + /** The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. */ + licenseType?: DatabaseLicenseType; + /** + * The max log size for this database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly maxLogSizeBytes?: number; + /** + * This records the earliest start date and time that restore is available for this database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly earliestRestoreDate?: Date; + /** The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. */ + readScale?: DatabaseReadScale; + /** The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool. */ + highAvailabilityReplicaCount?: number; + /** The secondary type of the database if it is a secondary. Valid values are Geo and Named. */ + secondaryType?: SecondaryType; + /** + * The name and tier of the SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentSku?: Sku; + /** Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled */ + autoPauseDelay?: number; + /** + * The storage account type used to store backups for this database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; + /** The storage account type to be used to store backups for this database. */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + /** Minimal capacity that database will always have allocated, if not paused */ + minCapacity?: number; + /** + * The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly pausedDate?: Date; + /** + * The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resumedDate?: Date; + /** Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur. */ + maintenanceConfigurationId?: string; + /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ + isLedgerOn?: boolean; + /** + * Infra encryption is enabled for this database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isInfraEncryptionEnabled?: boolean; + /** The Client id used for cross tenant per database CMK scenario */ + federatedClientId?: string; + /** + * The resource identifier of the source associated with the create operation of this database. + * + * When sourceResourceId is specified, sourceDatabaseId, recoverableDatabaseId, restorableDroppedDatabaseId and sourceDatabaseDeletionDate must not be specified and CreateMode must be PointInTimeRestore, Restore or Recover. + * + * When createMode is PointInTimeRestore, sourceResourceId must be the resource ID of an existing database or existing sql pool, and restorePointInTime must be specified. + * + * When createMode is Restore, sourceResourceId must be the resource ID of restorable dropped database or restorable dropped sql pool. + * + * When createMode is Recover, sourceResourceId must be the resource ID of recoverable database or recoverable sql pool. + * + * This property allows to restore across subscriptions which is only supported for DataWarehouse edition. + * + * When source subscription belongs to a different tenant than target subscription, “x-ms-authorization-auxiliary” header must contain authentication token for the source tenant. For more details about “x-ms-authorization-auxiliary” header see https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/authenticate-multi-tenant + */ + sourceResourceId?: string; +}; + +/** An Azure SQL managed instance. */ +export type ManagedInstance = TrackedResource & { + /** The Azure Active Directory identity of the managed instance. */ + identity?: ResourceIdentity; + /** Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5 */ + sku?: Sku; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly provisioningState?: ManagedInstancePropertiesProvisioningState; + /** + * Specifies the mode of database creation. + * + * Default: Regular instance creation. + * + * Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. + */ + managedInstanceCreateMode?: ManagedServerCreateMode; + /** + * The fully qualified domain name of the managed instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullyQualifiedDomainName?: string; + /** Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). */ + administratorLogin?: string; + /** The administrator login password (required for managed instance creation). */ + administratorLoginPassword?: string; + /** Subnet resource ID for the managed instance. */ + subnetId?: string; + /** + * The state of the managed instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: string; + /** The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). */ + licenseType?: ManagedInstanceLicenseType; + /** The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ + vCores?: number; + /** Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. */ + storageSizeInGB?: number; + /** Collation of the managed instance. */ + collation?: string; + /** + * The Dns Zone that the managed instance is in. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dnsZone?: string; + /** The resource id of another managed instance whose DNS zone this managed instance will share after creation. */ + dnsZonePartner?: string; + /** Whether or not the public data endpoint is enabled. */ + publicDataEndpointEnabled?: boolean; + /** The resource identifier of the source managed instance associated with create operation of this instance. */ + sourceManagedInstanceId?: string; + /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ + restorePointInTime?: Date; + /** Connection type used for connecting to the instance. */ + proxyOverride?: ManagedInstanceProxyOverride; + /** + * Id of the timezone. Allowed values are timezones supported by Windows. + * Windows keeps details on supported timezones, including the id, in registry under + * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. + * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. + * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. + * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". + */ + timezoneId?: string; + /** The Id of the instance pool this managed server belongs to. */ + instancePoolId?: string; + /** Specifies maintenance configuration id to apply to this managed instance. */ + maintenanceConfigurationId?: string; + /** + * List of private endpoint connections on a managed instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: ManagedInstancePecProperty[]; + /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; + /** + * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; + /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + /** Whether or not the multi-az is enabled. */ + zoneRedundant?: boolean; + /** The resource id of a user assigned identity to be used by default. */ + primaryUserAssignedIdentityId?: string; + /** A CMK URI of the key to use for encryption. */ + keyId?: string; + /** The Azure Active Directory administrator of the server. */ + administrators?: ManagedInstanceExternalAdministrator; + /** The managed instance's service principal. */ + servicePrincipal?: ServicePrincipal; +}; + +/** A restorable dropped managed database resource. */ +export type RestorableDroppedManagedDatabase = TrackedResource & { + /** + * The name of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly databaseName?: string; + /** + * The creation date of the database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** + * The deletion date of the database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly deletionDate?: Date; + /** + * The earliest restore date of the database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly earliestRestoreDate?: Date; +}; + +/** An elastic pool. */ +export type ElasticPool = TrackedResource & { + /** + * The elastic pool SKU. + * + * The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command: + * + * ```azurecli + * az sql elastic-pool list-editions -l -o table + * ```` + * + */ + sku?: Sku; + /** + * Kind of elastic pool. This is metadata used for the Azure portal experience. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly kind?: string; + /** + * The state of the elastic pool. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: ElasticPoolState; + /** + * The creation date of the elastic pool (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** The storage limit for the database elastic pool in bytes. */ + maxSizeBytes?: number; + /** The per database settings for the elastic pool. */ + perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ + zoneRedundant?: boolean; + /** The license type to apply for this elastic pool. */ + licenseType?: ElasticPoolLicenseType; + /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ + maintenanceConfigurationId?: string; + /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. */ + highAvailabilityReplicaCount?: number; +}; + +/** A server firewall rule. */ +export type FirewallRule = ProxyResourceWithWritableName & { + /** The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all Azure-internal IP addresses. */ + startIpAddress?: string; + /** The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' for all Azure-internal IP addresses. */ + endIpAddress?: string; +}; + +/** An IPv6 server firewall rule. */ +export type IPv6FirewallRule = ProxyResourceWithWritableName & { + /** The start IP address of the firewall rule. Must be IPv6 format. */ + startIPv6Address?: string; + /** The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress. */ + endIPv6Address?: string; +}; + +/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ +export enum KnownGeoBackupPolicyName { + Default = "Default" +} + +/** + * Defines values for GeoBackupPolicyName. \ + * {@link KnownGeoBackupPolicyName} can be used interchangeably with GeoBackupPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** + */ +export type GeoBackupPolicyName = string; + +/** Known values of {@link UnitType} that the service accepts. */ +export enum KnownUnitType { + Count = "count", + Bytes = "bytes", + Seconds = "seconds", + Percent = "percent", + CountPerSecond = "countPerSecond", + BytesPerSecond = "bytesPerSecond" +} + +/** + * Defines values for UnitType. \ + * {@link KnownUnitType} can be used interchangeably with UnitType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **count** \ + * **bytes** \ + * **seconds** \ + * **percent** \ + * **countPerSecond** \ + * **bytesPerSecond** + */ +export type UnitType = string; + +/** Known values of {@link PrimaryAggregationType} that the service accepts. */ +export enum KnownPrimaryAggregationType { + None = "None", + Average = "Average", + Count = "Count", + Minimum = "Minimum", + Maximum = "Maximum", + Total = "Total" +} + +/** + * Defines values for PrimaryAggregationType. \ + * {@link KnownPrimaryAggregationType} can be used interchangeably with PrimaryAggregationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Average** \ + * **Count** \ + * **Minimum** \ + * **Maximum** \ + * **Total** + */ +export type PrimaryAggregationType = string; + +/** Known values of {@link UnitDefinitionType} that the service accepts. */ +export enum KnownUnitDefinitionType { + Count = "Count", + Bytes = "Bytes", + Seconds = "Seconds", + Percent = "Percent", + CountPerSecond = "CountPerSecond", + BytesPerSecond = "BytesPerSecond" +} + +/** + * Defines values for UnitDefinitionType. \ + * {@link KnownUnitDefinitionType} can be used interchangeably with UnitDefinitionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Count** \ + * **Bytes** \ + * **Seconds** \ + * **Percent** \ + * **CountPerSecond** \ + * **BytesPerSecond** + */ +export type UnitDefinitionType = string; + +/** Known values of {@link RecommendedActionCurrentState} that the service accepts. */ +export enum KnownRecommendedActionCurrentState { + Active = "Active", + Pending = "Pending", + Executing = "Executing", + Verifying = "Verifying", + PendingRevert = "PendingRevert", + RevertCancelled = "RevertCancelled", + Reverting = "Reverting", + Reverted = "Reverted", + Ignored = "Ignored", + Expired = "Expired", + Monitoring = "Monitoring", + Resolved = "Resolved", + Success = "Success", + Error = "Error" +} + +/** + * Defines values for RecommendedActionCurrentState. \ + * {@link KnownRecommendedActionCurrentState} can be used interchangeably with RecommendedActionCurrentState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Active** \ + * **Pending** \ + * **Executing** \ + * **Verifying** \ + * **PendingRevert** \ + * **RevertCancelled** \ + * **Reverting** \ + * **Reverted** \ + * **Ignored** \ + * **Expired** \ + * **Monitoring** \ + * **Resolved** \ + * **Success** \ + * **Error** + */ +export type RecommendedActionCurrentState = string; + +/** Known values of {@link ColumnDataType} that the service accepts. */ +export enum KnownColumnDataType { + Image = "image", + Text = "text", + Uniqueidentifier = "uniqueidentifier", + Date = "date", + Time = "time", + Datetime2 = "datetime2", + Datetimeoffset = "datetimeoffset", + Tinyint = "tinyint", + Smallint = "smallint", + Int = "int", + Smalldatetime = "smalldatetime", + Real = "real", + Money = "money", + Datetime = "datetime", + Float = "float", + SqlVariant = "sql_variant", + Ntext = "ntext", + Bit = "bit", + Decimal = "decimal", + Numeric = "numeric", + Smallmoney = "smallmoney", + Bigint = "bigint", + Hierarchyid = "hierarchyid", + Geometry = "geometry", + Geography = "geography", + Varbinary = "varbinary", + Varchar = "varchar", + Binary = "binary", + Char = "char", + Timestamp = "timestamp", + Nvarchar = "nvarchar", Nchar = "nchar", Xml = "xml", Sysname = "sysname" } /** - * Defines values for ColumnDataType. \ - * {@link KnownColumnDataType} can be used interchangeably with ColumnDataType, + * Defines values for ColumnDataType. \ + * {@link KnownColumnDataType} can be used interchangeably with ColumnDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **image** \ + * **text** \ + * **uniqueidentifier** \ + * **date** \ + * **time** \ + * **datetime2** \ + * **datetimeoffset** \ + * **tinyint** \ + * **smallint** \ + * **int** \ + * **smalldatetime** \ + * **real** \ + * **money** \ + * **datetime** \ + * **float** \ + * **sql_variant** \ + * **ntext** \ + * **bit** \ + * **decimal** \ + * **numeric** \ + * **smallmoney** \ + * **bigint** \ + * **hierarchyid** \ + * **geometry** \ + * **geography** \ + * **varbinary** \ + * **varchar** \ + * **binary** \ + * **char** \ + * **timestamp** \ + * **nvarchar** \ + * **nchar** \ + * **xml** \ + * **sysname** + */ +export type ColumnDataType = string; + +/** Known values of {@link TableTemporalType} that the service accepts. */ +export enum KnownTableTemporalType { + NonTemporalTable = "NonTemporalTable", + HistoryTable = "HistoryTable", + 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" +} + +/** + * 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", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + 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" +} + +/** + * 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", + 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", + Failed = "Failed", + FailedToRun = "FailedToRun", + 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" +} + +/** + * Defines values for DataWarehouseUserActivityName. \ + * {@link KnownDataWarehouseUserActivityName} can be used interchangeably with DataWarehouseUserActivityName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **current** + */ +export type DataWarehouseUserActivityName = string; + +/** Known values of {@link ServerKeyType} that the service accepts. */ +export enum KnownServerKeyType { + ServiceManaged = "ServiceManaged", + AzureKeyVault = "AzureKeyVault" +} + +/** + * Defines values for ServerKeyType. \ + * {@link KnownServerKeyType} can be used interchangeably with ServerKeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ServiceManaged** \ + * **AzureKeyVault** + */ +export type ServerKeyType = string; + +/** Known values of {@link EncryptionProtectorName} that the service accepts. */ +export enum KnownEncryptionProtectorName { + Current = "current" +} + +/** + * Defines values for EncryptionProtectorName. \ + * {@link KnownEncryptionProtectorName} can be used interchangeably with EncryptionProtectorName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **current** + */ +export type EncryptionProtectorName = string; + +/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ +export enum KnownReadWriteEndpointFailoverPolicy { + Manual = "Manual", + 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", + Enabled = "Enabled" +} + +/** + * Defines values for ReadOnlyEndpointFailoverPolicy. \ + * {@link KnownReadOnlyEndpointFailoverPolicy} can be used interchangeably with ReadOnlyEndpointFailoverPolicy, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +export type ReadOnlyEndpointFailoverPolicy = string; + +/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ +export enum KnownFailoverGroupReplicationRole { + Primary = "Primary", + Secondary = "Secondary" +} + +/** + * Defines values for FailoverGroupReplicationRole. \ + * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **Secondary** + */ +export type FailoverGroupReplicationRole = string; + +/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ +export enum KnownInstanceFailoverGroupReplicationRole { + Primary = "Primary", + Secondary = "Secondary" +} + +/** + * Defines values for InstanceFailoverGroupReplicationRole. \ + * {@link KnownInstanceFailoverGroupReplicationRole} can be used interchangeably with InstanceFailoverGroupReplicationRole, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **Secondary** + */ +export type InstanceFailoverGroupReplicationRole = string; + +/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ +export enum KnownInstancePoolLicenseType { + LicenseIncluded = "LicenseIncluded", + BasePrice = "BasePrice" +} + +/** + * Defines values for InstancePoolLicenseType. \ + * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **LicenseIncluded** \ + * **BasePrice** + */ +export type InstancePoolLicenseType = string; + +/** Known values of {@link JobAgentState} that the service accepts. */ +export enum KnownJobAgentState { + Creating = "Creating", + Ready = "Ready", + Updating = "Updating", + Deleting = "Deleting", + Disabled = "Disabled" +} + +/** + * Defines values for JobAgentState. \ + * {@link KnownJobAgentState} can be used interchangeably with JobAgentState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Ready** \ + * **Updating** \ + * **Deleting** \ + * **Disabled** + */ +export type JobAgentState = string; + +/** Known values of {@link JobExecutionLifecycle} that the service accepts. */ +export enum KnownJobExecutionLifecycle { + Created = "Created", + InProgress = "InProgress", + WaitingForChildJobExecutions = "WaitingForChildJobExecutions", + WaitingForRetry = "WaitingForRetry", + Succeeded = "Succeeded", + SucceededWithSkipped = "SucceededWithSkipped", + Failed = "Failed", + TimedOut = "TimedOut", + Canceled = "Canceled", + Skipped = "Skipped" +} + +/** + * Defines values for JobExecutionLifecycle. \ + * {@link KnownJobExecutionLifecycle} can be used interchangeably with JobExecutionLifecycle, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Created** \ + * **InProgress** \ + * **WaitingForChildJobExecutions** \ + * **WaitingForRetry** \ + * **Succeeded** \ + * **SucceededWithSkipped** \ + * **Failed** \ + * **TimedOut** \ + * **Canceled** \ + * **Skipped** + */ +export type JobExecutionLifecycle = string; + +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + Created = "Created", + InProgress = "InProgress", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled" +} + +/** + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Created** \ + * **InProgress** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** + */ +export type ProvisioningState = string; + +/** Known values of {@link JobTargetType} that the service accepts. */ +export enum KnownJobTargetType { + TargetGroup = "TargetGroup", + SqlDatabase = "SqlDatabase", + SqlElasticPool = "SqlElasticPool", + SqlShardMap = "SqlShardMap", + SqlServer = "SqlServer" +} + +/** + * Defines values for JobTargetType. \ + * {@link KnownJobTargetType} can be used interchangeably with JobTargetType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TargetGroup** \ + * **SqlDatabase** \ + * **SqlElasticPool** \ + * **SqlShardMap** \ + * **SqlServer** + */ +export type JobTargetType = string; + +/** Known values of {@link JobStepActionType} that the service accepts. */ +export enum KnownJobStepActionType { + TSql = "TSql" +} + +/** + * Defines values for JobStepActionType. \ + * {@link KnownJobStepActionType} can be used interchangeably with JobStepActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TSql** + */ +export type JobStepActionType = string; + +/** Known values of {@link JobStepActionSource} that the service accepts. */ +export enum KnownJobStepActionSource { + Inline = "Inline" +} + +/** + * Defines values for JobStepActionSource. \ + * {@link KnownJobStepActionSource} can be used interchangeably with JobStepActionSource, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Inline** + */ +export type JobStepActionSource = string; + +/** Known values of {@link JobStepOutputType} that the service accepts. */ +export enum KnownJobStepOutputType { + SqlDatabase = "SqlDatabase" +} + +/** + * Defines values for JobStepOutputType. \ + * {@link KnownJobStepOutputType} can be used interchangeably with JobStepOutputType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SqlDatabase** + */ +export type JobStepOutputType = string; + +/** Known values of {@link CapabilityGroup} that the service accepts. */ +export enum KnownCapabilityGroup { + SupportedEditions = "supportedEditions", + SupportedElasticPoolEditions = "supportedElasticPoolEditions", + SupportedManagedInstanceVersions = "supportedManagedInstanceVersions", + SupportedInstancePoolEditions = "supportedInstancePoolEditions", + 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", + Gigabytes = "Gigabytes", + Terabytes = "Terabytes", + 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", + Gigabytes = "Gigabytes", + Terabytes = "Terabytes", + Petabytes = "Petabytes", + 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", + 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" +} + +/** + * 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", + LRS = "LRS", + ZRS = "ZRS" +} + +/** + * Defines values for StorageCapabilityStorageAccountType. \ + * {@link KnownStorageCapabilityStorageAccountType} can be used interchangeably with StorageCapabilityStorageAccountType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **GRS** \ + * **LRS** \ + * **ZRS** + */ +export type StorageCapabilityStorageAccountType = string; + +/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ +export enum KnownLongTermRetentionPolicyName { + Default = "default" +} + +/** + * Defines values for LongTermRetentionPolicyName. \ + * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type LongTermRetentionPolicyName = string; + +/** Known values of {@link DayOfWeek} that the service accepts. */ +export enum KnownDayOfWeek { + Sunday = "Sunday", + Monday = "Monday", + Tuesday = "Tuesday", + Wednesday = "Wednesday", + Thursday = "Thursday", + Friday = "Friday", + Saturday = "Saturday" +} + +/** + * Defines values for DayOfWeek. \ + * {@link KnownDayOfWeek} can be used interchangeably with DayOfWeek, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Sunday** \ + * **Monday** \ + * **Tuesday** \ + * **Wednesday** \ + * **Thursday** \ + * **Friday** \ + * **Saturday** + */ +export type DayOfWeek = string; + +/** Known values of {@link ManagedShortTermRetentionPolicyName} that the service accepts. */ +export enum KnownManagedShortTermRetentionPolicyName { + Default = "default" +} + +/** + * Defines values for ManagedShortTermRetentionPolicyName. \ + * {@link KnownManagedShortTermRetentionPolicyName} can be used interchangeably with ManagedShortTermRetentionPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type ManagedShortTermRetentionPolicyName = string; + +/** Known values of {@link QueryTimeGrainType} that the service accepts. */ +export enum KnownQueryTimeGrainType { + PT1H = "PT1H", + P1D = "P1D" +} + +/** + * Defines values for QueryTimeGrainType. \ + * {@link KnownQueryTimeGrainType} can be used interchangeably with QueryTimeGrainType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PT1H** \ + * **P1D** + */ +export type QueryTimeGrainType = string; + +/** Known values of {@link QueryMetricUnitType} that the service accepts. */ +export enum KnownQueryMetricUnitType { + Percentage = "percentage", + KB = "KB", + Microseconds = "microseconds", + Count = "count" +} + +/** + * Defines values for QueryMetricUnitType. \ + * {@link KnownQueryMetricUnitType} can be used interchangeably with QueryMetricUnitType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **image** \ - * **text** \ - * **uniqueidentifier** \ - * **date** \ - * **time** \ - * **datetime2** \ - * **datetimeoffset** \ - * **tinyint** \ - * **smallint** \ - * **int** \ - * **smalldatetime** \ - * **real** \ - * **money** \ - * **datetime** \ - * **float** \ - * **sql_variant** \ - * **ntext** \ - * **bit** \ - * **decimal** \ - * **numeric** \ - * **smallmoney** \ - * **bigint** \ - * **hierarchyid** \ - * **geometry** \ - * **geography** \ - * **varbinary** \ - * **varchar** \ - * **binary** \ - * **char** \ - * **timestamp** \ - * **nvarchar** \ - * **nchar** \ - * **xml** \ - * **sysname** + * **percentage** \ + * **KB** \ + * **microseconds** \ + * **count** */ -export type ColumnDataType = string; +export type QueryMetricUnitType = string; -/** Known values of {@link TableTemporalType} that the service accepts. */ -export enum KnownTableTemporalType { - NonTemporalTable = "NonTemporalTable", - HistoryTable = "HistoryTable", - SystemVersionedTemporalTable = "SystemVersionedTemporalTable" +/** Known values of {@link RestoreDetailsName} that the service accepts. */ +export enum KnownRestoreDetailsName { + Default = "Default" } /** - * Defines values for TableTemporalType. \ - * {@link KnownTableTemporalType} can be used interchangeably with TableTemporalType, + * 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 - * **NonTemporalTable** \ - * **HistoryTable** \ - * **SystemVersionedTemporalTable** + * **Default** */ -export type TableTemporalType = string; +export type RestoreDetailsName = string; -/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ -export enum KnownSecurityAlertPolicyName { - Default = "Default" +/** Known values of {@link ManagedDatabaseStatus} that the service accepts. */ +export enum KnownManagedDatabaseStatus { + Online = "Online", + Offline = "Offline", + Shutdown = "Shutdown", + Creating = "Creating", + Inaccessible = "Inaccessible", + Restoring = "Restoring", + Updating = "Updating" } /** - * Defines values for SecurityAlertPolicyName. \ - * {@link KnownSecurityAlertPolicyName} can be used interchangeably with SecurityAlertPolicyName, + * 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 - * **Default** + * **Online** \ + * **Offline** \ + * **Shutdown** \ + * **Creating** \ + * **Inaccessible** \ + * **Restoring** \ + * **Updating** */ -export type SecurityAlertPolicyName = string; +export type ManagedDatabaseStatus = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - User = "User", - Application = "Application", - ManagedIdentity = "ManagedIdentity", - Key = "Key" +/** Known values of {@link CatalogCollationType} that the service accepts. */ +export enum KnownCatalogCollationType { + DatabaseDefault = "DATABASE_DEFAULT", + SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" } /** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * 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 - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** + * **DATABASE_DEFAULT** \ + * **SQL_Latin1_General_CP1_CI_AS** */ -export type CreatedByType = string; +export type CatalogCollationType = string; -/** Known values of {@link VulnerabilityAssessmentName} that the service accepts. */ -export enum KnownVulnerabilityAssessmentName { - Default = "default" +/** Known values of {@link ManagedDatabaseCreateMode} that the service accepts. */ +export enum KnownManagedDatabaseCreateMode { + Default = "Default", + RestoreExternalBackup = "RestoreExternalBackup", + PointInTimeRestore = "PointInTimeRestore", + Recovery = "Recovery", + RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup" } /** - * Defines values for VulnerabilityAssessmentName. \ - * {@link KnownVulnerabilityAssessmentName} can be used interchangeably with VulnerabilityAssessmentName, + * 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 VulnerabilityAssessmentName = string; +export type ManagedDatabaseCreateMode = string; -/** Known values of {@link VulnerabilityAssessmentScanTriggerType} that the service accepts. */ -export enum KnownVulnerabilityAssessmentScanTriggerType { - OnDemand = "OnDemand", - Recurring = "Recurring" +/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ +export enum KnownTransparentDataEncryptionName { + Current = "current" } /** - * Defines values for VulnerabilityAssessmentScanTriggerType. \ - * {@link KnownVulnerabilityAssessmentScanTriggerType} can be used interchangeably with VulnerabilityAssessmentScanTriggerType, + * 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 - * **OnDemand** \ - * **Recurring** + * **current** */ -export type VulnerabilityAssessmentScanTriggerType = string; +export type TransparentDataEncryptionName = string; -/** Known values of {@link VulnerabilityAssessmentScanState} that the service accepts. */ -export enum KnownVulnerabilityAssessmentScanState { - Passed = "Passed", - Failed = "Failed", - FailedToRun = "FailedToRun", - InProgress = "InProgress" +/** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ +export enum KnownManagedInstanceAdministratorType { + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for VulnerabilityAssessmentScanState. \ - * {@link KnownVulnerabilityAssessmentScanState} can be used interchangeably with VulnerabilityAssessmentScanState, + * 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 - * **Passed** \ - * **Failed** \ - * **FailedToRun** \ - * **InProgress** + * **ActiveDirectory** */ -export type VulnerabilityAssessmentScanState = string; +export type ManagedInstanceAdministratorType = string; -/** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ -export enum KnownDataWarehouseUserActivityName { - Current = "current" +/** Known values of {@link AdministratorName} that the service accepts. */ +export enum KnownAdministratorName { + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for DataWarehouseUserActivityName. \ - * {@link KnownDataWarehouseUserActivityName} can be used interchangeably with DataWarehouseUserActivityName, + * 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 - * **current** + * **ActiveDirectory** */ -export type DataWarehouseUserActivityName = string; +export type AdministratorName = string; -/** Known values of {@link ElasticPoolState} that the service accepts. */ -export enum KnownElasticPoolState { - Creating = "Creating", - Ready = "Ready", - Disabled = "Disabled" +/** Known values of {@link AuthenticationName} that the service accepts. */ +export enum KnownAuthenticationName { + Default = "Default" } /** - * Defines values for ElasticPoolState. \ - * {@link KnownElasticPoolState} can be used interchangeably with ElasticPoolState, + * 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 - * **Creating** \ - * **Ready** \ - * **Disabled** + * **Default** */ -export type ElasticPoolState = string; +export type AuthenticationName = string; -/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ -export enum KnownElasticPoolLicenseType { - LicenseIncluded = "LicenseIncluded", - BasePrice = "BasePrice" +/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ +export enum KnownManagedInstanceLongTermRetentionPolicyName { + Default = "default" } /** - * Defines values for ElasticPoolLicenseType. \ - * {@link KnownElasticPoolLicenseType} can be used interchangeably with ElasticPoolLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **default** */ -export type ElasticPoolLicenseType = string; +export type ManagedInstanceLongTermRetentionPolicyName = string; -/** Known values of {@link ServerKeyType} that the service accepts. */ -export enum KnownServerKeyType { - ServiceManaged = "ServiceManaged", - AzureKeyVault = "AzureKeyVault" +/** Known values of {@link ManagementOperationState} that the service accepts. */ +export enum KnownManagementOperationState { + Pending = "Pending", + InProgress = "InProgress", + Succeeded = "Succeeded", + Failed = "Failed", + CancelInProgress = "CancelInProgress", + Cancelled = "Cancelled" +} + +/** + * Defines values for ManagementOperationState. \ + * {@link KnownManagementOperationState} can be used interchangeably with ManagementOperationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending** \ + * **InProgress** \ + * **Succeeded** \ + * **Failed** \ + * **CancelInProgress** \ + * **Cancelled** + */ +export type ManagementOperationState = string; + +/** Known values of {@link UpsertManagedServerOperationStepStatus} that the service accepts. */ +export enum KnownUpsertManagedServerOperationStepStatus { + NotStarted = "NotStarted", + InProgress = "InProgress", + SlowedDown = "SlowedDown", + Completed = "Completed", + Failed = "Failed", + Canceled = "Canceled" } /** - * Defines values for ServerKeyType. \ - * {@link KnownServerKeyType} can be used interchangeably with ServerKeyType, + * Defines values for UpsertManagedServerOperationStepStatus. \ + * {@link KnownUpsertManagedServerOperationStepStatus} can be used interchangeably with UpsertManagedServerOperationStepStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ServiceManaged** \ - * **AzureKeyVault** + * **NotStarted** \ + * **InProgress** \ + * **SlowedDown** \ + * **Completed** \ + * **Failed** \ + * **Canceled** */ -export type ServerKeyType = string; +export type UpsertManagedServerOperationStepStatus = string; -/** Known values of {@link EncryptionProtectorName} that the service accepts. */ -export enum KnownEncryptionProtectorName { - Current = "current" +/** Known values of {@link OperationOrigin} that the service accepts. */ +export enum KnownOperationOrigin { + User = "user", + System = "system" } /** - * Defines values for EncryptionProtectorName. \ - * {@link KnownEncryptionProtectorName} can be used interchangeably with EncryptionProtectorName, + * 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 - * **current** + * **user** \ + * **system** */ -export type EncryptionProtectorName = string; +export type OperationOrigin = string; -/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadWriteEndpointFailoverPolicy { - Manual = "Manual", - Automatic = "Automatic" +/** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */ +export enum KnownPrivateLinkServiceConnectionStateStatus { + Approved = "Approved", + Pending = "Pending", + Rejected = "Rejected", + Disconnected = "Disconnected" } /** - * Defines values for ReadWriteEndpointFailoverPolicy. \ - * {@link KnownReadWriteEndpointFailoverPolicy} can be used interchangeably with ReadWriteEndpointFailoverPolicy, + * 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 - * **Manual** \ - * **Automatic** + * **Approved** \ + * **Pending** \ + * **Rejected** \ + * **Disconnected** */ -export type ReadWriteEndpointFailoverPolicy = string; +export type PrivateLinkServiceConnectionStateStatus = string; -/** Known values of {@link ReadOnlyEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadOnlyEndpointFailoverPolicy { - Disabled = "Disabled", - Enabled = "Enabled" +/** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ +export enum KnownPrivateLinkServiceConnectionStateActionsRequire { + None = "None" } /** - * Defines values for ReadOnlyEndpointFailoverPolicy. \ - * {@link KnownReadOnlyEndpointFailoverPolicy} can be used interchangeably with ReadOnlyEndpointFailoverPolicy, + * 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 - * **Disabled** \ - * **Enabled** + * **None** */ -export type ReadOnlyEndpointFailoverPolicy = string; +export type PrivateLinkServiceConnectionStateActionsRequire = string; -/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ -export enum KnownFailoverGroupReplicationRole { - Primary = "Primary", - Secondary = "Secondary" +/** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointProvisioningState { + Approving = "Approving", + Ready = "Ready", + Dropping = "Dropping", + Failed = "Failed", + Rejecting = "Rejecting" } /** - * Defines values for FailoverGroupReplicationRole. \ - * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, + * 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 - * **Primary** \ - * **Secondary** + * **Approving** \ + * **Ready** \ + * **Dropping** \ + * **Failed** \ + * **Rejecting** */ -export type FailoverGroupReplicationRole = string; +export type PrivateEndpointProvisioningState = string; -/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ -export enum KnownInstanceFailoverGroupReplicationRole { - Primary = "Primary", - Secondary = "Secondary" +/** Known values of {@link AdministratorType} that the service accepts. */ +export enum KnownAdministratorType { + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for InstanceFailoverGroupReplicationRole. \ - * {@link KnownInstanceFailoverGroupReplicationRole} can be used interchangeably with InstanceFailoverGroupReplicationRole, + * 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 - * **Primary** \ - * **Secondary** + * **ActiveDirectory** */ -export type InstanceFailoverGroupReplicationRole = string; +export type AdministratorType = string; -/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ -export enum KnownInstancePoolLicenseType { - LicenseIncluded = "LicenseIncluded", - BasePrice = "BasePrice" +/** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ +export enum KnownServerTrustGroupPropertiesTrustScopesItem { + GlobalTransactions = "GlobalTransactions", + ServiceBroker = "ServiceBroker" } /** - * Defines values for InstancePoolLicenseType. \ - * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **GlobalTransactions** \ + * **ServiceBroker** */ -export type InstancePoolLicenseType = string; +export type ServerTrustGroupPropertiesTrustScopesItem = string; -/** Known values of {@link JobAgentState} that the service accepts. */ -export enum KnownJobAgentState { - Creating = "Creating", - Ready = "Ready", - Updating = "Updating", - Deleting = "Deleting", +/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ +export enum KnownSqlAgentConfigurationPropertiesState { + Enabled = "Enabled", Disabled = "Disabled" } /** - * Defines values for JobAgentState. \ - * {@link KnownJobAgentState} can be used interchangeably with JobAgentState, + * 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 - * **Creating** \ - * **Ready** \ - * **Updating** \ - * **Deleting** \ + * **Enabled** \ * **Disabled** */ -export type JobAgentState = string; +export type SqlAgentConfigurationPropertiesState = string; -/** Known values of {@link JobExecutionLifecycle} that the service accepts. */ -export enum KnownJobExecutionLifecycle { - Created = "Created", - InProgress = "InProgress", - WaitingForChildJobExecutions = "WaitingForChildJobExecutions", - WaitingForRetry = "WaitingForRetry", - Succeeded = "Succeeded", - SucceededWithSkipped = "SucceededWithSkipped", - Failed = "Failed", - TimedOut = "TimedOut", - Canceled = "Canceled", - Skipped = "Skipped" +/** Known values of {@link SyncAgentState} that the service accepts. */ +export enum KnownSyncAgentState { + Online = "Online", + Offline = "Offline", + NeverConnected = "NeverConnected" } /** - * Defines values for JobExecutionLifecycle. \ - * {@link KnownJobExecutionLifecycle} can be used interchangeably with JobExecutionLifecycle, + * 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 - * **Created** \ - * **InProgress** \ - * **WaitingForChildJobExecutions** \ - * **WaitingForRetry** \ - * **Succeeded** \ - * **SucceededWithSkipped** \ - * **Failed** \ - * **TimedOut** \ - * **Canceled** \ - * **Skipped** + * **Online** \ + * **Offline** \ + * **NeverConnected** */ -export type JobExecutionLifecycle = string; +export type SyncAgentState = string; -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - Created = "Created", - InProgress = "InProgress", - Succeeded = "Succeeded", - Failed = "Failed", - Canceled = "Canceled" +/** Known values of {@link SyncMemberDbType} that the service accepts. */ +export enum KnownSyncMemberDbType { + AzureSqlDatabase = "AzureSqlDatabase", + SqlServerDatabase = "SqlServerDatabase" } /** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * 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 - * **Created** \ - * **InProgress** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **AzureSqlDatabase** \ + * **SqlServerDatabase** */ -export type ProvisioningState = string; +export type SyncMemberDbType = string; -/** Known values of {@link JobTargetType} that the service accepts. */ -export enum KnownJobTargetType { - TargetGroup = "TargetGroup", - SqlDatabase = "SqlDatabase", - SqlElasticPool = "SqlElasticPool", - SqlShardMap = "SqlShardMap", - SqlServer = "SqlServer" +/** Known values of {@link SyncGroupsType} that the service accepts. */ +export enum KnownSyncGroupsType { + All = "All", + Error = "Error", + Warning = "Warning", + Success = "Success" } /** - * Defines values for JobTargetType. \ - * {@link KnownJobTargetType} can be used interchangeably with JobTargetType, + * 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 - * **TargetGroup** \ - * **SqlDatabase** \ - * **SqlElasticPool** \ - * **SqlShardMap** \ - * **SqlServer** + * **All** \ + * **Error** \ + * **Warning** \ + * **Success** */ -export type JobTargetType = string; +export type SyncGroupsType = string; -/** Known values of {@link JobStepActionType} that the service accepts. */ -export enum KnownJobStepActionType { - TSql = "TSql" +/** Known values of {@link SyncGroupLogType} that the service accepts. */ +export enum KnownSyncGroupLogType { + All = "All", + Error = "Error", + Warning = "Warning", + Success = "Success" } /** - * Defines values for JobStepActionType. \ - * {@link KnownJobStepActionType} can be used interchangeably with JobStepActionType, + * 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 - * **TSql** + * **All** \ + * **Error** \ + * **Warning** \ + * **Success** */ -export type JobStepActionType = string; +export type SyncGroupLogType = string; -/** Known values of {@link JobStepActionSource} that the service accepts. */ -export enum KnownJobStepActionSource { - Inline = "Inline" +/** Known values of {@link SyncConflictResolutionPolicy} that the service accepts. */ +export enum KnownSyncConflictResolutionPolicy { + HubWin = "HubWin", + MemberWin = "MemberWin" } /** - * Defines values for JobStepActionSource. \ - * {@link KnownJobStepActionSource} can be used interchangeably with JobStepActionSource, + * 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 - * **Inline** + * **HubWin** \ + * **MemberWin** */ -export type JobStepActionSource = string; +export type SyncConflictResolutionPolicy = string; -/** Known values of {@link JobStepOutputType} that the service accepts. */ -export enum KnownJobStepOutputType { - SqlDatabase = "SqlDatabase" +/** Known values of {@link SyncGroupState} that the service accepts. */ +export enum KnownSyncGroupState { + NotReady = "NotReady", + Error = "Error", + Warning = "Warning", + Progressing = "Progressing", + Good = "Good" } /** - * Defines values for JobStepOutputType. \ - * {@link KnownJobStepOutputType} can be used interchangeably with JobStepOutputType, + * 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 - * **SqlDatabase** + * **NotReady** \ + * **Error** \ + * **Warning** \ + * **Progressing** \ + * **Good** */ -export type JobStepOutputType = string; +export type SyncGroupState = string; -/** Known values of {@link CapabilityGroup} that the service accepts. */ -export enum KnownCapabilityGroup { - SupportedEditions = "supportedEditions", - SupportedElasticPoolEditions = "supportedElasticPoolEditions", - SupportedManagedInstanceVersions = "supportedManagedInstanceVersions", - SupportedInstancePoolEditions = "supportedInstancePoolEditions", - SupportedManagedInstanceEditions = "supportedManagedInstanceEditions" +/** Known values of {@link SyncDirection} that the service accepts. */ +export enum KnownSyncDirection { + Bidirectional = "Bidirectional", + OneWayMemberToHub = "OneWayMemberToHub", + OneWayHubToMember = "OneWayHubToMember" } /** - * Defines values for CapabilityGroup. \ - * {@link KnownCapabilityGroup} can be used interchangeably with CapabilityGroup, + * 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 - * **supportedEditions** \ - * **supportedElasticPoolEditions** \ - * **supportedManagedInstanceVersions** \ - * **supportedInstancePoolEditions** \ - * **supportedManagedInstanceEditions** + * **Bidirectional** \ + * **OneWayMemberToHub** \ + * **OneWayHubToMember** */ -export type CapabilityGroup = string; +export type SyncDirection = string; -/** Known values of {@link MaxSizeUnit} that the service accepts. */ -export enum KnownMaxSizeUnit { - Megabytes = "Megabytes", - Gigabytes = "Gigabytes", - Terabytes = "Terabytes", - Petabytes = "Petabytes" +/** Known values of {@link SyncMemberState} that the service accepts. */ +export enum KnownSyncMemberState { + SyncInProgress = "SyncInProgress", + SyncSucceeded = "SyncSucceeded", + SyncFailed = "SyncFailed", + DisabledTombstoneCleanup = "DisabledTombstoneCleanup", + DisabledBackupRestore = "DisabledBackupRestore", + SyncSucceededWithWarnings = "SyncSucceededWithWarnings", + SyncCancelling = "SyncCancelling", + SyncCancelled = "SyncCancelled", + UnProvisioned = "UnProvisioned", + Provisioning = "Provisioning", + Provisioned = "Provisioned", + ProvisionFailed = "ProvisionFailed", + DeProvisioning = "DeProvisioning", + DeProvisioned = "DeProvisioned", + DeProvisionFailed = "DeProvisionFailed", + Reprovisioning = "Reprovisioning", + ReprovisionFailed = "ReprovisionFailed", + UnReprovisioned = "UnReprovisioned" } /** - * Defines values for MaxSizeUnit. \ - * {@link KnownMaxSizeUnit} can be used interchangeably with MaxSizeUnit, + * 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 - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** + * **SyncInProgress** \ + * **SyncSucceeded** \ + * **SyncFailed** \ + * **DisabledTombstoneCleanup** \ + * **DisabledBackupRestore** \ + * **SyncSucceededWithWarnings** \ + * **SyncCancelling** \ + * **SyncCancelled** \ + * **UnProvisioned** \ + * **Provisioning** \ + * **Provisioned** \ + * **ProvisionFailed** \ + * **DeProvisioning** \ + * **DeProvisioned** \ + * **DeProvisionFailed** \ + * **Reprovisioning** \ + * **ReprovisionFailed** \ + * **UnReprovisioned** */ -export type MaxSizeUnit = string; +export type SyncMemberState = string; -/** Known values of {@link LogSizeUnit} that the service accepts. */ -export enum KnownLogSizeUnit { - Megabytes = "Megabytes", - Gigabytes = "Gigabytes", - Terabytes = "Terabytes", - Petabytes = "Petabytes", - Percent = "Percent" +/** Known values of {@link DnsRefreshConfigurationPropertiesStatus} that the service accepts. */ +export enum KnownDnsRefreshConfigurationPropertiesStatus { + Succeeded = "Succeeded", + Failed = "Failed" } /** - * Defines values for LogSizeUnit. \ - * {@link KnownLogSizeUnit} can be used interchangeably with LogSizeUnit, + * Defines values for DnsRefreshConfigurationPropertiesStatus. \ + * {@link KnownDnsRefreshConfigurationPropertiesStatus} can be used interchangeably with DnsRefreshConfigurationPropertiesStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** \ - * **Percent** + * **Succeeded** \ + * **Failed** */ -export type LogSizeUnit = string; +export type DnsRefreshConfigurationPropertiesStatus = string; -/** Known values of {@link PerformanceLevelUnit} that the service accepts. */ -export enum KnownPerformanceLevelUnit { - DTU = "DTU", - VCores = "VCores" +/** Known values of {@link VirtualNetworkRuleState} that the service accepts. */ +export enum KnownVirtualNetworkRuleState { + Initializing = "Initializing", + InProgress = "InProgress", + Ready = "Ready", + Failed = "Failed", + Deleting = "Deleting", + Unknown = "Unknown" } /** - * Defines values for PerformanceLevelUnit. \ - * {@link KnownPerformanceLevelUnit} can be used interchangeably with PerformanceLevelUnit, + * 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 - * **DTU** \ - * **VCores** + * **Initializing** \ + * **InProgress** \ + * **Ready** \ + * **Failed** \ + * **Deleting** \ + * **Unknown** */ -export type PerformanceLevelUnit = string; +export type VirtualNetworkRuleState = string; -/** Known values of {@link PauseDelayTimeUnit} that the service accepts. */ -export enum KnownPauseDelayTimeUnit { - Minutes = "Minutes" +/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ +export enum KnownShortTermRetentionPolicyName { + Default = "default" } /** - * Defines values for PauseDelayTimeUnit. \ - * {@link KnownPauseDelayTimeUnit} can be used interchangeably with PauseDelayTimeUnit, + * 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 - * **Minutes** + * **default** */ -export type PauseDelayTimeUnit = string; +export type ShortTermRetentionPolicyName = string; -/** Known values of {@link StorageCapabilityStorageAccountType} that the service accepts. */ -export enum KnownStorageCapabilityStorageAccountType { - GRS = "GRS", - LRS = "LRS", - ZRS = "ZRS" +/** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ +export enum KnownDiffBackupIntervalInHours { + Twelve = 12, + TwentyFour = 24 } /** - * Defines values for StorageCapabilityStorageAccountType. \ - * {@link KnownStorageCapabilityStorageAccountType} can be used interchangeably with StorageCapabilityStorageAccountType, + * 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 - * **GRS** \ - * **LRS** \ - * **ZRS** + * **12** \ + * **24** */ -export type StorageCapabilityStorageAccountType = string; +export type DiffBackupIntervalInHours = number; -/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ -export enum KnownLongTermRetentionPolicyName { - Default = "default" +/** Known values of {@link OperationMode} that the service accepts. */ +export enum KnownOperationMode { + PolybaseImport = "PolybaseImport" } /** - * Defines values for LongTermRetentionPolicyName. \ - * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, + * 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 - * **default** + * **PolybaseImport** */ -export type LongTermRetentionPolicyName = string; +export type OperationMode = string; -/** Known values of {@link DayOfWeek} that the service accepts. */ -export enum KnownDayOfWeek { - Sunday = "Sunday", - Monday = "Monday", - Tuesday = "Tuesday", - Wednesday = "Wednesday", - Thursday = "Thursday", - Friday = "Friday", - Saturday = "Saturday" +/** Known values of {@link StorageKeyType} that the service accepts. */ +export enum KnownStorageKeyType { + SharedAccessKey = "SharedAccessKey", + StorageAccessKey = "StorageAccessKey" } /** - * Defines values for DayOfWeek. \ - * {@link KnownDayOfWeek} can be used interchangeably with DayOfWeek, + * 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 - * **Sunday** \ - * **Monday** \ - * **Tuesday** \ - * **Wednesday** \ - * **Thursday** \ - * **Friday** \ - * **Saturday** + * **SharedAccessKey** \ + * **StorageAccessKey** */ -export type DayOfWeek = string; +export type StorageKeyType = string; -/** Known values of {@link ManagedShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedShortTermRetentionPolicyName { - Default = "default" +/** Known values of {@link LedgerDigestUploadsName} that the service accepts. */ +export enum KnownLedgerDigestUploadsName { + Current = "current" } /** - * Defines values for ManagedShortTermRetentionPolicyName. \ - * {@link KnownManagedShortTermRetentionPolicyName} can be used interchangeably with ManagedShortTermRetentionPolicyName, + * Defines values for LedgerDigestUploadsName. \ + * {@link KnownLedgerDigestUploadsName} can be used interchangeably with LedgerDigestUploadsName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **current** */ -export type ManagedShortTermRetentionPolicyName = string; +export type LedgerDigestUploadsName = string; -/** Known values of {@link QueryTimeGrainType} that the service accepts. */ -export enum KnownQueryTimeGrainType { - PT1H = "PT1H", - P1D = "P1D" +/** Known values of {@link IdentityType} that the service accepts. */ +export enum KnownIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + UserAssigned = "UserAssigned", + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" } /** - * Defines values for QueryTimeGrainType. \ - * {@link KnownQueryTimeGrainType} can be used interchangeably with QueryTimeGrainType, + * 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 - * **PT1H** \ - * **P1D** + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned,UserAssigned** */ -export type QueryTimeGrainType = string; +export type IdentityType = string; -/** Known values of {@link QueryMetricUnitType} that the service accepts. */ -export enum KnownQueryMetricUnitType { - Percentage = "percentage", - KB = "KB", - Microseconds = "microseconds", - Count = "count" +/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ +export enum KnownServerNetworkAccessFlag { + Enabled = "Enabled", + Disabled = "Disabled" } /** - * Defines values for QueryMetricUnitType. \ - * {@link KnownQueryMetricUnitType} can be used interchangeably with QueryMetricUnitType, + * 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 - * **percentage** \ - * **KB** \ - * **microseconds** \ - * **count** + * **Enabled** \ + * **Disabled** */ -export type QueryMetricUnitType = string; +export type ServerNetworkAccessFlag = string; -/** Known values of {@link RestoreDetailsName} that the service accepts. */ -export enum KnownRestoreDetailsName { - Default = "Default" +/** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ +export enum KnownServerWorkspaceFeature { + Connected = "Connected", + Disconnected = "Disconnected" } /** - * Defines values for RestoreDetailsName. \ - * {@link KnownRestoreDetailsName} can be used interchangeably with RestoreDetailsName, + * 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 - * **Default** + * **Connected** \ + * **Disconnected** */ -export type RestoreDetailsName = string; +export type ServerWorkspaceFeature = string; -/** Known values of {@link ManagedDatabaseStatus} that the service accepts. */ -export enum KnownManagedDatabaseStatus { - Online = "Online", - Offline = "Offline", - Shutdown = "Shutdown", - Creating = "Creating", - Inaccessible = "Inaccessible", - Restoring = "Restoring", - Updating = "Updating" +/** Known values of {@link PrincipalType} that the service accepts. */ +export enum KnownPrincipalType { + User = "User", + Group = "Group", + Application = "Application" } /** - * Defines values for ManagedDatabaseStatus. \ - * {@link KnownManagedDatabaseStatus} can be used interchangeably with ManagedDatabaseStatus, + * 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 - * **Online** \ - * **Offline** \ - * **Shutdown** \ - * **Creating** \ - * **Inaccessible** \ - * **Restoring** \ - * **Updating** + * **User** \ + * **Group** \ + * **Application** */ -export type ManagedDatabaseStatus = string; +export type PrincipalType = string; -/** Known values of {@link CatalogCollationType} that the service accepts. */ -export enum KnownCatalogCollationType { - DatabaseDefault = "DATABASE_DEFAULT", - SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" +/** Known values of {@link DatabaseIdentityType} that the service accepts. */ +export enum KnownDatabaseIdentityType { + None = "None", + UserAssigned = "UserAssigned" } /** - * Defines values for CatalogCollationType. \ - * {@link KnownCatalogCollationType} can be used interchangeably with CatalogCollationType, + * 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 - * **DATABASE_DEFAULT** \ - * **SQL_Latin1_General_CP1_CI_AS** + * **None** \ + * **UserAssigned** */ -export type CatalogCollationType = string; +export type DatabaseIdentityType = string; -/** Known values of {@link ManagedDatabaseCreateMode} that the service accepts. */ -export enum KnownManagedDatabaseCreateMode { +/** Known values of {@link CreateMode} that the service accepts. */ +export enum KnownCreateMode { Default = "Default", - RestoreExternalBackup = "RestoreExternalBackup", + Copy = "Copy", + Secondary = "Secondary", PointInTimeRestore = "PointInTimeRestore", + Restore = "Restore", Recovery = "Recovery", - RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup" + RestoreExternalBackup = "RestoreExternalBackup", + RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary", + RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup", + OnlineSecondary = "OnlineSecondary" } /** - * Defines values for ManagedDatabaseCreateMode. \ - * {@link KnownManagedDatabaseCreateMode} can be used interchangeably with ManagedDatabaseCreateMode, + * Defines values for CreateMode. \ + * {@link KnownCreateMode} can be used interchangeably with CreateMode, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** \ - * **RestoreExternalBackup** \ + * **Copy** \ + * **Secondary** \ * **PointInTimeRestore** \ + * **Restore** \ * **Recovery** \ - * **RestoreLongTermRetentionBackup** - */ -export type ManagedDatabaseCreateMode = string; - -/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ -export enum KnownTransparentDataEncryptionName { - Current = "current" -} - -/** - * Defines values for TransparentDataEncryptionName. \ - * {@link KnownTransparentDataEncryptionName} can be used interchangeably with TransparentDataEncryptionName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **current** + * **RestoreExternalBackup** \ + * **RestoreExternalBackupSecondary** \ + * **RestoreLongTermRetentionBackup** \ + * **OnlineSecondary** */ -export type TransparentDataEncryptionName = string; +export type CreateMode = string; -/** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ -export enum KnownManagedInstanceAdministratorType { - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link SampleName} that the service accepts. */ +export enum KnownSampleName { + AdventureWorksLT = "AdventureWorksLT", + WideWorldImportersStd = "WideWorldImportersStd", + WideWorldImportersFull = "WideWorldImportersFull" } /** - * Defines values for ManagedInstanceAdministratorType. \ - * {@link KnownManagedInstanceAdministratorType} can be used interchangeably with ManagedInstanceAdministratorType, + * 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 - * **ActiveDirectory** + * **AdventureWorksLT** \ + * **WideWorldImportersStd** \ + * **WideWorldImportersFull** */ -export type ManagedInstanceAdministratorType = string; +export type SampleName = string; -/** Known values of {@link AdministratorName} that the service accepts. */ -export enum KnownAdministratorName { - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link DatabaseStatus} that the service accepts. */ +export enum KnownDatabaseStatus { + Online = "Online", + Restoring = "Restoring", + RecoveryPending = "RecoveryPending", + Recovering = "Recovering", + Suspect = "Suspect", + Offline = "Offline", + Standby = "Standby", + Shutdown = "Shutdown", + EmergencyMode = "EmergencyMode", + AutoClosed = "AutoClosed", + Copying = "Copying", + Creating = "Creating", + Inaccessible = "Inaccessible", + OfflineSecondary = "OfflineSecondary", + Pausing = "Pausing", + Paused = "Paused", + Resuming = "Resuming", + Scaling = "Scaling", + OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers", + OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers", + Disabled = "Disabled", + Stopping = "Stopping", + Stopped = "Stopped", + Starting = "Starting" } /** - * Defines values for AdministratorName. \ - * {@link KnownAdministratorName} can be used interchangeably with AdministratorName, + * 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 - * **ActiveDirectory** + * **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 AdministratorName = string; +export type DatabaseStatus = string; -/** Known values of {@link AuthenticationName} that the service accepts. */ -export enum KnownAuthenticationName { - Default = "Default" +/** Known values of {@link DatabaseLicenseType} that the service accepts. */ +export enum KnownDatabaseLicenseType { + LicenseIncluded = "LicenseIncluded", + BasePrice = "BasePrice" } /** - * Defines values for AuthenticationName. \ - * {@link KnownAuthenticationName} can be used interchangeably with AuthenticationName, + * Defines values for DatabaseLicenseType. \ + * {@link KnownDatabaseLicenseType} can be used interchangeably with DatabaseLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** + * **LicenseIncluded** \ + * **BasePrice** */ -export type AuthenticationName = string; +export type DatabaseLicenseType = string; -/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedInstanceLongTermRetentionPolicyName { - Default = "default" +/** Known values of {@link DatabaseReadScale} that the service accepts. */ +export enum KnownDatabaseReadScale { + Enabled = "Enabled", + Disabled = "Disabled" } -/** - * Defines values for ManagedInstanceLongTermRetentionPolicyName. \ - * {@link KnownManagedInstanceLongTermRetentionPolicyName} can be used interchangeably with ManagedInstanceLongTermRetentionPolicyName, +/** + * 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 - * **default** + * **Enabled** \ + * **Disabled** */ -export type ManagedInstanceLongTermRetentionPolicyName = string; +export type DatabaseReadScale = string; -/** Known values of {@link ManagementOperationState} that the service accepts. */ -export enum KnownManagementOperationState { - Pending = "Pending", - InProgress = "InProgress", - Succeeded = "Succeeded", - Failed = "Failed", - CancelInProgress = "CancelInProgress", - Cancelled = "Cancelled" +/** Known values of {@link SecondaryType} that the service accepts. */ +export enum KnownSecondaryType { + Geo = "Geo", + Named = "Named" } /** - * Defines values for ManagementOperationState. \ - * {@link KnownManagementOperationState} can be used interchangeably with ManagementOperationState, + * 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 - * **Pending** \ - * **InProgress** \ - * **Succeeded** \ - * **Failed** \ - * **CancelInProgress** \ - * **Cancelled** + * **Geo** \ + * **Named** */ -export type ManagementOperationState = string; +export type SecondaryType = string; -/** Known values of {@link UpsertManagedServerOperationStepStatus} that the service accepts. */ -export enum KnownUpsertManagedServerOperationStepStatus { - NotStarted = "NotStarted", - InProgress = "InProgress", - SlowedDown = "SlowedDown", - Completed = "Completed", - Failed = "Failed", - Canceled = "Canceled" +/** Known values of {@link BackupStorageRedundancy} that the service accepts. */ +export enum KnownBackupStorageRedundancy { + Geo = "Geo", + Local = "Local", + Zone = "Zone", + GeoZone = "GeoZone" } /** - * Defines values for UpsertManagedServerOperationStepStatus. \ - * {@link KnownUpsertManagedServerOperationStepStatus} can be used interchangeably with UpsertManagedServerOperationStepStatus, + * 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 - * **NotStarted** \ - * **InProgress** \ - * **SlowedDown** \ - * **Completed** \ - * **Failed** \ - * **Canceled** + * **Geo** \ + * **Local** \ + * **Zone** \ + * **GeoZone** */ -export type UpsertManagedServerOperationStepStatus = string; +export type BackupStorageRedundancy = string; -/** Known values of {@link OperationOrigin} that the service accepts. */ -export enum KnownOperationOrigin { - User = "user", - System = "system" +/** Known values of {@link ReplicaType} that the service accepts. */ +export enum KnownReplicaType { + Primary = "Primary", + ReadableSecondary = "ReadableSecondary" } /** - * Defines values for OperationOrigin. \ - * {@link KnownOperationOrigin} can be used interchangeably with OperationOrigin, + * 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 - * **user** \ - * **system** + * **Primary** \ + * **ReadableSecondary** */ -export type OperationOrigin = string; +export type ReplicaType = string; -/** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */ -export enum KnownPrivateLinkServiceConnectionStateStatus { - Approved = "Approved", - Pending = "Pending", - Rejected = "Rejected", - Disconnected = "Disconnected" +/** Known values of {@link DatabaseState} that the service accepts. */ +export enum KnownDatabaseState { + All = "All", + Live = "Live", + Deleted = "Deleted" } /** - * Defines values for PrivateLinkServiceConnectionStateStatus. \ - * {@link KnownPrivateLinkServiceConnectionStateStatus} can be used interchangeably with PrivateLinkServiceConnectionStateStatus, + * Defines values for DatabaseState. \ + * {@link KnownDatabaseState} can be used interchangeably with DatabaseState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Approved** \ - * **Pending** \ - * **Rejected** \ - * **Disconnected** + * **All** \ + * **Live** \ + * **Deleted** */ -export type PrivateLinkServiceConnectionStateStatus = string; +export type DatabaseState = string; -/** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ -export enum KnownPrivateLinkServiceConnectionStateActionsRequire { - None = "None" +/** Known values of {@link ManagedInstancePropertiesProvisioningState} that the service accepts. */ +export enum KnownManagedInstancePropertiesProvisioningState { + Creating = "Creating", + Deleting = "Deleting", + Updating = "Updating", + Unknown = "Unknown", + Succeeded = "Succeeded", + Failed = "Failed", + Accepted = "Accepted", + Created = "Created", + Deleted = "Deleted", + Unrecognized = "Unrecognized", + Running = "Running", + Canceled = "Canceled", + NotSpecified = "NotSpecified", + Registering = "Registering", + TimedOut = "TimedOut" } /** - * Defines values for PrivateLinkServiceConnectionStateActionsRequire. \ - * {@link KnownPrivateLinkServiceConnectionStateActionsRequire} can be used interchangeably with PrivateLinkServiceConnectionStateActionsRequire, + * Defines values for ManagedInstancePropertiesProvisioningState. \ + * {@link KnownManagedInstancePropertiesProvisioningState} can be used interchangeably with ManagedInstancePropertiesProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** + * **Creating** \ + * **Deleting** \ + * **Updating** \ + * **Unknown** \ + * **Succeeded** \ + * **Failed** \ + * **Accepted** \ + * **Created** \ + * **Deleted** \ + * **Unrecognized** \ + * **Running** \ + * **Canceled** \ + * **NotSpecified** \ + * **Registering** \ + * **TimedOut** */ -export type PrivateLinkServiceConnectionStateActionsRequire = string; +export type ManagedInstancePropertiesProvisioningState = string; -/** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointProvisioningState { - Approving = "Approving", - Ready = "Ready", - Dropping = "Dropping", - Failed = "Failed", - Rejecting = "Rejecting" +/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ +export enum KnownManagedServerCreateMode { + Default = "Default", + PointInTimeRestore = "PointInTimeRestore" } /** - * Defines values for PrivateEndpointProvisioningState. \ - * {@link KnownPrivateEndpointProvisioningState} can be used interchangeably with PrivateEndpointProvisioningState, + * 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 - * **Approving** \ - * **Ready** \ - * **Dropping** \ - * **Failed** \ - * **Rejecting** + * **Default** \ + * **PointInTimeRestore** */ -export type PrivateEndpointProvisioningState = string; +export type ManagedServerCreateMode = string; -/** Known values of {@link AdministratorType} that the service accepts. */ -export enum KnownAdministratorType { - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ +export enum KnownManagedInstanceLicenseType { + LicenseIncluded = "LicenseIncluded", + BasePrice = "BasePrice" } /** - * Defines values for AdministratorType. \ - * {@link KnownAdministratorType} can be used interchangeably with AdministratorType, + * 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 - * **ActiveDirectory** + * **LicenseIncluded** \ + * **BasePrice** */ -export type AdministratorType = string; +export type ManagedInstanceLicenseType = string; -/** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ -export enum KnownServerTrustGroupPropertiesTrustScopesItem { - GlobalTransactions = "GlobalTransactions", - ServiceBroker = "ServiceBroker" +/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ +export enum KnownManagedInstanceProxyOverride { + Proxy = "Proxy", + Redirect = "Redirect", + Default = "Default" } /** - * Defines values for ServerTrustGroupPropertiesTrustScopesItem. \ - * {@link KnownServerTrustGroupPropertiesTrustScopesItem} can be used interchangeably with ServerTrustGroupPropertiesTrustScopesItem, + * 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 - * **GlobalTransactions** \ - * **ServiceBroker** + * **Proxy** \ + * **Redirect** \ + * **Default** */ -export type ServerTrustGroupPropertiesTrustScopesItem = string; +export type ManagedInstanceProxyOverride = string; -/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ -export enum KnownSqlAgentConfigurationPropertiesState { - Enabled = "Enabled", - Disabled = "Disabled" +/** Known values of {@link ServicePrincipalType} that the service accepts. */ +export enum KnownServicePrincipalType { + None = "None", + SystemAssigned = "SystemAssigned" } /** - * Defines values for SqlAgentConfigurationPropertiesState. \ - * {@link KnownSqlAgentConfigurationPropertiesState} can be used interchangeably with SqlAgentConfigurationPropertiesState, + * 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 - * **Enabled** \ - * **Disabled** + * **None** \ + * **SystemAssigned** */ -export type SqlAgentConfigurationPropertiesState = string; +export type ServicePrincipalType = string; -/** Known values of {@link SyncAgentState} that the service accepts. */ -export enum KnownSyncAgentState { - Online = "Online", - Offline = "Offline", - NeverConnected = "NeverConnected" +/** Known values of {@link AggregationFunctionType} that the service accepts. */ +export enum KnownAggregationFunctionType { + Avg = "avg", + Min = "min", + Max = "max", + Stdev = "stdev", + Sum = "sum" } /** - * Defines values for SyncAgentState. \ - * {@link KnownSyncAgentState} can be used interchangeably with SyncAgentState, + * 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** \ - * **Offline** \ - * **NeverConnected** + * **avg** \ + * **min** \ + * **max** \ + * **stdev** \ + * **sum** */ -export type SyncAgentState = string; - -/** Known values of {@link SyncMemberDbType} that the service accepts. */ -export enum KnownSyncMemberDbType { - AzureSqlDatabase = "AzureSqlDatabase", - SqlServerDatabase = "SqlServerDatabase" +export type AggregationFunctionType = string; + +/** Known values of {@link MetricType} that the service accepts. */ +export enum KnownMetricType { + Cpu = "cpu", + Io = "io", + LogIo = "logIo", + Duration = "duration", + Dtu = "dtu" } /** - * Defines values for SyncMemberDbType. \ - * {@link KnownSyncMemberDbType} can be used interchangeably with SyncMemberDbType, + * 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 - * **AzureSqlDatabase** \ - * **SqlServerDatabase** + * **cpu** \ + * **io** \ + * **logIo** \ + * **duration** \ + * **dtu** */ -export type SyncMemberDbType = string; +export type MetricType = string; -/** Known values of {@link Enum60} that the service accepts. */ -export enum KnownEnum60 { - All = "All", - Error = "Error", - Warning = "Warning", - Success = "Success" +/** Known values of {@link ConnectionPolicyName} that the service accepts. */ +export enum KnownConnectionPolicyName { + Default = "default" } /** - * Defines values for Enum60. \ - * {@link KnownEnum60} can be used interchangeably with Enum60, + * 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 - * **All** \ - * **Error** \ - * **Warning** \ - * **Success** + * **default** */ -export type Enum60 = string; +export type ConnectionPolicyName = string; -/** Known values of {@link SyncGroupLogType} that the service accepts. */ -export enum KnownSyncGroupLogType { - All = "All", - Error = "Error", - Warning = "Warning", - Success = "Success" +/** Known values of {@link ServerConnectionType} that the service accepts. */ +export enum KnownServerConnectionType { + Default = "Default", + Redirect = "Redirect", + Proxy = "Proxy" } /** - * Defines values for SyncGroupLogType. \ - * {@link KnownSyncGroupLogType} can be used interchangeably with SyncGroupLogType, + * 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 - * **All** \ - * **Error** \ - * **Warning** \ - * **Success** + * **Default** \ + * **Redirect** \ + * **Proxy** */ -export type SyncGroupLogType = string; +export type ServerConnectionType = string; -/** Known values of {@link SyncConflictResolutionPolicy} that the service accepts. */ -export enum KnownSyncConflictResolutionPolicy { - HubWin = "HubWin", - MemberWin = "MemberWin" +/** Known values of {@link ReplicationMode} that the service accepts. */ +export enum KnownReplicationMode { + Async = "Async", + Sync = "Sync" } /** - * Defines values for SyncConflictResolutionPolicy. \ - * {@link KnownSyncConflictResolutionPolicy} can be used interchangeably with SyncConflictResolutionPolicy, + * Defines values for ReplicationMode. \ + * {@link KnownReplicationMode} can be used interchangeably with ReplicationMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **HubWin** \ - * **MemberWin** + * **Async** \ + * **Sync** */ -export type SyncConflictResolutionPolicy = string; +export type ReplicationMode = string; -/** Known values of {@link SyncGroupState} that the service accepts. */ -export enum KnownSyncGroupState { - NotReady = "NotReady", - Error = "Error", - Warning = "Warning", - Progressing = "Progressing", - Good = "Good" +/** Known values of {@link ElasticPoolState} that the service accepts. */ +export enum KnownElasticPoolState { + Creating = "Creating", + Ready = "Ready", + Disabled = "Disabled" } /** - * Defines values for SyncGroupState. \ - * {@link KnownSyncGroupState} can be used interchangeably with SyncGroupState, + * 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 - * **NotReady** \ - * **Error** \ - * **Warning** \ - * **Progressing** \ - * **Good** + * **Creating** \ + * **Ready** \ + * **Disabled** */ -export type SyncGroupState = string; +export type ElasticPoolState = string; -/** Known values of {@link SyncDirection} that the service accepts. */ -export enum KnownSyncDirection { - Bidirectional = "Bidirectional", - OneWayMemberToHub = "OneWayMemberToHub", - OneWayHubToMember = "OneWayHubToMember" +/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ +export enum KnownElasticPoolLicenseType { + LicenseIncluded = "LicenseIncluded", + BasePrice = "BasePrice" } /** - * Defines values for SyncDirection. \ - * {@link KnownSyncDirection} can be used interchangeably with SyncDirection, + * 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 - * **Bidirectional** \ - * **OneWayMemberToHub** \ - * **OneWayHubToMember** + * **LicenseIncluded** \ + * **BasePrice** */ -export type SyncDirection = string; +export type ElasticPoolLicenseType = string; -/** Known values of {@link SyncMemberState} that the service accepts. */ -export enum KnownSyncMemberState { - SyncInProgress = "SyncInProgress", - SyncSucceeded = "SyncSucceeded", - SyncFailed = "SyncFailed", - DisabledTombstoneCleanup = "DisabledTombstoneCleanup", - DisabledBackupRestore = "DisabledBackupRestore", - SyncSucceededWithWarnings = "SyncSucceededWithWarnings", - SyncCancelling = "SyncCancelling", - SyncCancelled = "SyncCancelled", - UnProvisioned = "UnProvisioned", - Provisioning = "Provisioning", - Provisioned = "Provisioned", - ProvisionFailed = "ProvisionFailed", - DeProvisioning = "DeProvisioning", - DeProvisioned = "DeProvisioned", - DeProvisionFailed = "DeProvisionFailed", - Reprovisioning = "Reprovisioning", - ReprovisionFailed = "ReprovisionFailed", - UnReprovisioned = "UnReprovisioned" +/** Known values of {@link ReplicationState} that the service accepts. */ +export enum KnownReplicationState { + Pending = "PENDING", + Seeding = "SEEDING", + CatchUP = "CATCH_UP", + Suspended = "SUSPENDED" } /** - * Defines values for SyncMemberState. \ - * {@link KnownSyncMemberState} can be used interchangeably with SyncMemberState, + * 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 - * **SyncInProgress** \ - * **SyncSucceeded** \ - * **SyncFailed** \ - * **DisabledTombstoneCleanup** \ - * **DisabledBackupRestore** \ - * **SyncSucceededWithWarnings** \ - * **SyncCancelling** \ - * **SyncCancelled** \ - * **UnProvisioned** \ - * **Provisioning** \ - * **Provisioned** \ - * **ProvisionFailed** \ - * **DeProvisioning** \ - * **DeProvisioned** \ - * **DeProvisionFailed** \ - * **Reprovisioning** \ - * **ReprovisionFailed** \ - * **UnReprovisioned** + * **PENDING** \ + * **SEEDING** \ + * **CATCH_UP** \ + * **SUSPENDED** */ -export type SyncMemberState = string; +export type ReplicationState = string; -/** Known values of {@link DnsRefreshConfigurationPropertiesStatus} that the service accepts. */ -export enum KnownDnsRefreshConfigurationPropertiesStatus { - Succeeded = "Succeeded", - Failed = "Failed" +/** Known values of {@link ReplicationLinkType} that the service accepts. */ +export enum KnownReplicationLinkType { + GEO = "GEO", + Named = "NAMED" } /** - * Defines values for DnsRefreshConfigurationPropertiesStatus. \ - * {@link KnownDnsRefreshConfigurationPropertiesStatus} can be used interchangeably with DnsRefreshConfigurationPropertiesStatus, + * 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 - * **Succeeded** \ - * **Failed** + * **GEO** \ + * **NAMED** */ -export type DnsRefreshConfigurationPropertiesStatus = string; +export type ReplicationLinkType = string; -/** Known values of {@link VirtualNetworkRuleState} that the service accepts. */ -export enum KnownVirtualNetworkRuleState { - Initializing = "Initializing", - InProgress = "InProgress", - Ready = "Ready", - Failed = "Failed", - Deleting = "Deleting", - Unknown = "Unknown" +/** Known values of {@link ServiceObjectiveName} that the service accepts. */ +export enum KnownServiceObjectiveName { + System = "System", + System0 = "System0", + System1 = "System1", + System2 = "System2", + System3 = "System3", + System4 = "System4", + System2L = "System2L", + System3L = "System3L", + System4L = "System4L", + Free = "Free", + Basic = "Basic", + S0 = "S0", + S1 = "S1", + S2 = "S2", + S3 = "S3", + S4 = "S4", + S6 = "S6", + S7 = "S7", + S9 = "S9", + S12 = "S12", + P1 = "P1", + P2 = "P2", + P3 = "P3", + P4 = "P4", + P6 = "P6", + P11 = "P11", + P15 = "P15", + PRS1 = "PRS1", + PRS2 = "PRS2", + PRS4 = "PRS4", + PRS6 = "PRS6", + DW100 = "DW100", + DW200 = "DW200", + DW300 = "DW300", + DW400 = "DW400", + DW500 = "DW500", + DW600 = "DW600", + DW1000 = "DW1000", + DW1200 = "DW1200", + DW1000C = "DW1000c", + DW1500 = "DW1500", + DW1500C = "DW1500c", + DW2000 = "DW2000", + DW2000C = "DW2000c", + DW3000 = "DW3000", + DW2500C = "DW2500c", + DW3000C = "DW3000c", + DW6000 = "DW6000", + DW5000C = "DW5000c", + DW6000C = "DW6000c", + DW7500C = "DW7500c", + DW10000C = "DW10000c", + DW15000C = "DW15000c", + DW30000C = "DW30000c", + DS100 = "DS100", + DS200 = "DS200", + DS300 = "DS300", + DS400 = "DS400", + DS500 = "DS500", + DS600 = "DS600", + DS1000 = "DS1000", + DS1200 = "DS1200", + DS1500 = "DS1500", + DS2000 = "DS2000", + ElasticPool = "ElasticPool" } /** - * Defines values for VirtualNetworkRuleState. \ - * {@link KnownVirtualNetworkRuleState} can be used interchangeably with VirtualNetworkRuleState, + * Defines values for ServiceObjectiveName. \ + * {@link KnownServiceObjectiveName} can be used interchangeably with ServiceObjectiveName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Initializing** \ - * **InProgress** \ - * **Ready** \ - * **Failed** \ - * **Deleting** \ - * **Unknown** + * **System** \ + * **System0** \ + * **System1** \ + * **System2** \ + * **System3** \ + * **System4** \ + * **System2L** \ + * **System3L** \ + * **System4L** \ + * **Free** \ + * **Basic** \ + * **S0** \ + * **S1** \ + * **S2** \ + * **S3** \ + * **S4** \ + * **S6** \ + * **S7** \ + * **S9** \ + * **S12** \ + * **P1** \ + * **P2** \ + * **P3** \ + * **P4** \ + * **P6** \ + * **P11** \ + * **P15** \ + * **PRS1** \ + * **PRS2** \ + * **PRS4** \ + * **PRS6** \ + * **DW100** \ + * **DW200** \ + * **DW300** \ + * **DW400** \ + * **DW500** \ + * **DW600** \ + * **DW1000** \ + * **DW1200** \ + * **DW1000c** \ + * **DW1500** \ + * **DW1500c** \ + * **DW2000** \ + * **DW2000c** \ + * **DW3000** \ + * **DW2500c** \ + * **DW3000c** \ + * **DW6000** \ + * **DW5000c** \ + * **DW6000c** \ + * **DW7500c** \ + * **DW10000c** \ + * **DW15000c** \ + * **DW30000c** \ + * **DS100** \ + * **DS200** \ + * **DS300** \ + * **DS400** \ + * **DS500** \ + * **DS600** \ + * **DS1000** \ + * **DS1200** \ + * **DS1500** \ + * **DS2000** \ + * **ElasticPool** */ -export type VirtualNetworkRuleState = string; - -/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownShortTermRetentionPolicyName { - Default = "default" -} +export type ServiceObjectiveName = string; +/** Defines values for DataMaskingState. */ +export type DataMaskingState = "Disabled" | "Enabled"; +/** Defines values for DataMaskingRuleState. */ +export type DataMaskingRuleState = "Disabled" | "Enabled"; +/** Defines values for DataMaskingFunction. */ +export type DataMaskingFunction = + | "Default" + | "CCN" + | "Email" + | "Number" + | "SSN" + | "Text"; +/** Defines values for GeoBackupPolicyState. */ +export type GeoBackupPolicyState = "Disabled" | "Enabled"; +/** Defines values for AdvisorStatus. */ +export type AdvisorStatus = + | "GA" + | "PublicPreview" + | "LimitedPublicPreview" + | "PrivatePreview"; +/** Defines values for AutoExecuteStatus. */ +export type AutoExecuteStatus = "Enabled" | "Disabled" | "Default"; +/** Defines values for AutoExecuteStatusInheritedFrom. */ +export type AutoExecuteStatusInheritedFrom = + | "Default" + | "Subscription" + | "Server" + | "ElasticPool" + | "Database"; +/** Defines values for RecommendedActionInitiatedBy. */ +export type RecommendedActionInitiatedBy = "User" | "System"; +/** Defines values for ImplementationMethod. */ +export type ImplementationMethod = "TSql" | "AzurePowerShell"; +/** Defines values for IsRetryable. */ +export type IsRetryable = "Yes" | "No"; +/** Defines values for AutomaticTuningMode. */ +export type AutomaticTuningMode = "Inherit" | "Custom" | "Auto" | "Unspecified"; +/** Defines values for AutomaticTuningOptionModeDesired. */ +export type AutomaticTuningOptionModeDesired = "Off" | "On" | "Default"; +/** Defines values for AutomaticTuningOptionModeActual. */ +export type AutomaticTuningOptionModeActual = "Off" | "On"; +/** Defines values for AutomaticTuningDisabledReason. */ +export type AutomaticTuningDisabledReason = + | "Default" + | "Disabled" + | "AutoConfigured" + | "InheritedFromServer" + | "QueryStoreOff" + | "QueryStoreReadOnly" + | "NotSupported"; +/** Defines values for SecurityAlertsPolicyState. */ +export type SecurityAlertsPolicyState = "Enabled" | "Disabled"; +/** Defines values for VulnerabilityAssessmentPolicyBaselineName. */ +export type VulnerabilityAssessmentPolicyBaselineName = "master" | "default"; +/** Defines values for JobScheduleType. */ +export type JobScheduleType = "Once" | "Recurring"; +/** Defines values for JobTargetGroupMembershipType. */ +export type JobTargetGroupMembershipType = "Include" | "Exclude"; +/** Defines values for CapabilityStatus. */ +export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled"; +/** Defines values for SecurityAlertPolicyState. */ +export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; +/** Defines values for SecurityEventType. */ +export type SecurityEventType = + | "Undefined" + | "SqlInjectionVulnerability" + | "SqlInjectionExploit"; +/** Defines values for TransparentDataEncryptionState. */ +export type TransparentDataEncryptionState = "Enabled" | "Disabled"; +/** Defines values for RestorePointType. */ +export type RestorePointType = "CONTINUOUS" | "DISCRETE"; +/** Defines values for AutomaticTuningServerMode. */ +export type AutomaticTuningServerMode = "Custom" | "Auto" | "Unspecified"; +/** Defines values for AutomaticTuningServerReason. */ +export type AutomaticTuningServerReason = + | "Default" + | "Disabled" + | "AutoConfigured"; +/** Defines values for BlobAuditingPolicyState. */ +export type BlobAuditingPolicyState = "Enabled" | "Disabled"; +/** Defines values for LedgerDigestUploadsState. */ +export type LedgerDigestUploadsState = "Enabled" | "Disabled"; +/** Defines values for CheckNameAvailabilityReason. */ +export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists"; +/** Defines values for ReplicationRole. */ +export type ReplicationRole = + | "Primary" + | "Secondary" + | "NonReadableSecondary" + | "Source" + | "Copy"; +/** Defines values for SensitivityLabelSource. */ +export type SensitivityLabelSource = "current" | "recommended"; +/** Defines values for SensitivityLabelRank. */ +export type SensitivityLabelRank = + | "None" + | "Low" + | "Medium" + | "High" + | "Critical"; +/** Defines values for SensitivityLabelUpdateKind. */ +export type SensitivityLabelUpdateKind = "set" | "remove"; +/** Defines values for RecommendedSensitivityLabelUpdateKind. */ +export type RecommendedSensitivityLabelUpdateKind = "enable" | "disable"; -/** - * Defines values for 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; +/** Optional parameters. */ +export interface RecoverableDatabasesGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ -export enum KnownDiffBackupIntervalInHours { - Twelve = 12, - TwentyFour = 24 -} +/** Contains response data for the get operation. */ +export type RecoverableDatabasesGetResponse = RecoverableDatabase; -/** - * 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; +/** Optional parameters. */ +export interface RecoverableDatabasesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link OperationMode} that the service accepts. */ -export enum KnownOperationMode { - PolybaseImport = "PolybaseImport" -} +/** Contains response data for the listByServer operation. */ +export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; -/** - * Defines values for OperationMode. \ - * {@link KnownOperationMode} can be used interchangeably with OperationMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **PolybaseImport** - */ -export type OperationMode = string; +/** Optional parameters. */ +export interface DataMaskingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link StorageKeyType} that the service accepts. */ -export enum KnownStorageKeyType { - SharedAccessKey = "SharedAccessKey", - StorageAccessKey = "StorageAccessKey" -} +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; -/** - * Defines values for StorageKeyType. \ - * {@link KnownStorageKeyType} can be used interchangeably with StorageKeyType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **SharedAccessKey** \ - * **StorageAccessKey** - */ -export type StorageKeyType = string; +/** Optional parameters. */ +export interface DataMaskingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link LedgerDigestUploadsName} that the service accepts. */ -export enum KnownLedgerDigestUploadsName { - Current = "current" -} +/** Contains response data for the get operation. */ +export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; -/** - * Defines values for LedgerDigestUploadsName. \ - * {@link KnownLedgerDigestUploadsName} can be used interchangeably with LedgerDigestUploadsName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **current** - */ -export type LedgerDigestUploadsName = string; +/** Optional parameters. */ +export interface DataMaskingRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ReplicationState} that the service accepts. */ -export enum KnownReplicationState { - Pending = "PENDING", - Seeding = "SEEDING", - CatchUP = "CATCH_UP", - Suspended = "SUSPENDED" -} +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; -/** - * Defines values for ReplicationState. \ - * {@link KnownReplicationState} can be used interchangeably with ReplicationState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **PENDING** \ - * **SEEDING** \ - * **CATCH_UP** \ - * **SUSPENDED** - */ -export type ReplicationState = string; +/** Optional parameters. */ +export interface DataMaskingRulesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ReplicationLinkType} that the service accepts. */ -export enum KnownReplicationLinkType { - GEO = "GEO", - Named = "NAMED" -} +/** Contains response data for the listByDatabase operation. */ +export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; -/** - * Defines values for ReplicationLinkType. \ - * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **GEO** \ - * **NAMED** - */ -export type ReplicationLinkType = string; +/** Optional parameters. */ +export interface GeoBackupPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link IdentityType} that the service accepts. */ -export enum KnownIdentityType { - None = "None", - SystemAssigned = "SystemAssigned", - UserAssigned = "UserAssigned", - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" -} +/** Contains response data for the createOrUpdate operation. */ +export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; -/** - * Defines values for IdentityType. \ - * {@link KnownIdentityType} can be used interchangeably with IdentityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned,UserAssigned** - */ -export type IdentityType = string; +/** Optional parameters. */ +export interface GeoBackupPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ -export enum KnownServerNetworkAccessFlag { - Enabled = "Enabled", - Disabled = "Disabled" -} +/** Contains response data for the get operation. */ +export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; -/** - * Defines values for ServerNetworkAccessFlag. \ - * {@link KnownServerNetworkAccessFlag} can be used interchangeably with ServerNetworkAccessFlag, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type ServerNetworkAccessFlag = string; +/** Optional parameters. */ +export interface GeoBackupPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ -export enum KnownServerWorkspaceFeature { - Connected = "Connected", - Disconnected = "Disconnected" -} +/** Contains response data for the listByDatabase operation. */ +export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; -/** - * Defines values for ServerWorkspaceFeature. \ - * {@link KnownServerWorkspaceFeature} can be used interchangeably with ServerWorkspaceFeature, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Connected** \ - * **Disconnected** - */ -export type ServerWorkspaceFeature = string; +/** Optional parameters. */ +export interface DatabasesListMetricsOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link PrincipalType} that the service accepts. */ -export enum KnownPrincipalType { - User = "User", - Group = "Group", - Application = "Application" -} +/** Contains response data for the listMetrics operation. */ +export type DatabasesListMetricsResponse = MetricListResult; -/** - * Defines values for PrincipalType. \ - * {@link KnownPrincipalType} can be used interchangeably with PrincipalType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Group** \ - * **Application** - */ -export type PrincipalType = string; +/** Optional parameters. */ +export interface DatabasesListMetricDefinitionsOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link DatabaseIdentityType} that the service accepts. */ -export enum KnownDatabaseIdentityType { - None = "None", - UserAssigned = "UserAssigned" +/** Contains response data for the listMetricDefinitions operation. */ +export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; + +/** Optional parameters. */ +export interface DatabasesListByServerOptionalParams + extends coreClient.OperationOptions { + skipToken?: string; } -/** - * Defines values for DatabaseIdentityType. \ - * {@link KnownDatabaseIdentityType} can be used interchangeably with DatabaseIdentityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **UserAssigned** - */ -export type DatabaseIdentityType = string; +/** Contains response data for the listByServer operation. */ +export type DatabasesListByServerResponse = DatabaseListResult; -/** Known values of {@link CreateMode} that the service accepts. */ -export enum KnownCreateMode { - Default = "Default", - Copy = "Copy", - Secondary = "Secondary", - PointInTimeRestore = "PointInTimeRestore", - Restore = "Restore", - Recovery = "Recovery", - RestoreExternalBackup = "RestoreExternalBackup", - RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary", - RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup", - OnlineSecondary = "OnlineSecondary" -} +/** Optional parameters. */ +export interface DatabasesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for CreateMode. \ - * {@link KnownCreateMode} can be used interchangeably with CreateMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** \ - * **Copy** \ - * **Secondary** \ - * **PointInTimeRestore** \ - * **Restore** \ - * **Recovery** \ - * **RestoreExternalBackup** \ - * **RestoreExternalBackupSecondary** \ - * **RestoreLongTermRetentionBackup** \ - * **OnlineSecondary** - */ -export type CreateMode = string; +/** Contains response data for the get operation. */ +export type DatabasesGetResponse = Database; -/** Known values of {@link SampleName} that the service accepts. */ -export enum KnownSampleName { - AdventureWorksLT = "AdventureWorksLT", - WideWorldImportersStd = "WideWorldImportersStd", - WideWorldImportersFull = "WideWorldImportersFull" +/** Optional parameters. */ +export interface DatabasesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for SampleName. \ - * {@link KnownSampleName} can be used interchangeably with SampleName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AdventureWorksLT** \ - * **WideWorldImportersStd** \ - * **WideWorldImportersFull** - */ -export type SampleName = string; +/** Contains response data for the createOrUpdate operation. */ +export type DatabasesCreateOrUpdateResponse = Database; -/** Known values of {@link DatabaseStatus} that the service accepts. */ -export enum KnownDatabaseStatus { - Online = "Online", - Restoring = "Restoring", - RecoveryPending = "RecoveryPending", - Recovering = "Recovering", - Suspect = "Suspect", - Offline = "Offline", - Standby = "Standby", - Shutdown = "Shutdown", - EmergencyMode = "EmergencyMode", - AutoClosed = "AutoClosed", - Copying = "Copying", - Creating = "Creating", - Inaccessible = "Inaccessible", - OfflineSecondary = "OfflineSecondary", - Pausing = "Pausing", - Paused = "Paused", - Resuming = "Resuming", - Scaling = "Scaling", - OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers", - OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers", - Disabled = "Disabled", - Stopping = "Stopping", - Stopped = "Stopped", - Starting = "Starting" +/** Optional parameters. */ +export interface DatabasesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for DatabaseStatus. \ - * {@link KnownDatabaseStatus} can be used interchangeably with DatabaseStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Online** \ - * **Restoring** \ - * **RecoveryPending** \ - * **Recovering** \ - * **Suspect** \ - * **Offline** \ - * **Standby** \ - * **Shutdown** \ - * **EmergencyMode** \ - * **AutoClosed** \ - * **Copying** \ - * **Creating** \ - * **Inaccessible** \ - * **OfflineSecondary** \ - * **Pausing** \ - * **Paused** \ - * **Resuming** \ - * **Scaling** \ - * **OfflineChangingDwPerformanceTiers** \ - * **OnlineChangingDwPerformanceTiers** \ - * **Disabled** \ - * **Stopping** \ - * **Stopped** \ - * **Starting** - */ -export type DatabaseStatus = string; - -/** Known values of {@link DatabaseLicenseType} that the service accepts. */ -export enum KnownDatabaseLicenseType { - LicenseIncluded = "LicenseIncluded", - BasePrice = "BasePrice" +/** Optional parameters. */ +export interface DatabasesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for DatabaseLicenseType. \ - * {@link KnownDatabaseLicenseType} can be used interchangeably with DatabaseLicenseType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **LicenseIncluded** \ - * **BasePrice** - */ -export type DatabaseLicenseType = string; +/** Contains response data for the update operation. */ +export type DatabasesUpdateResponse = Database; -/** Known values of {@link DatabaseReadScale} that the service accepts. */ -export enum KnownDatabaseReadScale { - Enabled = "Enabled", - Disabled = "Disabled" +/** Optional parameters. */ +export interface DatabasesExportOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for DatabaseReadScale. \ - * {@link KnownDatabaseReadScale} can be used interchangeably with DatabaseReadScale, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type DatabaseReadScale = string; +/** Contains response data for the export operation. */ +export type DatabasesExportResponse = ImportExportOperationResult; -/** Known values of {@link SecondaryType} that the service accepts. */ -export enum KnownSecondaryType { - Geo = "Geo", - Named = "Named" +/** Optional parameters. */ +export interface DatabasesFailoverOptionalParams + extends coreClient.OperationOptions { + /** The type of replica to be failed over. */ + replicaType?: ReplicaType; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for SecondaryType. \ - * {@link KnownSecondaryType} can be used interchangeably with SecondaryType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Geo** \ - * **Named** - */ -export type SecondaryType = string; +/** 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; +} -/** Known values of {@link BackupStorageRedundancy} that the service accepts. */ -export enum KnownBackupStorageRedundancy { - Geo = "Geo", - Local = "Local", - Zone = "Zone", - GeoZone = "GeoZone" +/** Contains response data for the import operation. */ +export type DatabasesImportResponse = ImportExportOperationResult; + +/** Optional parameters. */ +export interface DatabasesRenameOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatabasesPauseOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for BackupStorageRedundancy. \ - * {@link KnownBackupStorageRedundancy} can be used interchangeably with BackupStorageRedundancy, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Geo** \ - * **Local** \ - * **Zone** \ - * **GeoZone** - */ -export type BackupStorageRedundancy = string; +/** Contains response data for the pause operation. */ +export type DatabasesPauseResponse = Database; -/** Known values of {@link ReplicaType} that the service accepts. */ -export enum KnownReplicaType { - Primary = "Primary", - ReadableSecondary = "ReadableSecondary" +/** Optional parameters. */ +export interface DatabasesResumeOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for ReplicaType. \ - * {@link KnownReplicaType} can be used interchangeably with ReplicaType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Primary** \ - * **ReadableSecondary** - */ -export type ReplicaType = string; +/** Contains response data for the resume operation. */ +export type DatabasesResumeResponse = Database; -/** Known values of {@link DatabaseState} that the service accepts. */ -export enum KnownDatabaseState { - All = "All", - Live = "Live", - Deleted = "Deleted" +/** Optional parameters. */ +export interface DatabasesUpgradeDataWarehouseOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for DatabaseState. \ - * {@link KnownDatabaseState} can be used interchangeably with DatabaseState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **All** \ - * **Live** \ - * **Deleted** - */ -export type DatabaseState = string; +/** Optional parameters. */ +export interface DatabasesListByElasticPoolOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ManagedInstancePropertiesProvisioningState} that the service accepts. */ -export enum KnownManagedInstancePropertiesProvisioningState { - Creating = "Creating", - Deleting = "Deleting", - Updating = "Updating", - Unknown = "Unknown", - Succeeded = "Succeeded", - Failed = "Failed", - Accepted = "Accepted", - Created = "Created", - Deleted = "Deleted", - Unrecognized = "Unrecognized", - Running = "Running", - Canceled = "Canceled", - NotSpecified = "NotSpecified", - Registering = "Registering", - TimedOut = "TimedOut" +/** Contains response data for the listByElasticPool operation. */ +export type DatabasesListByElasticPoolResponse = DatabaseListResult; + +/** Optional parameters. */ +export interface DatabasesListInaccessibleByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listInaccessibleByServer operation. */ +export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; + +/** Optional parameters. */ +export interface DatabasesListByServerNextOptionalParams + extends coreClient.OperationOptions { + skipToken?: string; } -/** - * Defines values for ManagedInstancePropertiesProvisioningState. \ - * {@link KnownManagedInstancePropertiesProvisioningState} can be used interchangeably with ManagedInstancePropertiesProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Deleting** \ - * **Updating** \ - * **Unknown** \ - * **Succeeded** \ - * **Failed** \ - * **Accepted** \ - * **Created** \ - * **Deleted** \ - * **Unrecognized** \ - * **Running** \ - * **Canceled** \ - * **NotSpecified** \ - * **Registering** \ - * **TimedOut** - */ -export type ManagedInstancePropertiesProvisioningState = string; +/** Contains response data for the listByServerNext operation. */ +export type DatabasesListByServerNextResponse = DatabaseListResult; + +/** Optional parameters. */ +export interface DatabasesListByElasticPoolNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByElasticPoolNext operation. */ +export type DatabasesListByElasticPoolNextResponse = DatabaseListResult; + +/** Optional parameters. */ +export interface DatabasesListInaccessibleByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listInaccessibleByServerNext operation. */ +export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; -/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ -export enum KnownManagedServerCreateMode { - Default = "Default", - PointInTimeRestore = "PointInTimeRestore" -} +/** Optional parameters. */ +export interface ElasticPoolsListMetricsOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ManagedServerCreateMode. \ - * {@link KnownManagedServerCreateMode} can be used interchangeably with ManagedServerCreateMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** \ - * **PointInTimeRestore** - */ -export type ManagedServerCreateMode = string; +/** Contains response data for the listMetrics operation. */ +export type ElasticPoolsListMetricsResponse = MetricListResult; -/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ -export enum KnownManagedInstanceLicenseType { - LicenseIncluded = "LicenseIncluded", - BasePrice = "BasePrice" -} +/** Optional parameters. */ +export interface ElasticPoolsListMetricDefinitionsOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ManagedInstanceLicenseType. \ - * {@link KnownManagedInstanceLicenseType} can be used interchangeably with ManagedInstanceLicenseType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **LicenseIncluded** \ - * **BasePrice** - */ -export type ManagedInstanceLicenseType = string; +/** Contains response data for the listMetricDefinitions operation. */ +export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult; -/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ -export enum KnownManagedInstanceProxyOverride { - Proxy = "Proxy", - Redirect = "Redirect", - Default = "Default" +/** Optional parameters. */ +export interface ElasticPoolsListByServerOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; } -/** - * Defines values for ManagedInstanceProxyOverride. \ - * {@link KnownManagedInstanceProxyOverride} can be used interchangeably with ManagedInstanceProxyOverride, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Proxy** \ - * **Redirect** \ - * **Default** - */ -export type ManagedInstanceProxyOverride = string; +/** Contains response data for the listByServer operation. */ +export type ElasticPoolsListByServerResponse = ElasticPoolListResult; -/** Known values of {@link ServicePrincipalType} that the service accepts. */ -export enum KnownServicePrincipalType { - None = "None", - SystemAssigned = "SystemAssigned" -} +/** Optional parameters. */ +export interface ElasticPoolsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ServicePrincipalType. \ - * {@link KnownServicePrincipalType} can be used interchangeably with ServicePrincipalType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **SystemAssigned** - */ -export type ServicePrincipalType = string; +/** Contains response data for the get operation. */ +export type ElasticPoolsGetResponse = ElasticPool; -/** Known values of {@link AggregationFunctionType} that the service accepts. */ -export enum KnownAggregationFunctionType { - Avg = "avg", - Min = "min", - Max = "max", - Stdev = "stdev", - Sum = "sum" +/** Optional parameters. */ +export interface ElasticPoolsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for AggregationFunctionType. \ - * {@link KnownAggregationFunctionType} can be used interchangeably with AggregationFunctionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **avg** \ - * **min** \ - * **max** \ - * **stdev** \ - * **sum** - */ -export type AggregationFunctionType = string; +/** Contains response data for the createOrUpdate operation. */ +export type ElasticPoolsCreateOrUpdateResponse = ElasticPool; -/** Known values of {@link MetricType} that the service accepts. */ -export enum KnownMetricType { - Cpu = "cpu", - Io = "io", - LogIo = "logIo", - Duration = "duration", - Dtu = "dtu" +/** Optional parameters. */ +export interface ElasticPoolsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for MetricType. \ - * {@link KnownMetricType} can be used interchangeably with MetricType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **cpu** \ - * **io** \ - * **logIo** \ - * **duration** \ - * **dtu** - */ -export type MetricType = string; - -/** Known values of {@link ConnectionPolicyName} that the service accepts. */ -export enum KnownConnectionPolicyName { - Default = "default" +/** Optional parameters. */ +export interface ElasticPoolsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for ConnectionPolicyName. \ - * {@link KnownConnectionPolicyName} can be used interchangeably with ConnectionPolicyName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **default** - */ -export type ConnectionPolicyName = string; +/** Contains response data for the update operation. */ +export type ElasticPoolsUpdateResponse = ElasticPool; -/** Known values of {@link ServerConnectionType} that the service accepts. */ -export enum KnownServerConnectionType { - Default = "Default", - Redirect = "Redirect", - Proxy = "Proxy" +/** Optional parameters. */ +export interface ElasticPoolsFailoverOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for ServerConnectionType. \ - * {@link KnownServerConnectionType} can be used interchangeably with ServerConnectionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** \ - * **Redirect** \ - * **Proxy** - */ -export type ServerConnectionType = string; +/** Optional parameters. */ +export interface ElasticPoolsListByServerNextOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; +} -/** Known values of {@link ServiceObjectiveName} that the service accepts. */ -export enum KnownServiceObjectiveName { - System = "System", - System0 = "System0", - System1 = "System1", - System2 = "System2", - System3 = "System3", - System4 = "System4", - System2L = "System2L", - System3L = "System3L", - System4L = "System4L", - Free = "Free", - Basic = "Basic", - S0 = "S0", - S1 = "S1", - S2 = "S2", - S3 = "S3", - S4 = "S4", - S6 = "S6", - S7 = "S7", - S9 = "S9", - S12 = "S12", - P1 = "P1", - P2 = "P2", - P3 = "P3", - P4 = "P4", - P6 = "P6", - P11 = "P11", - P15 = "P15", - PRS1 = "PRS1", - PRS2 = "PRS2", - PRS4 = "PRS4", - PRS6 = "PRS6", - DW100 = "DW100", - DW200 = "DW200", - DW300 = "DW300", - DW400 = "DW400", - DW500 = "DW500", - DW600 = "DW600", - DW1000 = "DW1000", - DW1200 = "DW1200", - DW1000C = "DW1000c", - DW1500 = "DW1500", - DW1500C = "DW1500c", - DW2000 = "DW2000", - DW2000C = "DW2000c", - DW3000 = "DW3000", - DW2500C = "DW2500c", - DW3000C = "DW3000c", - DW6000 = "DW6000", - DW5000C = "DW5000c", - DW6000C = "DW6000c", - DW7500C = "DW7500c", - DW10000C = "DW10000c", - DW15000C = "DW15000c", - DW30000C = "DW30000c", - DS100 = "DS100", - DS200 = "DS200", - DS300 = "DS300", - DS400 = "DS400", - DS500 = "DS500", - DS600 = "DS600", - DS1000 = "DS1000", - DS1200 = "DS1200", - DS1500 = "DS1500", - DS2000 = "DS2000", - ElasticPool = "ElasticPool" +/** Contains response data for the listByServerNext operation. */ +export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; + +/** Optional parameters. */ +export interface ReplicationLinksDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ReplicationLinksFailoverOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for ServiceObjectiveName. \ - * {@link KnownServiceObjectiveName} can be used interchangeably with ServiceObjectiveName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **System** \ - * **System0** \ - * **System1** \ - * **System2** \ - * **System3** \ - * **System4** \ - * **System2L** \ - * **System3L** \ - * **System4L** \ - * **Free** \ - * **Basic** \ - * **S0** \ - * **S1** \ - * **S2** \ - * **S3** \ - * **S4** \ - * **S6** \ - * **S7** \ - * **S9** \ - * **S12** \ - * **P1** \ - * **P2** \ - * **P3** \ - * **P4** \ - * **P6** \ - * **P11** \ - * **P15** \ - * **PRS1** \ - * **PRS2** \ - * **PRS4** \ - * **PRS6** \ - * **DW100** \ - * **DW200** \ - * **DW300** \ - * **DW400** \ - * **DW500** \ - * **DW600** \ - * **DW1000** \ - * **DW1200** \ - * **DW1000c** \ - * **DW1500** \ - * **DW1500c** \ - * **DW2000** \ - * **DW2000c** \ - * **DW3000** \ - * **DW2500c** \ - * **DW3000c** \ - * **DW6000** \ - * **DW5000c** \ - * **DW6000c** \ - * **DW7500c** \ - * **DW10000c** \ - * **DW15000c** \ - * **DW30000c** \ - * **DS100** \ - * **DS200** \ - * **DS300** \ - * **DS400** \ - * **DS500** \ - * **DS600** \ - * **DS1000** \ - * **DS1200** \ - * **DS1500** \ - * **DS2000** \ - * **ElasticPool** - */ -export type ServiceObjectiveName = string; -/** Defines values for DataMaskingState. */ -export type DataMaskingState = "Disabled" | "Enabled"; -/** Defines values for DataMaskingRuleState. */ -export type DataMaskingRuleState = "Disabled" | "Enabled"; -/** Defines values for DataMaskingFunction. */ -export type DataMaskingFunction = - | "Default" - | "CCN" - | "Email" - | "Number" - | "SSN" - | "Text"; -/** Defines values for GeoBackupPolicyState. */ -export type GeoBackupPolicyState = "Disabled" | "Enabled"; -/** Defines values for BlobAuditingPolicyState. */ -export type BlobAuditingPolicyState = "Enabled" | "Disabled"; -/** Defines values for AdvisorStatus. */ -export type AdvisorStatus = - | "GA" - | "PublicPreview" - | "LimitedPublicPreview" - | "PrivatePreview"; -/** Defines values for AutoExecuteStatus. */ -export type AutoExecuteStatus = "Enabled" | "Disabled" | "Default"; -/** Defines values for AutoExecuteStatusInheritedFrom. */ -export type AutoExecuteStatusInheritedFrom = - | "Default" - | "Subscription" - | "Server" - | "ElasticPool" - | "Database"; -/** Defines values for RecommendedActionInitiatedBy. */ -export type RecommendedActionInitiatedBy = "User" | "System"; -/** Defines values for ImplementationMethod. */ -export type ImplementationMethod = "TSql" | "AzurePowerShell"; -/** Defines values for IsRetryable. */ -export type IsRetryable = "Yes" | "No"; -/** Defines values for AutomaticTuningMode. */ -export type AutomaticTuningMode = "Inherit" | "Custom" | "Auto" | "Unspecified"; -/** Defines values for AutomaticTuningOptionModeDesired. */ -export type AutomaticTuningOptionModeDesired = "Off" | "On" | "Default"; -/** Defines values for AutomaticTuningOptionModeActual. */ -export type AutomaticTuningOptionModeActual = "Off" | "On"; -/** Defines values for AutomaticTuningDisabledReason. */ -export type AutomaticTuningDisabledReason = - | "Default" - | "Disabled" - | "AutoConfigured" - | "InheritedFromServer" - | "QueryStoreOff" - | "QueryStoreReadOnly" - | "NotSupported"; -/** Defines values for SecurityAlertsPolicyState. */ -export type SecurityAlertsPolicyState = "Enabled" | "Disabled"; -/** Defines values for VulnerabilityAssessmentPolicyBaselineName. */ -export type VulnerabilityAssessmentPolicyBaselineName = "master" | "default"; -/** Defines values for JobScheduleType. */ -export type JobScheduleType = "Once" | "Recurring"; -/** Defines values for JobTargetGroupMembershipType. */ -export type JobTargetGroupMembershipType = "Include" | "Exclude"; -/** Defines values for CapabilityStatus. */ -export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled"; -/** Defines values for SecurityAlertPolicyState. */ -export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; -/** Defines values for SecurityEventType. */ -export type SecurityEventType = - | "Undefined" - | "SqlInjectionVulnerability" - | "SqlInjectionExploit"; -/** Defines values for SensitivityLabelSource. */ -export type SensitivityLabelSource = "current" | "recommended"; -/** Defines values for SensitivityLabelRank. */ -export type SensitivityLabelRank = - | "None" - | "Low" - | "Medium" - | "High" - | "Critical"; -/** Defines values for SensitivityLabelUpdateKind. */ -export type SensitivityLabelUpdateKind = "set" | "remove"; -/** Defines values for RecommendedSensitivityLabelUpdateKind. */ -export type RecommendedSensitivityLabelUpdateKind = "enable" | "disable"; -/** Defines values for TransparentDataEncryptionState. */ -export type TransparentDataEncryptionState = "Enabled" | "Disabled"; -/** Defines values for RestorePointType. */ -export type RestorePointType = "CONTINUOUS" | "DISCRETE"; -/** Defines values for AutomaticTuningServerMode. */ -export type AutomaticTuningServerMode = "Custom" | "Auto" | "Unspecified"; -/** Defines values for AutomaticTuningServerReason. */ -export type AutomaticTuningServerReason = - | "Default" - | "Disabled" - | "AutoConfigured"; -/** Defines values for LedgerDigestUploadsState. */ -export type LedgerDigestUploadsState = "Enabled" | "Disabled"; -/** Defines values for ReplicationRole. */ -export type ReplicationRole = - | "Primary" - | "Secondary" - | "NonReadableSecondary" - | "Source" - | "Copy"; -/** Defines values for CheckNameAvailabilityReason. */ -export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists"; +/** Optional parameters. */ +export interface ReplicationLinksFailoverAllowDataLossOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ReplicationLinksUnlinkOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ReplicationLinksListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; + +/** Optional parameters. */ +export interface ReplicationLinksGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ReplicationLinksGetResponse = ReplicationLink; + +/** Optional parameters. */ +export interface ReplicationLinksListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; + +/** Optional parameters. */ +export interface ReplicationLinksListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; + +/** Optional parameters. */ +export interface ReplicationLinksListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; + +/** Optional parameters. */ +export interface ServerCommunicationLinksDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ServerCommunicationLinksGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ServerCommunicationLinksGetResponse = ServerCommunicationLink; + +/** Optional parameters. */ +export interface ServerCommunicationLinksCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; /** Optional parameters. */ -export interface RecoverableDatabasesGetOptionalParams +export interface ServerCommunicationLinksListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; + +/** Optional parameters. */ +export interface ServiceObjectivesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RecoverableDatabasesGetResponse = RecoverableDatabase; +export type ServiceObjectivesGetResponse = ServiceObjective; /** Optional parameters. */ -export interface RecoverableDatabasesListByServerOptionalParams +export interface ServiceObjectivesListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; +export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; /** Optional parameters. */ -export interface DataMaskingPoliciesCreateOrUpdateOptionalParams +export interface ElasticPoolActivitiesListByElasticPoolOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; +/** Contains response data for the listByElasticPool operation. */ +export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; /** Optional parameters. */ -export interface DataMaskingPoliciesGetOptionalParams +export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; +/** Contains response data for the listByElasticPool operation. */ +export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; /** Optional parameters. */ -export interface DataMaskingRulesCreateOrUpdateOptionalParams +export interface ServerUsagesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; +/** Contains response data for the listByServer operation. */ +export type ServerUsagesListByServerResponse = ServerUsageListResult; /** Optional parameters. */ -export interface DataMaskingRulesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +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 DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; +export type DatabaseAdvisorsListByDatabaseResponse = Advisor[]; /** Optional parameters. */ -export interface GeoBackupPoliciesCreateOrUpdateOptionalParams +export interface DatabaseAdvisorsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; +/** Contains response data for the get operation. */ +export type DatabaseAdvisorsGetResponse = Advisor; /** Optional parameters. */ -export interface GeoBackupPoliciesGetOptionalParams +export interface DatabaseAdvisorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; +/** Contains response data for the update operation. */ +export type DatabaseAdvisorsUpdateResponse = Advisor; /** Optional parameters. */ -export interface GeoBackupPoliciesListByDatabaseOptionalParams +export interface DatabaseAutomaticTuningGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; +/** Contains response data for the get operation. */ +export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning; /** Optional parameters. */ -export interface DatabasesListMetricsOptionalParams +export interface DatabaseAutomaticTuningUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type DatabasesListMetricsResponse = MetricListResult; +/** Contains response data for the update operation. */ +export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning; /** Optional parameters. */ -export interface DatabasesListMetricDefinitionsOptionalParams - extends coreClient.OperationOptions {} +export interface DatabaseColumnsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Array of Get3ItemsItem */ + schema?: string[]; + /** Array of Get4ItemsItem */ + table?: string[]; + /** Array of Get5ItemsItem */ + column?: string[]; + /** Array of Get6ItemsItem */ + orderBy?: string[]; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; +} -/** Contains response data for the listMetricDefinitions operation. */ -export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface DatabasesListByServerOptionalParams +export interface DatabaseColumnsListByTableOptionalParams extends coreClient.OperationOptions { - skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the listByServer operation. */ -export type DatabasesListByServerResponse = DatabaseListResult; +/** Contains response data for the listByTable operation. */ +export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface DatabasesGetOptionalParams +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 +export interface DatabaseColumnsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait 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 DatabasesCreateOrUpdateResponse = Database; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface DatabasesDeleteOptionalParams +export interface DatabaseColumnsListByTableNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait 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 listByTableNext operation. */ +export type DatabaseColumnsListByTableNextResponse = 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; -} +export interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabasesUpdateResponse = Database; +/** Contains response data for the listByDatabaseAdvisor operation. */ +export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; /** Optional parameters. */ -export interface DatabasesListByElasticPoolOptionalParams +export interface DatabaseRecommendedActionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type DatabasesListByElasticPoolResponse = DatabaseListResult; +/** Contains response data for the get operation. */ +export type DatabaseRecommendedActionsGetResponse = RecommendedAction; /** Optional parameters. */ -export interface DatabasesFailoverOptionalParams +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 { - /** 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; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } +/** Contains response data for the listByDatabase operation. */ +export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; + /** Optional parameters. */ -export interface DatabasesListInaccessibleByServerOptionalParams +export interface DatabaseSchemasGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByServer operation. */ -export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; +/** Contains response data for the get operation. */ +export type DatabaseSchemasGetResponse = DatabaseSchema; /** Optional parameters. */ -export interface DatabasesPauseOptionalParams +export interface DatabaseSchemasListByDatabaseNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait 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 listByDatabaseNext operation. */ +export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface DatabasesResumeOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatabaseSecurityAlertPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the resume operation. */ -export type DatabasesResumeResponse = Database; +/** Contains response data for the get operation. */ +export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; /** 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 DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface DatabasesRenameOptionalParams +export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabase operation. */ +export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; + /** 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 DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the import operation. */ -export type DatabasesImportResponse = ImportExportOperationResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; /** Optional parameters. */ -export interface DatabasesExportOptionalParams +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 export operation. */ -export type DatabasesExportResponse = ImportExportOperationResult; +/** Contains response data for the listBySchema operation. */ +export type DatabaseTablesListBySchemaResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface DatabasesListByServerNextOptionalParams +export interface DatabaseTablesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseTablesGetResponse = DatabaseTable; + +/** Optional parameters. */ +export interface DatabaseTablesListBySchemaNextOptionalParams extends coreClient.OperationOptions { - skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the listByServerNext operation. */ -export type DatabasesListByServerNextResponse = DatabaseListResult; +/** Contains response data for the listBySchemaNext operation. */ +export type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface DatabasesListByElasticPoolNextOptionalParams +export interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPoolNext operation. */ -export type DatabasesListByElasticPoolNextResponse = DatabaseListResult; +/** Contains response data for the get operation. */ +export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface DatabasesListInaccessibleByServerNextOptionalParams +export interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByServerNext operation. */ -export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface ElasticPoolsListMetricsOptionalParams +export interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type ElasticPoolsListMetricsResponse = MetricListResult; - /** Optional parameters. */ -export interface ElasticPoolsListMetricDefinitionsOptionalParams +export interface DatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetricDefinitions operation. */ -export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult; +/** Contains response data for the get operation. */ +export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface ElasticPoolsListByServerOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; -} +export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ElasticPoolsListByServerResponse = ElasticPoolListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface ElasticPoolsGetOptionalParams +export interface DatabaseVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ElasticPoolsGetResponse = ElasticPool; - /** 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; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ElasticPoolsCreateOrUpdateResponse = ElasticPool; +export interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ElasticPoolsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the listByDatabase operation. */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; /** 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 DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ElasticPoolsUpdateResponse = ElasticPool; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ElasticPoolsFailoverOptionalParams +export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9901,94 +10440,77 @@ export interface ElasticPoolsFailoverOptionalParams } /** Optional parameters. */ -export interface ElasticPoolsListByServerNextOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; -} +export interface DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface ReplicationLinksDeleteOptionalParams +export interface DatabaseVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ReplicationLinksFailoverOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the get operation. */ +export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface ReplicationLinksFailoverAllowDataLossOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatabaseVulnerabilityAssessmentScansExportOptionalParams + extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ReplicationLinksUnlinkOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the export operation. */ +export type DatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ -export interface ReplicationLinksListByDatabaseOptionalParams +export interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface ReplicationLinksGetOptionalParams +export interface DataWarehouseUserActivitiesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ReplicationLinksGetResponse = ReplicationLink; +export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; /** Optional parameters. */ -export interface ReplicationLinksListByServerOptionalParams +export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; +/** Contains response data for the listByDatabase operation. */ +export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; /** Optional parameters. */ -export interface ReplicationLinksListByDatabaseNextOptionalParams +export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; +export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; /** Optional parameters. */ -export interface ReplicationLinksListByServerNextOptionalParams +export interface DeletedServersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; +/** Contains response data for the list operation. */ +export type DeletedServersListResponse = DeletedServerListResult; /** Optional parameters. */ -export interface ServerCommunicationLinksDeleteOptionalParams +export interface DeletedServersGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type DeletedServersGetResponse = DeletedServer; + /** Optional parameters. */ -export interface ServerCommunicationLinksGetOptionalParams +export interface DeletedServersListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerCommunicationLinksGetResponse = ServerCommunicationLink; +/** Contains response data for the listByLocation operation. */ +export type DeletedServersListByLocationResponse = DeletedServerListResult; /** Optional parameters. */ -export interface ServerCommunicationLinksCreateOrUpdateOptionalParams +export interface DeletedServersRecoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9996,88 +10518,113 @@ export interface ServerCommunicationLinksCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; +/** Contains response data for the recover operation. */ +export type DeletedServersRecoverResponse = DeletedServer; /** Optional parameters. */ -export interface ServerCommunicationLinksListByServerOptionalParams +export interface DeletedServersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; +/** Contains response data for the listNext operation. */ +export type DeletedServersListNextResponse = DeletedServerListResult; /** Optional parameters. */ -export interface ServiceObjectivesGetOptionalParams +export interface DeletedServersListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServiceObjectivesGetResponse = ServiceObjective; +/** Contains response data for the listByLocationNext operation. */ +export type DeletedServersListByLocationNextResponse = DeletedServerListResult; /** Optional parameters. */ -export interface ServiceObjectivesListByServerOptionalParams +export interface ElasticPoolOperationsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; - /** Optional parameters. */ -export interface ElasticPoolActivitiesListByElasticPoolOptionalParams +export interface ElasticPoolOperationsListByElasticPoolOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; +export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; /** Optional parameters. */ -export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams +export interface ElasticPoolOperationsListByElasticPoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; +/** Contains response data for the listByElasticPoolNext operation. */ +export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; /** Optional parameters. */ -export interface ServerUsagesListByServerOptionalParams +export interface EncryptionProtectorsListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ServerUsagesListByServerResponse = ServerUsageListResult; +export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams +export interface EncryptionProtectorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; +export type EncryptionProtectorsGetResponse = EncryptionProtector; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface EncryptionProtectorsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; +export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +export interface EncryptionProtectorsRevalidateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface EncryptionProtectorsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByServerNext operation. */ +export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams +export interface FailoverGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; +export type FailoverGroupsGetResponse = FailoverGroup; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface FailoverGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup; + +/** Optional parameters. */ +export interface FailoverGroupsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface FailoverGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10085,32 +10632,18 @@ export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; +/** Contains response data for the update operation. */ +export type FailoverGroupsUpdateResponse = FailoverGroup; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams +export interface FailoverGroupsListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; - -/** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; - -/** Optional parameters. */ -export interface ServerBlobAuditingPoliciesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; +export type FailoverGroupsListByServerResponse = FailoverGroupListResult; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface FailoverGroupsFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10118,307 +10651,217 @@ export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; +/** Contains response data for the failover operation. */ +export type FailoverGroupsFailoverResponse = FailoverGroup; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerOptionalParams - extends coreClient.OperationOptions {} +export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByServer operation. */ -export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; +/** Contains response data for the forceFailoverAllowDataLoss operation. */ +export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams +export interface FailoverGroupsListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; +export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesGetOptionalParams +export interface FirewallRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; +export type FirewallRulesGetResponse = FirewallRule; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; +export type FirewallRulesCreateOrUpdateResponse = FirewallRule; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams +export interface FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; - /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; - -/** 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[]; +/** Contains response data for the listByServer operation. */ +export type FirewallRulesListByServerResponse = FirewallRuleListResult; /** Optional parameters. */ -export interface DatabaseAdvisorsGetOptionalParams +export interface FirewallRulesReplaceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseAdvisorsGetResponse = Advisor; +/** Contains response data for the replace operation. */ +export type FirewallRulesReplaceResponse = FirewallRule; /** Optional parameters. */ -export interface DatabaseAdvisorsUpdateOptionalParams +export interface FirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseAdvisorsUpdateResponse = Advisor; +/** Contains response data for the listByServerNext operation. */ +export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; /** Optional parameters. */ -export interface DatabaseAutomaticTuningGetOptionalParams +export interface InstanceFailoverGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning; - -/** Optional parameters. */ -export interface DatabaseAutomaticTuningUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning; +export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface DatabaseColumnsListByDatabaseOptionalParams +export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Array of Get3ItemsItem */ - schema?: string[]; - /** Array of Get4ItemsItem */ - table?: string[]; - /** Array of Get5ItemsItem */ - column?: string[]; - /** Array of Get6ItemsItem */ - orderBy?: string[]; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByDatabase operation. */ -export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; +/** Contains response data for the createOrUpdate operation. */ +export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface DatabaseColumnsListByTableOptionalParams +export interface InstanceFailoverGroupsDeleteOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByTable operation. */ -export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; - /** Optional parameters. */ -export interface DatabaseColumnsGetOptionalParams +export interface InstanceFailoverGroupsListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseColumnsGetResponse = DatabaseColumn; +/** Contains response data for the listByLocation operation. */ +export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; /** Optional parameters. */ -export interface DatabaseColumnsListByDatabaseNextOptionalParams +export interface InstanceFailoverGroupsFailoverOptionalParams extends coreClient.OperationOptions { - /** Array of Get3ItemsItem */ - schema?: string[]; - /** Array of Get4ItemsItem */ - table?: string[]; - /** Array of Get5ItemsItem */ - column?: string[]; - /** Array of Get6ItemsItem */ - orderBy?: string[]; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Contains response data for the failover operation. */ +export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface DatabaseColumnsListByTableNextOptionalParams +export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByTableNext operation. */ -export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; - -/** 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; +/** Contains response data for the forceFailoverAllowDataLoss operation. */ +export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface DatabaseRecommendedActionsUpdateOptionalParams +export interface InstanceFailoverGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseRecommendedActionsUpdateResponse = RecommendedAction; - -/** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +/** Contains response data for the listByLocationNext operation. */ +export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; /** Optional parameters. */ -export interface DatabaseSchemasGetOptionalParams +export interface InstancePoolsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSchemasGetResponse = DatabaseSchema; +export type InstancePoolsGetResponse = InstancePool; /** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseNextOptionalParams +export interface InstancePoolsCreateOrUpdateOptionalParams 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 listByDatabaseNext operation. */ -export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; - -/** 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 DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; - -/** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; +export type InstancePoolsCreateOrUpdateResponse = InstancePool; /** Optional parameters. */ -export interface DatabaseTablesListBySchemaOptionalParams +export interface InstancePoolsDeleteOptionalParams extends coreClient.OperationOptions { - /** 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 DatabaseTablesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DatabaseTablesGetResponse = DatabaseTable; + /** Delay to wait 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 DatabaseTablesListBySchemaNextOptionalParams +export interface InstancePoolsUpdateOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listBySchemaNext operation. */ -export type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; +/** Contains response data for the update operation. */ +export type InstancePoolsUpdateResponse = InstancePool; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams +export interface InstancePoolsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listByResourceGroup operation. */ +export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams +export interface InstancePoolsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; - -/** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type InstancePoolsListResponse = InstancePoolListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsGetOptionalParams +export interface InstancePoolsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +/** Contains response data for the listByResourceGroupNext operation. */ +export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface InstancePoolsListNextOptionalParams 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 listNext operation. */ +export type InstancePoolsListNextResponse = InstancePoolListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams +export interface JobAgentsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the listByServer operation. */ +export type JobAgentsListByServerResponse = JobAgentListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams +export interface JobAgentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the get operation. */ +export type JobAgentsGetResponse = JobAgent; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams +export interface JobAgentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10426,78 +10869,97 @@ export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type JobAgentsCreateOrUpdateResponse = JobAgent; -/** Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; +/** Optional parameters. */ +export interface JobAgentsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansGetOptionalParams - extends coreClient.OperationOptions {} +export interface JobAgentsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; +/** Contains response data for the update operation. */ +export type JobAgentsUpdateResponse = JobAgent; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansExportOptionalParams +export interface JobAgentsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the export operation. */ -export type DatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; +/** Contains response data for the listByServerNext operation. */ +export type JobAgentsListByServerNextResponse = JobAgentListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams +export interface JobCredentialsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByAgent operation. */ +export type JobCredentialsListByAgentResponse = JobCredentialListResult; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesGetOptionalParams +export interface JobCredentialsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; +export type JobCredentialsGetResponse = JobCredential; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams +export interface JobCredentialsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; +/** Contains response data for the createOrUpdate operation. */ +export type JobCredentialsCreateOrUpdateResponse = JobCredential; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams +export interface JobCredentialsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; - /** Optional parameters. */ -export interface DeletedServersListOptionalParams +export interface JobCredentialsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DeletedServersListResponse = DeletedServerListResult; +/** Contains response data for the listByAgentNext operation. */ +export type JobCredentialsListByAgentNextResponse = JobCredentialListResult; /** Optional parameters. */ -export interface DeletedServersGetOptionalParams - extends coreClient.OperationOptions {} +export interface JobExecutionsListByAgentOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; +} -/** Contains response data for the get operation. */ -export type DeletedServersGetResponse = DeletedServer; +/** Contains response data for the listByAgent operation. */ +export type JobExecutionsListByAgentResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DeletedServersListByLocationOptionalParams +export interface JobExecutionsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type DeletedServersListByLocationResponse = DeletedServerListResult; - /** Optional parameters. */ -export interface DeletedServersRecoverOptionalParams +export interface JobExecutionsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10505,57 +10967,40 @@ export interface DeletedServersRecoverOptionalParams resumeFrom?: string; } -/** Contains response data for the recover operation. */ -export type DeletedServersRecoverResponse = DeletedServer; - -/** Optional parameters. */ -export interface DeletedServersListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type DeletedServersListNextResponse = DeletedServerListResult; - -/** Optional parameters. */ -export interface DeletedServersListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type DeletedServersListByLocationNextResponse = DeletedServerListResult; - -/** Optional parameters. */ -export interface ElasticPoolOperationsCancelOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; - -/** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByElasticPoolNext operation. */ -export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; +/** Contains response data for the create operation. */ +export type JobExecutionsCreateResponse = JobExecution; /** Optional parameters. */ -export interface EncryptionProtectorsListByServerOptionalParams - extends coreClient.OperationOptions {} +export interface JobExecutionsListByJobOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; +} -/** Contains response data for the listByServer operation. */ -export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult; +/** Contains response data for the listByJob operation. */ +export type JobExecutionsListByJobResponse = JobExecutionListResult; /** Optional parameters. */ -export interface EncryptionProtectorsGetOptionalParams +export interface JobExecutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type EncryptionProtectorsGetResponse = EncryptionProtector; +export type JobExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface EncryptionProtectorsCreateOrUpdateOptionalParams +export interface JobExecutionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10564,237 +11009,353 @@ export interface EncryptionProtectorsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector; +export type JobExecutionsCreateOrUpdateResponse = JobExecution; /** Optional parameters. */ -export interface EncryptionProtectorsRevalidateOptionalParams +export interface JobExecutionsListByAgentNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; +} + +/** Contains response data for the listByAgentNext operation. */ +export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; + +/** Optional parameters. */ +export interface JobExecutionsListByJobNextOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } +/** Contains response data for the listByJobNext operation. */ +export type JobExecutionsListByJobNextResponse = JobExecutionListResult; + /** Optional parameters. */ -export interface EncryptionProtectorsListByServerNextOptionalParams +export interface JobsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult; +/** Contains response data for the listByAgent operation. */ +export type JobsListByAgentResponse = JobListResult; /** Optional parameters. */ -export interface FailoverGroupsGetOptionalParams - extends coreClient.OperationOptions {} +export interface JobsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type FailoverGroupsGetResponse = FailoverGroup; +export type JobsGetResponse = Job; /** Optional parameters. */ -export interface FailoverGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface JobsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup; +export type JobsCreateOrUpdateResponse = Job; /** Optional parameters. */ -export interface FailoverGroupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface FailoverGroupsUpdateOptionalParams +export interface JobsListByAgentNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAgentNext operation. */ +export type JobsListByAgentNextResponse = JobListResult; + +/** Optional parameters. */ +export interface JobStepExecutionsListByJobExecutionOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } -/** Contains response data for the update operation. */ -export type FailoverGroupsUpdateResponse = FailoverGroup; +/** Contains response data for the listByJobExecution operation. */ +export type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult; /** Optional parameters. */ -export interface FailoverGroupsListByServerOptionalParams +export interface JobStepExecutionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type FailoverGroupsListByServerResponse = FailoverGroupListResult; +/** Contains response data for the get operation. */ +export type JobStepExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface FailoverGroupsFailoverOptionalParams +export interface JobStepExecutionsListByJobExecutionNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } -/** Contains response data for the failover operation. */ -export type FailoverGroupsFailoverResponse = FailoverGroup; +/** Contains response data for the listByJobExecutionNext operation. */ +export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface JobStepsListByVersionOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the forceFailoverAllowDataLoss operation. */ -export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; +/** Contains response data for the listByVersion operation. */ +export type JobStepsListByVersionResponse = JobStepListResult; /** Optional parameters. */ -export interface FailoverGroupsListByServerNextOptionalParams +export interface JobStepsGetByVersionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; +/** Contains response data for the getByVersion operation. */ +export type JobStepsGetByVersionResponse = JobStep; /** Optional parameters. */ -export interface FirewallRulesGetOptionalParams +export interface JobStepsListByJobOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByJob operation. */ +export type JobStepsListByJobResponse = JobStepListResult; + +/** Optional parameters. */ +export interface JobStepsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type FirewallRulesGetResponse = FirewallRule; +export type JobStepsGetResponse = JobStep; /** Optional parameters. */ -export interface FirewallRulesCreateOrUpdateOptionalParams +export interface JobStepsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type FirewallRulesCreateOrUpdateResponse = FirewallRule; +export type JobStepsCreateOrUpdateResponse = JobStep; /** Optional parameters. */ -export interface FirewallRulesDeleteOptionalParams +export interface JobStepsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface FirewallRulesListByServerOptionalParams +export interface JobStepsListByVersionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type FirewallRulesListByServerResponse = FirewallRuleListResult; +/** Contains response data for the listByVersionNext operation. */ +export type JobStepsListByVersionNextResponse = JobStepListResult; /** Optional parameters. */ -export interface FirewallRulesReplaceOptionalParams +export interface JobStepsListByJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the replace operation. */ -export type FirewallRulesReplaceResponse = FirewallRule; +/** Contains response data for the listByJobNext operation. */ +export type JobStepsListByJobNextResponse = JobStepListResult; /** Optional parameters. */ -export interface FirewallRulesListByServerNextOptionalParams - extends coreClient.OperationOptions {} +export interface JobTargetExecutionsListByJobExecutionOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; +} -/** Contains response data for the listByServerNext operation. */ -export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; +/** Contains response data for the listByJobExecution operation. */ +export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsGetOptionalParams +export interface JobTargetExecutionsListByStepOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; +} + +/** Contains response data for the listByStep operation. */ +export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; + +/** Optional parameters. */ +export interface JobTargetExecutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; +export type JobTargetExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams +export interface JobTargetExecutionsListByJobExecutionNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; +/** Contains response data for the listByJobExecutionNext operation. */ +export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsDeleteOptionalParams +export interface JobTargetExecutionsListByStepNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } +/** Contains response data for the listByStepNext operation. */ +export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; + +/** Optional parameters. */ +export interface JobTargetGroupsListByAgentOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAgent operation. */ +export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; + +/** Optional parameters. */ +export interface JobTargetGroupsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type JobTargetGroupsGetResponse = JobTargetGroup; + /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationOptionalParams +export interface JobTargetGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; +/** Contains response data for the createOrUpdate operation. */ +export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; /** 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; +export interface JobTargetGroupsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface JobTargetGroupsListByAgentNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the forceFailoverAllowDataLoss operation. */ -export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; +/** Contains response data for the listByAgentNext operation. */ +export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationNextOptionalParams +export interface JobVersionsListByJobOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; +/** Contains response data for the listByJob operation. */ +export type JobVersionsListByJobResponse = JobVersionListResult; /** Optional parameters. */ -export interface InstancePoolsGetOptionalParams +export interface JobVersionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type InstancePoolsGetResponse = InstancePool; +export type JobVersionsGetResponse = JobVersion; /** 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; -} +export interface JobVersionsListByJobNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type InstancePoolsCreateOrUpdateResponse = InstancePool; +/** Contains response data for the listByJobNext operation. */ +export type JobVersionsListByJobNextResponse = JobVersionListResult; /** Optional parameters. */ -export interface InstancePoolsDeleteOptionalParams +export interface CapabilitiesListByLocationOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** If specified, restricts the response to only include the selected item. */ + include?: CapabilityGroup; } +/** Contains response data for the listByLocation operation. */ +export type CapabilitiesListByLocationResponse = LocationCapabilities; + /** Optional parameters. */ -export interface InstancePoolsUpdateOptionalParams +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; @@ -10802,53 +11363,50 @@ export interface InstancePoolsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type InstancePoolsUpdateResponse = InstancePool; +/** Contains response data for the createOrUpdate operation. */ +export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; /** Optional parameters. */ -export interface InstancePoolsListByResourceGroupOptionalParams +export interface LongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface InstancePoolsListOptionalParams +export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type InstancePoolsListResponse = InstancePoolListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface InstancePoolsListByResourceGroupNextOptionalParams +export interface MaintenanceWindowOptionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; +/** Contains response data for the get operation. */ +export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; /** Optional parameters. */ -export interface InstancePoolsListNextOptionalParams +export interface MaintenanceWindowsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type InstancePoolsListNextResponse = InstancePoolListResult; +/** Contains response data for the get operation. */ +export type MaintenanceWindowsGetResponse = MaintenanceWindows; /** Optional parameters. */ -export interface JobAgentsListByServerOptionalParams +export interface MaintenanceWindowsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type JobAgentsListByServerResponse = JobAgentListResult; - /** Optional parameters. */ -export interface JobAgentsGetOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobAgentsGetResponse = JobAgent; +export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface JobAgentsCreateOrUpdateOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10857,19 +11415,10 @@ export interface JobAgentsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type JobAgentsCreateOrUpdateResponse = JobAgent; - -/** Optional parameters. */ -export interface JobAgentsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface JobAgentsUpdateOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10878,116 +11427,143 @@ export interface JobAgentsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type JobAgentsUpdateResponse = JobAgent; +export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface JobAgentsListByServerNextOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type JobAgentsListByServerNextResponse = JobAgentListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface JobCredentialsListByAgentOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgent operation. */ -export type JobCredentialsListByAgentResponse = JobCredentialListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface JobCredentialsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseColumnsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Array of Get3ItemsItem */ + schema?: string[]; + /** Array of Get4ItemsItem */ + table?: string[]; + /** Array of Get5ItemsItem */ + column?: string[]; + /** Array of Get6ItemsItem */ + orderBy?: string[]; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; +} -/** Contains response data for the get operation. */ -export type JobCredentialsGetResponse = JobCredential; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface JobCredentialsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseColumnsListByTableOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type JobCredentialsCreateOrUpdateResponse = JobCredential; +/** Contains response data for the listByTable operation. */ +export type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface JobCredentialsDeleteOptionalParams +export interface ManagedDatabaseColumnsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; + /** Optional parameters. */ -export interface JobCredentialsListByAgentNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams + 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 listByAgentNext operation. */ -export type JobCredentialsListByAgentNextResponse = JobCredentialListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface JobExecutionsListByAgentOptionalParams +export interface ManagedDatabaseColumnsListByTableNextOptionalParams extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the listByAgent operation. */ -export type JobExecutionsListByAgentResponse = JobExecutionListResult; +/** Contains response data for the listByTableNext operation. */ +export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface JobExecutionsCancelOptionalParams +export interface ManagedDatabaseQueriesGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; + /** Optional parameters. */ -export interface JobExecutionsCreateOptionalParams +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 create operation. */ -export type JobExecutionsCreateResponse = JobExecution; +/** Contains response data for the listByQuery operation. */ +export type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics; + +/** Optional parameters. */ +export interface ManagedDatabaseQueriesListByQueryNextOptionalParams + 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; +} + +/** Contains response data for the listByQueryNext operation. */ +export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; + +/** Optional parameters. */ +export interface ManagedDatabaseRestoreDetailsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; /** Optional parameters. */ -export interface JobExecutionsListByJobOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; -} +export interface ManagedDatabasesListByInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByJob operation. */ -export type JobExecutionsListByJobResponse = JobExecutionListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface JobExecutionsGetOptionalParams +export interface ManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobExecutionsGetResponse = JobExecution; +export type ManagedDatabasesGetResponse = ManagedDatabase; /** Optional parameters. */ -export interface JobExecutionsCreateOrUpdateOptionalParams +export interface ManagedDatabasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10996,353 +11572,253 @@ export interface JobExecutionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type JobExecutionsCreateOrUpdateResponse = JobExecution; +export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; /** Optional parameters. */ -export interface JobExecutionsListByAgentNextOptionalParams +export interface ManagedDatabasesDeleteOptionalParams extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByAgentNext operation. */ -export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; - /** Optional parameters. */ -export interface JobExecutionsListByJobNextOptionalParams +export interface ManagedDatabasesUpdateOptionalParams extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByJobNext operation. */ -export type JobExecutionsListByJobNextResponse = JobExecutionListResult; +/** Contains response data for the update operation. */ +export type ManagedDatabasesUpdateResponse = ManagedDatabase; /** Optional parameters. */ -export interface JobsListByAgentOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAgent operation. */ -export type JobsListByAgentResponse = JobListResult; +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 JobsGetOptionalParams extends coreClient.OperationOptions {} +export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JobsGetResponse = Job; +/** Contains response data for the listInaccessibleByInstance operation. */ +export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface JobsCreateOrUpdateOptionalParams +export interface ManagedDatabasesListByInstanceNextOptionalParams 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 listByInstanceNext operation. */ +export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface JobsListByAgentNextOptionalParams +export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobsListByAgentNextResponse = JobListResult; +/** Contains response data for the listInaccessibleByInstanceNext operation. */ +export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface JobStepExecutionsListByJobExecutionOptionalParams +export interface ManagedDatabaseSchemasListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the listByJobExecution operation. */ -export type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface JobStepExecutionsGetOptionalParams +export interface ManagedDatabaseSchemasGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobStepExecutionsGetResponse = JobExecution; +export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; /** Optional parameters. */ -export interface JobStepExecutionsListByJobExecutionNextOptionalParams +export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** 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 {} - -/** Contains response data for the listByJob operation. */ -export type JobStepsListByJobResponse = JobStepListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface JobStepsGetOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobStepsGetResponse = JobStep; +export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface JobStepsCreateOrUpdateOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type JobStepsCreateOrUpdateResponse = JobStep; - -/** Optional parameters. */ -export interface JobStepsDeleteOptionalParams - extends coreClient.OperationOptions {} +export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface JobStepsListByVersionNextOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByVersionNext operation. */ -export type JobStepsListByVersionNextResponse = JobStepListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface JobStepsListByJobNextOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobNext operation. */ -export type JobStepsListByJobNextResponse = JobStepListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface JobTargetExecutionsListByJobExecutionOptionalParams +export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; /** The number of elements to return from the collection. */ top?: number; } -/** Contains response data for the listByJobExecution operation. */ -export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; /** Optional parameters. */ -export interface JobTargetExecutionsListByStepOptionalParams +export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; /** The number of elements to return from the collection. */ top?: number; } -/** Contains response data for the listByStep operation. */ -export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; + +/** 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 JobTargetExecutionsGetOptionalParams +export interface ManagedDatabaseTablesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobTargetExecutionsGetResponse = JobExecution; +export type ManagedDatabaseTablesGetResponse = DatabaseTable; /** Optional parameters. */ -export interface JobTargetExecutionsListByJobExecutionNextOptionalParams +export interface ManagedDatabaseTablesListBySchemaNextOptionalParams extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the listByJobExecutionNext operation. */ -export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; +/** Contains response data for the listBySchemaNext operation. */ +export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface JobTargetExecutionsListByStepNextOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; -} +export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByStepNext operation. */ -export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; /** Optional parameters. */ -export interface JobTargetGroupsListByAgentOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgent operation. */ -export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; /** Optional parameters. */ -export interface JobTargetGroupsGetOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JobTargetGroupsGetResponse = JobTargetGroup; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface JobTargetGroupsCreateOrUpdateOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface JobTargetGroupsDeleteOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; + /** Optional parameters. */ -export interface JobTargetGroupsListByAgentNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface JobVersionsListByJobOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJob operation. */ -export type JobVersionsListByJobResponse = JobVersionListResult; - /** Optional parameters. */ -export interface JobVersionsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobVersionsGetResponse = JobVersion; +export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface JobVersionsListByJobNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobNext operation. */ -export type JobVersionsListByJobNextResponse = JobVersionListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface CapabilitiesListByLocationOptionalParams - extends coreClient.OperationOptions { - /** If specified, restricts the response to only include the selected item. */ - include?: CapabilityGroup; -} +export interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type CapabilitiesListByLocationResponse = LocationCapabilities; +/** Optional parameters. */ +export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface LongTermRetentionPoliciesGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11350,50 +11826,50 @@ export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; - /** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; +/** Contains response data for the export operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface MaintenanceWindowOptionsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; +export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface MaintenanceWindowsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type MaintenanceWindowsGetResponse = MaintenanceWindows; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface MaintenanceWindowsCreateOrUpdateOptionalParams +export interface ManagedInstanceAdministratorsListByInstanceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; + /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams +export interface ManagedInstanceAdministratorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; +export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11402,10 +11878,10 @@ export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalPa } /** Contains response data for the createOrUpdate operation. */ -export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; +export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams +export interface ManagedInstanceAdministratorsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11413,144 +11889,116 @@ export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; - /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams +export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Array of Get3ItemsItem */ - schema?: string[]; - /** Array of Get4ItemsItem */ - table?: string[]; - /** Array of Get5ItemsItem */ - column?: string[]; - /** Array of Get6ItemsItem */ - orderBy?: string[]; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByTable operation. */ -export type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult; - /** Optional parameters. */ -export interface ManagedDatabaseColumnsGetOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; - -/** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams - 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 listByDatabaseNext operation. */ -export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableNextOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} - -/** Contains response data for the listByTableNext operation. */ -export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ManagedDatabaseQueriesGetOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryOptionalParams +export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams 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 ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryNextOptionalParams +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 { - /** 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 listByQueryNext operation. */ -export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; /** Optional parameters. */ -export interface ManagedDatabaseRestoreDetailsGetOptionalParams +export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ -export interface ManagedDatabasesListByInstanceOptionalParams - 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 listByInstance operation. */ -export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; +export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; /** Optional parameters. */ -export interface ManagedDatabasesGetOptionalParams +export interface ManagedInstanceKeysGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabasesGetResponse = ManagedDatabase; +export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; /** Optional parameters. */ -export interface ManagedDatabasesCreateOrUpdateOptionalParams +export interface ManagedInstanceKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11559,10 +12007,10 @@ export interface ManagedDatabasesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; +export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; /** Optional parameters. */ -export interface ManagedDatabasesDeleteOptionalParams +export interface ManagedInstanceKeysDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11571,19 +12019,24 @@ export interface ManagedDatabasesDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedDatabasesUpdateOptionalParams +export interface ManagedInstanceKeysListByInstanceNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait 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 update operation. */ -export type ManagedDatabasesUpdateResponse = ManagedDatabase; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; /** Optional parameters. */ -export interface ManagedDatabasesCompleteRestoreOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; + +/** Optional parameters. */ +export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11591,305 +12044,337 @@ export interface ManagedDatabasesCompleteRestoreOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; + /** Optional parameters. */ -export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByInstance operation. */ -export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabasesListByInstanceNextOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams +export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByInstanceNext operation. */ -export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface ManagedInstanceOperationsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; /** Optional parameters. */ -export interface ManagedDatabaseSchemasGetOptionalParams +export interface ManagedInstanceOperationsCancelOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; + +/** Optional parameters. */ +export interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; +export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams 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 listByDatabaseNext operation. */ -export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait 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 ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams +export interface ManagedInstancePrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; +/** Contains response data for the get operation. */ +export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; /** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** The number of elements to return from the collection. */ - top?: number; -} +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams +export interface ManagedInstanceTdeCertificatesCreateOptionalParams extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** The number of elements to return from the collection. */ - top?: number; + /** Delay to wait 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; - /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsGetOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; +export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; +export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; -} +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams 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 ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams 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 listRecommendedByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the update operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByRestorableDroppedDatabase operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; + /** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listBySchema operation. */ -export type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult; +/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabaseTablesGetOptionalParams +export interface ManagedServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseTablesGetResponse = DatabaseTable; +export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaNextOptionalParams +export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams 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 listBySchemaNext operation. */ -export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; +/** Contains response data for the listByInstance operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +export interface PrivateEndpointConnectionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsListByServerOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServer operation. */ +export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; + /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams +export interface PrivateEndpointConnectionsListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface PrivateLinkResourcesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface PrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +export type PrivateLinkResourcesGetResponse = PrivateLinkResource; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface PrivateLinkResourcesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; +/** Contains response data for the listByServerNext operation. */ +export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams +export interface RecoverableManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByInstance operation. */ +export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; + /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams +export interface RecoverableManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the get operation. */ +export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams +export interface RecoverableManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams +export interface RestorePointsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type RestorePointsListByDatabaseResponse = RestorePointListResult; + +/** Optional parameters. */ +export interface RestorePointsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11897,50 +12382,74 @@ export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptional resumeFrom?: string; } +/** Contains response data for the create operation. */ +export type RestorePointsCreateResponse = RestorePoint; + /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams +export interface RestorePointsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the export operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; +/** Contains response data for the get operation. */ +export type RestorePointsGetResponse = RestorePoint; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams +export interface RestorePointsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; +/** Optional parameters. */ +export interface RestorePointsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams +export interface ServerAdvisorsListByServerOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByServer operation. */ +export type ServerAdvisorsListByServerResponse = Advisor[]; + +/** Optional parameters. */ +export interface ServerAdvisorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; +export type ServerAdvisorsGetResponse = Advisor; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams +export interface ServerAdvisorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the update operation. */ +export type ServerAdvisorsUpdateResponse = Advisor; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceOptionalParams +export interface ServerAutomaticTuningGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; +/** Contains response data for the get operation. */ +export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsGetOptionalParams +export interface ServerAutomaticTuningUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; + +/** Optional parameters. */ +export interface ServerAzureADAdministratorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; +export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams +export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11949,10 +12458,10 @@ export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; +export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsDeleteOptionalParams +export interface ServerAzureADAdministratorsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11961,33 +12470,28 @@ export interface ManagedInstanceAdministratorsDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams +export interface ServerAzureADAdministratorsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams +export interface ServerAzureADAdministratorsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ServerAzureADOnlyAuthenticationsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; +/** Contains response data for the get operation. */ +export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams +export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11995,22 +12499,11 @@ export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; - -/** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams +export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12019,21 +12512,28 @@ export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams } /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams +export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsGetOptionalParams +export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; + +/** Optional parameters. */ +export interface ServerDevOpsAuditSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; +export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams +export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12042,34 +12542,31 @@ export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; +export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams +export interface ServerDevOpsAuditSettingsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; +/** Contains response data for the listByServer operation. */ +export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysGetOptionalParams +export interface ServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; +export type ServerDnsAliasesGetResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ManagedInstanceKeysCreateOrUpdateOptionalParams +export interface ServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12078,10 +12575,10 @@ export interface ManagedInstanceKeysCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; +export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ManagedInstanceKeysDeleteOptionalParams +export interface ServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12090,24 +12587,14 @@ export interface ManagedInstanceKeysDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceNextOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} - -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; - -/** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams +export interface ServerDnsAliasesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; +/** Contains response data for the listByServer operation. */ +export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12115,57 +12602,32 @@ export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalP resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; - -/** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; +/** Contains response data for the acquire operation. */ +export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ManagedInstanceOperationsGetOptionalParams +export interface ServerDnsAliasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; - -/** Optional parameters. */ -export interface ManagedInstanceOperationsCancelOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; /** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams +export interface ServerKeysListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; +/** Contains response data for the listByServer operation. */ +export type ServerKeysListByServerResponse = ServerKeyListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams +export interface ServerKeysGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; +export type ServerKeysGetResponse = ServerKey; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface ServerKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12174,10 +12636,10 @@ export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptional } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; +export type ServerKeysCreateOrUpdateResponse = ServerKey; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams +export interface ServerKeysDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12186,42 +12648,35 @@ export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams +export interface ServerKeysListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerKeysListByServerNextResponse = ServerKeyListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams +export interface ServerOperationsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; +/** Contains response data for the listByServer operation. */ +export type ServerOperationsListByServerResponse = ServerOperationListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams +export interface ServerOperationsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerOperationsListByServerNextResponse = ServerOperationListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesGetOptionalParams +export interface ServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; - -/** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; +export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedInstanceTdeCertificatesCreateOptionalParams +export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12229,47 +12684,32 @@ export interface ManagedInstanceTdeCertificatesCreateOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; - -/** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; - -/** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams +export interface ServerSecurityAlertPoliciesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; +/** Contains response data for the listByServer operation. */ +export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams +export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams +export interface ServerTrustGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; +export type ServerTrustGroupsGetResponse = ServerTrustGroup; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ServerTrustGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12278,10 +12718,10 @@ export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicie } /** Contains response data for the createOrUpdate operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; +export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams +export interface ServerTrustGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12289,93 +12729,110 @@ export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicie resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; +/** Optional parameters. */ +export interface ServerTrustGroupsListByLocationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocation operation. */ +export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams +export interface ServerTrustGroupsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRestorableDroppedDatabase operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByInstance operation. */ +export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams +export interface ServerTrustGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByLocationNext operation. */ +export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesGetOptionalParams +export interface ServerTrustGroupsListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; + +/** Optional parameters. */ +export interface ServerVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; +export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; /** 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 ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; +export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams +export interface ServerVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; +/** Optional parameters. */ +export interface ServerVulnerabilityAssessmentsListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams +export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; + +/** Optional parameters. */ +export interface SqlAgentGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SqlAgentGetResponse = SqlAgentConfiguration; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface SqlAgentCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; /** Optional parameters. */ -export interface OperationsListNextOptionalParams +export interface SubscriptionUsagesListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; +/** Contains response data for the listByLocation operation. */ +export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; /** Optional parameters. */ -export interface OperationsHealthListByLocationOptionalParams +export interface SubscriptionUsagesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type OperationsHealthListByLocationResponse = OperationsHealthListResult; +/** Contains response data for the get operation. */ +export type SubscriptionUsagesGetResponse = SubscriptionUsage; /** Optional parameters. */ -export interface OperationsHealthListByLocationNextOptionalParams +export interface SubscriptionUsagesListByLocationNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ -export type OperationsHealthListByLocationNextResponse = OperationsHealthListResult; +export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsGetOptionalParams +export interface SyncAgentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +export type SyncAgentsGetResponse = SyncAgent; /** Optional parameters. */ -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface SyncAgentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12384,10 +12841,10 @@ export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +export type SyncAgentsCreateOrUpdateResponse = SyncAgent; /** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteOptionalParams +export interface SyncAgentsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12396,70 +12853,49 @@ export interface PrivateEndpointConnectionsDeleteOptionalParams } /** Optional parameters. */ -export interface PrivateEndpointConnectionsListByServerOptionalParams +export interface SyncAgentsListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult; +export type SyncAgentsListByServerResponse = SyncAgentListResult; /** Optional parameters. */ -export interface PrivateLinkResourcesListByServerOptionalParams +export interface SyncAgentsGenerateKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; +/** Contains response data for the generateKey operation. */ +export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; /** Optional parameters. */ -export interface PrivateLinkResourcesGetOptionalParams +export interface SyncAgentsListLinkedDatabasesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource; +/** Contains response data for the listLinkedDatabases operation. */ +export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; /** Optional parameters. */ -export interface PrivateLinkResourcesListByServerNextOptionalParams +export interface SyncAgentsListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; - -/** Optional parameters. */ -export interface RecoverableManagedDatabasesListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; - -/** Optional parameters. */ -export interface RecoverableManagedDatabasesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; +export type SyncAgentsListByServerNextResponse = SyncAgentListResult; /** Optional parameters. */ -export interface RecoverableManagedDatabasesListByInstanceNextOptionalParams +export interface SyncAgentsListLinkedDatabasesNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; +/** Contains response data for the listLinkedDatabasesNext operation. */ +export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; /** Optional parameters. */ -export interface RestorePointsListByDatabaseOptionalParams +export interface SyncGroupsListSyncDatabaseIdsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type RestorePointsListByDatabaseResponse = RestorePointListResult; +/** Contains response data for the listSyncDatabaseIds operation. */ +export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; /** Optional parameters. */ -export interface RestorePointsCreateOptionalParams +export interface SyncGroupsRefreshHubSchemaOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12467,200 +12903,118 @@ export interface RestorePointsCreateOptionalParams resumeFrom?: string; } -/** Contains response data for the create operation. */ -export type RestorePointsCreateResponse = RestorePoint; - -/** Optional parameters. */ -export interface RestorePointsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type RestorePointsGetResponse = RestorePoint; - -/** Optional parameters. */ -export interface RestorePointsDeleteOptionalParams - extends coreClient.OperationOptions {} - /** Optional parameters. */ -export interface RestorePointsListByDatabaseNextOptionalParams +export interface SyncGroupsListHubSchemasOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; - -/** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; -} - -/** Contains response data for the listCurrentByDatabase operation. */ -export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; - -/** Optional parameters. */ -export interface SensitivityLabelsUpdateOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listHubSchemas operation. */ +export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams +export interface SyncGroupsListLogsOptionalParams 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; + /** The continuation token for this operation. */ + continuationToken?: string; } -/** Contains response data for the listRecommendedByDatabase operation. */ -export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the listLogs operation. */ +export type SyncGroupsListLogsResponse = SyncGroupLogListResult; /** Optional parameters. */ -export interface SensitivityLabelsEnableRecommendationOptionalParams +export interface SyncGroupsCancelSyncOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SensitivityLabelsDisableRecommendationOptionalParams +export interface SyncGroupsTriggerSyncOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SensitivityLabelsGetOptionalParams +export interface SyncGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SensitivityLabelsGetResponse = SensitivityLabel; - -/** Optional parameters. */ -export interface SensitivityLabelsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; - -/** Optional parameters. */ -export interface SensitivityLabelsDeleteOptionalParams - extends coreClient.OperationOptions {} +export type SyncGroupsGetResponse = SyncGroup; /** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams +export interface SyncGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SyncGroupsCreateOrUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams +export interface SyncGroupsDeleteOptionalParams 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 listRecommendedByDatabaseNext operation. */ -export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; - -/** Optional parameters. */ -export interface RecommendedSensitivityLabelsUpdateOptionalParams - extends coreClient.OperationOptions {} - /** Optional parameters. */ -export interface ServerAdvisorsListByServerOptionalParams +export interface SyncGroupsUpdateOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByServer operation. */ -export type ServerAdvisorsListByServerResponse = Advisor[]; - -/** Optional parameters. */ -export interface ServerAdvisorsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ServerAdvisorsGetResponse = Advisor; - -/** Optional parameters. */ -export interface ServerAdvisorsUpdateOptionalParams - extends coreClient.OperationOptions {} - /** Contains response data for the update operation. */ -export type ServerAdvisorsUpdateResponse = Advisor; +export type SyncGroupsUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface ServerAutomaticTuningGetOptionalParams +export interface SyncGroupsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; +/** Contains response data for the listByDatabase operation. */ +export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; /** Optional parameters. */ -export interface ServerAutomaticTuningUpdateOptionalParams +export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; +/** Contains response data for the listSyncDatabaseIdsNext operation. */ +export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; /** Optional parameters. */ -export interface ServerAzureADAdministratorsGetOptionalParams +export interface SyncGroupsListHubSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; - -/** 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; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; +/** Contains response data for the listHubSchemasNext operation. */ +export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ServerAzureADAdministratorsDeleteOptionalParams +export interface SyncGroupsListLogsNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait 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; } -/** Optional parameters. */ -export interface ServerAzureADAdministratorsListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; +/** Contains response data for the listLogsNext operation. */ +export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; /** Optional parameters. */ -export interface ServerAzureADAdministratorsListByServerNextOptionalParams +export interface SyncGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsGetOptionalParams +export interface SyncMembersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; +export type SyncMembersGetResponse = SyncMember; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams +export interface SyncMembersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12669,10 +13023,10 @@ export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; +export type SyncMembersCreateOrUpdateResponse = SyncMember; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams +export interface SyncMembersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12681,28 +13035,33 @@ export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams } /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams - extends coreClient.OperationOptions {} +export interface SyncMembersUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByServer operation. */ -export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; +/** Contains response data for the update operation. */ +export type SyncMembersUpdateResponse = SyncMember; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams +export interface SyncMembersListBySyncGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; +/** Contains response data for the listBySyncGroup operation. */ +export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsGetOptionalParams +export interface SyncMembersListMemberSchemasOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; +/** Contains response data for the listMemberSchemas operation. */ +export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams +export interface SyncMembersRefreshMemberSchemaOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12710,32 +13069,22 @@ export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; - -/** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; - /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams +export interface SyncMembersListBySyncGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; +/** Contains response data for the listBySyncGroupNext operation. */ +export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; /** Optional parameters. */ -export interface ServerDnsAliasesGetOptionalParams +export interface SyncMembersListMemberSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerDnsAliasesGetResponse = ServerDnsAlias; +/** Contains response data for the listMemberSchemasNext operation. */ +export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ServerDnsAliasesCreateOrUpdateOptionalParams +export interface TdeCertificatesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12743,60 +13092,57 @@ export interface ServerDnsAliasesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; +/** Optional parameters. */ +export interface TimeZonesListByLocationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocation operation. */ +export type TimeZonesListByLocationResponse = TimeZoneListResult; /** Optional parameters. */ -export interface ServerDnsAliasesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface TimeZonesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type TimeZonesGetResponse = TimeZone; /** Optional parameters. */ -export interface ServerDnsAliasesListByServerOptionalParams +export interface TimeZonesListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; +/** Contains response data for the listByLocationNext operation. */ +export type TimeZonesListByLocationNextResponse = TimeZoneListResult; /** 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; -} +export interface VirtualClustersUpdateDnsServersOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the acquire operation. */ -export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; +/** Contains response data for the updateDnsServers operation. */ +export type VirtualClustersUpdateDnsServersResponse = UpdateManagedInstanceDnsServersOperation; /** Optional parameters. */ -export interface ServerDnsAliasesListByServerNextOptionalParams +export interface VirtualClustersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; +/** Contains response data for the list operation. */ +export type VirtualClustersListResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServerKeysListByServerOptionalParams +export interface VirtualClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerKeysListByServerResponse = ServerKeyListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServerKeysGetOptionalParams +export interface VirtualClustersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerKeysGetResponse = ServerKey; +export type VirtualClustersGetResponse = VirtualCluster; /** Optional parameters. */ -export interface ServerKeysCreateOrUpdateOptionalParams +export interface VirtualClustersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12804,11 +13150,8 @@ export interface ServerKeysCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerKeysCreateOrUpdateResponse = ServerKey; - /** Optional parameters. */ -export interface ServerKeysDeleteOptionalParams +export interface VirtualClustersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12816,36 +13159,32 @@ export interface ServerKeysDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ServerKeysListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ServerKeysListByServerNextResponse = ServerKeyListResult; +/** Contains response data for the update operation. */ +export type VirtualClustersUpdateResponse = VirtualCluster; /** Optional parameters. */ -export interface ServerOperationsListByServerOptionalParams +export interface VirtualClustersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerOperationsListByServerResponse = ServerOperationListResult; +/** Contains response data for the listNext operation. */ +export type VirtualClustersListNextResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServerOperationsListByServerNextOptionalParams +export interface VirtualClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerOperationsListByServerNextResponse = ServerOperationListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesGetOptionalParams +export interface VirtualNetworkRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; +export type VirtualNetworkRulesGetResponse = VirtualNetworkRule; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface VirtualNetworkRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12854,31 +13193,40 @@ export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; +export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerOptionalParams +export interface VirtualNetworkRulesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface VirtualNetworkRulesListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; +export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams +export interface VirtualNetworkRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; +export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; /** Optional parameters. */ -export interface ServerTrustGroupsGetOptionalParams +export interface WorkloadClassifiersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerTrustGroupsGetResponse = ServerTrustGroup; +export type WorkloadClassifiersGetResponse = WorkloadClassifier; /** Optional parameters. */ -export interface ServerTrustGroupsCreateOrUpdateOptionalParams +export interface WorkloadClassifiersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12887,10 +13235,10 @@ export interface ServerTrustGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; +export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; /** Optional parameters. */ -export interface ServerTrustGroupsDeleteOptionalParams +export interface WorkloadClassifiersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12899,109 +13247,98 @@ export interface ServerTrustGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface ServerTrustGroupsListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; - -/** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; - -/** Optional parameters. */ -export interface ServerTrustGroupsListByLocationNextOptionalParams +export interface WorkloadClassifiersListByWorkloadGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; +/** Contains response data for the listByWorkloadGroup operation. */ +export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; /** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceNextOptionalParams +export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; +/** Contains response data for the listByWorkloadGroupNext operation. */ +export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsGetOptionalParams +export interface WorkloadGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; +export type WorkloadGroupsGetResponse = WorkloadGroup; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; +export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +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 ServerVulnerabilityAssessmentsListByServerOptionalParams +export interface WorkloadGroupsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; +/** Contains response data for the listByDatabase operation. */ +export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams +export interface WorkloadGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; /** Optional parameters. */ -export interface SqlAgentGetOptionalParams +export interface TransparentDataEncryptionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlAgentGetResponse = SqlAgentConfiguration; - -/** Optional parameters. */ -export interface SqlAgentCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; +export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationOptionalParams +export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; +/** Contains response data for the createOrUpdate operation. */ +export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface SubscriptionUsagesGetOptionalParams +export interface TransparentDataEncryptionsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SubscriptionUsagesGetResponse = SubscriptionUsage; +/** Contains response data for the listByDatabase operation. */ +export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationNextOptionalParams +export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface SyncAgentsGetOptionalParams +export interface BackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SyncAgentsGetResponse = SyncAgent; +export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface SyncAgentsCreateOrUpdateOptionalParams +export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13010,10 +13347,10 @@ export interface SyncAgentsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SyncAgentsCreateOrUpdateResponse = SyncAgent; +export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface SyncAgentsDeleteOptionalParams +export interface BackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13021,91 +13358,94 @@ export interface SyncAgentsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; + /** Optional parameters. */ -export interface SyncAgentsListByServerOptionalParams +export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type SyncAgentsListByServerResponse = SyncAgentListResult; +/** Contains response data for the listByDatabase operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface SyncAgentsGenerateKeyOptionalParams +export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateKey operation. */ -export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; +/** Contains response data for the listByDatabaseNext operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface SyncAgentsListLinkedDatabasesOptionalParams +export interface DatabaseExtensionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLinkedDatabases operation. */ -export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; - /** Optional parameters. */ -export interface SyncAgentsListByServerNextOptionalParams - extends coreClient.OperationOptions {} +export interface DatabaseExtensionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByServerNext operation. */ -export type SyncAgentsListByServerNextResponse = SyncAgentListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; /** Optional parameters. */ -export interface SyncAgentsListLinkedDatabasesNextOptionalParams +export interface DatabaseExtensionsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLinkedDatabasesNext operation. */ -export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; /** Optional parameters. */ -export interface SyncGroupsListSyncDatabaseIdsOptionalParams +export interface DatabaseExtensionsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSyncDatabaseIds operation. */ -export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; /** Optional parameters. */ -export interface SyncGroupsRefreshHubSchemaOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatabaseOperationsCancelOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SyncGroupsListHubSchemasOptionalParams +export interface DatabaseOperationsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listHubSchemas operation. */ -export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; /** Optional parameters. */ -export interface SyncGroupsListLogsOptionalParams - extends coreClient.OperationOptions { - /** The continuation token for this operation. */ - continuationToken?: string; -} +export interface DatabaseOperationsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listLogs operation. */ -export type SyncGroupsListLogsResponse = SyncGroupLogListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; /** Optional parameters. */ -export interface SyncGroupsCancelSyncOptionalParams +export interface DatabaseUsagesListByDatabaseOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabase operation. */ +export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; + /** Optional parameters. */ -export interface SyncGroupsTriggerSyncOptionalParams +export interface DatabaseUsagesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; + /** Optional parameters. */ -export interface SyncGroupsGetOptionalParams +export interface LedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SyncGroupsGetResponse = SyncGroup; +export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface SyncGroupsCreateOrUpdateOptionalParams +export interface LedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13114,19 +13454,17 @@ export interface SyncGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SyncGroupsCreateOrUpdateResponse = SyncGroup; +export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface SyncGroupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface LedgerDigestUploadsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ -export interface SyncGroupsUpdateOptionalParams +export interface LedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13134,56 +13472,25 @@ export interface SyncGroupsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type SyncGroupsUpdateResponse = SyncGroup; - -/** Optional parameters. */ -export interface SyncGroupsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; - -/** Optional parameters. */ -export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listSyncDatabaseIdsNext operation. */ -export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; - -/** Optional parameters. */ -export interface SyncGroupsListHubSchemasNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listHubSchemasNext operation. */ -export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; - -/** Optional parameters. */ -export interface SyncGroupsListLogsNextOptionalParams - extends coreClient.OperationOptions { - /** The continuation token for this operation. */ - continuationToken?: string; -} - -/** Contains response data for the listLogsNext operation. */ -export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; +/** Contains response data for the disable operation. */ +export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface SyncGroupsListByDatabaseNextOptionalParams +export interface LedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; +export type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ -export interface SyncMembersGetOptionalParams +export interface OutboundFirewallRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SyncMembersGetResponse = SyncMember; +export type OutboundFirewallRulesGetResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface SyncMembersCreateOrUpdateOptionalParams +export interface OutboundFirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13192,10 +13499,10 @@ export interface SyncMembersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SyncMembersCreateOrUpdateResponse = SyncMember; +export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface SyncMembersDeleteOptionalParams +export interface OutboundFirewallRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13204,33 +13511,40 @@ export interface SyncMembersDeleteOptionalParams } /** 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; -} +export interface OutboundFirewallRulesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type SyncMembersUpdateResponse = SyncMember; +/** Contains response data for the listByServer operation. */ +export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ -export interface SyncMembersListBySyncGroupOptionalParams +export interface OutboundFirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySyncGroup operation. */ -export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; +/** Contains response data for the listByServerNext operation. */ +export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ -export interface SyncMembersListMemberSchemasOptionalParams - extends coreClient.OperationOptions {} +export interface ServersListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listMemberSchemas operation. */ -export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type ServersListByResourceGroupResponse = ServerListResult; /** Optional parameters. */ -export interface SyncMembersRefreshMemberSchemaOptionalParams +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 ServersGetResponse = Server; + +/** Optional parameters. */ +export interface ServersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13238,22 +13552,20 @@ 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 createOrUpdate operation. */ +export type ServersCreateOrUpdateResponse = Server; /** Optional parameters. */ -export interface SyncMembersListMemberSchemasNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listMemberSchemasNext operation. */ -export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; +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 TdeCertificatesCreateOptionalParams +export interface ServersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13261,57 +13573,79 @@ export interface TdeCertificatesCreateOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type ServersUpdateResponse = Server; + /** Optional parameters. */ -export interface TimeZonesListByLocationOptionalParams - extends coreClient.OperationOptions {} +export interface ServersListOptionalParams extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByLocation operation. */ -export type TimeZonesListByLocationResponse = TimeZoneListResult; +/** Contains response data for the list operation. */ +export type ServersListResponse = ServerListResult; /** Optional parameters. */ -export interface TimeZonesGetOptionalParams - extends coreClient.OperationOptions {} +export interface ServersImportDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type TimeZonesGetResponse = TimeZone; +/** Contains response data for the importDatabase operation. */ +export type ServersImportDatabaseResponse = ImportExportOperationResult; /** Optional parameters. */ -export interface TimeZonesListByLocationNextOptionalParams +export interface ServersCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type TimeZonesListByLocationNextResponse = TimeZoneListResult; +/** Contains response data for the checkNameAvailability operation. */ +export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; /** Optional parameters. */ -export interface VirtualClustersUpdateDnsServersOptionalParams - extends coreClient.OperationOptions {} +export interface ServersListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the updateDnsServers operation. */ -export type VirtualClustersUpdateDnsServersResponse = UpdateManagedInstanceDnsServersOperation; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ServersListByResourceGroupNextResponse = ServerListResult; /** Optional parameters. */ -export interface VirtualClustersListOptionalParams - extends coreClient.OperationOptions {} +export interface ServersListNextOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the list operation. */ -export type VirtualClustersListResponse = VirtualClusterListResult; +/** Contains response data for the listNext operation. */ +export type ServersListNextResponse = ServerListResult; /** Optional parameters. */ -export interface VirtualClustersListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} +export interface UsagesListByInstancePoolOptionalParams + extends coreClient.OperationOptions { + /** Optional request parameter to include managed instance usages within the instance pool. */ + expandChildren?: boolean; +} -/** Contains response data for the listByResourceGroup operation. */ -export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; +/** Contains response data for the listByInstancePool operation. */ +export type UsagesListByInstancePoolResponse = UsageListResult; /** Optional parameters. */ -export interface VirtualClustersGetOptionalParams - extends coreClient.OperationOptions {} +export interface UsagesListByInstancePoolNextOptionalParams + extends coreClient.OperationOptions { + /** Optional request parameter to include managed instance usages within the instance pool. */ + expandChildren?: boolean; +} -/** Contains response data for the get operation. */ -export type VirtualClustersGetResponse = VirtualCluster; +/** Contains response data for the listByInstancePoolNext operation. */ +export type UsagesListByInstancePoolNextResponse = UsageListResult; /** Optional parameters. */ -export interface VirtualClustersDeleteOptionalParams +export interface LongTermRetentionBackupsCopyOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13319,8 +13653,11 @@ export interface VirtualClustersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the copy operation. */ +export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; + /** Optional parameters. */ -export interface VirtualClustersUpdateOptionalParams +export interface LongTermRetentionBackupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13329,31 +13666,17 @@ export interface VirtualClustersUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualClustersUpdateResponse = VirtualCluster; - -/** Optional parameters. */ -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; +export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface VirtualNetworkRulesGetOptionalParams +export interface LongTermRetentionBackupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type VirtualNetworkRulesGetResponse = VirtualNetworkRule; +export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface VirtualNetworkRulesCreateOrUpdateOptionalParams +export interface LongTermRetentionBackupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13361,41 +13684,44 @@ export interface VirtualNetworkRulesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; - /** Optional parameters. */ -export interface VirtualNetworkRulesDeleteOptionalParams +export interface LongTermRetentionBackupsListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } -/** Optional parameters. */ -export interface VirtualNetworkRulesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesListByServerNextOptionalParams - 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 listByServerNext operation. */ -export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface WorkloadClassifiersGetOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByServerOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the get operation. */ -export type WorkloadClassifiersGetResponse = WorkloadClassifier; +/** Contains response data for the listByServer operation. */ +export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface WorkloadClassifiersCreateOrUpdateOptionalParams +export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13403,11 +13729,11 @@ export interface WorkloadClassifiersCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; +/** Contains response data for the copyByResourceGroup operation. */ +export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface WorkloadClassifiersDeleteOptionalParams +export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13415,29 +13741,18 @@ export interface WorkloadClassifiersDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkloadGroup operation. */ -export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; - -/** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkloadGroupNext operation. */ -export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; +/** Contains response data for the updateByResourceGroup operation. */ +export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface WorkloadGroupsGetOptionalParams +export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type WorkloadGroupsGetResponse = WorkloadGroup; +/** Contains response data for the getByResourceGroup operation. */ +export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface WorkloadGroupsCreateOrUpdateOptionalParams +export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13445,69 +13760,123 @@ export interface WorkloadGroupsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; +/** Optional parameters. */ +export interface LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} + +/** Contains response data for the listByResourceGroupDatabase operation. */ +export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface WorkloadGroupsDeleteOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams extends coreClient.OperationOptions { - /** Delay to wait 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 listByResourceGroupLocation operation. */ +export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; + /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseOptionalParams - 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 listByDatabase operation. */ -export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; +/** Contains response data for the listByResourceGroupServer operation. */ +export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams + 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 WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; +export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsGetOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByLocationNextOptionalParams + 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 TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; +/** Contains response data for the listByLocationNext operation. */ +export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByServerNextOptionalParams + 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 TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; +/** Contains response data for the listByServerNext operation. */ +export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; + +/** Optional parameters. */ +export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams + 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 listByResourceGroupDatabaseNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams + 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 TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; +/** Contains response data for the listByResourceGroupLocationNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams + 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 TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; +/** Contains response data for the listByResourceGroupServerNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; +export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13515,41 +13884,51 @@ export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; - /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } -/** Contains response data for the update operation. */ -export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams - 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 listByDatabase operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByInstance operation. */ +export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams - 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 listByDatabaseNext operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface DatabaseExtensionsGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getByResourceGroup operation. */ +export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; + /** Optional parameters. */ -export interface DatabaseExtensionsCreateOrUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13557,163 +13936,156 @@ 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 {} +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 listByDatabase operation. */ -export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; +/** Contains response data for the listByResourceGroupDatabase operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; +/** Contains response data for the listByResourceGroupInstance operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface DatabaseUsagesListByDatabaseOptionalParams - 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 listByDatabase operation. */ -export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; +/** Contains response data for the listByResourceGroupLocation operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface DatabaseUsagesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams + 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 DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; - -/** Optional parameters. */ -export interface LedgerDigestUploadsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; +export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface LedgerDigestUploadsCreateOrUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } -/** Contains response data for the createOrUpdate operation. */ -export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; - -/** Optional parameters. */ -export interface LedgerDigestUploadsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface LedgerDigestUploadsDisableOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait 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 disable operation. */ -export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; +/** Contains response data for the listByLocationNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface LedgerDigestUploadsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams + 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 LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; +/** Contains response data for the listByResourceGroupDatabaseNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface OutboundFirewallRulesGetOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams + 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 OutboundFirewallRulesGetResponse = OutboundFirewallRule; +/** Contains response data for the listByResourceGroupInstanceNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface OutboundFirewallRulesCreateOrUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } -/** Contains response data for the createOrUpdate operation. */ -export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; +/** Contains response data for the listByResourceGroupLocationNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface OutboundFirewallRulesDeleteOptionalParams +export interface ManagedInstancesListByInstancePoolOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The child resources to include in the response. */ + expand?: string; } -/** Optional parameters. */ -export interface OutboundFirewallRulesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; +/** Contains response data for the listByInstancePool operation. */ +export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface OutboundFirewallRulesListByServerNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByServerNext operation. */ -export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; +/** Contains response data for the list operation. */ +export type ManagedInstancesListResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface ServersListByResourceGroupOptionalParams +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 ServersListByResourceGroupResponse = ServerListResult; +export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface ServersGetOptionalParams extends coreClient.OperationOptions { +export interface ManagedInstancesGetOptionalParams + extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Contains response data for the get operation. */ -export type ServersGetResponse = Server; +export type ManagedInstancesGetResponse = ManagedInstance; /** Optional parameters. */ -export interface ServersCreateOrUpdateOptionalParams +export interface ManagedInstancesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13722,10 +14094,10 @@ export interface ServersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServersCreateOrUpdateResponse = Server; +export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance; /** Optional parameters. */ -export interface ServersDeleteOptionalParams +export interface ManagedInstancesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13734,7 +14106,7 @@ export interface ServersDeleteOptionalParams } /** Optional parameters. */ -export interface ServersUpdateOptionalParams +export interface ManagedInstancesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13743,185 +14115,144 @@ export interface ServersUpdateOptionalParams } /** Contains response data for the update operation. */ -export type ServersUpdateResponse = Server; +export type ManagedInstancesUpdateResponse = ManagedInstance; /** Optional parameters. */ -export interface ServersListOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; +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 list operation. */ -export type ServersListResponse = ServerListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; /** Optional parameters. */ -export interface ServersImportDatabaseOptionalParams +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; } -/** Contains response data for the importDatabase operation. */ -export type ServersImportDatabaseResponse = ImportExportOperationResult; - -/** Optional parameters. */ -export interface ServersCheckNameAvailabilityOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the checkNameAvailability operation. */ -export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; - /** Optional parameters. */ -export interface ServersListByResourceGroupNextOptionalParams +export interface ManagedInstancesListByInstancePoolNextOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } -/** Contains response data for the listByResourceGroupNext operation. */ -export type ServersListByResourceGroupNextResponse = ServerListResult; +/** Contains response data for the listByInstancePoolNext operation. */ +export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface ServersListNextOptionalParams +export interface ManagedInstancesListNextOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Contains response data for the listNext operation. */ -export type ServersListNextResponse = ServerListResult; - -/** Optional parameters. */ -export interface UsagesListByInstancePoolOptionalParams - extends coreClient.OperationOptions { - /** Optional request parameter to include managed instance usages within the instance pool. */ - expandChildren?: boolean; -} - -/** Contains response data for the listByInstancePool operation. */ -export type UsagesListByInstancePoolResponse = UsageListResult; +export type ManagedInstancesListNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface UsagesListByInstancePoolNextOptionalParams +export interface ManagedInstancesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { - /** Optional request parameter to include managed instance usages within the instance pool. */ - expandChildren?: boolean; + /** The child resources to include in the response. */ + expand?: string; } -/** Contains response data for the listByInstancePoolNext operation. */ -export type UsagesListByInstancePoolNextResponse = UsageListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsCopyOptionalParams +export interface ManagedInstancesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait 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. 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 copy operation. */ -export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface RestorableDroppedDatabasesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the listByServer operation. */ +export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsGetOptionalParams +export interface RestorableDroppedDatabasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; - -/** Optional parameters. */ -export interface LongTermRetentionBackupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface LongTermRetentionBackupsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; +export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; /** 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 RestorableDroppedDatabasesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; /** 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 RestorableDroppedManagedDatabasesListByInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByInstance operation. */ +export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface RestorableDroppedManagedDatabasesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the copyByResourceGroup operation. */ -export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the get operation. */ +export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase; /** Optional parameters. */ -export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface RestorableDroppedManagedDatabasesListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the updateByResourceGroup operation. */ -export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the listByInstanceNext operation. */ +export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams +export interface ServerConnectionPoliciesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; +/** Contains response data for the get operation. */ +export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; /** Optional parameters. */ -export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams +export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13929,123 +14260,93 @@ export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; + /** 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 ServerConnectionPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabase operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; /** 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 ServerConnectionPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; /** 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; -} - -/** Contains response data for the listByResourceGroupServer operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; +export interface DistributedAvailabilityGroupsListByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstance operation. */ +export type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams - 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 DistributedAvailabilityGroupsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByLocationNextOptionalParams +export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams 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 listByLocationNext operation. */ -export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByServerNextOptionalParams +export interface DistributedAvailabilityGroupsDeleteOptionalParams 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 listByServerNext operation. */ -export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; - /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams +export interface DistributedAvailabilityGroupsUpdateOptionalParams 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 listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the update operation. */ +export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams - 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 DistributedAvailabilityGroupsListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams - 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 ServerTrustCertificatesListByInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupServerNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByInstance operation. */ +export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams +export interface ServerTrustCertificatesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; +export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams +export interface ServerTrustCertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14053,375 +14354,351 @@ export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; + /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams +export interface ServerTrustCertificatesDeleteOptionalParams extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Optional parameters. */ +export interface ServerTrustCertificatesListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface IPv6FirewallRulesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface IPv6FirewallRulesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type IPv6FirewallRulesGetResponse = IPv6FirewallRule; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams +export interface IPv6FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; +/** Contains response data for the createOrUpdate operation. */ +export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait 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 IPv6FirewallRulesDeleteOptionalParams + extends coreClient.OperationOptions {} /** 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; -} +export interface IPv6FirewallRulesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabase operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface EndpointCertificatesListByInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByInstance operation. */ +export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface EndpointCertificatesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type EndpointCertificatesGetResponse = EndpointCertificate; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams - 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 EndpointCertificatesListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams - 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 ManagedDatabaseSensitivityLabelsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; + +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams 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; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + count?: boolean; } -/** Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listCurrentByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams 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; + 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 listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listRecommendedByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams 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; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + count?: boolean; } -/** Contains response data for the listByResourceGroupInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams 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; + 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 listByResourceGroupLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolOptionalParams +export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SensitivityLabelsListCurrentByDatabaseOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + count?: boolean; } -/** Contains response data for the listByInstancePool operation. */ -export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; +/** Contains response data for the listCurrentByDatabase operation. */ +export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ManagedInstancesListOptionalParams +export interface SensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; } -/** Contains response data for the list operation. */ -export type ManagedInstancesListResponse = ManagedInstanceListResult; +/** Contains response data for the listRecommendedByDatabase operation. */ +export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface SensitivityLabelsEnableRecommendationOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; +/** Optional parameters. */ +export interface SensitivityLabelsDisableRecommendationOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedInstancesGetOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface SensitivityLabelsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancesGetResponse = ManagedInstance; +export type SensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface ManagedInstancesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait 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 ManagedInstancesCreateOrUpdateResponse = ManagedInstance; +export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface ManagedInstancesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SensitivityLabelsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedInstancesUpdateOptionalParams +export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + count?: boolean; } -/** Contains response data for the update operation. */ -export type ManagedInstancesUpdateResponse = ManagedInstance; +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ManagedInstancesListByManagedInstanceOptionalParams +export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams 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; + 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 listByManagedInstance operation. */ -export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ManagedInstancesFailoverOptionalParams +export interface RecommendedSensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** 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 { - /** The type of replica to be failed over. */ - replicaType?: ReplicaType; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; + /** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolNextOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePoolNext operation. */ -export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface ManagedInstancesListNextOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ManagedInstancesListNextResponse = ManagedInstanceListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface DatabaseBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; +/** Contains response data for the get operation. */ +export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface ManagedInstancesListByManagedInstanceNextOptionalParams - 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; -} +export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerOptionalParams +export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface RestorableDroppedDatabasesGetOptionalParams +export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; +/** Contains response data for the listByDatabase operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerNextOptionalParams +export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; +/** Contains response data for the get operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesListByInstanceOptionalParams +export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesGetOptionalParams +export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase; +/** Contains response data for the listByDatabaseNext operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesListByInstanceNextOptionalParams +export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; +/** Contains response data for the listByServer operation. */ +export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface ServerConnectionPoliciesGetOptionalParams +export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; +export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; /** Optional parameters. */ -export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams +export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14430,21 +14707,14 @@ export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams } /** 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; +export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; /** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerNextOptionalParams +export interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; +export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; /** Optional parameters. */ export interface SqlManagementClientOptionalParams diff --git a/sdk/sql/arm-sql/src/models/mappers.ts b/sdk/sql/arm-sql/src/models/mappers.ts index 936dbed08279..9d2234d7c56a 100644 --- a/sdk/sql/arm-sql/src/models/mappers.ts +++ b/sdk/sql/arm-sql/src/models/mappers.ts @@ -532,122 +532,6 @@ export const ServerUsage: coreClient.CompositeMapper = { } }; -export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicyListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtendedServerBlobAuditingPolicyListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExtendedServerBlobAuditingPolicy" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerBlobAuditingPolicyListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerBlobAuditingPolicy" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseBlobAuditingPolicyListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseBlobAuditingPolicy" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const RecommendedActionStateInfo: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1245,10 +1129,10 @@ export const ElasticPoolOperationListResult: coreClient.CompositeMapper = { } }; -export const ElasticPoolListResult: coreClient.CompositeMapper = { +export const EncryptionProtectorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolListResult", + className: "EncryptionProtectorListResult", modelProperties: { value: { serializedName: "value", @@ -1258,7 +1142,7 @@ export const ElasticPoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ElasticPool" + className: "EncryptionProtector" } } } @@ -1274,79 +1158,78 @@ export const ElasticPoolListResult: coreClient.CompositeMapper = { } }; -export const Sku: coreClient.CompositeMapper = { +export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "FailoverGroupReadWriteEndpoint", modelProperties: { - name: { - serializedName: "name", + failoverPolicy: { + serializedName: "failoverPolicy", required: true, type: { name: "String" } }, - tier: { - serializedName: "tier", - type: { - name: "String" - } - }, - size: { - serializedName: "size", + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", type: { - name: "String" + name: "Number" } - }, - family: { - serializedName: "family", + } + } + } +}; + +export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", type: { name: "String" } - }, - capacity: { - serializedName: "capacity", - type: { - name: "Number" - } } } } }; -export const ElasticPoolPerDatabaseSettings: coreClient.CompositeMapper = { +export const PartnerInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseSettings", + className: "PartnerInfo", modelProperties: { - minCapacity: { - serializedName: "minCapacity", + id: { + serializedName: "id", + required: true, type: { - name: "Number" + name: "String" } }, - maxCapacity: { - serializedName: "maxCapacity", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Number" + name: "String" + } + }, + replicationRole: { + serializedName: "replicationRole", + readOnly: true, + type: { + name: "String" } } } } }; -export const ElasticPoolUpdate: coreClient.CompositeMapper = { +export const FailoverGroupUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolUpdate", + className: "FailoverGroupUpdate", modelProperties: { - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, tags: { serializedName: "tags", type: { @@ -1354,45 +1237,39 @@ export const ElasticPoolUpdate: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", - type: { - name: "Number" - } - }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { name: "Composite", - className: "ElasticPoolPerDatabaseSettings" - } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", - type: { - name: "Boolean" + className: "FailoverGroupReadWriteEndpoint" } }, - licenseType: { - serializedName: "properties.licenseType", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { - name: "String" + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + databases: { + serializedName: "properties.databases", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const EncryptionProtectorListResult: coreClient.CompositeMapper = { +export const FailoverGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtectorListResult", + className: "FailoverGroupListResult", modelProperties: { value: { serializedName: "value", @@ -1402,7 +1279,7 @@ export const EncryptionProtectorListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EncryptionProtector" + className: "FailoverGroup" } } } @@ -1418,157 +1295,20 @@ export const EncryptionProtectorListResult: coreClient.CompositeMapper = { } }; -export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { +export const ResourceWithWritableName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupReadWriteEndpoint", + className: "ResourceWithWritableName", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", - type: { - name: "Number" - } - } - } - } -}; - -export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - type: { - name: "String" - } - } - } - } -}; - -export const PartnerInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartnerInfo", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, - replicationRole: { - serializedName: "replicationRole", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const FailoverGroupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" - } - }, - databases: { - serializedName: "properties.databases", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const FailoverGroupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FailoverGroup" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ResourceWithWritableName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceWithWritableName", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", + name: { + serializedName: "name", type: { name: "String" } @@ -1743,6 +1483,46 @@ export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { } }; +export const Sku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + }, + size: { + serializedName: "size", + type: { + name: "String" + } + }, + family: { + serializedName: "family", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + } + } + } +}; + export const InstancePoolUpdate: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4172,77 +3952,6 @@ export const SecurityEventSqlInjectionAdditionalProperties: coreClient.Composite } }; -export const SensitivityLabelListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SensitivityLabelListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SensitivityLabel" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SensitivityLabelUpdateList", - modelProperties: { - operations: { - serializedName: "operations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SensitivityLabelUpdate" - } - } - } - } - } - } -}; - -export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedSensitivityLabelUpdateList", - modelProperties: { - operations: { - serializedName: "operations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedSensitivityLabelUpdate" - } - } - } - } - } - } -}; - export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4890,42 +4599,13 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const OperationsHealthListResult: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationsHealthListResult", + className: "PrivateEndpointConnectionProperties", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationsHealth" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionProperties", - modelProperties: { - privateEndpoint: { - serializedName: "privateEndpoint", + privateEndpoint: { + serializedName: "privateEndpoint", type: { name: "Composite", className: "PrivateEndpointProperty" @@ -6426,35 +6106,6 @@ export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { } }; -export const ReplicationLinkListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ReplicationLinkListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReplicationLink" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const ServerListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7086,13 +6737,6 @@ export const DatabaseIdentity: coreClient.CompositeMapper = { type: { name: "Composite", className: "DatabaseUserIdentity" } } } - }, - delegatedResources: { - serializedName: "delegatedResources", - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "Delegation" } } - } } } } @@ -7121,28 +6765,6 @@ export const DatabaseUserIdentity: coreClient.CompositeMapper = { } }; -export const Delegation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Delegation", - modelProperties: { - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "Uuid" - } - } - } - } -}; - export const DatabaseUpdate: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7410,37 +7032,15 @@ export const DatabaseUpdate: coreClient.CompositeMapper = { type: { name: "Uuid" } - }, - primaryDelegatedIdentityClientId: { - serializedName: "properties.primaryDelegatedIdentityClientId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const ResourceMoveDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceMoveDefinition", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } } } } }; -export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { +export const ExportDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExistingDatabaseDefinition", + className: "ExportDatabaseDefinition", modelProperties: { storageKeyType: { serializedName: "storageKeyType", @@ -7494,10 +7094,10 @@ export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { } }; -export const ExportDatabaseDefinition: coreClient.CompositeMapper = { +export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExportDatabaseDefinition", + className: "ImportExistingDatabaseDefinition", modelProperties: { storageKeyType: { serializedName: "storageKeyType", @@ -7551,6 +7151,22 @@ export const ExportDatabaseDefinition: coreClient.CompositeMapper = { } }; +export const ResourceMoveDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceMoveDefinition", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + } + } + } +}; + export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8199,356 +7815,223 @@ export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { } }; -export const SloUsageMetric: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SloUsageMetric", + className: "DistributedAvailabilityGroupsListResult", 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: "DistributedAvailabilityGroup" + } + } } }, - inRangeTimeRatio: { - serializedName: "inRangeTimeRatio", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const OperationImpact: coreClient.CompositeMapper = { +export const ServerTrustCertificatesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationImpact", + className: "ServerTrustCertificatesListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerTrustCertificate" + } + } } }, - 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" - } } } } }; -export const SecurityEventsFilterParameters: coreClient.CompositeMapper = { +export const ElasticPoolListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEventsFilterParameters", + className: "ElasticPoolListResult", modelProperties: { - eventTime: { - serializedName: "eventTime", + value: { + serializedName: "value", + readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ElasticPool" + } + } } }, - showServerRecords: { - serializedName: "showServerRecords", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const TrackedResource: coreClient.CompositeMapper = { +export const ElasticPoolPerDatabaseSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrackedResource", + className: "ElasticPoolPerDatabaseSettings", modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", - required: true, + minCapacity: { + serializedName: "minCapacity", type: { - name: "String" + name: "Number" } }, - tags: { - serializedName: "tags", + maxCapacity: { + serializedName: "maxCapacity", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } } } } }; -export const ProxyResourceWithWritableName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResourceWithWritableName", - modelProperties: { - ...ResourceWithWritableName.type.modelProperties - } - } -}; - -export const RecoverableDatabase: coreClient.CompositeMapper = { +export const ElasticPoolUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableDatabase", + className: "ElasticPoolUpdate", modelProperties: { - ...ProxyResource.type.modelProperties, - edition: { - serializedName: "properties.edition", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - serviceLevelObjective: { - serializedName: "properties.serviceLevelObjective", - readOnly: true, - type: { - name: "String" - } - }, - elasticPoolName: { - serializedName: "properties.elasticPoolName", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const DataMaskingPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataMaskingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { - name: "String" + name: "Number" } }, - kind: { - serializedName: "kind", - readOnly: true, + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", type: { - name: "String" + name: "Composite", + className: "ElasticPoolPerDatabaseSettings" } }, - dataMaskingState: { - serializedName: "properties.dataMaskingState", + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "Enum", - allowedValues: ["Disabled", "Enabled"] + name: "Boolean" } }, - exemptPrincipals: { - serializedName: "properties.exemptPrincipals", + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - applicationPrincipals: { - serializedName: "properties.applicationPrincipals", - readOnly: true, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } }, - maskingLevel: { - serializedName: "properties.maskingLevel", - readOnly: true, + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", type: { - name: "String" + name: "Number" } } } } }; -export const DataMaskingRule: coreClient.CompositeMapper = { +export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingRule", + className: "IPv6FirewallRuleListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, - kind: { - serializedName: "kind", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPv6FirewallRule" + } + } } }, - idPropertiesId: { - serializedName: "properties.id", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - aliasName: { - serializedName: "properties.aliasName", - type: { - name: "String" - } - }, - ruleState: { - serializedName: "properties.ruleState", - type: { - name: "Enum", - allowedValues: ["Disabled", "Enabled"] - } - }, - schemaName: { - serializedName: "properties.schemaName", - type: { - name: "String" - } - }, - tableName: { - serializedName: "properties.tableName", - type: { - name: "String" - } - }, - columnName: { - serializedName: "properties.columnName", - type: { - name: "String" - } - }, - maskingFunction: { - serializedName: "properties.maskingFunction", - type: { - name: "Enum", - allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"] - } - }, - numberFrom: { - serializedName: "properties.numberFrom", - type: { - name: "String" - } - }, - numberTo: { - serializedName: "properties.numberTo", - type: { - name: "String" - } - }, - prefixSize: { - serializedName: "properties.prefixSize", - type: { - name: "String" - } - }, - suffixSize: { - serializedName: "properties.suffixSize", - type: { - name: "String" - } - }, - replacementString: { - serializedName: "properties.replacementString", - type: { - name: "String" - } } } } }; -export const GeoBackupPolicy: coreClient.CompositeMapper = { +export const EndpointCertificateListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GeoBackupPolicy", + className: "EndpointCertificateListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" - } - }, - state: { - serializedName: "properties.state", - required: true, - type: { - name: "Enum", - allowedValues: ["Disabled", "Enabled"] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointCertificate" + } + } } }, - storageType: { - serializedName: "properties.storageType", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -8558,35 +8041,56 @@ export const GeoBackupPolicy: coreClient.CompositeMapper = { } }; -export const ServerCommunicationLink: coreClient.CompositeMapper = { +export const ReplicationLinkListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerCommunicationLink", + className: "ReplicationLinkListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicationLink" + } + } } }, - kind: { - serializedName: "kind", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const SensitivityLabelListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SensitivityLabelListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SensitivityLabel" + } + } } }, - partnerServer: { - serializedName: "properties.partnerServer", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -8595,20 +8099,574 @@ export const ServerCommunicationLink: coreClient.CompositeMapper = { } }; -export const ServiceObjective: coreClient.CompositeMapper = { +export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceObjective", + className: "SensitivityLabelUpdateList", modelProperties: { - ...ProxyResource.type.modelProperties, - serviceObjectiveName: { - serializedName: "properties.serviceObjectiveName", - readOnly: true, + operations: { + serializedName: "operations", type: { - name: "String" - } - }, - isDefault: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SensitivityLabelUpdate" + } + } + } + } + } + } +}; + +export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecommendedSensitivityLabelUpdateList", + modelProperties: { + operations: { + serializedName: "operations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedSensitivityLabelUpdate" + } + } + } + } + } + } +}; + +export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerBlobAuditingPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerBlobAuditingPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseBlobAuditingPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseBlobAuditingPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExtendedDatabaseBlobAuditingPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtendedDatabaseBlobAuditingPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExtendedServerBlobAuditingPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtendedServerBlobAuditingPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SloUsageMetric: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SloUsageMetric", + modelProperties: { + serviceLevelObjective: { + serializedName: "serviceLevelObjective", + readOnly: true, + type: { + name: "String" + } + }, + serviceLevelObjectiveId: { + serializedName: "serviceLevelObjectiveId", + readOnly: true, + type: { + name: "Uuid" + } + }, + inRangeTimeRatio: { + serializedName: "inRangeTimeRatio", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const OperationImpact: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationImpact", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, + changeValueAbsolute: { + serializedName: "changeValueAbsolute", + readOnly: true, + type: { + name: "Number" + } + }, + changeValueRelative: { + serializedName: "changeValueRelative", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const SecurityEventsFilterParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityEventsFilterParameters", + modelProperties: { + eventTime: { + serializedName: "eventTime", + type: { + name: "DateTime" + } + }, + showServerRecords: { + serializedName: "showServerRecords", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const ProxyResourceWithWritableName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResourceWithWritableName", + modelProperties: { + ...ResourceWithWritableName.type.modelProperties + } + } +}; + +export const RecoverableDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecoverableDatabase", + modelProperties: { + ...ProxyResource.type.modelProperties, + edition: { + serializedName: "properties.edition", + readOnly: true, + type: { + name: "String" + } + }, + serviceLevelObjective: { + serializedName: "properties.serviceLevelObjective", + readOnly: true, + type: { + name: "String" + } + }, + elasticPoolName: { + serializedName: "properties.elasticPoolName", + readOnly: true, + type: { + name: "String" + } + }, + lastAvailableBackupDate: { + serializedName: "properties.lastAvailableBackupDate", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const DataMaskingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataMaskingPolicy", + 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, + type: { + name: "String" + } + }, + maskingLevel: { + serializedName: "properties.maskingLevel", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DataMaskingRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataMaskingRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + idPropertiesId: { + serializedName: "properties.id", + readOnly: true, + type: { + name: "String" + } + }, + aliasName: { + serializedName: "properties.aliasName", + type: { + name: "String" + } + }, + ruleState: { + serializedName: "properties.ruleState", + type: { + name: "Enum", + allowedValues: ["Disabled", "Enabled"] + } + }, + schemaName: { + serializedName: "properties.schemaName", + type: { + name: "String" + } + }, + tableName: { + serializedName: "properties.tableName", + type: { + name: "String" + } + }, + columnName: { + serializedName: "properties.columnName", + type: { + name: "String" + } + }, + maskingFunction: { + serializedName: "properties.maskingFunction", + type: { + name: "Enum", + allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"] + } + }, + numberFrom: { + serializedName: "properties.numberFrom", + type: { + name: "String" + } + }, + numberTo: { + serializedName: "properties.numberTo", + type: { + name: "String" + } + }, + prefixSize: { + serializedName: "properties.prefixSize", + type: { + name: "String" + } + }, + suffixSize: { + serializedName: "properties.suffixSize", + type: { + name: "String" + } + }, + replacementString: { + serializedName: "properties.replacementString", + type: { + name: "String" + } + } + } + } +}; + +export const GeoBackupPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GeoBackupPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + required: true, + type: { + name: "Enum", + allowedValues: ["Disabled", "Enabled"] + } + }, + storageType: { + serializedName: "properties.storageType", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerCommunicationLink: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerCommunicationLink", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + }, + partnerServer: { + serializedName: "properties.partnerServer", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceObjective: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceObjective", + modelProperties: { + ...ProxyResource.type.modelProperties, + serviceObjectiveName: { + serializedName: "properties.serviceObjectiveName", + readOnly: true, + type: { + name: "String" + } + }, + isDefault: { serializedName: "properties.isDefault", readOnly: true, type: { @@ -8917,244 +8975,223 @@ export const ElasticPoolDatabaseActivity: coreClient.CompositeMapper = { } }; -export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const RecommendedAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy", + className: "RecommendedAction", modelProperties: { ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + kind: { + serializedName: "kind", + readOnly: true, type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + recommendationReason: { + serializedName: "properties.recommendationReason", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + validSince: { + serializedName: "properties.validSince", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + lastRefresh: { + serializedName: "properties.lastRefresh", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, state: { serializedName: "properties.state", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" + name: "Composite", + className: "RecommendedActionStateInfo" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtendedServerBlobAuditingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", + isExecutableAction: { + serializedName: "properties.isExecutableAction", + readOnly: true, type: { name: "Boolean" } }, - predicateExpression: { - serializedName: "properties.predicateExpression", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + isRevertableAction: { + serializedName: "properties.isRevertableAction", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + isArchivedAction: { + serializedName: "properties.isArchivedAction", + readOnly: true, type: { name: "Boolean" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + executeActionStartTime: { + serializedName: "properties.executeActionStartTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + executeActionDuration: { + serializedName: "properties.executeActionDuration", + readOnly: true, type: { - name: "Number" + name: "String" } }, - state: { - serializedName: "properties.state", + revertActionStartTime: { + serializedName: "properties.revertActionStartTime", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "DateTime" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + revertActionDuration: { + serializedName: "properties.revertActionDuration", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + executeActionInitiatedBy: { + serializedName: "properties.executeActionInitiatedBy", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["User", "System"] } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + executeActionInitiatedTime: { + serializedName: "properties.executeActionInitiatedTime", + readOnly: true, type: { - name: "Uuid" + name: "DateTime" } - } - } - } -}; - -export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerBlobAuditingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", + }, + revertActionInitiatedBy: { + serializedName: "properties.revertActionInitiatedBy", + readOnly: true, type: { - name: "Boolean" + name: "Enum", + allowedValues: ["User", "System"] } }, - retentionDays: { - serializedName: "properties.retentionDays", + revertActionInitiatedTime: { + serializedName: "properties.revertActionInitiatedTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + score: { + serializedName: "properties.score", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + implementationDetails: { + serializedName: "properties.implementationDetails", type: { - name: "Boolean" + name: "Composite", + className: "RecommendedActionImplementationInfo" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + errorDetails: { + serializedName: "properties.errorDetails", type: { - name: "Boolean" + name: "Composite", + className: "RecommendedActionErrorInfo" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + estimatedImpact: { + serializedName: "properties.estimatedImpact", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionImpactRecord" + } + } } }, - state: { - serializedName: "properties.state", + observedImpact: { + serializedName: "properties.observedImpact", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionImpactRecord" + } + } } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + timeSeries: { + serializedName: "properties.timeSeries", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionMetricInfo" + } + } } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + linkedObjects: { + serializedName: "properties.linkedObjects", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + details: { + serializedName: "properties.details", + readOnly: true, type: { - name: "Uuid" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const Advisor: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicy", + className: "Advisor", modelProperties: { ...ProxyResource.type.modelProperties, kind: { @@ -9164,537 +9201,556 @@ export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Number" + name: "String" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + advisorStatus: { + serializedName: "properties.advisorStatus", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: [ + "GA", + "PublicPreview", + "LimitedPublicPreview", + "PrivatePreview" + ] } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + autoExecuteStatus: { + serializedName: "properties.autoExecuteStatus", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["Enabled", "Disabled", "Default"] } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + autoExecuteStatusInheritedFrom: { + serializedName: "properties.autoExecuteStatusInheritedFrom", + readOnly: true, type: { - name: "Boolean" + name: "Enum", + allowedValues: [ + "Default", + "Subscription", + "Server", + "ElasticPool", + "Database" + ] } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + recommendationsStatus: { + serializedName: "properties.recommendationsStatus", + readOnly: true, type: { - name: "Number" + name: "String" } }, - state: { - serializedName: "properties.state", + lastChecked: { + serializedName: "properties.lastChecked", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "DateTime" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + recommendedActions: { + serializedName: "properties.recommendedActions", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedAction" + } + } + } + } + } + } +}; + +export const DatabaseAutomaticTuning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseAutomaticTuning", + modelProperties: { + ...ProxyResource.type.modelProperties, + desiredState: { + serializedName: "properties.desiredState", + type: { + name: "Enum", + allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + actualState: { + serializedName: "properties.actualState", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + options: { + serializedName: "properties.options", type: { - name: "Uuid" + name: "Dictionary", + value: { + type: { name: "Composite", className: "AutomaticTuningOptions" } + } } } } } }; -export const RecommendedAction: coreClient.CompositeMapper = { +export const DatabaseColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedAction", + className: "DatabaseColumn", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + columnType: { + serializedName: "properties.columnType", type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + temporalType: { + serializedName: "properties.temporalType", type: { name: "String" } }, - recommendationReason: { - serializedName: "properties.recommendationReason", - readOnly: true, + memoryOptimized: { + serializedName: "properties.memoryOptimized", type: { - name: "String" + name: "Boolean" } }, - validSince: { - serializedName: "properties.validSince", - readOnly: true, + isComputed: { + serializedName: "properties.isComputed", type: { - name: "DateTime" + name: "Boolean" } - }, - lastRefresh: { - serializedName: "properties.lastRefresh", - readOnly: true, + } + } + } +}; + +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: "DateTime" + name: "Composite", + className: "SystemData" } }, state: { serializedName: "properties.state", type: { - name: "Composite", - className: "RecommendedActionStateInfo" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - isExecutableAction: { - serializedName: "properties.isExecutableAction", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - isRevertableAction: { - serializedName: "properties.isRevertableAction", - readOnly: true, + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - isArchivedAction: { - serializedName: "properties.isArchivedAction", - readOnly: true, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { name: "Boolean" } }, - executeActionStartTime: { - serializedName: "properties.executeActionStartTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - executeActionDuration: { - serializedName: "properties.executeActionDuration", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - revertActionStartTime: { - serializedName: "properties.revertActionStartTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - revertActionDuration: { - serializedName: "properties.revertActionDuration", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - executeActionInitiatedBy: { - serializedName: "properties.executeActionInitiatedBy", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["User", "System"] - } - }, - executeActionInitiatedTime: { - serializedName: "properties.executeActionInitiatedTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - revertActionInitiatedBy: { - serializedName: "properties.revertActionInitiatedBy", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Enum", - allowedValues: ["User", "System"] + name: "Number" } }, - revertActionInitiatedTime: { - serializedName: "properties.revertActionInitiatedTime", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { name: "DateTime" } - }, - score: { - serializedName: "properties.score", - readOnly: true, - type: { - name: "Number" - } - }, - implementationDetails: { - serializedName: "properties.implementationDetails", + } + } + } +}; + +export const DatabaseTable: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseTable", + modelProperties: { + ...ProxyResource.type.modelProperties, + temporalType: { + serializedName: "properties.temporalType", type: { - name: "Composite", - className: "RecommendedActionImplementationInfo" + name: "String" } }, - errorDetails: { - serializedName: "properties.errorDetails", + memoryOptimized: { + serializedName: "properties.memoryOptimized", type: { - name: "Composite", - className: "RecommendedActionErrorInfo" + name: "Boolean" } - }, - estimatedImpact: { - serializedName: "properties.estimatedImpact", - readOnly: true, + } + } + } +}; + +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: "RecommendedActionImpactRecord" + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" } } } - }, - observedImpact: { - serializedName: "properties.observedImpact", - readOnly: true, + } + } + } +}; + +export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedActionImpactRecord" - } - } + name: "String" } }, - timeSeries: { - serializedName: "properties.timeSeries", - readOnly: true, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedActionMetricInfo" - } - } + name: "String" } }, - linkedObjects: { - serializedName: "properties.linkedObjects", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - details: { - serializedName: "properties.details", - readOnly: true, + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const Advisor: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Advisor", + className: "VulnerabilityAssessmentScanRecord", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + scanId: { + serializedName: "properties.scanId", readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", + triggerType: { + serializedName: "properties.triggerType", readOnly: true, type: { name: "String" } }, - advisorStatus: { - serializedName: "properties.advisorStatus", - readOnly: true, - type: { - name: "Enum", - allowedValues: [ - "GA", - "PublicPreview", - "LimitedPublicPreview", - "PrivatePreview" - ] - } - }, - autoExecuteStatus: { - serializedName: "properties.autoExecuteStatus", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled", "Default"] - } - }, - autoExecuteStatusInheritedFrom: { - serializedName: "properties.autoExecuteStatusInheritedFrom", + state: { + serializedName: "properties.state", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "Default", - "Subscription", - "Server", - "ElasticPool", - "Database" - ] + name: "String" } }, - recommendationsStatus: { - serializedName: "properties.recommendationsStatus", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - lastChecked: { - serializedName: "properties.lastChecked", + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { name: "DateTime" } }, - recommendedActions: { - serializedName: "properties.recommendedActions", + errors: { + serializedName: "properties.errors", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecommendedAction" + className: "VulnerabilityAssessmentScanError" } } } + }, + storageContainerPath: { + serializedName: "properties.storageContainerPath", + readOnly: true, + type: { + name: "String" + } + }, + numberOfFailedSecurityChecks: { + serializedName: "properties.numberOfFailedSecurityChecks", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const DatabaseAutomaticTuning: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseAutomaticTuning", + className: "DatabaseVulnerabilityAssessmentScansExport", modelProperties: { ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", - type: { - name: "Enum", - allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] - } - }, - actualState: { - serializedName: "properties.actualState", + exportedReportLocation: { + serializedName: "properties.exportedReportLocation", readOnly: true, type: { - name: "Enum", - allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] + name: "String" } - }, - options: { - serializedName: "properties.options", + } + } + } +}; + +export const DataWarehouseUserActivities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataWarehouseUserActivities", + modelProperties: { + ...ProxyResource.type.modelProperties, + activeQueriesCount: { + serializedName: "properties.activeQueriesCount", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "AutomaticTuningOptions" } - } + name: "Number" } } } } }; -export const DatabaseColumn: coreClient.CompositeMapper = { +export const DeletedServer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseColumn", + className: "DeletedServer", modelProperties: { ...ProxyResource.type.modelProperties, - columnType: { - serializedName: "properties.columnType", + version: { + serializedName: "properties.version", + readOnly: true, type: { name: "String" } }, - temporalType: { - serializedName: "properties.temporalType", + deletionTime: { + serializedName: "properties.deletionTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - memoryOptimized: { - serializedName: "properties.memoryOptimized", + originalId: { + serializedName: "properties.originalId", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isComputed: { - serializedName: "properties.isComputed", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", + readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const DatabaseSchema: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSchema", - modelProperties: { - ...ProxyResource.type.modelProperties - } - } -}; - -export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { +export const ElasticPoolOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSecurityAlertPolicy", + className: "ElasticPoolOperation", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + elasticPoolName: { + serializedName: "properties.elasticPoolName", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - state: { - serializedName: "properties.state", + operation: { + serializedName: "properties.operation", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + startTime: { + serializedName: "properties.startTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, + type: { + name: "Number" + } + }, + errorDescription: { + serializedName: "properties.errorDescription", + readOnly: true, type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, type: { name: "Number" } }, - creationTime: { - serializedName: "properties.creationTime", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, + type: { + name: "Boolean" + } + }, + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", readOnly: true, type: { name: "DateTime" } - } - } - } -}; - -export const DatabaseTable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseTable", - modelProperties: { - ...ProxyResource.type.modelProperties, - temporalType: { - serializedName: "properties.temporalType", + }, + description: { + serializedName: "properties.description", + readOnly: true, type: { name: "String" } }, - memoryOptimized: { - serializedName: "properties.memoryOptimized", + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, type: { name: "Boolean" } @@ -9703,199 +9759,220 @@ export const DatabaseTable: coreClient.CompositeMapper = { } }; -export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { +export const EncryptionProtector: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaseline", + className: "EncryptionProtector", modelProperties: { ...ProxyResource.type.modelProperties, - baselineResults: { - serializedName: "properties.baselineResults", + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" - } - } + name: "String" } - } - } - } -}; - -export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + subregion: { + serializedName: "properties.subregion", + readOnly: true, type: { name: "String" } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + serverKeyName: { + serializedName: "properties.serverKeyName", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + serverKeyType: { + serializedName: "properties.serverKeyType", type: { name: "String" } }, - recurringScans: { - serializedName: "properties.recurringScans", + uri: { + serializedName: "properties.uri", + readOnly: true, type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + name: "String" + } + }, + thumbprint: { + serializedName: "properties.thumbprint", + readOnly: true, + type: { + name: "String" + } + }, + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + type: { + name: "Boolean" } } } } }; -export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { +export const FailoverGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecord", + className: "FailoverGroup", modelProperties: { ...ProxyResource.type.modelProperties, - scanId: { - serializedName: "properties.scanId", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - triggerType: { - serializedName: "properties.triggerType", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - state: { - serializedName: "properties.state", - readOnly: true, + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { - name: "String" + name: "Composite", + className: "FailoverGroupReadWriteEndpoint" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { - name: "DateTime" + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" } }, - endTime: { - serializedName: "properties.endTime", + replicationRole: { + serializedName: "properties.replicationRole", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - errors: { - serializedName: "properties.errors", + replicationState: { + serializedName: "properties.replicationState", readOnly: true, + type: { + name: "String" + } + }, + partnerServers: { + serializedName: "properties.partnerServers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VulnerabilityAssessmentScanError" + className: "PartnerInfo" } } } }, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - readOnly: true, - type: { - name: "String" - } - }, - numberOfFailedSecurityChecks: { - serializedName: "properties.numberOfFailedSecurityChecks", - readOnly: true, + databases: { + serializedName: "properties.databases", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { +export const InstanceFailoverGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentScansExport", + className: "InstanceFailoverGroup", modelProperties: { ...ProxyResource.type.modelProperties, - exportedReportLocation: { - serializedName: "properties.exportedReportLocation", + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", + type: { + name: "Composite", + className: "InstanceFailoverGroupReadWriteEndpoint" + } + }, + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", + type: { + name: "Composite", + className: "InstanceFailoverGroupReadOnlyEndpoint" + } + }, + replicationRole: { + serializedName: "properties.replicationRole", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const DataWarehouseUserActivities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataWarehouseUserActivities", - modelProperties: { - ...ProxyResource.type.modelProperties, - activeQueriesCount: { - serializedName: "properties.activeQueriesCount", + }, + replicationState: { + serializedName: "properties.replicationState", readOnly: true, type: { - name: "Number" + 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 DeletedServer: coreClient.CompositeMapper = { +export const JobCredential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeletedServer", + className: "JobCredential", modelProperties: { ...ProxyResource.type.modelProperties, - version: { - serializedName: "properties.version", - readOnly: true, - type: { - name: "String" - } - }, - deletionTime: { - serializedName: "properties.deletionTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - originalId: { - serializedName: "properties.originalId", - readOnly: true, + username: { + serializedName: "properties.username", type: { name: "String" } }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", - readOnly: true, + password: { + serializedName: "properties.password", type: { name: "String" } @@ -9904,306 +9981,406 @@ export const DeletedServer: coreClient.CompositeMapper = { } }; -export const ElasticPoolOperation: coreClient.CompositeMapper = { +export const JobExecution: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolOperation", + className: "JobExecution", modelProperties: { ...ProxyResource.type.modelProperties, - elasticPoolName: { - serializedName: "properties.elasticPoolName", + jobVersion: { + serializedName: "properties.jobVersion", readOnly: true, type: { - name: "String" + name: "Number" } }, - operation: { - serializedName: "properties.operation", + stepName: { + serializedName: "properties.stepName", readOnly: true, type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + stepId: { + serializedName: "properties.stepId", readOnly: true, type: { - name: "String" + name: "Number" } }, - percentComplete: { - serializedName: "properties.percentComplete", + jobExecutionId: { + serializedName: "properties.jobExecutionId", readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - serverName: { - serializedName: "properties.serverName", + lifecycle: { + serializedName: "properties.lifecycle", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", + createTime: { + serializedName: "properties.createTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - errorCode: { - serializedName: "properties.errorCode", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - errorDescription: { - serializedName: "properties.errorDescription", + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + currentAttempts: { + serializedName: "properties.currentAttempts", type: { name: "Number" } }, - isUserError: { - serializedName: "properties.isUserError", + currentAttemptStartTime: { + serializedName: "properties.currentAttemptStartTime", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", + lastMessage: { + serializedName: "properties.lastMessage", readOnly: true, type: { - name: "DateTime" + 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", - readOnly: true, type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", + version: { + serializedName: "properties.version", readOnly: true, type: { - name: "Boolean" + name: "Number" + } + }, + schedule: { + serializedName: "properties.schedule", + type: { + name: "Composite", + className: "JobSchedule" } } } } }; -export const EncryptionProtector: coreClient.CompositeMapper = { +export const JobStep: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtector", + className: "JobStep", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + stepId: { + serializedName: "properties.stepId", type: { - name: "String" + name: "Number" } }, - location: { - serializedName: "location", - readOnly: true, + targetGroup: { + serializedName: "properties.targetGroup", type: { name: "String" } }, - subregion: { - serializedName: "properties.subregion", - readOnly: true, + credential: { + serializedName: "properties.credential", type: { name: "String" } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + action: { + serializedName: "properties.action", type: { - name: "String" + name: "Composite", + className: "JobStepAction" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + output: { + serializedName: "properties.output", + type: { + name: "Composite", + className: "JobStepOutput" + } + }, + executionOptions: { + serializedName: "properties.executionOptions", + type: { + name: "Composite", + className: "JobStepExecutionOptions" + } + } + } + } +}; + +export const JobTargetGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobTargetGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + members: { + serializedName: "properties.members", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobTarget" + } + } + } + } + } + } +}; + +export const JobVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobVersion", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const LongTermRetentionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LongTermRetentionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { name: "String" } }, - uri: { - serializedName: "properties.uri", - readOnly: true, + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", - readOnly: true, + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "Boolean" + name: "Number" } } } } }; -export const FailoverGroup: coreClient.CompositeMapper = { +export const MaintenanceWindowOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroup", + className: "MaintenanceWindowOptions", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "String" + name: "Boolean" } }, - tags: { - serializedName: "tags", + maintenanceWindowCycles: { + serializedName: "properties.maintenanceWindowCycles", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceWindowTimeRange" + } + } } }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", + minDurationInMinutes: { + serializedName: "properties.minDurationInMinutes", type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" + name: "Number" } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + defaultDurationInMinutes: { + serializedName: "properties.defaultDurationInMinutes", type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" + name: "Number" } }, - replicationRole: { - serializedName: "properties.replicationRole", - readOnly: true, + minCycles: { + serializedName: "properties.minCycles", type: { - name: "String" + name: "Number" } }, - replicationState: { - serializedName: "properties.replicationState", - readOnly: true, + timeGranularityInMinutes: { + serializedName: "properties.timeGranularityInMinutes", type: { - name: "String" + name: "Number" } }, - partnerServers: { - serializedName: "properties.partnerServers", + allowMultipleMaintenanceWindowsPerCycle: { + serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MaintenanceWindows: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MaintenanceWindows", + modelProperties: { + ...ProxyResource.type.modelProperties, + timeRanges: { + serializedName: "properties.timeRanges", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PartnerInfo" + className: "MaintenanceWindowTimeRange" } } } - }, - databases: { - serializedName: "properties.databases", + } + } + } +}; + +export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedBackupShortTermRetentionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" + } + } + } + } +}; + +export const ManagedInstanceQuery: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceQuery", + modelProperties: { + ...ProxyResource.type.modelProperties, + queryText: { + serializedName: "properties.queryText", + type: { + name: "String" } } } } }; -export const InstanceFailoverGroup: coreClient.CompositeMapper = { +export const QueryStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroup", + className: "QueryStatistics", modelProperties: { ...ProxyResource.type.modelProperties, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint" + name: "String" } }, - replicationRole: { - serializedName: "properties.replicationRole", + queryId: { + serializedName: "properties.queryId", readOnly: true, type: { name: "String" } }, - replicationState: { - serializedName: "properties.replicationState", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { name: "String" } }, - partnerRegions: { - serializedName: "properties.partnerRegions", + endTime: { + serializedName: "properties.endTime", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerRegionInfo" - } - } + name: "String" } }, - managedInstancePairs: { - serializedName: "properties.managedInstancePairs", + intervals: { + serializedName: "properties.intervals", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstancePairInfo" + className: "QueryMetricInterval" } } } @@ -10212,324 +10389,348 @@ export const InstanceFailoverGroup: coreClient.CompositeMapper = { } }; -export const JobCredential: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobCredential", + className: "ManagedDatabaseRestoreDetailsResult", modelProperties: { ...ProxyResource.type.modelProperties, - username: { - serializedName: "properties.username", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String" } }, - password: { - serializedName: "properties.password", + currentRestoringFileName: { + serializedName: "properties.currentRestoringFileName", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const JobExecution: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobExecution", - modelProperties: { - ...ProxyResource.type.modelProperties, - jobVersion: { - serializedName: "properties.jobVersion", + }, + lastRestoredFileName: { + serializedName: "properties.lastRestoredFileName", readOnly: true, type: { - name: "Number" + name: "String" } }, - stepName: { - serializedName: "properties.stepName", + lastRestoredFileTime: { + serializedName: "properties.lastRestoredFileTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - stepId: { - serializedName: "properties.stepId", + percentCompleted: { + serializedName: "properties.percentCompleted", readOnly: true, type: { name: "Number" } }, - jobExecutionId: { - serializedName: "properties.jobExecutionId", + unrestorableFiles: { + serializedName: "properties.unrestorableFiles", readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - lifecycle: { - serializedName: "properties.lifecycle", + numberOfFilesDetected: { + serializedName: "properties.numberOfFilesDetected", readOnly: true, type: { - name: "String" + name: "Number" } }, - provisioningState: { - serializedName: "properties.provisioningState", + lastUploadedFileName: { + serializedName: "properties.lastUploadedFileName", readOnly: true, type: { name: "String" } }, - createTime: { - serializedName: "properties.createTime", + lastUploadedFileTime: { + serializedName: "properties.lastUploadedFileTime", readOnly: true, type: { name: "DateTime" } }, - startTime: { - serializedName: "properties.startTime", + blockReason: { + serializedName: "properties.blockReason", readOnly: true, type: { - name: "DateTime" + name: "String" + } + } + } + } +}; + +export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabaseSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - currentAttempts: { - serializedName: "properties.currentAttempts", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - currentAttemptStartTime: { - serializedName: "properties.currentAttemptStartTime", - readOnly: true, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "DateTime" + name: "Boolean" } }, - lastMessage: { - serializedName: "properties.lastMessage", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - target: { - serializedName: "properties.target", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Composite", - className: "JobExecutionTarget" + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, + type: { + name: "DateTime" } } } } }; -export const Job: coreClient.CompositeMapper = { +export const SecurityEvent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Job", + className: "SecurityEvent", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - defaultValue: "", - serializedName: "properties.description", + eventTime: { + serializedName: "properties.eventTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - version: { - serializedName: "properties.version", + securityEventType: { + serializedName: "properties.securityEventType", readOnly: true, type: { - name: "Number" + name: "Enum", + allowedValues: [ + "Undefined", + "SqlInjectionVulnerability", + "SqlInjectionExploit" + ] } }, - schedule: { - serializedName: "properties.schedule", + subscription: { + serializedName: "properties.subscription", + readOnly: true, type: { - name: "Composite", - className: "JobSchedule" + name: "String" } - } - } - } -}; - -export const JobStep: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobStep", - modelProperties: { - ...ProxyResource.type.modelProperties, - stepId: { - serializedName: "properties.stepId", + }, + server: { + serializedName: "properties.server", + readOnly: true, type: { - name: "Number" + name: "String" } }, - targetGroup: { - serializedName: "properties.targetGroup", + database: { + serializedName: "properties.database", + readOnly: true, type: { name: "String" } }, - credential: { - serializedName: "properties.credential", + clientIp: { + serializedName: "properties.clientIp", + readOnly: true, type: { name: "String" } }, - action: { - serializedName: "properties.action", + applicationName: { + serializedName: "properties.applicationName", + readOnly: true, type: { - name: "Composite", - className: "JobStepAction" + name: "String" } }, - output: { - serializedName: "properties.output", + principalName: { + serializedName: "properties.principalName", + readOnly: true, type: { - name: "Composite", - className: "JobStepOutput" + name: "String" } }, - executionOptions: { - serializedName: "properties.executionOptions", + securityEventSqlInjectionAdditionalProperties: { + serializedName: + "properties.securityEventSqlInjectionAdditionalProperties", type: { name: "Composite", - className: "JobStepExecutionOptions" + className: "SecurityEventSqlInjectionAdditionalProperties" } } } } }; -export const JobTargetGroup: coreClient.CompositeMapper = { +export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobTargetGroup", + className: "ManagedTransparentDataEncryption", modelProperties: { ...ProxyResource.type.modelProperties, - members: { - serializedName: "properties.members", + state: { + serializedName: "properties.state", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobTarget" - } - } + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const JobVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobVersion", - modelProperties: { - ...ProxyResource.type.modelProperties - } - } -}; - -export const LongTermRetentionPolicy: coreClient.CompositeMapper = { +export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionPolicy", + className: "ManagedInstanceAdministrator", modelProperties: { ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", + administratorType: { + serializedName: "properties.administratorType", type: { name: "String" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + login: { + serializedName: "properties.login", type: { name: "String" } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + sid: { + serializedName: "properties.sid", type: { - name: "String" + name: "Uuid" } }, - weekOfYear: { - serializedName: "properties.weekOfYear", + tenantId: { + serializedName: "properties.tenantId", type: { - name: "Number" + name: "Uuid" } } } } }; -export const MaintenanceWindowOptions: coreClient.CompositeMapper = { +export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindowOptions", + className: "ManagedInstanceAzureADOnlyAuthentication", modelProperties: { ...ProxyResource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", type: { name: "Boolean" } - }, - maintenanceWindowCycles: { - serializedName: "properties.maintenanceWindowCycles", + } + } + } +}; + +export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceEncryptionProtector", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } + name: "String" } }, - minDurationInMinutes: { - serializedName: "properties.minDurationInMinutes", + serverKeyName: { + serializedName: "properties.serverKeyName", type: { - name: "Number" + name: "String" } }, - defaultDurationInMinutes: { - serializedName: "properties.defaultDurationInMinutes", + serverKeyType: { + serializedName: "properties.serverKeyType", type: { - name: "Number" + name: "String" } }, - minCycles: { - serializedName: "properties.minCycles", + uri: { + serializedName: "properties.uri", + readOnly: true, type: { - name: "Number" + name: "String" } }, - timeGranularityInMinutes: { - serializedName: "properties.timeGranularityInMinutes", + thumbprint: { + serializedName: "properties.thumbprint", + readOnly: true, type: { - name: "Number" + name: "String" } }, - allowMultipleMaintenanceWindowsPerCycle: { - serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", type: { name: "Boolean" } @@ -10538,489 +10739,490 @@ export const MaintenanceWindowOptions: coreClient.CompositeMapper = { } }; -export const MaintenanceWindows: coreClient.CompositeMapper = { +export const ManagedInstanceKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindows", + className: "ManagedInstanceKey", modelProperties: { ...ProxyResource.type.modelProperties, - timeRanges: { - serializedName: "properties.timeRanges", + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } + name: "String" } - } - } - } -}; - -export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + }, + serverKeyType: { + serializedName: "properties.serverKeyType", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const ManagedInstanceQuery: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceQuery", - modelProperties: { - ...ProxyResource.type.modelProperties, - queryText: { - serializedName: "properties.queryText", + }, + uri: { + serializedName: "properties.uri", type: { name: "String" } + }, + thumbprint: { + serializedName: "properties.thumbprint", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + readOnly: true, + type: { + name: "Boolean" + } } } } }; -export const QueryStatistics: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStatistics", + className: "ManagedInstanceLongTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, - type: { - name: "String" - } - }, - queryId: { - serializedName: "properties.queryId", - readOnly: true, + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { name: "String" } }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } }, - intervals: { - serializedName: "properties.intervals", + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QueryMetricInterval" - } - } + name: "Number" } } } } }; -export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { +export const ManagedInstanceOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsResult", + className: "ManagedInstanceOperation", modelProperties: { ...ProxyResource.type.modelProperties, - status: { - serializedName: "properties.status", - readOnly: true, - type: { - name: "String" - } - }, - currentRestoringFileName: { - serializedName: "properties.currentRestoringFileName", + managedInstanceName: { + serializedName: "properties.managedInstanceName", readOnly: true, type: { name: "String" } }, - lastRestoredFileName: { - serializedName: "properties.lastRestoredFileName", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - lastRestoredFileTime: { - serializedName: "properties.lastRestoredFileTime", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - percentCompleted: { - serializedName: "properties.percentCompleted", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { name: "Number" } }, - unrestorableFiles: { - serializedName: "properties.unrestorableFiles", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - numberOfFilesDetected: { - serializedName: "properties.numberOfFilesDetected", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - lastUploadedFileName: { - serializedName: "properties.lastUploadedFileName", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - lastUploadedFileTime: { - serializedName: "properties.lastUploadedFileTime", + errorCode: { + serializedName: "properties.errorCode", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - blockReason: { - serializedName: "properties.blockReason", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] - } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + description: { + serializedName: "properties.description", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - retentionDays: { - serializedName: "properties.retentionDays", + operationParameters: { + serializedName: "properties.operationParameters", type: { - name: "Number" + name: "Composite", + className: "ManagedInstanceOperationParametersPair" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + operationSteps: { + serializedName: "properties.operationSteps", type: { - name: "DateTime" + name: "Composite", + className: "ManagedInstanceOperationSteps" } } } } }; -export const SecurityEvent: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEvent", + className: "ManagedInstancePrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - eventTime: { - serializedName: "properties.eventTime", - readOnly: true, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "DateTime" + name: "Composite", + className: "ManagedInstancePrivateEndpointProperty" } }, - securityEventType: { - serializedName: "properties.securityEventType", - readOnly: true, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "Enum", - allowedValues: [ - "Undefined", - "SqlInjectionVulnerability", - "SqlInjectionExploit" - ] + name: "Composite", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" } }, - subscription: { - serializedName: "properties.subscription", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } - }, - server: { - serializedName: "properties.server", - readOnly: true, + } + } + } +}; + +export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePrivateLink", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ManagedInstancePrivateLinkProperties" + } + } + } + } +}; + +export const TdeCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TdeCertificate", + modelProperties: { + ...ProxyResource.type.modelProperties, + privateBlob: { + serializedName: "properties.privateBlob", type: { name: "String" } }, - database: { - serializedName: "properties.database", - readOnly: true, + certPassword: { + serializedName: "properties.certPassword", type: { name: "String" } - }, - clientIp: { - serializedName: "properties.clientIp", - readOnly: true, + } + } + } +}; + +export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - applicationName: { - serializedName: "properties.applicationName", - readOnly: true, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } }, - principalName: { - serializedName: "properties.principalName", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - securityEventSqlInjectionAdditionalProperties: { - serializedName: - "properties.securityEventSqlInjectionAdditionalProperties", + recurringScans: { + serializedName: "properties.recurringScans", type: { name: "Composite", - className: "SecurityEventSqlInjectionAdditionalProperties" + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const SensitivityLabel: coreClient.CompositeMapper = { +export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabel", + className: "ManagedServerSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - managedBy: { - serializedName: "managedBy", - readOnly: true, - type: { - name: "String" - } - }, - schemaName: { - serializedName: "properties.schemaName", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - tableName: { - serializedName: "properties.tableName", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - columnName: { - serializedName: "properties.columnName", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - labelName: { - serializedName: "properties.labelName", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - labelId: { - serializedName: "properties.labelId", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "String" + name: "Boolean" } }, - informationType: { - serializedName: "properties.informationType", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - informationTypeId: { - serializedName: "properties.informationTypeId", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - isDisabled: { - serializedName: "properties.isDisabled", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Boolean" + name: "Number" } }, - rank: { - serializedName: "properties.rank", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "Enum", - allowedValues: ["None", "Low", "Medium", "High", "Critical"] + name: "DateTime" } } } } }; -export const SensitivityLabelUpdate: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabelUpdate", + className: "PrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - op: { - serializedName: "properties.op", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "Enum", - allowedValues: ["set", "remove"] + name: "Composite", + className: "PrivateEndpointProperty" } }, - schema: { - serializedName: "properties.schema", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "String" + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" } }, - table: { - serializedName: "properties.table", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } - }, - column: { - serializedName: "properties.column", + } + } + } +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "PrivateLinkResourceProperties" } - }, - sensitivityLabel: { - serializedName: "properties.sensitivityLabel", + } + } + } +}; + +export const RecoverableManagedDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecoverableManagedDatabase", + modelProperties: { + ...ProxyResource.type.modelProperties, + lastAvailableBackupDate: { + serializedName: "properties.lastAvailableBackupDate", + readOnly: true, type: { - name: "Composite", - className: "SensitivityLabel" + name: "String" } } } } }; -export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { +export const RestorePoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedSensitivityLabelUpdate", + className: "RestorePoint", modelProperties: { ...ProxyResource.type.modelProperties, - op: { - serializedName: "properties.op", + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + restorePointType: { + serializedName: "properties.restorePointType", + readOnly: true, type: { name: "Enum", - allowedValues: ["enable", "disable"] + allowedValues: ["CONTINUOUS", "DISCRETE"] } }, - schema: { - serializedName: "properties.schema", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - table: { - serializedName: "properties.table", + restorePointCreationDate: { + serializedName: "properties.restorePointCreationDate", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - column: { - serializedName: "properties.column", + restorePointLabel: { + serializedName: "properties.restorePointLabel", + readOnly: true, type: { name: "String" } @@ -11029,27 +11231,47 @@ export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { } }; -export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { +export const ServerAutomaticTuning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedTransparentDataEncryption", + className: "ServerAutomaticTuning", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + desiredState: { + serializedName: "properties.desiredState", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] + allowedValues: ["Custom", "Auto", "Unspecified"] + } + }, + actualState: { + serializedName: "properties.actualState", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AutomaticTuningServerOptions" + } + } } } } } }; -export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { +export const ServerAzureADAdministrator: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdministrator", + className: "ServerAzureADAdministrator", modelProperties: { ...ProxyResource.type.modelProperties, administratorType: { @@ -11075,15 +11297,22 @@ export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { type: { name: "Uuid" } + }, + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", + readOnly: true, + type: { + name: "Boolean" + } } } } }; -export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { +export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthentication", + className: "ServerAzureADOnlyAuthentication", modelProperties: { ...ProxyResource.type.modelProperties, azureADOnlyAuthentication: { @@ -11096,59 +11325,75 @@ export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMappe } }; -export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { +export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector", + className: "ServerDevOpsAuditingSettings", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - 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", + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "Boolean" + name: "Uuid" } } } } }; -export const ManagedInstanceKey: coreClient.CompositeMapper = { +export const ServerDnsAlias: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceKey", + className: "ServerDnsAlias", + modelProperties: { + ...ProxyResource.type.modelProperties, + azureDnsRecord: { + serializedName: "properties.azureDnsRecord", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerKey", modelProperties: { ...ProxyResource.type.modelProperties, kind: { @@ -11158,6 +11403,20 @@ export const ManagedInstanceKey: coreClient.CompositeMapper = { name: "String" } }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + subregion: { + serializedName: "properties.subregion", + readOnly: true, + type: { + name: "String" + } + }, serverKeyType: { serializedName: "properties.serverKeyType", type: { @@ -11195,53 +11454,12 @@ export const ManagedInstanceKey: coreClient.CompositeMapper = { } }; -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", - type: { - name: "String" - } - }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", - type: { - name: "String" - } - }, - weekOfYear: { - serializedName: "properties.weekOfYear", - type: { - name: "Number" - } - } - } - } -}; - -export const ManagedInstanceOperation: coreClient.CompositeMapper = { +export const ServerOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceOperation", + className: "ServerOperation", modelProperties: { ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", - readOnly: true, - type: { - name: "String" - } - }, operation: { serializedName: "properties.operation", readOnly: true, @@ -11263,6 +11481,13 @@ export const ManagedInstanceOperation: coreClient.CompositeMapper = { name: "Number" } }, + serverName: { + serializedName: "properties.serverName", + readOnly: true, + type: { + name: "String" + } + }, startTime: { serializedName: "properties.startTime", readOnly: true, @@ -11325,134 +11550,15 @@ export const ManagedInstanceOperation: coreClient.CompositeMapper = { type: { name: "Boolean" } - }, - operationParameters: { - serializedName: "properties.operationParameters", - type: { - name: "Composite", - className: "ManagedInstanceOperationParametersPair" - } - }, - operationSteps: { - serializedName: "properties.operationSteps", - type: { - name: "Composite", - className: "ManagedInstanceOperationSteps" - } - } - } - } -}; - -export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnection", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointProperty" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLink", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkProperties" - } - } - } - } -}; - -export const TdeCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TdeCertificate", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateBlob: { - serializedName: "properties.privateBlob", - type: { - name: "String" - } - }, - certPassword: { - serializedName: "properties.certPassword", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } } } } }; -export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { +export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicy", + className: "ServerSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, systemData: { @@ -11526,94 +11632,82 @@ export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { } }; -export const OperationsHealth: coreClient.CompositeMapper = { +export const ServerTrustGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationsHealth", + className: "ServerTrustGroup", modelProperties: { ...ProxyResource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", - readOnly: true, - type: { - name: "String" - } - }, - health: { - serializedName: "properties.health", - readOnly: true, + groupMembers: { + serializedName: "properties.groupMembers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerInfo" + } + } } }, - description: { - serializedName: "properties.description", - readOnly: true, + trustScopes: { + serializedName: "properties.trustScopes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "ServerVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { - name: "Composite", - className: "PrivateEndpointProperty" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } - } - } - } -}; - -export const PrivateLinkResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + }, + recurringScans: { + serializedName: "properties.recurringScans", type: { name: "Composite", - className: "PrivateLinkResourceProperties" + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const RecoverableManagedDatabase: coreClient.CompositeMapper = { +export const SqlAgentConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableManagedDatabase", + className: "SqlAgentConfiguration", modelProperties: { ...ProxyResource.type.modelProperties, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", - readOnly: true, + state: { + serializedName: "properties.state", type: { name: "String" } @@ -11622,43 +11716,35 @@ export const RecoverableManagedDatabase: coreClient.CompositeMapper = { } }; -export const RestorePoint: coreClient.CompositeMapper = { +export const SubscriptionUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePoint", + className: "SubscriptionUsage", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { name: "String" } }, - restorePointType: { - serializedName: "properties.restorePointType", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["CONTINUOUS", "DISCRETE"] - } - }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", + currentValue: { + serializedName: "properties.currentValue", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - restorePointCreationDate: { - serializedName: "properties.restorePointCreationDate", + limit: { + serializedName: "properties.limit", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - restorePointLabel: { - serializedName: "properties.restorePointLabel", + unit: { + serializedName: "properties.unit", readOnly: true, type: { name: "String" @@ -11668,156 +11754,107 @@ export const RestorePoint: coreClient.CompositeMapper = { } }; -export const ServerAutomaticTuning: coreClient.CompositeMapper = { +export const SyncAgent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAutomaticTuning", + className: "SyncAgent", modelProperties: { ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", - type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] - } - }, - actualState: { - serializedName: "properties.actualState", + namePropertiesName: { + serializedName: "properties.name", readOnly: true, type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] + name: "String" } }, - options: { - serializedName: "properties.options", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "AutomaticTuningServerOptions" - } - } - } - } - } - } -}; - -export const ServerAzureADAdministrator: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerAzureADAdministrator", - modelProperties: { - ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - login: { - serializedName: "properties.login", + lastAliveTime: { + serializedName: "properties.lastAliveTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - sid: { - serializedName: "properties.sid", + state: { + serializedName: "properties.state", + readOnly: true, type: { - name: "Uuid" + name: "String" } }, - tenantId: { - serializedName: "properties.tenantId", + isUpToDate: { + serializedName: "properties.isUpToDate", + readOnly: true, type: { - name: "Uuid" + name: "Boolean" } }, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + expiryTime: { + serializedName: "properties.expiryTime", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } - } - } - } -}; - -export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerAzureADOnlyAuthentication", - modelProperties: { - ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + }, + version: { + serializedName: "properties.version", + readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { +export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDevOpsAuditingSettings", + className: "SyncAgentLinkedDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + databaseType: { + serializedName: "properties.databaseType", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + databaseId: { + serializedName: "properties.databaseId", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - state: { - serializedName: "properties.state", + description: { + serializedName: "properties.description", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const ServerDnsAlias: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerDnsAlias", - modelProperties: { - ...ProxyResource.type.modelProperties, - azureDnsRecord: { - serializedName: "properties.azureDnsRecord", + userName: { + serializedName: "properties.userName", readOnly: true, type: { name: "String" @@ -11827,420 +11864,410 @@ export const ServerDnsAlias: coreClient.CompositeMapper = { } }; -export const ServerKey: coreClient.CompositeMapper = { +export const SyncGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerKey", + className: "SyncGroup", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - location: { - serializedName: "location", + interval: { + serializedName: "properties.interval", + type: { + name: "Number" + } + }, + lastSyncTime: { + serializedName: "properties.lastSyncTime", readOnly: true, + type: { + name: "DateTime" + } + }, + conflictResolutionPolicy: { + serializedName: "properties.conflictResolutionPolicy", type: { name: "String" } }, - subregion: { - serializedName: "properties.subregion", - readOnly: true, + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + hubDatabaseUserName: { + serializedName: "properties.hubDatabaseUserName", type: { name: "String" } }, - uri: { - serializedName: "properties.uri", + hubDatabasePassword: { + serializedName: "properties.hubDatabasePassword", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", + syncState: { + serializedName: "properties.syncState", readOnly: true, type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + 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: "DateTime" + name: "Boolean" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + privateEndpointName: { + serializedName: "properties.privateEndpointName", readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ServerOperation: coreClient.CompositeMapper = { +export const SyncMember: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerOperation", + className: "SyncMember", modelProperties: { ...ProxyResource.type.modelProperties, - operation: { - serializedName: "properties.operation", - readOnly: true, + databaseType: { + serializedName: "properties.databaseType", type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", - readOnly: true, + syncAgentId: { + serializedName: "properties.syncAgentId", type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, + sqlServerDatabaseId: { + serializedName: "properties.sqlServerDatabaseId", type: { - name: "Number" + name: "Uuid" } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + syncMemberAzureDatabaseResourceId: { + serializedName: "properties.syncMemberAzureDatabaseResourceId", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", type: { - name: "DateTime" + name: "Boolean" } }, - state: { - serializedName: "properties.state", + privateEndpointName: { + serializedName: "properties.privateEndpointName", readOnly: true, type: { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + serverName: { + serializedName: "properties.serverName", type: { - name: "Number" + name: "String" } }, - errorDescription: { - serializedName: "properties.errorDescription", - readOnly: true, + databaseName: { + serializedName: "properties.databaseName", type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + userName: { + serializedName: "properties.userName", type: { - name: "Number" + name: "String" } }, - isUserError: { - serializedName: "properties.isUserError", - readOnly: true, + password: { + serializedName: "properties.password", type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", - readOnly: true, + syncDirection: { + serializedName: "properties.syncDirection", type: { - name: "DateTime" + name: "String" } }, - description: { - serializedName: "properties.description", + syncState: { + serializedName: "properties.syncState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const TimeZone: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TimeZone", + modelProperties: { + ...ProxyResource.type.modelProperties, + timeZoneId: { + serializedName: "properties.timeZoneId", readOnly: true, type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { +export const UpdateManagedInstanceDnsServersOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerSecurityAlertPolicy", + className: "UpdateManagedInstanceDnsServersOperation", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + status: { + serializedName: "properties.status", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const VirtualNetworkRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + virtualNetworkSubnetId: { + serializedName: "properties.virtualNetworkSubnetId", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + ignoreMissingVnetServiceEndpoint: { + serializedName: "properties.ignoreMissingVnetServiceEndpoint", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + state: { + serializedName: "properties.state", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + } + } + } +}; + +export const WorkloadClassifier: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadClassifier", + modelProperties: { + ...ProxyResource.type.modelProperties, + memberName: { + serializedName: "properties.memberName", + type: { + name: "String" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + label: { + serializedName: "properties.label", type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + context: { + serializedName: "properties.context", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + startTime: { + serializedName: "properties.startTime", type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + endTime: { + serializedName: "properties.endTime", type: { - name: "Number" + name: "String" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + importance: { + serializedName: "properties.importance", type: { - name: "DateTime" + name: "String" } } } } }; -export const ServerTrustGroup: coreClient.CompositeMapper = { +export const WorkloadGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustGroup", + className: "WorkloadGroup", modelProperties: { ...ProxyResource.type.modelProperties, - groupMembers: { - serializedName: "properties.groupMembers", + minResourcePercent: { + serializedName: "properties.minResourcePercent", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerInfo" - } - } + name: "Number" } }, - trustScopes: { - serializedName: "properties.trustScopes", + maxResourcePercent: { + serializedName: "properties.maxResourcePercent", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } - } - } - } -}; - -export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + }, + minResourcePercentPerRequest: { + serializedName: "properties.minResourcePercentPerRequest", type: { - name: "String" + name: "Number" } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + maxResourcePercentPerRequest: { + serializedName: "properties.maxResourcePercentPerRequest", type: { - name: "String" + name: "Number" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + importance: { + serializedName: "properties.importance", type: { name: "String" } }, - recurringScans: { - serializedName: "properties.recurringScans", + queryExecutionTimeout: { + serializedName: "properties.queryExecutionTimeout", type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + name: "Number" } } } } }; -export const SqlAgentConfiguration: coreClient.CompositeMapper = { +export const LogicalDatabaseTransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlAgentConfiguration", + className: "LogicalDatabaseTransparentDataEncryption", modelProperties: { ...ProxyResource.type.modelProperties, state: { serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const SubscriptionUsage: coreClient.CompositeMapper = { +export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubscriptionUsage", + className: "BackupShortTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - readOnly: true, - type: { - name: "String" - } - }, - currentValue: { - serializedName: "properties.currentValue", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - limit: { - serializedName: "properties.limit", - readOnly: true, + diffBackupIntervalInHours: { + serializedName: "properties.diffBackupIntervalInHours", type: { name: "Number" } - }, - unit: { - serializedName: "properties.unit", - readOnly: true, - type: { - name: "String" - } } } } }; -export const SyncAgent: coreClient.CompositeMapper = { +export const DatabaseExtensions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgent", + className: "DatabaseExtensions", modelProperties: { ...ProxyResource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", - readOnly: true, + operationMode: { + serializedName: "properties.operationMode", type: { name: "String" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + storageKeyType: { + serializedName: "properties.storageKeyType", type: { name: "String" } }, - lastAliveTime: { - serializedName: "properties.lastAliveTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", - readOnly: true, + storageKey: { + serializedName: "properties.storageKey", type: { name: "String" } }, - isUpToDate: { - serializedName: "properties.isUpToDate", - readOnly: true, - type: { - name: "Boolean" - } - }, - expiryTime: { - serializedName: "properties.expiryTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - version: { - serializedName: "properties.version", - readOnly: true, + storageUri: { + serializedName: "properties.storageUri", type: { name: "String" } @@ -12249,28 +12276,28 @@ export const SyncAgent: coreClient.CompositeMapper = { } }; -export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { +export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgentLinkedDatabase", + className: "ImportExportExtensionsOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", + requestId: { + serializedName: "properties.requestId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - databaseId: { - serializedName: "properties.databaseId", + requestType: { + serializedName: "properties.requestType", readOnly: true, type: { name: "String" } }, - description: { - serializedName: "properties.description", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", readOnly: true, type: { name: "String" @@ -12290,8 +12317,15 @@ export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { name: "String" } }, - userName: { - serializedName: "properties.userName", + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { name: "String" @@ -12301,174 +12335,143 @@ export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { } }; -export const SyncGroup: coreClient.CompositeMapper = { +export const DatabaseOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroup", + className: "DatabaseOperation", modelProperties: { ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - interval: { - serializedName: "properties.interval", - type: { - name: "Number" - } - }, - lastSyncTime: { - serializedName: "properties.lastSyncTime", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, - type: { - name: "DateTime" - } - }, - conflictResolutionPolicy: { - serializedName: "properties.conflictResolutionPolicy", type: { name: "String" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + operation: { + serializedName: "properties.operation", + readOnly: true, type: { name: "String" } }, - hubDatabaseUserName: { - serializedName: "properties.hubDatabaseUserName", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, type: { name: "String" } }, - hubDatabasePassword: { - serializedName: "properties.hubDatabasePassword", + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, type: { - name: "String" + name: "Number" } }, - syncState: { - serializedName: "properties.syncState", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - schema: { - serializedName: "properties.schema", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Composite", - className: "SyncGroupSchema" + name: "DateTime" } }, - enableConflictLogging: { - serializedName: "properties.enableConflictLogging", + state: { + serializedName: "properties.state", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - conflictLoggingRetentionInDays: { - serializedName: "properties.conflictLoggingRetentionInDays", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { name: "Number" } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", - type: { - name: "Boolean" - } - }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SyncMember: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncMember", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", - type: { - name: "String" - } - }, - syncAgentId: { - serializedName: "properties.syncAgentId", - type: { - name: "String" - } - }, - sqlServerDatabaseId: { - serializedName: "properties.sqlServerDatabaseId", - type: { - name: "Uuid" - } }, - syncMemberAzureDatabaseResourceId: { - serializedName: "properties.syncMemberAzureDatabaseResourceId", + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, type: { - name: "String" + name: "Number" } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, type: { name: "Boolean" } }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", readOnly: true, type: { - name: "String" - } - }, - serverName: { - serializedName: "properties.serverName", - type: { - name: "String" + name: "DateTime" } }, - databaseName: { - serializedName: "properties.databaseName", + description: { + serializedName: "properties.description", + readOnly: true, type: { name: "String" } }, - userName: { - serializedName: "properties.userName", + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, + 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" } }, - password: { - serializedName: "properties.password", + currentValue: { + serializedName: "properties.currentValue", + readOnly: true, type: { - name: "String" + name: "Number" } }, - syncDirection: { - serializedName: "properties.syncDirection", + limit: { + serializedName: "properties.limit", + readOnly: true, type: { - name: "String" + name: "Number" } }, - syncState: { - serializedName: "properties.syncState", + unit: { + serializedName: "properties.unit", readOnly: true, type: { name: "String" @@ -12478,38 +12481,38 @@ export const SyncMember: coreClient.CompositeMapper = { } }; -export const TimeZone: coreClient.CompositeMapper = { +export const LedgerDigestUploads: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeZone", + className: "LedgerDigestUploads", modelProperties: { ...ProxyResource.type.modelProperties, - timeZoneId: { - serializedName: "properties.timeZoneId", - readOnly: true, + digestStorageEndpoint: { + serializedName: "properties.digestStorageEndpoint", type: { name: "String" } }, - displayName: { - serializedName: "properties.displayName", + state: { + serializedName: "properties.state", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const UpdateManagedInstanceDnsServersOperation: coreClient.CompositeMapper = { +export const OutboundFirewallRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateManagedInstanceDnsServersOperation", + className: "OutboundFirewallRule", modelProperties: { ...ProxyResource.type.modelProperties, - status: { - serializedName: "properties.status", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" @@ -12519,192 +12522,208 @@ export const UpdateManagedInstanceDnsServersOperation: coreClient.CompositeMappe } }; -export const VirtualNetworkRule: coreClient.CompositeMapper = { +export const ImportExportOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkRule", + className: "ImportExportOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - virtualNetworkSubnetId: { - serializedName: "properties.virtualNetworkSubnetId", + requestId: { + serializedName: "properties.requestId", + readOnly: true, type: { - name: "String" + name: "Uuid" } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "properties.ignoreMissingVnetServiceEndpoint", + requestType: { + serializedName: "properties.requestType", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - state: { - serializedName: "properties.state", + queuedTime: { + serializedName: "properties.queuedTime", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const WorkloadClassifier: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkloadClassifier", - modelProperties: { - ...ProxyResource.type.modelProperties, - memberName: { - serializedName: "properties.memberName", + }, + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + readOnly: true, type: { name: "String" } }, - label: { - serializedName: "properties.label", + blobUri: { + serializedName: "properties.blobUri", + readOnly: true, type: { name: "String" } }, - context: { - serializedName: "properties.context", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { name: "String" } }, - endTime: { - serializedName: "properties.endTime", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String" } }, - importance: { - serializedName: "properties.importance", + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, type: { name: "String" } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestStatus" + } + } + } } } } }; -export const WorkloadGroup: coreClient.CompositeMapper = { +export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadGroup", + className: "LongTermRetentionBackupOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - minResourcePercent: { - serializedName: "properties.minResourcePercent", + requestId: { + serializedName: "properties.requestId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - maxResourcePercent: { - serializedName: "properties.maxResourcePercent", + operationType: { + serializedName: "properties.operationType", + readOnly: true, type: { - name: "Number" + name: "String" } }, - minResourcePercentPerRequest: { - serializedName: "properties.minResourcePercentPerRequest", + fromBackupResourceId: { + serializedName: "properties.fromBackupResourceId", + readOnly: true, type: { - name: "Number" + name: "String" } }, - maxResourcePercentPerRequest: { - serializedName: "properties.maxResourcePercentPerRequest", + toBackupResourceId: { + serializedName: "properties.toBackupResourceId", + readOnly: true, type: { - name: "Number" + name: "String" } }, - importance: { - serializedName: "properties.importance", + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", + readOnly: true, type: { name: "String" } }, - queryExecutionTimeout: { - serializedName: "properties.queryExecutionTimeout", + status: { + serializedName: "properties.status", + readOnly: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const LogicalDatabaseTransparentDataEncryption: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LogicalDatabaseTransparentDataEncryption", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + }, + message: { + serializedName: "properties.message", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } } } } }; -export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { +export const LongTermRetentionBackup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupShortTermRetentionPolicy", + className: "LongTermRetentionBackup", modelProperties: { ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { - name: "Number" + name: "String" } }, - diffBackupIntervalInHours: { - serializedName: "properties.diffBackupIntervalInHours", + serverCreateTime: { + serializedName: "properties.serverCreateTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } - } - } - } -}; - -export const DatabaseExtensions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseExtensions", - modelProperties: { - ...ProxyResource.type.modelProperties, - operationMode: { - serializedName: "properties.operationMode", + }, + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { name: "String" } }, - storageKeyType: { - serializedName: "properties.storageKeyType", + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + backupTime: { + serializedName: "properties.backupTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageKey: { - serializedName: "properties.storageKey", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", + readOnly: true, type: { name: "String" } }, - storageUri: { - serializedName: "properties.storageUri", + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { name: "String" } @@ -12713,56 +12732,56 @@ export const DatabaseExtensions: coreClient.CompositeMapper = { } }; -export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExportExtensionsOperationResult", + className: "ManagedInstanceLongTermRetentionBackup", modelProperties: { ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", + managedInstanceName: { + serializedName: "properties.managedInstanceName", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - requestType: { - serializedName: "properties.requestType", + managedInstanceCreateTime: { + serializedName: "properties.managedInstanceCreateTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - databaseName: { - serializedName: "properties.databaseName", + backupTime: { + serializedName: "properties.backupTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - status: { - serializedName: "properties.status", + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - errorMessage: { - serializedName: "properties.errorMessage", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", readOnly: true, type: { name: "String" @@ -12772,143 +12791,174 @@ export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = } }; -export const DatabaseOperation: coreClient.CompositeMapper = { +export const RestorableDroppedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseOperation", + className: "RestorableDroppedDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - operation: { - serializedName: "properties.operation", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - percentComplete: { - serializedName: "properties.percentComplete", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { - name: "Number" + name: "String" } }, - serverName: { - serializedName: "properties.serverName", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", readOnly: true, type: { - name: "String" + name: "Number" } }, - startTime: { - serializedName: "properties.startTime", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { name: "DateTime" } }, - state: { - serializedName: "properties.state", + deletionDate: { + serializedName: "properties.deletionDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - errorCode: { - serializedName: "properties.errorCode", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", 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, - type: { - name: "Boolean" - } - }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", + } + } + } +}; + +export const ServerConnectionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerConnectionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - description: { - serializedName: "properties.description", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, + connectionType: { + serializedName: "properties.connectionType", type: { - name: "Boolean" + name: "String" } } } } }; -export const DatabaseUsage: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUsage", + className: "DistributedAvailabilityGroup", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - readOnly: true, + targetDatabase: { + serializedName: "properties.targetDatabase", type: { name: "String" } }, - currentValue: { - serializedName: "properties.currentValue", + sourceEndpoint: { + serializedName: "properties.sourceEndpoint", + type: { + name: "String" + } + }, + primaryAvailabilityGroupName: { + serializedName: "properties.primaryAvailabilityGroupName", + type: { + name: "String" + } + }, + secondaryAvailabilityGroupName: { + serializedName: "properties.secondaryAvailabilityGroupName", + type: { + name: "String" + } + }, + replicationMode: { + serializedName: "properties.replicationMode", + type: { + name: "String" + } + }, + distributedAvailabilityGroupId: { + serializedName: "properties.distributedAvailabilityGroupId", readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - limit: { - serializedName: "properties.limit", + sourceReplicaId: { + serializedName: "properties.sourceReplicaId", readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - unit: { - serializedName: "properties.unit", + targetReplicaId: { + serializedName: "properties.targetReplicaId", + readOnly: true, + type: { + name: "Uuid" + } + }, + linkState: { + serializedName: "properties.linkState", + readOnly: true, + type: { + name: "String" + } + }, + lastHardenedLsn: { + serializedName: "properties.lastHardenedLsn", readOnly: true, type: { name: "String" @@ -12918,39 +12968,44 @@ export const DatabaseUsage: coreClient.CompositeMapper = { } }; -export const LedgerDigestUploads: coreClient.CompositeMapper = { +export const ServerTrustCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LedgerDigestUploads", + className: "ServerTrustCertificate", modelProperties: { ...ProxyResource.type.modelProperties, - digestStorageEndpoint: { - serializedName: "properties.digestStorageEndpoint", + publicBlob: { + serializedName: "properties.publicBlob", type: { name: "String" } }, - state: { - serializedName: "properties.state", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" + } + }, + certificateName: { + serializedName: "properties.certificateName", + readOnly: true, + type: { + name: "String" } } } } }; -export const OutboundFirewallRule: coreClient.CompositeMapper = { +export const EndpointCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundFirewallRule", + className: "EndpointCertificate", modelProperties: { ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + publicBlob: { + serializedName: "properties.publicBlob", type: { name: "String" } @@ -13060,143 +13115,151 @@ export const ReplicationLink: coreClient.CompositeMapper = { } }; -export const ImportExportOperationResult: coreClient.CompositeMapper = { +export const SensitivityLabel: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExportOperationResult", + className: "SensitivityLabel", modelProperties: { ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", + managedBy: { + serializedName: "managedBy", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - requestType: { - serializedName: "properties.requestType", + schemaName: { + serializedName: "properties.schemaName", readOnly: true, type: { name: "String" } }, - queuedTime: { - serializedName: "properties.queuedTime", + tableName: { + serializedName: "properties.tableName", readOnly: true, type: { name: "String" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + columnName: { + serializedName: "properties.columnName", readOnly: true, type: { name: "String" } }, - blobUri: { - serializedName: "properties.blobUri", - readOnly: true, + labelName: { + serializedName: "properties.labelName", type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + labelId: { + serializedName: "properties.labelId", type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + informationType: { + serializedName: "properties.informationType", type: { name: "String" } }, - status: { - serializedName: "properties.status", - readOnly: true, + informationTypeId: { + serializedName: "properties.informationTypeId", type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", + isDisabled: { + serializedName: "properties.isDisabled", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + rank: { + serializedName: "properties.rank", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnectionRequestStatus" - } - } + name: "Enum", + allowedValues: ["None", "Low", "Medium", "High", "Critical"] } } } } }; -export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { +export const SensitivityLabelUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackupOperationResult", + className: "SensitivityLabelUpdate", modelProperties: { ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", - readOnly: true, + op: { + serializedName: "properties.op", type: { - name: "Uuid" + name: "Enum", + allowedValues: ["set", "remove"] } }, - operationType: { - serializedName: "properties.operationType", - readOnly: true, + schema: { + serializedName: "properties.schema", type: { name: "String" } }, - fromBackupResourceId: { - serializedName: "properties.fromBackupResourceId", - readOnly: true, + table: { + serializedName: "properties.table", type: { name: "String" } }, - toBackupResourceId: { - serializedName: "properties.toBackupResourceId", - readOnly: true, + column: { + serializedName: "properties.column", type: { name: "String" } }, - targetBackupStorageRedundancy: { - serializedName: "properties.targetBackupStorageRedundancy", - readOnly: true, + sensitivityLabel: { + serializedName: "properties.sensitivityLabel", + type: { + name: "Composite", + className: "SensitivityLabel" + } + } + } + } +}; + +export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecommendedSensitivityLabelUpdate", + modelProperties: { + ...ProxyResource.type.modelProperties, + op: { + serializedName: "properties.op", + type: { + name: "Enum", + allowedValues: ["enable", "disable"] + } + }, + schema: { + serializedName: "properties.schema", type: { name: "String" } }, - status: { - serializedName: "properties.status", - readOnly: true, + table: { + serializedName: "properties.table", type: { name: "String" } }, - message: { - serializedName: "properties.message", - readOnly: true, + column: { + serializedName: "properties.column", type: { name: "String" } @@ -13205,296 +13268,336 @@ export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper } }; -export const LongTermRetentionBackup: coreClient.CompositeMapper = { +export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackup", + className: "ServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { - name: "String" + name: "Boolean" } }, - serverCreateTime: { - serializedName: "properties.serverCreateTime", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "DateTime" + name: "Number" } }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "DateTime" + name: "Boolean" } }, - backupTime: { - serializedName: "properties.backupTime", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "DateTime" + name: "Boolean" } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "DateTime" + name: "Number" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", + type: { + name: "Boolean" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" + } } } } }; -export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { +export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackup", + className: "DatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - managedInstanceCreateTime: { - serializedName: "properties.managedInstanceCreateTime", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "DateTime" + name: "Number" } }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "DateTime" + name: "Boolean" } }, - backupTime: { - serializedName: "properties.backupTime", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "DateTime" + name: "Boolean" } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "DateTime" + name: "Number" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", + type: { + name: "Boolean" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" + } } } } }; -export const RestorableDroppedDatabase: coreClient.CompositeMapper = { +export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedDatabase", + className: "ExtendedDatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", + predicateExpression: { + serializedName: "properties.predicateExpression", + type: { + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Composite", - className: "Sku" + name: "Number" } }, - location: { - serializedName: "location", + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - tags: { - serializedName: "tags", + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { name: "Number" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "DateTime" + name: "Boolean" } }, - deletionDate: { - serializedName: "properties.deletionDate", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "DateTime" + name: "String" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" + } } } } }; -export const ServerConnectionPolicy: coreClient.CompositeMapper = { +export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConnectionPolicy", + className: "ExtendedServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { - name: "String" + name: "Boolean" } }, - kind: { - serializedName: "kind", - readOnly: true, + predicateExpression: { + serializedName: "properties.predicateExpression", type: { name: "String" } }, - connectionType: { - serializedName: "properties.connectionType", - type: { - name: "String" - } - } - } - } -}; - -export const ElasticPool: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPool", - modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Composite", - className: "Sku" + name: "Number" } }, - kind: { - serializedName: "kind", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - state: { - serializedName: "properties.state", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "String" + name: "Boolean" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "DateTime" + name: "Boolean" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { name: "Number" } }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" + name: "Boolean" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + state: { + serializedName: "properties.state", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - licenseType: { - serializedName: "properties.licenseType", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" + } } } } @@ -14118,10 +14221,10 @@ export const Database: coreClient.CompositeMapper = { name: "Uuid" } }, - primaryDelegatedIdentityClientId: { - serializedName: "properties.primaryDelegatedIdentityClientId", + sourceResourceId: { + serializedName: "properties.sourceResourceId", type: { - name: "Uuid" + name: "String" } } } @@ -14378,6 +14481,81 @@ export const RestorableDroppedManagedDatabase: coreClient.CompositeMapper = { } }; +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" + } + }, + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", + type: { + name: "Composite", + className: "ElasticPoolPerDatabaseSettings" + } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "String" + } + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + type: { + name: "String" + } + }, + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", + type: { + name: "Number" + } + } + } + } +}; + export const FirewallRule: coreClient.CompositeMapper = { type: { name: "Composite", @@ -14399,3 +14577,25 @@ export const FirewallRule: coreClient.CompositeMapper = { } } }; + +export const IPv6FirewallRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IPv6FirewallRule", + modelProperties: { + ...ProxyResourceWithWritableName.type.modelProperties, + startIPv6Address: { + serializedName: "properties.startIPv6Address", + type: { + name: "String" + } + }, + endIPv6Address: { + serializedName: "properties.endIPv6Address", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/sql/arm-sql/src/models/parameters.ts b/sdk/sql/arm-sql/src/models/parameters.ts index 05db327b8b26..420e44c974b8 100644 --- a/sdk/sql/arm-sql/src/models/parameters.ts +++ b/sdk/sql/arm-sql/src/models/parameters.ts @@ -17,17 +17,13 @@ import { GeoBackupPolicy as GeoBackupPolicyMapper, Database as DatabaseMapper, DatabaseUpdate as DatabaseUpdateMapper, - ResourceMoveDefinition as ResourceMoveDefinitionMapper, - ImportExistingDatabaseDefinition as ImportExistingDatabaseDefinitionMapper, ExportDatabaseDefinition as ExportDatabaseDefinitionMapper, + ImportExistingDatabaseDefinition as ImportExistingDatabaseDefinitionMapper, + ResourceMoveDefinition as ResourceMoveDefinitionMapper, ElasticPool as ElasticPoolMapper, ElasticPoolUpdate as ElasticPoolUpdateMapper, UnlinkParameters as UnlinkParametersMapper, ServerCommunicationLink as ServerCommunicationLinkMapper, - ExtendedDatabaseBlobAuditingPolicy as ExtendedDatabaseBlobAuditingPolicyMapper, - ExtendedServerBlobAuditingPolicy as ExtendedServerBlobAuditingPolicyMapper, - ServerBlobAuditingPolicy as ServerBlobAuditingPolicyMapper, - DatabaseBlobAuditingPolicy as DatabaseBlobAuditingPolicyMapper, Advisor as AdvisorMapper, DatabaseAutomaticTuning as DatabaseAutomaticTuningMapper, RecommendedAction as RecommendedActionMapper, @@ -55,9 +51,6 @@ import { ManagedDatabaseUpdate as ManagedDatabaseUpdateMapper, CompleteDatabaseRestoreDefinition as CompleteDatabaseRestoreDefinitionMapper, ManagedDatabaseSecurityAlertPolicy as ManagedDatabaseSecurityAlertPolicyMapper, - SensitivityLabel as SensitivityLabelMapper, - SensitivityLabelUpdateList as SensitivityLabelUpdateListMapper, - RecommendedSensitivityLabelUpdateList as RecommendedSensitivityLabelUpdateListMapper, ManagedTransparentDataEncryption as ManagedTransparentDataEncryptionMapper, ManagedInstanceAdministrator as ManagedInstanceAdministratorMapper, ManagedInstanceAzureADOnlyAuthentication as ManagedInstanceAzureADOnlyAuthenticationMapper, @@ -100,7 +93,17 @@ import { UpdateLongTermRetentionBackupParameters as UpdateLongTermRetentionBackupParametersMapper, ManagedInstance as ManagedInstanceMapper, ManagedInstanceUpdate as ManagedInstanceUpdateMapper, - ServerConnectionPolicy as ServerConnectionPolicyMapper + 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 } from "../models/mappers"; export const accept: OperationParameter = { @@ -287,15 +290,9 @@ export const parameters4: OperationParameter = { mapper: DatabaseUpdateMapper }; -export const elasticPoolName: OperationURLParameter = { - parameterPath: "elasticPoolName", - mapper: { - serializedName: "elasticPoolName", - required: true, - type: { - name: "String" - } - } +export const parameters5: OperationParameter = { + parameterPath: "parameters", + mapper: ExportDatabaseDefinitionMapper }; export const replicaType: OperationQueryParameter = { @@ -308,11 +305,6 @@ export const replicaType: OperationQueryParameter = { } }; -export const parameters5: OperationParameter = { - parameterPath: "parameters", - mapper: ResourceMoveDefinitionMapper -}; - export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: ImportExistingDatabaseDefinitionMapper @@ -320,7 +312,18 @@ export const parameters6: OperationParameter = { export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: ExportDatabaseDefinitionMapper + mapper: ResourceMoveDefinitionMapper +}; + +export const elasticPoolName: OperationURLParameter = { + parameterPath: "elasticPoolName", + mapper: { + serializedName: "elasticPoolName", + required: true, + type: { + name: "String" + } + } }; export const nextLink: OperationURLParameter = { @@ -348,7 +351,7 @@ export const skip: OperationQueryParameter = { export const apiVersion2: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2020-11-01-preview", + defaultValue: "2021-08-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -422,42 +425,22 @@ export const serviceObjectiveName: OperationURLParameter = { } }; -export const blobAuditingPolicyName: OperationURLParameter = { - parameterPath: "blobAuditingPolicyName", +export const expand: OperationQueryParameter = { + parameterPath: ["options", "expand"], mapper: { - defaultValue: "default", - isConstant: true, - serializedName: "blobAuditingPolicyName", + serializedName: "$expand", type: { name: "String" } } }; -export const parameters12: OperationParameter = { - parameterPath: "parameters", - mapper: ExtendedDatabaseBlobAuditingPolicyMapper -}; - -export const parameters13: OperationParameter = { - parameterPath: "parameters", - mapper: ExtendedServerBlobAuditingPolicyMapper -}; - -export const parameters14: OperationParameter = { - parameterPath: "parameters", - mapper: ServerBlobAuditingPolicyMapper -}; - -export const parameters15: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseBlobAuditingPolicyMapper -}; - -export const expand: OperationQueryParameter = { - parameterPath: ["options", "expand"], +export const apiVersion4: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "$expand", + defaultValue: "2020-11-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String" } @@ -475,12 +458,12 @@ export const advisorName: OperationURLParameter = { } }; -export const parameters16: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: AdvisorMapper }; -export const parameters17: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: DatabaseAutomaticTuningMapper }; @@ -613,7 +596,7 @@ export const recommendedActionName: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: RecommendedActionMapper }; @@ -629,7 +612,7 @@ export const securityAlertPolicyName: OperationURLParameter = { } }; -export const parameters19: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", mapper: DatabaseSecurityAlertPolicyMapper }; @@ -668,12 +651,12 @@ export const baselineName: OperationURLParameter = { } }; -export const parameters20: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", mapper: DatabaseVulnerabilityAssessmentRuleBaselineMapper }; -export const parameters21: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", mapper: DatabaseVulnerabilityAssessmentMapper }; @@ -744,7 +727,7 @@ export const encryptionProtectorName: OperationURLParameter = { } }; -export const parameters22: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", mapper: EncryptionProtectorMapper }; @@ -760,12 +743,12 @@ export const failoverGroupName: OperationURLParameter = { } }; -export const parameters23: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", mapper: FailoverGroupMapper }; -export const parameters24: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", mapper: FailoverGroupUpdateMapper }; @@ -781,17 +764,17 @@ export const firewallRuleName: OperationURLParameter = { } }; -export const parameters25: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", mapper: FirewallRuleMapper }; -export const parameters26: OperationParameter = { +export const parameters22: OperationParameter = { parameterPath: "parameters", mapper: FirewallRuleListMapper }; -export const parameters27: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", mapper: InstanceFailoverGroupMapper }; @@ -807,12 +790,12 @@ export const instancePoolName: OperationURLParameter = { } }; -export const parameters28: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", mapper: InstancePoolMapper }; -export const parameters29: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", mapper: InstancePoolUpdateMapper }; @@ -828,12 +811,12 @@ export const jobAgentName: OperationURLParameter = { } }; -export const parameters30: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", mapper: JobAgentMapper }; -export const parameters31: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: JobAgentUpdateMapper }; @@ -849,7 +832,7 @@ export const credentialName: OperationURLParameter = { } }; -export const parameters32: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: JobCredentialMapper }; @@ -936,7 +919,7 @@ export const jobExecutionId: OperationURLParameter = { } }; -export const parameters33: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", mapper: JobMapper }; @@ -963,7 +946,7 @@ export const jobVersion: OperationURLParameter = { } }; -export const parameters34: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: JobStepMapper }; @@ -990,7 +973,7 @@ export const targetGroupName: OperationURLParameter = { } }; -export const parameters35: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: JobTargetGroupMapper }; @@ -1016,7 +999,7 @@ export const policyName: OperationURLParameter = { } }; -export const parameters36: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", mapper: LongTermRetentionPolicyMapper }; @@ -1043,7 +1026,7 @@ export const maintenanceWindowName: OperationQueryParameter = { } }; -export const parameters37: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: "parameters", mapper: MaintenanceWindowsMapper }; @@ -1070,7 +1053,7 @@ export const policyName1: OperationURLParameter = { } }; -export const parameters38: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", mapper: ManagedBackupShortTermRetentionPolicyMapper }; @@ -1127,97 +1110,26 @@ export const restoreDetailsName: OperationURLParameter = { } }; -export const parameters39: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: ManagedDatabaseMapper }; -export const parameters40: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: ManagedDatabaseUpdateMapper }; -export const parameters41: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", mapper: CompleteDatabaseRestoreDefinitionMapper }; -export const parameters42: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: ManagedDatabaseSecurityAlertPolicyMapper }; -export const sensitivityLabelSource: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", - mapper: { - serializedName: "sensitivityLabelSource", - required: true, - type: { - name: "Enum", - allowedValues: ["current", "recommended"] - } - } -}; - -export const parameters43: OperationParameter = { - parameterPath: "parameters", - mapper: SensitivityLabelMapper -}; - -export const sensitivityLabelSource1: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", - mapper: { - defaultValue: "current", - isConstant: true, - serializedName: "sensitivityLabelSource", - type: { - name: "String" - } - } -}; - -export const sensitivityLabelSource2: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", - mapper: { - defaultValue: "recommended", - isConstant: true, - serializedName: "sensitivityLabelSource", - type: { - name: "String" - } - } -}; - -export const count: OperationQueryParameter = { - parameterPath: ["options", "count"], - mapper: { - serializedName: "$count", - type: { - name: "Boolean" - } - } -}; - -export const parameters44: OperationParameter = { - parameterPath: "parameters", - mapper: SensitivityLabelUpdateListMapper -}; - -export const includeDisabledRecommendations: OperationQueryParameter = { - parameterPath: ["options", "includeDisabledRecommendations"], - mapper: { - serializedName: "includeDisabledRecommendations", - type: { - name: "Boolean" - } - } -}; - -export const parameters45: OperationParameter = { - parameterPath: "parameters", - mapper: RecommendedSensitivityLabelUpdateListMapper -}; - export const tdeName: OperationURLParameter = { parameterPath: "tdeName", mapper: { @@ -1229,7 +1141,7 @@ export const tdeName: OperationURLParameter = { } }; -export const parameters46: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", mapper: ManagedTransparentDataEncryptionMapper }; @@ -1245,7 +1157,7 @@ export const administratorName: OperationURLParameter = { } }; -export const parameters47: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceAdministratorMapper }; @@ -1261,12 +1173,12 @@ export const authenticationName: OperationURLParameter = { } }; -export const parameters48: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceAzureADOnlyAuthenticationMapper }; -export const parameters49: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceEncryptionProtectorMapper }; @@ -1282,7 +1194,7 @@ export const keyName: OperationURLParameter = { } }; -export const parameters50: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceKeyMapper }; @@ -1298,7 +1210,7 @@ export const policyName2: OperationURLParameter = { } }; -export const parameters51: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceLongTermRetentionPolicyMapper }; @@ -1314,7 +1226,7 @@ export const privateEndpointConnectionName: OperationURLParameter = { } }; -export const parameters52: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstancePrivateEndpointConnectionMapper }; @@ -1330,12 +1242,12 @@ export const groupName: OperationURLParameter = { } }; -export const parameters53: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: TdeCertificateMapper }; -export const parameters54: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceVulnerabilityAssessmentMapper }; @@ -1351,12 +1263,12 @@ export const restorableDroppedDatabaseId: OperationURLParameter = { } }; -export const parameters55: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: ManagedServerSecurityAlertPolicyMapper }; -export const parameters56: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper }; @@ -1372,7 +1284,7 @@ export const recoverableDatabaseName: OperationURLParameter = { } }; -export const parameters57: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: CreateDatabaseRestorePointDefinitionMapper }; @@ -1388,17 +1300,17 @@ export const restorePointName: OperationURLParameter = { } }; -export const parameters58: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: ServerAutomaticTuningMapper }; -export const parameters59: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: ServerAzureADAdministratorMapper }; -export const parameters60: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: ServerAzureADOnlyAuthenticationMapper }; @@ -1414,7 +1326,7 @@ export const devOpsAuditingSettingsName: OperationURLParameter = { } }; -export const parameters61: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: ServerDevOpsAuditingSettingsMapper }; @@ -1430,17 +1342,17 @@ export const dnsAliasName: OperationURLParameter = { } }; -export const parameters62: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: ServerDnsAliasAcquisitionMapper }; -export const parameters63: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: ServerKeyMapper }; -export const parameters64: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", mapper: ServerSecurityAlertPolicyMapper }; @@ -1456,17 +1368,17 @@ export const serverTrustGroupName: OperationURLParameter = { } }; -export const parameters65: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", mapper: ServerTrustGroupMapper }; -export const parameters66: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: ServerVulnerabilityAssessmentMapper }; -export const parameters67: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: SqlAgentConfigurationMapper }; @@ -1493,7 +1405,7 @@ export const syncAgentName: OperationURLParameter = { } }; -export const parameters68: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: SyncAgentMapper }; @@ -1552,7 +1464,7 @@ export const continuationToken: OperationQueryParameter = { } }; -export const parameters69: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: SyncGroupMapper }; @@ -1568,7 +1480,7 @@ export const syncMemberName: OperationURLParameter = { } }; -export const parameters70: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: SyncMemberMapper }; @@ -1595,7 +1507,7 @@ export const virtualClusterName: OperationURLParameter = { } }; -export const parameters71: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: VirtualClusterUpdateMapper }; @@ -1611,7 +1523,7 @@ export const virtualNetworkRuleName: OperationURLParameter = { } }; -export const parameters72: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkRuleMapper }; @@ -1638,17 +1550,17 @@ export const workloadClassifierName: OperationURLParameter = { } }; -export const parameters73: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: WorkloadClassifierMapper }; -export const parameters74: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: WorkloadGroupMapper }; -export const parameters75: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: LogicalDatabaseTransparentDataEncryptionMapper }; @@ -1664,7 +1576,7 @@ export const policyName3: OperationURLParameter = { } }; -export const parameters76: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: BackupShortTermRetentionPolicyMapper }; @@ -1680,7 +1592,7 @@ export const extensionName: OperationURLParameter = { } }; -export const parameters77: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: DatabaseExtensionsMapper }; @@ -1696,7 +1608,7 @@ export const ledgerDigestUploads: OperationURLParameter = { } }; -export const parameters78: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", mapper: LedgerDigestUploadsMapper }; @@ -1712,27 +1624,27 @@ export const outboundRuleFqdn: OperationURLParameter = { } }; -export const parameters79: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", mapper: OutboundFirewallRuleMapper }; -export const parameters80: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", mapper: ServerMapper }; -export const parameters81: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", mapper: ServerUpdateMapper }; -export const parameters82: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", mapper: ImportNewDatabaseDefinitionMapper }; -export const parameters83: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", mapper: CheckNameAvailabilityRequestMapper }; @@ -1747,7 +1659,7 @@ export const expandChildren: OperationQueryParameter = { } }; -export const parameters84: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", mapper: CopyLongTermRetentionBackupParametersMapper }; @@ -1785,7 +1697,7 @@ export const backupName: OperationURLParameter = { } }; -export const parameters85: OperationParameter = { +export const parameters78: OperationParameter = { parameterPath: "parameters", mapper: UpdateLongTermRetentionBackupParametersMapper }; @@ -1810,12 +1722,12 @@ export const databaseState: OperationQueryParameter = { } }; -export const parameters86: OperationParameter = { +export const parameters79: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceMapper }; -export const parameters87: OperationParameter = { +export const parameters80: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceUpdateMapper }; @@ -1871,7 +1783,170 @@ export const connectionPolicyName: OperationURLParameter = { } }; -export const parameters88: OperationParameter = { +export const parameters81: OperationParameter = { parameterPath: "parameters", mapper: ServerConnectionPolicyMapper }; + +export const apiVersion5: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-11-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const distributedAvailabilityGroupName: OperationURLParameter = { + parameterPath: "distributedAvailabilityGroupName", + mapper: { + serializedName: "distributedAvailabilityGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters82: OperationParameter = { + parameterPath: "parameters", + mapper: DistributedAvailabilityGroupMapper +}; + +export const certificateName: OperationURLParameter = { + parameterPath: "certificateName", + mapper: { + serializedName: "certificateName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters83: OperationParameter = { + parameterPath: "parameters", + mapper: ServerTrustCertificateMapper +}; + +export const parameters84: OperationParameter = { + parameterPath: "parameters", + mapper: IPv6FirewallRuleMapper +}; + +export const endpointType: OperationURLParameter = { + parameterPath: "endpointType", + mapper: { + serializedName: "endpointType", + required: true, + type: { + name: "String" + } + } +}; + +export const sensitivityLabelSource: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + serializedName: "sensitivityLabelSource", + required: true, + type: { + name: "Enum", + allowedValues: ["current", "recommended"] + } + } +}; + +export const parameters85: OperationParameter = { + parameterPath: "parameters", + mapper: SensitivityLabelMapper +}; + +export const sensitivityLabelSource1: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + defaultValue: "current", + isConstant: true, + serializedName: "sensitivityLabelSource", + type: { + name: "String" + } + } +}; + +export const sensitivityLabelSource2: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + defaultValue: "recommended", + isConstant: true, + serializedName: "sensitivityLabelSource", + type: { + name: "String" + } + } +}; + +export const count: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + serializedName: "$count", + type: { + name: "Boolean" + } + } +}; + +export const parameters86: OperationParameter = { + parameterPath: "parameters", + mapper: SensitivityLabelUpdateListMapper +}; + +export const includeDisabledRecommendations: OperationQueryParameter = { + parameterPath: ["options", "includeDisabledRecommendations"], + mapper: { + serializedName: "includeDisabledRecommendations", + type: { + name: "Boolean" + } + } +}; + +export const parameters87: OperationParameter = { + parameterPath: "parameters", + mapper: RecommendedSensitivityLabelUpdateListMapper +}; + +export const blobAuditingPolicyName: OperationURLParameter = { + parameterPath: "blobAuditingPolicyName", + mapper: { + defaultValue: "default", + isConstant: true, + serializedName: "blobAuditingPolicyName", + type: { + name: "String" + } + } +}; + +export const parameters88: OperationParameter = { + parameterPath: "parameters", + mapper: ServerBlobAuditingPolicyMapper +}; + +export const parameters89: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseBlobAuditingPolicyMapper +}; + +export const parameters90: OperationParameter = { + parameterPath: "parameters", + mapper: ExtendedDatabaseBlobAuditingPolicyMapper +}; + +export const parameters91: OperationParameter = { + parameterPath: "parameters", + mapper: ExtendedServerBlobAuditingPolicyMapper +}; diff --git a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts index 4ff4e0cbfda3..ee354d56a76e 100644 --- a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts @@ -452,7 +452,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters76, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, @@ -485,7 +485,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters76, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/capabilities.ts b/sdk/sql/arm-sql/src/operations/capabilities.ts index 53f451b0be0f..bc3fd2918518 100644 --- a/sdk/sql/arm-sql/src/operations/capabilities.ts +++ b/sdk/sql/arm-sql/src/operations/capabilities.ts @@ -56,7 +56,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.include], + queryParameters: [Parameters.apiVersion4, Parameters.include], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts index 5ba896e91b52..a167fc5d0e76 100644 --- a/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts +++ b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts @@ -201,7 +201,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -223,7 +223,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -243,7 +243,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts b/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts index d53ea09563bc..874984b77a24 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts @@ -124,7 +124,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -145,7 +145,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -167,8 +167,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters16, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters12, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts index 40c5b9528916..ecea2ec0ff2c 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts @@ -87,7 +87,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -108,8 +108,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters17, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters13, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts index ed3be063067d..bbe85ef9f8cb 100644 --- a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts @@ -16,11 +16,11 @@ import { DatabaseBlobAuditingPolicy, DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams, DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams, + DatabaseBlobAuditingPoliciesListByDatabaseResponse, DatabaseBlobAuditingPoliciesGetOptionalParams, DatabaseBlobAuditingPoliciesGetResponse, DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams, DatabaseBlobAuditingPoliciesCreateOrUpdateResponse, - DatabaseBlobAuditingPoliciesListByDatabaseResponse, DatabaseBlobAuditingPoliciesListByDatabaseNextResponse } from "../models"; @@ -120,64 +120,64 @@ export class DatabaseBlobAuditingPoliciesImpl } /** - * Gets a database's blob auditing policy. + * Lists auditing settings of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ - get( + private _listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabaseBlobAuditingPoliciesGetOptionalParams - ): Promise { + options?: DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, options }, - getOperationSpec + listByDatabaseOperationSpec ); } /** - * Creates or updates a database's blob auditing policy. + * Gets a database's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param parameters The database blob auditing policy. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, - parameters: DatabaseBlobAuditingPolicy, - options?: DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams - ): Promise { + options?: DatabaseBlobAuditingPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, parameters, options }, - createOrUpdateOperationSpec + { resourceGroupName, serverName, databaseName, options }, + getOperationSpec ); } /** - * Lists auditing settings of a database. + * Creates or updates a database's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param parameters The database blob auditing policy. * @param options The options parameters. */ - private _listByDatabase( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams - ): Promise { + parameters: DatabaseBlobAuditingPolicy, + options?: DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, parameters, options }, + createOrUpdateOperationSpec ); } @@ -206,43 +206,38 @@ export class DatabaseBlobAuditingPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/{blobAuditingPolicyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabaseBlobAuditingPolicy + bodyMapper: Mappers.DatabaseBlobAuditingPolicyListResult }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName, - Parameters.blobAuditingPolicyName + Parameters.databaseName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/{blobAuditingPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DatabaseBlobAuditingPolicy }, - 201: { - bodyMapper: Mappers.DatabaseBlobAuditingPolicy - }, default: {} }, - requestBody: Parameters.parameters15, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -251,29 +246,34 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.databaseName, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/{blobAuditingPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DatabaseBlobAuditingPolicyListResult + bodyMapper: Mappers.DatabaseBlobAuditingPolicy + }, + 201: { + bodyMapper: Mappers.DatabaseBlobAuditingPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters89, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -285,7 +285,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseColumns.ts b/sdk/sql/arm-sql/src/operations/databaseColumns.ts index 782b41a6da24..3cbffa313c42 100644 --- a/sdk/sql/arm-sql/src/operations/databaseColumns.ts +++ b/sdk/sql/arm-sql/src/operations/databaseColumns.ts @@ -374,7 +374,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.schema, Parameters.table, Parameters.column, @@ -401,7 +401,7 @@ const listByTableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -424,7 +424,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -448,7 +448,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.schema, Parameters.table, Parameters.column, @@ -475,7 +475,7 @@ const listByTableNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts index 26ca651dfec8..a73ea5d27dd9 100644 --- a/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts @@ -332,7 +332,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters77, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts b/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts index 821ad27ded44..ec42a07d7a77 100644 --- a/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts +++ b/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts @@ -141,7 +141,7 @@ const listByDatabaseAdvisorOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -163,7 +163,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -186,8 +186,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters18, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseSchemas.ts b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts index 5c4fb897d8df..df294c982584 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSchemas.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts @@ -193,7 +193,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -214,7 +214,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -235,7 +235,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts index 5fce417708a6..772eaae42c28 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts @@ -234,7 +234,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -259,8 +259,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters19, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters15, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -283,7 +283,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -303,7 +303,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseTables.ts b/sdk/sql/arm-sql/src/operations/databaseTables.ts index 4a9fed118c7b..2f25e0832635 100644 --- a/sdk/sql/arm-sql/src/operations/databaseTables.ts +++ b/sdk/sql/arm-sql/src/operations/databaseTables.ts @@ -222,7 +222,7 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -244,7 +244,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -266,7 +266,7 @@ const listBySchemaNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts index c4b1fc78813d..3c4e17aa9f45 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts @@ -161,7 +161,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -185,8 +185,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters20, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -206,7 +206,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts index 83e3ebaa00d4..89cdbf25a3f6 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts @@ -365,7 +365,7 @@ const initiateScanOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -387,7 +387,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -409,7 +409,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -435,7 +435,7 @@ const exportOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -457,7 +457,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts index 2deb11357277..6107e81f068d 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts @@ -266,7 +266,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -291,8 +291,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters21, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -310,7 +310,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -331,7 +331,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -351,7 +351,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databases.ts b/sdk/sql/arm-sql/src/operations/databases.ts index ae6798ef0aba..752780dde6cb 100644 --- a/sdk/sql/arm-sql/src/operations/databases.ts +++ b/sdk/sql/arm-sql/src/operations/databases.ts @@ -37,22 +37,22 @@ import { DatabaseUpdate, DatabasesUpdateOptionalParams, DatabasesUpdateResponse, - DatabasesListByElasticPoolResponse, + ExportDatabaseDefinition, + DatabasesExportOptionalParams, + DatabasesExportResponse, DatabasesFailoverOptionalParams, - DatabasesListInaccessibleByServerResponse, + ImportExistingDatabaseDefinition, + DatabasesImportOptionalParams, + DatabasesImportResponse, + ResourceMoveDefinition, + DatabasesRenameOptionalParams, DatabasesPauseOptionalParams, DatabasesPauseResponse, DatabasesResumeOptionalParams, DatabasesResumeResponse, DatabasesUpgradeDataWarehouseOptionalParams, - ResourceMoveDefinition, - DatabasesRenameOptionalParams, - ImportExistingDatabaseDefinition, - DatabasesImportOptionalParams, - DatabasesImportResponse, - ExportDatabaseDefinition, - DatabasesExportOptionalParams, - DatabasesExportResponse, + DatabasesListByElasticPoolResponse, + DatabasesListInaccessibleByServerResponse, DatabasesListByServerNextResponse, DatabasesListByElasticPoolNextResponse, DatabasesListInaccessibleByServerNextResponse @@ -804,43 +804,30 @@ export class DatabasesImpl implements Databases { } /** - * Gets a list of databases in an elastic pool. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - private _listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: DatabasesListByElasticPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listByElasticPoolOperationSpec - ); - } - - /** - * Failovers a database. + * Exports a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to failover. + * @param databaseName The name of the database. + * @param parameters The database export request parameters. * @param options The options parameters. */ - async beginFailover( + async beginExport( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesFailoverOptionalParams - ): Promise, void>> { + parameters: ExportDatabaseDefinition, + options?: DatabasesExportOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DatabasesExportResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -878,8 +865,8 @@ export class DatabasesImpl implements Databases { const lro = new LroImpl( sendOperation, - { resourceGroupName, serverName, databaseName, options }, - failoverOperationSpec + { resourceGroupName, serverName, databaseName, parameters, options }, + exportOperationSpec ); return new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -888,69 +875,49 @@ export class DatabasesImpl implements Databases { } /** - * Failovers a database. + * Exports a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to failover. + * @param databaseName The name of the database. + * @param parameters The database export request parameters. * @param options The options parameters. */ - async beginFailoverAndWait( + async beginExportAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesFailoverOptionalParams - ): Promise { - const poller = await this.beginFailover( + parameters: ExportDatabaseDefinition, + options?: DatabasesExportOptionalParams + ): Promise { + const poller = await this.beginExport( resourceGroupName, serverName, databaseName, + parameters, options ); return poller.pollUntilDone(); } /** - * Gets a list of inaccessible databases in a logical server - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listInaccessibleByServer( - resourceGroupName: string, - serverName: string, - options?: DatabasesListInaccessibleByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listInaccessibleByServerOperationSpec - ); - } - - /** - * Pauses a database. + * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be paused. + * @param databaseName The name of the database to failover. * @param options The options parameters. */ - async beginPause( + async beginFailover( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesPauseOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DatabasesPauseResponse - > - > { + options?: DatabasesFailoverOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -989,7 +956,7 @@ export class DatabasesImpl implements Databases { const lro = new LroImpl( sendOperation, { resourceGroupName, serverName, databaseName, options }, - pauseOperationSpec + failoverOperationSpec ); return new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -998,20 +965,20 @@ export class DatabasesImpl implements Databases { } /** - * Pauses a database. + * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be paused. + * @param databaseName The name of the database to failover. * @param options The options parameters. */ - async beginPauseAndWait( + async beginFailoverAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesPauseOptionalParams - ): Promise { - const poller = await this.beginPause( + options?: DatabasesFailoverOptionalParams + ): Promise { + const poller = await this.beginFailover( resourceGroupName, serverName, databaseName, @@ -1021,28 +988,30 @@ export class DatabasesImpl implements Databases { } /** - * Resumes a database. + * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be resumed. + * @param databaseName The name of the database. + * @param parameters The database import request parameters. * @param options The options parameters. */ - async beginResume( + async beginImport( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesResumeOptionalParams + parameters: ImportExistingDatabaseDefinition, + options?: DatabasesImportOptionalParams ): Promise< PollerLike< - PollOperationState, - DatabasesResumeResponse + PollOperationState, + DatabasesImportResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -1080,8 +1049,8 @@ export class DatabasesImpl implements Databases { const lro = new LroImpl( sendOperation, - { resourceGroupName, serverName, databaseName, options }, - resumeOperationSpec + { resourceGroupName, serverName, databaseName, parameters, options }, + importOperationSpec ); return new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -1090,46 +1059,76 @@ export class DatabasesImpl implements Databases { } /** - * Resumes a database. + * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be resumed. + * @param databaseName The name of the database. + * @param parameters The database import request parameters. * @param options The options parameters. */ - async beginResumeAndWait( + async beginImportAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesResumeOptionalParams - ): Promise { - const poller = await this.beginResume( + parameters: ImportExistingDatabaseDefinition, + options?: DatabasesImportOptionalParams + ): Promise { + const poller = await this.beginImport( resourceGroupName, serverName, databaseName, + parameters, options ); return poller.pollUntilDone(); } /** - * Upgrades a data warehouse. + * Renames a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be upgraded. + * @param databaseName The name of the database to rename. + * @param parameters The resource move definition for renaming this database. * @param options The options parameters. */ - async beginUpgradeDataWarehouse( + rename( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesUpgradeDataWarehouseOptionalParams - ): Promise, void>> { + parameters: ResourceMoveDefinition, + options?: DatabasesRenameOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, parameters, options }, + renameOperationSpec + ); + } + + /** + * Pauses a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database to be paused. + * @param options The options parameters. + */ + async beginPause( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabasesPauseOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DatabasesPauseResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -1168,7 +1167,7 @@ export class DatabasesImpl implements Databases { const lro = new LroImpl( sendOperation, { resourceGroupName, serverName, databaseName, options }, - upgradeDataWarehouseOperationSpec + pauseOperationSpec ); return new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -1177,20 +1176,20 @@ export class DatabasesImpl implements Databases { } /** - * Upgrades a data warehouse. + * Pauses a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be upgraded. + * @param databaseName The name of the database to be paused. * @param options The options parameters. */ - async beginUpgradeDataWarehouseAndWait( + async beginPauseAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesUpgradeDataWarehouseOptionalParams - ): Promise { - const poller = await this.beginUpgradeDataWarehouse( + options?: DatabasesPauseOptionalParams + ): Promise { + const poller = await this.beginPause( resourceGroupName, serverName, databaseName, @@ -1200,52 +1199,28 @@ export class DatabasesImpl implements Databases { } /** - * Renames a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to rename. - * @param parameters The resource move definition for renaming this database. - * @param options The options parameters. - */ - rename( - resourceGroupName: string, - serverName: string, - databaseName: string, - parameters: ResourceMoveDefinition, - options?: DatabasesRenameOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, parameters, options }, - renameOperationSpec - ); - } - - /** - * Imports a bacpac into a new database. + * Resumes a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database import request parameters. + * @param databaseName The name of the database to be resumed. * @param options The options parameters. */ - async beginImport( + async beginResume( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ImportExistingDatabaseDefinition, - options?: DatabasesImportOptionalParams + options?: DatabasesResumeOptionalParams ): Promise< PollerLike< - PollOperationState, - DatabasesImportResponse + PollOperationState, + DatabasesResumeResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -1283,8 +1258,8 @@ export class DatabasesImpl implements Databases { const lro = new LroImpl( sendOperation, - { resourceGroupName, serverName, databaseName, parameters, options }, - importOperationSpec + { resourceGroupName, serverName, databaseName, options }, + resumeOperationSpec ); return new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -1293,56 +1268,46 @@ export class DatabasesImpl implements Databases { } /** - * Imports a bacpac into a new database. + * Resumes a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database import request parameters. + * @param databaseName The name of the database to be resumed. * @param options The options parameters. */ - async beginImportAndWait( + async beginResumeAndWait( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ImportExistingDatabaseDefinition, - options?: DatabasesImportOptionalParams - ): Promise { - const poller = await this.beginImport( + options?: DatabasesResumeOptionalParams + ): Promise { + const poller = await this.beginResume( resourceGroupName, serverName, databaseName, - parameters, options ); return poller.pollUntilDone(); } /** - * Exports a database. + * Upgrades a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database export request parameters. + * @param databaseName The name of the database to be upgraded. * @param options The options parameters. */ - async beginExport( + async beginUpgradeDataWarehouse( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ExportDatabaseDefinition, - options?: DatabasesExportOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DatabasesExportResponse - > - > { + options?: DatabasesUpgradeDataWarehouseOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -1380,8 +1345,8 @@ export class DatabasesImpl implements Databases { const lro = new LroImpl( sendOperation, - { resourceGroupName, serverName, databaseName, parameters, options }, - exportOperationSpec + { resourceGroupName, serverName, databaseName, options }, + upgradeDataWarehouseOperationSpec ); return new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -1390,31 +1355,66 @@ export class DatabasesImpl implements Databases { } /** - * Exports a database. + * Upgrades a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database export request parameters. + * @param databaseName The name of the database to be upgraded. * @param options The options parameters. */ - async beginExportAndWait( + async beginUpgradeDataWarehouseAndWait( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ExportDatabaseDefinition, - options?: DatabasesExportOptionalParams - ): Promise { - const poller = await this.beginExport( + options?: DatabasesUpgradeDataWarehouseOptionalParams + ): Promise { + const poller = await this.beginUpgradeDataWarehouse( resourceGroupName, serverName, databaseName, - parameters, options ); return poller.pollUntilDone(); } + /** + * Gets a list of databases in an elastic pool. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param elasticPoolName The name of the elastic pool. + * @param options The options parameters. + */ + private _listByElasticPool( + resourceGroupName: string, + serverName: string, + elasticPoolName: string, + options?: DatabasesListByElasticPoolOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, elasticPoolName, options }, + listByElasticPoolOperationSpec + ); + } + + /** + * Gets a list of inaccessible databases in a logical server + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listInaccessibleByServer( + resourceGroupName: string, + serverName: string, + options?: DatabasesListInaccessibleByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listInaccessibleByServerOperationSpec + ); + } + /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -1641,25 +1641,36 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listByElasticPoolOperationSpec: coreClient.OperationSpec = { +const exportOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DatabaseListResult + bodyMapper: Mappers.ImportExportOperationResult + }, + 201: { + bodyMapper: Mappers.ImportExportOperationResult + }, + 202: { + bodyMapper: Mappers.ImportExportOperationResult + }, + 204: { + bodyMapper: Mappers.ImportExportOperationResult }, default: {} }, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.elasticPoolName + Parameters.databaseName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const failoverOperationSpec: coreClient.OperationSpec = { @@ -1677,24 +1688,54 @@ const failoverOperationSpec: coreClient.OperationSpec = { ], serializer }; -const listInaccessibleByServerOperationSpec: coreClient.OperationSpec = { +const importOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/inaccessibleDatabases", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/import", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DatabaseListResult + bodyMapper: Mappers.ImportExportOperationResult + }, + 201: { + bodyMapper: Mappers.ImportExportOperationResult + }, + 202: { + bodyMapper: Mappers.ImportExportOperationResult + }, + 204: { + bodyMapper: Mappers.ImportExportOperationResult }, default: {} }, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.databaseName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const renameOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName + ], + headerParameters: [Parameters.contentType], + mediaType: "json", serializer }; const pauseOperationSpec: coreClient.OperationSpec = { @@ -1772,86 +1813,45 @@ const upgradeDataWarehouseOperationSpec: coreClient.OperationSpec = { ], serializer }; -const renameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters5, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.contentType], - mediaType: "json", - serializer -}; -const importOperationSpec: coreClient.OperationSpec = { +const listByElasticPoolOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/import", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImportExportOperationResult - }, - 201: { - bodyMapper: Mappers.ImportExportOperationResult - }, - 202: { - bodyMapper: Mappers.ImportExportOperationResult - }, - 204: { - bodyMapper: Mappers.ImportExportOperationResult + bodyMapper: Mappers.DatabaseListResult }, default: {} }, - requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.elasticPoolName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const exportOperationSpec: coreClient.OperationSpec = { +const listInaccessibleByServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/inaccessibleDatabases", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImportExportOperationResult - }, - 201: { - bodyMapper: Mappers.ImportExportOperationResult - }, - 202: { - bodyMapper: Mappers.ImportExportOperationResult - }, - 204: { - bodyMapper: Mappers.ImportExportOperationResult + bodyMapper: Mappers.DatabaseListResult }, default: {} }, - requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.serverName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { diff --git a/sdk/sql/arm-sql/src/operations/deletedServers.ts b/sdk/sql/arm-sql/src/operations/deletedServers.ts index 14a61c7cf87b..62279a5a423f 100644 --- a/sdk/sql/arm-sql/src/operations/deletedServers.ts +++ b/sdk/sql/arm-sql/src/operations/deletedServers.ts @@ -310,7 +310,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -325,7 +325,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -345,7 +345,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -373,7 +373,7 @@ const recoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -392,7 +392,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -410,7 +410,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts b/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts new file mode 100644 index 000000000000..920ba0bf1390 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts @@ -0,0 +1,621 @@ +/* + * 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 { DistributedAvailabilityGroups } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + DistributedAvailabilityGroup, + DistributedAvailabilityGroupsListByInstanceNextOptionalParams, + DistributedAvailabilityGroupsListByInstanceOptionalParams, + DistributedAvailabilityGroupsListByInstanceResponse, + DistributedAvailabilityGroupsGetOptionalParams, + DistributedAvailabilityGroupsGetResponse, + DistributedAvailabilityGroupsCreateOrUpdateOptionalParams, + DistributedAvailabilityGroupsCreateOrUpdateResponse, + DistributedAvailabilityGroupsDeleteOptionalParams, + DistributedAvailabilityGroupsUpdateOptionalParams, + DistributedAvailabilityGroupsUpdateResponse, + DistributedAvailabilityGroupsListByInstanceNextResponse +} from "../models"; + +/// +/** Class containing DistributedAvailabilityGroups operations. */ +export class DistributedAvailabilityGroupsImpl + implements DistributedAvailabilityGroups { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class DistributedAvailabilityGroups class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of a distributed availability groups in instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + public listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: DistributedAvailabilityGroupsListByInstanceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByInstancePagingAll( + resourceGroupName, + managedInstanceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + ); + } + }; + } + + private async *listByInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: DistributedAvailabilityGroupsListByInstanceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByInstance( + resourceGroupName, + managedInstanceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByInstancePagingAll( + resourceGroupName: string, + managedInstanceName: string, + options?: DistributedAvailabilityGroupsListByInstanceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of a distributed availability groups in instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: DistributedAvailabilityGroupsListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + + /** + * Gets a distributed availability group info. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + options?: DistributedAvailabilityGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + options + }, + getOperationSpec + ); + } + + /** + * Creates a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DistributedAvailabilityGroupsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Drops a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + options?: DistributedAvailabilityGroupsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Drops a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + options?: DistributedAvailabilityGroupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a distributed availability group replication mode. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DistributedAvailabilityGroupsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Updates a distributed availability group replication mode. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByInstanceNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param nextLink The nextLink from the previous successful call to the ListByInstance method. + * @param options The options parameters. + */ + private _listByInstanceNext( + resourceGroupName: string, + managedInstanceName: string, + nextLink: string, + options?: DistributedAvailabilityGroupsListByInstanceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, nextLink, options }, + listByInstanceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroupsListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.distributedAvailabilityGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 201: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 202: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 204: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + default: {} + }, + requestBody: Parameters.parameters82, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.distributedAvailabilityGroupName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.distributedAvailabilityGroupName + ], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 201: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 202: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 204: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + default: {} + }, + requestBody: Parameters.parameters82, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.distributedAvailabilityGroupName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByInstanceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroupsListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts index e917d7f7cb5f..cf9ab2f68559 100644 --- a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts +++ b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts @@ -187,7 +187,7 @@ const cancelOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations/{operationId}/cancel", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -208,7 +208,7 @@ const listByElasticPoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -228,7 +228,7 @@ const listByElasticPoolNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts index be142a4a1086..5dae3bdfd816 100644 --- a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts @@ -374,7 +374,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -394,7 +394,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -424,8 +424,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters22, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters18, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -442,7 +442,7 @@ const revalidateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}/revalidate", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -461,7 +461,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/endpointCertificates.ts b/sdk/sql/arm-sql/src/operations/endpointCertificates.ts new file mode 100644 index 000000000000..c2f13b89d837 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/endpointCertificates.ts @@ -0,0 +1,231 @@ +/* + * 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 { EndpointCertificates } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { + EndpointCertificate, + EndpointCertificatesListByInstanceNextOptionalParams, + EndpointCertificatesListByInstanceOptionalParams, + EndpointCertificatesListByInstanceResponse, + EndpointCertificatesGetOptionalParams, + EndpointCertificatesGetResponse, + EndpointCertificatesListByInstanceNextResponse +} from "../models"; + +/// +/** Class containing EndpointCertificates operations. */ +export class EndpointCertificatesImpl implements EndpointCertificates { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class EndpointCertificates class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * List certificates used on endpoints on the target instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + public listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: EndpointCertificatesListByInstanceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByInstancePagingAll( + resourceGroupName, + managedInstanceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + ); + } + }; + } + + private async *listByInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: EndpointCertificatesListByInstanceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByInstance( + resourceGroupName, + managedInstanceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByInstancePagingAll( + resourceGroupName: string, + managedInstanceName: string, + options?: EndpointCertificatesListByInstanceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + )) { + yield* page; + } + } + + /** + * List certificates used on endpoints on the target instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: EndpointCertificatesListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + + /** + * Gets a certificate used on the endpoint with the given id. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param endpointType Type of the endpoint whose certificate the customer is looking for. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + endpointType: string, + options?: EndpointCertificatesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, endpointType, options }, + getOperationSpec + ); + } + + /** + * ListByInstanceNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param nextLink The nextLink from the previous successful call to the ListByInstance method. + * @param options The options parameters. + */ + private _listByInstanceNext( + resourceGroupName: string, + managedInstanceName: string, + nextLink: string, + options?: EndpointCertificatesListByInstanceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, nextLink, options }, + listByInstanceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/endpointCertificates", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EndpointCertificateListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/endpointCertificates/{endpointType}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EndpointCertificate + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.endpointType + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByInstanceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EndpointCertificateListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts index 679c3990472c..e22dd9602bd6 100644 --- a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts @@ -16,11 +16,11 @@ import { ExtendedDatabaseBlobAuditingPolicy, ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams, ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams, + ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse, ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams, ExtendedDatabaseBlobAuditingPoliciesGetResponse, ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams, ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse, - ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse, ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse } from "../models"; @@ -120,64 +120,64 @@ export class ExtendedDatabaseBlobAuditingPoliciesImpl } /** - * Gets an extended database's blob auditing policy. + * Lists extended auditing settings of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ - get( + private _listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - options?: ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams - ): Promise { + options?: ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, options }, - getOperationSpec + listByDatabaseOperationSpec ); } /** - * Creates or updates an extended database's blob auditing policy. + * Gets an extended database's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param parameters The extended database blob auditing policy. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ExtendedDatabaseBlobAuditingPolicy, - options?: ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams - ): Promise { + options?: ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, parameters, options }, - createOrUpdateOperationSpec + { resourceGroupName, serverName, databaseName, options }, + getOperationSpec ); } /** - * Lists extended auditing settings of a database. + * Creates or updates an extended database's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param parameters The extended database blob auditing policy. * @param options The options parameters. */ - private _listByDatabase( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, - options?: ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams - ): Promise { + parameters: ExtendedDatabaseBlobAuditingPolicy, + options?: ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, parameters, options }, + createOrUpdateOperationSpec ); } @@ -206,43 +206,38 @@ export class ExtendedDatabaseBlobAuditingPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings/{blobAuditingPolicyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy + bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicyListResult }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName, - Parameters.blobAuditingPolicyName + Parameters.databaseName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings/{blobAuditingPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy }, - 201: { - bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy - }, default: {} }, - requestBody: Parameters.parameters12, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -251,29 +246,34 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.databaseName, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings/{blobAuditingPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicyListResult + bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy + }, + 201: { + bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters90, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -285,7 +285,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts index d72c5f408758..21be32aa3d75 100644 --- a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts @@ -18,11 +18,11 @@ import { ExtendedServerBlobAuditingPolicy, ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams, ExtendedServerBlobAuditingPoliciesListByServerOptionalParams, + ExtendedServerBlobAuditingPoliciesListByServerResponse, ExtendedServerBlobAuditingPoliciesGetOptionalParams, ExtendedServerBlobAuditingPoliciesGetResponse, ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams, ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse, - ExtendedServerBlobAuditingPoliciesListByServerResponse, ExtendedServerBlobAuditingPoliciesListByServerNextResponse } from "../models"; @@ -112,6 +112,24 @@ export class ExtendedServerBlobAuditingPoliciesImpl } } + /** + * Lists extended auditing settings of a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ExtendedServerBlobAuditingPoliciesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets an extended server's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -224,24 +242,6 @@ export class ExtendedServerBlobAuditingPoliciesImpl return poller.pollUntilDone(); } - /** - * Lists extended auditing settings of a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ExtendedServerBlobAuditingPoliciesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -265,6 +265,26 @@ export class ExtendedServerBlobAuditingPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName}", @@ -275,7 +295,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -305,8 +325,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters13, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters91, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -318,26 +338,6 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ExtendedServerBlobAuditingPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -347,7 +347,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/failoverGroups.ts b/sdk/sql/arm-sql/src/operations/failoverGroups.ts index ee6b4d66d782..9e169a873ef4 100644 --- a/sdk/sql/arm-sql/src/operations/failoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/failoverGroups.ts @@ -655,7 +655,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -685,8 +685,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters23, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters19, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -703,7 +703,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -732,8 +732,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters24, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -755,7 +755,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -784,7 +784,7 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -814,7 +814,7 @@ const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -834,7 +834,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/firewallRules.ts b/sdk/sql/arm-sql/src/operations/firewallRules.ts index 9a3f71674809..9ffc816326e0 100644 --- a/sdk/sql/arm-sql/src/operations/firewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/firewallRules.ts @@ -246,7 +246,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -270,8 +270,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters25, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -288,7 +288,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -308,7 +308,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -329,8 +329,8 @@ const replaceOperationSpec: coreClient.OperationSpec = { 202: {}, default: {} }, - requestBody: Parameters.parameters26, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -350,7 +350,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts b/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts new file mode 100644 index 000000000000..fb94d337ee65 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts @@ -0,0 +1,317 @@ +/* + * 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 { IPv6FirewallRules } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { + IPv6FirewallRule, + IPv6FirewallRulesListByServerNextOptionalParams, + IPv6FirewallRulesListByServerOptionalParams, + IPv6FirewallRulesListByServerResponse, + IPv6FirewallRulesGetOptionalParams, + IPv6FirewallRulesGetResponse, + IPv6FirewallRulesCreateOrUpdateOptionalParams, + IPv6FirewallRulesCreateOrUpdateResponse, + IPv6FirewallRulesDeleteOptionalParams, + IPv6FirewallRulesListByServerNextResponse +} from "../models"; + +/// +/** Class containing IPv6FirewallRules operations. */ +export class IPv6FirewallRulesImpl implements IPv6FirewallRules { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class IPv6FirewallRules class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of IPv6 firewall rules. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + public listByServer( + resourceGroupName: string, + serverName: string, + options?: IPv6FirewallRulesListByServerOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServerPagingAll( + resourceGroupName, + serverName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByServerPagingPage( + resourceGroupName, + serverName, + options + ); + } + }; + } + + private async *listByServerPagingPage( + resourceGroupName: string, + serverName: string, + options?: IPv6FirewallRulesListByServerOptionalParams + ): AsyncIterableIterator { + let result = await this._listByServer( + resourceGroupName, + serverName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByServerNext( + resourceGroupName, + serverName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByServerPagingAll( + resourceGroupName: string, + serverName: string, + options?: IPv6FirewallRulesListByServerOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServerPagingPage( + resourceGroupName, + serverName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of IPv6 firewall rules. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: IPv6FirewallRulesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + + /** + * Gets an IPv6 firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + firewallRuleName: string, + options?: IPv6FirewallRulesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, firewallRuleName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates an IPv6 firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param parameters The required parameters for creating or updating an IPv6 firewall rule. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + firewallRuleName: string, + parameters: IPv6FirewallRule, + options?: IPv6FirewallRulesCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, firewallRuleName, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes an IPv6 firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serverName: string, + firewallRuleName: string, + options?: IPv6FirewallRulesDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, firewallRuleName, options }, + deleteOperationSpec + ); + } + + /** + * ListByServerNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nextLink The nextLink from the previous successful call to the ListByServer method. + * @param options The options parameters. + */ + private _listByServerNext( + resourceGroupName: string, + serverName: string, + nextLink: string, + options?: IPv6FirewallRulesListByServerNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, nextLink, options }, + listByServerNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IPv6FirewallRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IPv6FirewallRule + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.firewallRuleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.IPv6FirewallRule + }, + 201: { + bodyMapper: Mappers.IPv6FirewallRule + }, + default: {} + }, + requestBody: Parameters.parameters84, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.firewallRuleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName}", + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.firewallRuleName + ], + serializer +}; +const listByServerNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IPv6FirewallRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/index.ts b/sdk/sql/arm-sql/src/operations/index.ts index 717bfce71bce..0d2fb05eaaa6 100644 --- a/sdk/sql/arm-sql/src/operations/index.ts +++ b/sdk/sql/arm-sql/src/operations/index.ts @@ -18,10 +18,6 @@ export * from "./serviceObjectives"; export * from "./elasticPoolActivities"; export * from "./elasticPoolDatabaseActivities"; export * from "./serverUsages"; -export * from "./extendedDatabaseBlobAuditingPolicies"; -export * from "./extendedServerBlobAuditingPolicies"; -export * from "./serverBlobAuditingPolicies"; -export * from "./databaseBlobAuditingPolicies"; export * from "./databaseAdvisors"; export * from "./databaseAutomaticTuningOperations"; export * from "./databaseColumns"; @@ -61,8 +57,6 @@ export * from "./managedDatabases"; export * from "./managedDatabaseSchemas"; export * from "./managedDatabaseSecurityAlertPolicies"; export * from "./managedDatabaseSecurityEvents"; -export * from "./managedDatabaseSensitivityLabels"; -export * from "./managedDatabaseRecommendedSensitivityLabels"; export * from "./managedDatabaseTables"; export * from "./managedDatabaseTransparentDataEncryption"; export * from "./managedDatabaseVulnerabilityAssessmentRuleBaselines"; @@ -81,13 +75,10 @@ export * from "./managedInstanceVulnerabilityAssessments"; export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; export * from "./managedServerSecurityAlertPolicies"; export * from "./operations"; -export * from "./operationsHealthOperations"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./recoverableManagedDatabases"; export * from "./restorePoints"; -export * from "./sensitivityLabels"; -export * from "./recommendedSensitivityLabels"; export * from "./serverAdvisors"; export * from "./serverAutomaticTuningOperations"; export * from "./serverAzureADAdministrators"; @@ -125,3 +116,15 @@ export * from "./managedInstances"; export * from "./restorableDroppedDatabases"; export * from "./restorableDroppedManagedDatabases"; export * from "./serverConnectionPolicies"; +export * from "./distributedAvailabilityGroups"; +export * from "./serverTrustCertificates"; +export * from "./iPv6FirewallRules"; +export * from "./endpointCertificates"; +export * from "./managedDatabaseSensitivityLabels"; +export * from "./managedDatabaseRecommendedSensitivityLabels"; +export * from "./sensitivityLabels"; +export * from "./recommendedSensitivityLabels"; +export * from "./serverBlobAuditingPolicies"; +export * from "./databaseBlobAuditingPolicies"; +export * from "./extendedDatabaseBlobAuditingPolicies"; +export * from "./extendedServerBlobAuditingPolicies"; diff --git a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts index 58a477046363..bdff82993d6d 100644 --- a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts @@ -565,7 +565,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -595,8 +595,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters27, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters23, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -613,7 +613,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -633,7 +633,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -662,7 +662,7 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -692,7 +692,7 @@ const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -712,7 +712,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/instancePools.ts b/sdk/sql/arm-sql/src/operations/instancePools.ts index bc6dc9032cf4..dc54980b17c6 100644 --- a/sdk/sql/arm-sql/src/operations/instancePools.ts +++ b/sdk/sql/arm-sql/src/operations/instancePools.ts @@ -499,7 +499,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -528,8 +528,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters28, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -545,7 +545,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -573,8 +573,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters29, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters25, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -595,7 +595,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -613,7 +613,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -627,7 +627,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -646,7 +646,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobAgents.ts b/sdk/sql/arm-sql/src/operations/jobAgents.ts index 674c1f71ec57..e79bad044028 100644 --- a/sdk/sql/arm-sql/src/operations/jobAgents.ts +++ b/sdk/sql/arm-sql/src/operations/jobAgents.ts @@ -467,7 +467,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -487,7 +487,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -517,8 +517,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters30, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters26, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -535,7 +535,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -564,8 +564,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters31, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters27, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -586,7 +586,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobCredentials.ts b/sdk/sql/arm-sql/src/operations/jobCredentials.ts index 502b4685b606..7e663d77ab4b 100644 --- a/sdk/sql/arm-sql/src/operations/jobCredentials.ts +++ b/sdk/sql/arm-sql/src/operations/jobCredentials.ts @@ -249,7 +249,7 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -270,7 +270,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -295,8 +295,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters28, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -314,7 +314,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -334,7 +334,7 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobExecutions.ts b/sdk/sql/arm-sql/src/operations/jobExecutions.ts index 503dc9d4cccf..f2823deab5d4 100644 --- a/sdk/sql/arm-sql/src/operations/jobExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobExecutions.ts @@ -595,7 +595,7 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -618,7 +618,7 @@ const cancelOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/cancel", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -649,7 +649,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -673,7 +673,7 @@ const listByJobOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -702,7 +702,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -734,7 +734,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -758,7 +758,7 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -788,7 +788,7 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, diff --git a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts index af4fee4bac7b..9bba0cb4eaa1 100644 --- a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts @@ -248,7 +248,7 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -278,7 +278,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -303,7 +303,7 @@ const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, diff --git a/sdk/sql/arm-sql/src/operations/jobSteps.ts b/sdk/sql/arm-sql/src/operations/jobSteps.ts index a27ba21ed3af..a46f55c97231 100644 --- a/sdk/sql/arm-sql/src/operations/jobSteps.ts +++ b/sdk/sql/arm-sql/src/operations/jobSteps.ts @@ -494,7 +494,7 @@ const listByVersionOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -517,7 +517,7 @@ const getByVersionOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -541,7 +541,7 @@ const listByJobOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -563,7 +563,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -589,8 +589,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters34, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters30, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -609,7 +609,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -630,7 +630,7 @@ const listByVersionNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -653,7 +653,7 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts index 43da5d45e253..d03f9c50ee73 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts @@ -434,7 +434,7 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -466,7 +466,7 @@ const listByStepOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -497,7 +497,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -523,7 +523,7 @@ const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -555,7 +555,7 @@ const listByStepNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, diff --git a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts index 22a69530b9b1..8c4251e9c042 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts @@ -249,7 +249,7 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -270,7 +270,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -295,8 +295,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters35, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters31, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -314,7 +314,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -334,7 +334,7 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobVersions.ts b/sdk/sql/arm-sql/src/operations/jobVersions.ts index ac82870cf572..f4c0c920796f 100644 --- a/sdk/sql/arm-sql/src/operations/jobVersions.ts +++ b/sdk/sql/arm-sql/src/operations/jobVersions.ts @@ -222,7 +222,7 @@ const listByJobOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -244,7 +244,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -266,7 +266,7 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobs.ts b/sdk/sql/arm-sql/src/operations/jobs.ts index 950a932940d7..577c88579fed 100644 --- a/sdk/sql/arm-sql/src/operations/jobs.ts +++ b/sdk/sql/arm-sql/src/operations/jobs.ts @@ -249,7 +249,7 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -270,7 +270,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -295,8 +295,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters33, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters29, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -314,7 +314,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -334,7 +334,7 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts b/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts index 22f49e560b19..3401079d6f34 100644 --- a/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts @@ -452,7 +452,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters78, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts index 1ac95e3b090e..dd3ac5b8df60 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts @@ -1509,7 +1509,7 @@ const copyOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters84, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -1542,7 +1542,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters85, + requestBody: Parameters.parameters78, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -1685,7 +1685,7 @@ const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters84, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -1719,7 +1719,7 @@ const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters85, + requestBody: Parameters.parameters78, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts index cbb5b5994308..168d45c2ee11 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts @@ -308,7 +308,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -339,8 +339,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters36, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters32, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -363,7 +363,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -383,7 +383,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts b/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts index 49f87ea2e6a0..1ac3e21a9b2a 100644 --- a/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts @@ -71,7 +71,7 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.maintenanceWindowOptionsName ], urlParameters: [ diff --git a/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts b/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts index e38d084a77b7..b1f34fd9bf5c 100644 --- a/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts @@ -103,7 +103,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.maintenanceWindowName], + queryParameters: [Parameters.apiVersion4, Parameters.maintenanceWindowName], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -119,8 +119,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/maintenanceWindows/current", httpMethod: "PUT", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters37, - queryParameters: [Parameters.apiVersion2, Parameters.maintenanceWindowName], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion4, Parameters.maintenanceWindowName], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts index 0a8b8b4d0dff..09583761923a 100644 --- a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts @@ -435,7 +435,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -466,8 +466,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -499,8 +499,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -523,7 +523,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -543,7 +543,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts index ccb6ebbb55bf..f70d3d799c3a 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts @@ -380,7 +380,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.schema, Parameters.table, Parameters.column, @@ -407,7 +407,7 @@ const listByTableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -430,7 +430,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -454,7 +454,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.schema, Parameters.table, Parameters.column, @@ -481,7 +481,7 @@ const listByTableNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts index 596212d4fc93..8c3c875917fc 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts @@ -225,7 +225,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -248,7 +248,7 @@ const listByQueryOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.startTime, Parameters.endTime, Parameters.interval @@ -274,7 +274,7 @@ const listByQueryNextOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.startTime, Parameters.endTime, Parameters.interval diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts index 41532e447838..33b39f96824b 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts @@ -65,8 +65,8 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters45, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters87, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts index 79ed9526a189..3bd2939161b3 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts @@ -71,7 +71,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts index f1eb5874523a..838d45aa1c24 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts @@ -205,7 +205,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -226,7 +226,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -247,7 +247,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts index 77a9e9ca3369..eadea840f67c 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts @@ -243,7 +243,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -268,8 +268,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters42, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters38, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -292,7 +292,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -312,7 +312,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts index 5e409d356764..67f91c0047da 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts @@ -178,7 +178,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.skiptoken, Parameters.filter1, Parameters.top @@ -204,7 +204,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.skiptoken, Parameters.filter1, Parameters.top diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts index 95d6fa1bcee8..ff568a991c87 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts @@ -531,7 +531,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -559,8 +559,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters43, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters85, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -581,7 +581,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -600,7 +600,7 @@ const disableRecommendationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -619,7 +619,7 @@ const enableRecommendationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -645,7 +645,7 @@ const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.filter1, Parameters.count ], @@ -664,8 +664,8 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters44, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters86, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -689,7 +689,7 @@ const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.filter1, Parameters.includeDisabledRecommendations ], @@ -714,7 +714,7 @@ const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.filter1, Parameters.count ], @@ -740,7 +740,7 @@ const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.filter1, Parameters.includeDisabledRecommendations ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts index 2d4040683076..9417976ab276 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts @@ -228,7 +228,7 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -250,7 +250,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -272,7 +272,7 @@ const listBySchemaNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts index 048b6d6c7173..abd8be470406 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts @@ -246,7 +246,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -271,8 +271,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters46, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters39, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -295,7 +295,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -315,7 +315,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts index f31d4f57d402..b49adad4d812 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts @@ -161,7 +161,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -185,8 +185,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters20, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -206,7 +206,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts index afd897eb7f32..de69fd35ed21 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts @@ -369,7 +369,7 @@ const initiateScanOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -394,7 +394,7 @@ const exportOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -417,7 +417,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -439,7 +439,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -461,7 +461,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts index ef828481f048..70a1b177322c 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts @@ -271,7 +271,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -296,8 +296,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters21, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -315,7 +315,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -336,7 +336,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -356,7 +356,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabases.ts b/sdk/sql/arm-sql/src/operations/managedDatabases.ts index 63f1252e8946..4b93f468230a 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabases.ts @@ -694,7 +694,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -714,7 +714,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -744,8 +744,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters39, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters35, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -762,7 +762,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -791,8 +791,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters40, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters36, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -809,8 +809,8 @@ 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.parameters41, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters37, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -832,7 +832,7 @@ const listInaccessibleByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -851,7 +851,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -871,7 +871,7 @@ const listInaccessibleByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts index 5eb0711c2586..e632e2bdf837 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts @@ -375,7 +375,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -395,7 +395,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -425,8 +425,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters47, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters40, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -443,7 +443,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators/{administratorName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -462,7 +462,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts index ee3b769e1339..2166389084f6 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts @@ -383,7 +383,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -413,8 +413,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters48, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters41, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -431,7 +431,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/{authenticationName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -451,7 +451,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -470,7 +470,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts index c2c382186b3d..2d5621e178d6 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts @@ -382,7 +382,7 @@ const revalidateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}/revalidate", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -402,7 +402,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -422,7 +422,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -452,8 +452,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters49, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters42, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -474,7 +474,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts index 44370b23bd51..1651fa28f937 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts @@ -367,7 +367,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -387,7 +387,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -417,8 +417,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters50, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters43, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -435,7 +435,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys/{keyName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -454,7 +454,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion4, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts index 2c89241eaa0f..9ac44ee1cbc0 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts @@ -324,7 +324,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -355,8 +355,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters51, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters44, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -379,7 +379,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -399,7 +399,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts index 7feb225dab08..d23addf47c19 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts @@ -200,7 +200,7 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -220,7 +220,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -236,7 +236,7 @@ const cancelOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations/{operationId}/cancel", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -255,7 +255,7 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts index f962568cca35..7608f0de80e4 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts @@ -390,7 +390,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -420,8 +420,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters52, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters45, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -438,7 +438,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -458,7 +458,7 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -477,7 +477,7 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts index 148edc171bcd..f258d7807af7 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts @@ -181,7 +181,7 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -201,7 +201,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -221,7 +221,7 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts index 4ce38320fb0a..73a2ed7cbdb9 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts @@ -126,8 +126,8 @@ const createOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/tdeCertificates", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters53, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters46, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts index d57a0888e68b..5ebe753afba9 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts @@ -251,7 +251,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -275,8 +275,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters54, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters47, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -293,7 +293,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -313,7 +313,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -332,7 +332,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstances.ts b/sdk/sql/arm-sql/src/operations/managedInstances.ts index 96f740c28094..057768131ca2 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstances.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstances.ts @@ -894,7 +894,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters86, + requestBody: Parameters.parameters79, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -939,7 +939,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters87, + requestBody: Parameters.parameters80, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts index b212b3e8e810..3759e07f6aa2 100644 --- a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts @@ -451,7 +451,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -482,8 +482,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -515,8 +515,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -539,7 +539,7 @@ const listByRestorableDroppedDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -559,7 +559,7 @@ const listByRestorableDroppedDatabaseNextOperationSpec: coreClient.OperationSpec }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts index 3a8dce097f71..5020bb5d0877 100644 --- a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts @@ -294,7 +294,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -324,8 +324,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters55, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -347,7 +347,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -366,7 +366,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/operations.ts b/sdk/sql/arm-sql/src/operations/operations.ts index dafb115a2ad3..4b54755973ae 100644 --- a/sdk/sql/arm-sql/src/operations/operations.ts +++ b/sdk/sql/arm-sql/src/operations/operations.ts @@ -112,7 +112,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer @@ -126,7 +126,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/operationsHealthOperations.ts b/sdk/sql/arm-sql/src/operations/operationsHealthOperations.ts deleted file mode 100644 index 2cf8d2be4899..000000000000 --- a/sdk/sql/arm-sql/src/operations/operationsHealthOperations.ts +++ /dev/null @@ -1,162 +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 { OperationsHealthOperations } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClient } from "../sqlManagementClient"; -import { - OperationsHealth, - OperationsHealthListByLocationNextOptionalParams, - OperationsHealthListByLocationOptionalParams, - OperationsHealthListByLocationResponse, - OperationsHealthListByLocationNextResponse -} from "../models"; - -/// -/** Class containing OperationsHealthOperations operations. */ -export class OperationsHealthOperationsImpl - implements OperationsHealthOperations { - private readonly client: SqlManagementClient; - - /** - * Initialize a new instance of the class OperationsHealthOperations class. - * @param client Reference to the service client - */ - constructor(client: SqlManagementClient) { - this.client = client; - } - - /** - * Gets a service operation health status. - * @param locationName The name of the region where the resource is located. - * @param options The options parameters. - */ - public listByLocation( - locationName: string, - options?: OperationsHealthListByLocationOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(locationName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listByLocationPagingPage(locationName, options); - } - }; - } - - private async *listByLocationPagingPage( - locationName: string, - options?: OperationsHealthListByLocationOptionalParams - ): AsyncIterableIterator { - let result = await this._listByLocation(locationName, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listByLocationNext( - locationName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listByLocationPagingAll( - locationName: string, - options?: OperationsHealthListByLocationOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage( - locationName, - options - )) { - yield* page; - } - } - - /** - * Gets a service operation health status. - * @param locationName The name of the region where the resource is located. - * @param options The options parameters. - */ - private _listByLocation( - locationName: string, - options?: OperationsHealthListByLocationOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec - ); - } - - /** - * ListByLocationNext - * @param locationName The name of the region where the resource is located. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. - * @param options The options parameters. - */ - private _listByLocationNext( - locationName: string, - nextLink: string, - options?: OperationsHealthListByLocationNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { locationName, nextLink, options }, - listByLocationNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/operationsHealth", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationsHealthListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationsHealthListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts b/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts index fd479c5c155f..907a85363911 100644 --- a/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts @@ -397,7 +397,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters79, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts index 4c732f1f3e9e..98e8a14376c5 100644 --- a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts @@ -374,7 +374,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -404,8 +404,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters56, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters49, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -422,7 +422,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -442,7 +442,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -461,7 +461,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts index 71258388e4b8..bcc59bae3ef6 100644 --- a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts @@ -178,7 +178,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -198,7 +198,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -218,7 +218,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts index b4e7f1349547..7e213220f298 100644 --- a/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts @@ -59,8 +59,8 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/recommendedSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters45, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters87, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts index 28474f56d0fe..9ca5b34009d8 100644 --- a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts @@ -184,7 +184,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -204,7 +204,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -224,7 +224,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/restorePoints.ts b/sdk/sql/arm-sql/src/operations/restorePoints.ts index 499591704c67..c338a66caa79 100644 --- a/sdk/sql/arm-sql/src/operations/restorePoints.ts +++ b/sdk/sql/arm-sql/src/operations/restorePoints.ts @@ -330,7 +330,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -360,8 +360,8 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters57, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters50, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -383,7 +383,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -400,7 +400,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints/{restorePointName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -420,7 +420,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts index 337958348ae2..dcba4ae2a7f7 100644 --- a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts @@ -508,7 +508,7 @@ const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.filter1, Parameters.count ], @@ -527,8 +527,8 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/currentSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters44, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters86, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -552,7 +552,7 @@ const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.filter1, Parameters.includeDisabledRecommendations ], @@ -571,7 +571,7 @@ const enableRecommendationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -590,7 +590,7 @@ const disableRecommendationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -614,7 +614,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -642,8 +642,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters43, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters85, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -664,7 +664,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -689,7 +689,7 @@ const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.filter1, Parameters.count ], @@ -715,7 +715,7 @@ const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.filter1, Parameters.includeDisabledRecommendations ], diff --git a/sdk/sql/arm-sql/src/operations/serverAdvisors.ts b/sdk/sql/arm-sql/src/operations/serverAdvisors.ts index 9e6e07701017..93f44f7a2be5 100644 --- a/sdk/sql/arm-sql/src/operations/serverAdvisors.ts +++ b/sdk/sql/arm-sql/src/operations/serverAdvisors.ts @@ -111,7 +111,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -131,7 +131,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -152,8 +152,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters16, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters12, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts index a0cac8aea48b..a64dc25aac60 100644 --- a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts +++ b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts @@ -83,7 +83,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -103,8 +103,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters58, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters51, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts index 9281a1f3cdd2..aa4c22378c57 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts @@ -369,7 +369,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -399,8 +399,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters59, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters52, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -417,7 +417,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -437,7 +437,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -456,7 +456,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts index e6a29b160f9f..533e570a39a4 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts @@ -381,7 +381,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -411,8 +411,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters60, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters53, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -429,7 +429,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -449,7 +449,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -468,7 +468,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts index 7760802978a6..aa7b734ae356 100644 --- a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts @@ -18,11 +18,11 @@ import { ServerBlobAuditingPolicy, ServerBlobAuditingPoliciesListByServerNextOptionalParams, ServerBlobAuditingPoliciesListByServerOptionalParams, + ServerBlobAuditingPoliciesListByServerResponse, ServerBlobAuditingPoliciesGetOptionalParams, ServerBlobAuditingPoliciesGetResponse, ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams, ServerBlobAuditingPoliciesCreateOrUpdateResponse, - ServerBlobAuditingPoliciesListByServerResponse, ServerBlobAuditingPoliciesListByServerNextResponse } from "../models"; @@ -112,6 +112,24 @@ export class ServerBlobAuditingPoliciesImpl } } + /** + * Lists auditing settings of a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerBlobAuditingPoliciesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a server's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -222,24 +240,6 @@ export class ServerBlobAuditingPoliciesImpl return poller.pollUntilDone(); } - /** - * Lists auditing settings of a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerBlobAuditingPoliciesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -263,6 +263,26 @@ export class ServerBlobAuditingPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerBlobAuditingPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings/{blobAuditingPolicyName}", @@ -273,7 +293,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -303,8 +323,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters14, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters88, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -316,26 +336,6 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerBlobAuditingPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -345,7 +345,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts index 4be1df99a17b..0074a0d3f137 100644 --- a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts @@ -316,7 +316,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters88, + requestBody: Parameters.parameters81, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts index 3490bb760139..703f0bb776e5 100644 --- a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts +++ b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts @@ -290,7 +290,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -320,8 +320,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters61, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters54, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -343,7 +343,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -362,7 +362,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts index ae3e2adffc7e..a0f9605adbb4 100644 --- a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts +++ b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts @@ -462,7 +462,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -492,7 +492,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -508,7 +508,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -528,7 +528,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -557,8 +557,8 @@ const acquireOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters62, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters55, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -579,7 +579,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverKeys.ts b/sdk/sql/arm-sql/src/operations/serverKeys.ts index f9f07d08c450..4e6417eb2bc9 100644 --- a/sdk/sql/arm-sql/src/operations/serverKeys.ts +++ b/sdk/sql/arm-sql/src/operations/serverKeys.ts @@ -373,7 +373,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -393,7 +393,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -423,8 +423,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters63, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters56, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -441,7 +441,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -460,7 +460,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverOperations.ts b/sdk/sql/arm-sql/src/operations/serverOperations.ts index 7049c774de27..914dd9d519be 100644 --- a/sdk/sql/arm-sql/src/operations/serverOperations.ts +++ b/sdk/sql/arm-sql/src/operations/serverOperations.ts @@ -156,7 +156,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -175,7 +175,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts index 2d468b22c1ee..f55fac4da214 100644 --- a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts @@ -287,7 +287,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -317,8 +317,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters64, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters57, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -340,7 +340,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -359,7 +359,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts b/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts new file mode 100644 index 000000000000..90d74055392f --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts @@ -0,0 +1,475 @@ +/* + * 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 { ServerTrustCertificates } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ServerTrustCertificate, + ServerTrustCertificatesListByInstanceNextOptionalParams, + ServerTrustCertificatesListByInstanceOptionalParams, + ServerTrustCertificatesListByInstanceResponse, + ServerTrustCertificatesGetOptionalParams, + ServerTrustCertificatesGetResponse, + ServerTrustCertificatesCreateOrUpdateOptionalParams, + ServerTrustCertificatesCreateOrUpdateResponse, + ServerTrustCertificatesDeleteOptionalParams, + ServerTrustCertificatesListByInstanceNextResponse +} from "../models"; + +/// +/** Class containing ServerTrustCertificates operations. */ +export class ServerTrustCertificatesImpl implements ServerTrustCertificates { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class ServerTrustCertificates class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of server trust certificates that were uploaded from box to the given Sql Managed + * Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + public listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerTrustCertificatesListByInstanceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByInstancePagingAll( + resourceGroupName, + managedInstanceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + ); + } + }; + } + + private async *listByInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerTrustCertificatesListByInstanceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByInstance( + resourceGroupName, + managedInstanceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByInstancePagingAll( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerTrustCertificatesListByInstanceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of server trust certificates that were uploaded from box to the given Sql Managed + * Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerTrustCertificatesListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + + /** + * Gets a server trust certificate that was uploaded from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to get. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + options?: ServerTrustCertificatesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, certificateName, options }, + getOperationSpec + ); + } + + /** + * Uploads a server trust certificate from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to upload. + * @param parameters The server trust certificate info. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + parameters: ServerTrustCertificate, + options?: ServerTrustCertificatesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ServerTrustCertificatesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + managedInstanceName, + certificateName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Uploads a server trust certificate from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to upload. + * @param parameters The server trust certificate info. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + parameters: ServerTrustCertificate, + options?: ServerTrustCertificatesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + managedInstanceName, + certificateName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a server trust certificate that was uploaded from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to delete. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + options?: ServerTrustCertificatesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, managedInstanceName, certificateName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes a server trust certificate that was uploaded from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to delete. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + options?: ServerTrustCertificatesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + managedInstanceName, + certificateName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByInstanceNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param nextLink The nextLink from the previous successful call to the ListByInstance method. + * @param options The options parameters. + */ + private _listByInstanceNext( + resourceGroupName: string, + managedInstanceName: string, + nextLink: string, + options?: ServerTrustCertificatesListByInstanceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, nextLink, options }, + listByInstanceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustCertificates", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerTrustCertificatesListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustCertificates/{certificateName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerTrustCertificate + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.certificateName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustCertificates/{certificateName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ServerTrustCertificate + }, + 201: { + bodyMapper: Mappers.ServerTrustCertificate + }, + 202: { + bodyMapper: Mappers.ServerTrustCertificate + }, + 204: { + bodyMapper: Mappers.ServerTrustCertificate + }, + default: {} + }, + requestBody: Parameters.parameters83, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.certificateName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustCertificates/{certificateName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.certificateName + ], + serializer +}; +const listByInstanceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerTrustCertificatesListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts index f1db339a8209..3c428109974b 100644 --- a/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts +++ b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts @@ -487,7 +487,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -517,8 +517,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters65, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -535,7 +535,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -555,7 +555,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -575,7 +575,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -594,7 +594,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -614,7 +614,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts index 2db5775f724a..4b580b451d33 100644 --- a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts @@ -233,7 +233,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -257,8 +257,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters66, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters59, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -275,7 +275,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -295,7 +295,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -314,7 +314,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/servers.ts b/sdk/sql/arm-sql/src/operations/servers.ts index 140ab107765c..af150f10a3f8 100644 --- a/sdk/sql/arm-sql/src/operations/servers.ts +++ b/sdk/sql/arm-sql/src/operations/servers.ts @@ -657,7 +657,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters80, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, @@ -702,7 +702,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters81, + requestBody: Parameters.parameters74, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, @@ -747,7 +747,7 @@ const importDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters82, + requestBody: Parameters.parameters75, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, @@ -769,7 +769,7 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters83, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], diff --git a/sdk/sql/arm-sql/src/operations/sqlAgent.ts b/sdk/sql/arm-sql/src/operations/sqlAgent.ts index a5601ff58f3d..7f9eb232e1d9 100644 --- a/sdk/sql/arm-sql/src/operations/sqlAgent.ts +++ b/sdk/sql/arm-sql/src/operations/sqlAgent.ts @@ -82,7 +82,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -102,8 +102,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters67, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters60, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts index e0fbde5343ac..b68781aece99 100644 --- a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts +++ b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts @@ -150,7 +150,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -169,7 +169,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -188,7 +188,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/syncAgents.ts b/sdk/sql/arm-sql/src/operations/syncAgents.ts index ac3a753905cb..64f3ae8934c4 100644 --- a/sdk/sql/arm-sql/src/operations/syncAgents.ts +++ b/sdk/sql/arm-sql/src/operations/syncAgents.ts @@ -517,7 +517,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -547,8 +547,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters68, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters61, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -565,7 +565,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -585,7 +585,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -605,7 +605,7 @@ const generateKeyOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -626,7 +626,7 @@ const listLinkedDatabasesOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -646,7 +646,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -666,7 +666,7 @@ const listLinkedDatabasesNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/syncGroups.ts b/sdk/sql/arm-sql/src/operations/syncGroups.ts index 5a2f728cbfb5..41bf7b4c750d 100644 --- a/sdk/sql/arm-sql/src/operations/syncGroups.ts +++ b/sdk/sql/arm-sql/src/operations/syncGroups.ts @@ -22,7 +22,7 @@ import { SyncGroupsListHubSchemasNextOptionalParams, SyncGroupsListHubSchemasOptionalParams, SyncGroupLogProperties, - Enum60, + SyncGroupsType, SyncGroupsListLogsNextOptionalParams, SyncGroupsListLogsOptionalParams, SyncGroup, @@ -223,7 +223,7 @@ export class SyncGroupsImpl implements SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams ): PagedAsyncIterableIterator { const iter = this.listLogsPagingAll( @@ -265,7 +265,7 @@ export class SyncGroupsImpl implements SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams ): AsyncIterableIterator { let result = await this._listLogs( @@ -304,7 +304,7 @@ export class SyncGroupsImpl implements SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams ): AsyncIterableIterator { for await (const page of this.listLogsPagingPage( @@ -550,7 +550,7 @@ export class SyncGroupsImpl implements SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -1033,7 +1033,7 @@ export class SyncGroupsImpl implements SyncGroups { startTime: string, endTime: string, nextLink: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsNextOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -1087,7 +1087,7 @@ const listSyncDatabaseIdsOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1101,7 +1101,7 @@ const refreshHubSchemaOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/refreshHubSchema", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1122,7 +1122,7 @@ const listHubSchemasOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1145,7 +1145,7 @@ const listLogsOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.startTime1, Parameters.endTime1, Parameters.typeParam, @@ -1167,7 +1167,7 @@ const cancelSyncOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/cancelSync", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1183,7 +1183,7 @@ const triggerSyncOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/triggerSync", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1204,7 +1204,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1235,8 +1235,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters69, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters62, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1254,7 +1254,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1284,8 +1284,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters69, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters62, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1308,7 +1308,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1328,7 +1328,7 @@ const listSyncDatabaseIdsNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1347,7 +1347,7 @@ const listHubSchemasNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1370,7 +1370,7 @@ const listLogsNextOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.startTime1, Parameters.endTime1, Parameters.typeParam, @@ -1397,7 +1397,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/syncMembers.ts b/sdk/sql/arm-sql/src/operations/syncMembers.ts index 3b7cb9b5b5ee..0c2325b919ee 100644 --- a/sdk/sql/arm-sql/src/operations/syncMembers.ts +++ b/sdk/sql/arm-sql/src/operations/syncMembers.ts @@ -837,7 +837,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -869,8 +869,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters70, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters63, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -889,7 +889,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -920,8 +920,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters70, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters63, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -945,7 +945,7 @@ const listBySyncGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -967,7 +967,7 @@ const listMemberSchemasOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -985,7 +985,7 @@ const refreshMemberSchemaOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}/refreshSchema", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1006,7 +1006,7 @@ const listBySyncGroupNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1028,7 +1028,7 @@ const listMemberSchemasNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts index 158b694b9ea2..d14807af8782 100644 --- a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts @@ -122,8 +122,8 @@ const createOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/tdeCertificates", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters53, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters46, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/timeZones.ts b/sdk/sql/arm-sql/src/operations/timeZones.ts index b9cf3fd886f4..ae754d113aff 100644 --- a/sdk/sql/arm-sql/src/operations/timeZones.ts +++ b/sdk/sql/arm-sql/src/operations/timeZones.ts @@ -150,7 +150,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -169,7 +169,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -188,7 +188,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], 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 a5e01d4e1a1e..3262eefacd2c 100644 --- a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts +++ b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts @@ -258,7 +258,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 202: {}, default: {} }, - requestBody: Parameters.parameters75, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/virtualClusters.ts b/sdk/sql/arm-sql/src/operations/virtualClusters.ts index 49be966b4a93..2c4118f14a4d 100644 --- a/sdk/sql/arm-sql/src/operations/virtualClusters.ts +++ b/sdk/sql/arm-sql/src/operations/virtualClusters.ts @@ -425,7 +425,7 @@ const updateDnsServersOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -445,7 +445,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -460,7 +460,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -479,7 +479,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -494,7 +494,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -522,8 +522,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters71, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters64, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -543,7 +543,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -561,7 +561,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts index 7d5b06bf53f8..6ed8d789e703 100644 --- a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts +++ b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts @@ -373,7 +373,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -403,8 +403,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters72, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters65, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -421,7 +421,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -441,7 +441,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -460,7 +460,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts index 472e44d7ee5d..cf680d10d1c0 100644 --- a/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts +++ b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts @@ -452,7 +452,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -484,8 +484,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters73, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters66, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -504,7 +504,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -526,7 +526,7 @@ const listByWorkloadGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -547,7 +547,7 @@ const listByWorkloadGroupNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/workloadGroups.ts b/sdk/sql/arm-sql/src/operations/workloadGroups.ts index 1753b2935d47..63ee8023781b 100644 --- a/sdk/sql/arm-sql/src/operations/workloadGroups.ts +++ b/sdk/sql/arm-sql/src/operations/workloadGroups.ts @@ -411,7 +411,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -442,8 +442,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters74, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters67, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -461,7 +461,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -482,7 +482,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -502,7 +502,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts index 93138a1af56e..ca57825ad4ea 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts @@ -25,20 +25,20 @@ import { DatabaseUpdate, DatabasesUpdateOptionalParams, DatabasesUpdateResponse, + ExportDatabaseDefinition, + DatabasesExportOptionalParams, + DatabasesExportResponse, DatabasesFailoverOptionalParams, + ImportExistingDatabaseDefinition, + DatabasesImportOptionalParams, + DatabasesImportResponse, + ResourceMoveDefinition, + DatabasesRenameOptionalParams, DatabasesPauseOptionalParams, DatabasesPauseResponse, DatabasesResumeOptionalParams, DatabasesResumeResponse, - DatabasesUpgradeDataWarehouseOptionalParams, - ResourceMoveDefinition, - DatabasesRenameOptionalParams, - ImportExistingDatabaseDefinition, - DatabasesImportOptionalParams, - DatabasesImportResponse, - ExportDatabaseDefinition, - DatabasesExportOptionalParams, - DatabasesExportResponse + DatabasesUpgradeDataWarehouseOptionalParams } from "../models"; /// @@ -229,215 +229,215 @@ export interface Databases { options?: DatabasesUpdateOptionalParams ): Promise; /** - * Failovers a database. + * Exports a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to failover. + * @param databaseName The name of the database. + * @param parameters The database export request parameters. * @param options The options parameters. */ - beginFailover( + beginExport( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesFailoverOptionalParams - ): Promise, void>>; + parameters: ExportDatabaseDefinition, + options?: DatabasesExportOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DatabasesExportResponse + > + >; /** - * Failovers a database. + * Exports a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to failover. + * @param databaseName The name of the database. + * @param parameters The database export request parameters. * @param options The options parameters. */ - beginFailoverAndWait( + beginExportAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesFailoverOptionalParams - ): Promise; + parameters: ExportDatabaseDefinition, + options?: DatabasesExportOptionalParams + ): Promise; /** - * Pauses a database. + * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be paused. + * @param databaseName The name of the database to failover. * @param options The options parameters. */ - beginPause( + beginFailover( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesPauseOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DatabasesPauseResponse - > - >; + options?: DatabasesFailoverOptionalParams + ): Promise, void>>; /** - * Pauses a database. + * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be paused. + * @param databaseName The name of the database to failover. * @param options The options parameters. */ - beginPauseAndWait( + beginFailoverAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesPauseOptionalParams - ): Promise; + options?: DatabasesFailoverOptionalParams + ): Promise; /** - * Resumes a database. + * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be resumed. + * @param databaseName The name of the database. + * @param parameters The database import request parameters. * @param options The options parameters. */ - beginResume( + beginImport( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesResumeOptionalParams + parameters: ImportExistingDatabaseDefinition, + options?: DatabasesImportOptionalParams ): Promise< PollerLike< - PollOperationState, - DatabasesResumeResponse + PollOperationState, + DatabasesImportResponse > >; /** - * Resumes a database. + * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be resumed. + * @param databaseName The name of the database. + * @param parameters The database import request parameters. * @param options The options parameters. */ - beginResumeAndWait( + beginImportAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesResumeOptionalParams - ): Promise; + parameters: ImportExistingDatabaseDefinition, + options?: DatabasesImportOptionalParams + ): Promise; /** - * Upgrades a data warehouse. + * Renames a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be upgraded. + * @param databaseName The name of the database to rename. + * @param parameters The resource move definition for renaming this database. * @param options The options parameters. */ - beginUpgradeDataWarehouse( + rename( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesUpgradeDataWarehouseOptionalParams - ): Promise, void>>; + parameters: ResourceMoveDefinition, + options?: DatabasesRenameOptionalParams + ): Promise; /** - * Upgrades a data warehouse. + * Pauses a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be upgraded. + * @param databaseName The name of the database to be paused. * @param options The options parameters. */ - beginUpgradeDataWarehouseAndWait( + beginPause( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesUpgradeDataWarehouseOptionalParams - ): Promise; + options?: DatabasesPauseOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DatabasesPauseResponse + > + >; /** - * Renames a database. + * Pauses a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to rename. - * @param parameters The resource move definition for renaming this database. + * @param databaseName The name of the database to be paused. * @param options The options parameters. */ - rename( + beginPauseAndWait( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ResourceMoveDefinition, - options?: DatabasesRenameOptionalParams - ): Promise; + options?: DatabasesPauseOptionalParams + ): Promise; /** - * Imports a bacpac into a new database. + * Resumes a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database import request parameters. + * @param databaseName The name of the database to be resumed. * @param options The options parameters. */ - beginImport( + beginResume( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ImportExistingDatabaseDefinition, - options?: DatabasesImportOptionalParams + options?: DatabasesResumeOptionalParams ): Promise< PollerLike< - PollOperationState, - DatabasesImportResponse + PollOperationState, + DatabasesResumeResponse > >; /** - * Imports a bacpac into a new database. + * Resumes a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database import request parameters. + * @param databaseName The name of the database to be resumed. * @param options The options parameters. */ - beginImportAndWait( + beginResumeAndWait( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ImportExistingDatabaseDefinition, - options?: DatabasesImportOptionalParams - ): Promise; + options?: DatabasesResumeOptionalParams + ): Promise; /** - * Exports a database. + * Upgrades a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database export request parameters. + * @param databaseName The name of the database to be upgraded. * @param options The options parameters. */ - beginExport( + beginUpgradeDataWarehouse( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ExportDatabaseDefinition, - options?: DatabasesExportOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DatabasesExportResponse - > - >; + options?: DatabasesUpgradeDataWarehouseOptionalParams + ): Promise, void>>; /** - * Exports a database. + * Upgrades a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database export request parameters. + * @param databaseName The name of the database to be upgraded. * @param options The options parameters. */ - beginExportAndWait( + beginUpgradeDataWarehouseAndWait( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ExportDatabaseDefinition, - options?: DatabasesExportOptionalParams - ): Promise; + options?: DatabasesUpgradeDataWarehouseOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts new file mode 100644 index 000000000000..c8e057ce9713 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts @@ -0,0 +1,154 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + DistributedAvailabilityGroup, + DistributedAvailabilityGroupsListByInstanceOptionalParams, + DistributedAvailabilityGroupsGetOptionalParams, + DistributedAvailabilityGroupsGetResponse, + DistributedAvailabilityGroupsCreateOrUpdateOptionalParams, + DistributedAvailabilityGroupsCreateOrUpdateResponse, + DistributedAvailabilityGroupsDeleteOptionalParams, + DistributedAvailabilityGroupsUpdateOptionalParams, + DistributedAvailabilityGroupsUpdateResponse +} from "../models"; + +/// +/** Interface representing a DistributedAvailabilityGroups. */ +export interface DistributedAvailabilityGroups { + /** + * Gets a list of a distributed availability groups in instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: DistributedAvailabilityGroupsListByInstanceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a distributed availability group info. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + options?: DistributedAvailabilityGroupsGetOptionalParams + ): Promise; + /** + * Creates a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DistributedAvailabilityGroupsCreateOrUpdateResponse + > + >; + /** + * Creates a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams + ): Promise; + /** + * Drops a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + options?: DistributedAvailabilityGroupsDeleteOptionalParams + ): Promise, void>>; + /** + * Drops a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + options?: DistributedAvailabilityGroupsDeleteOptionalParams + ): Promise; + /** + * Updates a distributed availability group replication mode. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DistributedAvailabilityGroupsUpdateResponse + > + >; + /** + * Updates a distributed availability group replication mode. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsUpdateOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/endpointCertificates.ts b/sdk/sql/arm-sql/src/operationsInterfaces/endpointCertificates.ts new file mode 100644 index 000000000000..d13bb3b68936 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/endpointCertificates.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + EndpointCertificate, + EndpointCertificatesListByInstanceOptionalParams, + EndpointCertificatesGetOptionalParams, + EndpointCertificatesGetResponse +} from "../models"; + +/// +/** Interface representing a EndpointCertificates. */ +export interface EndpointCertificates { + /** + * List certificates used on endpoints on the target instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: EndpointCertificatesListByInstanceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a certificate used on the endpoint with the given id. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param endpointType Type of the endpoint whose certificate the customer is looking for. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + endpointType: string, + options?: EndpointCertificatesGetOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/iPv6FirewallRules.ts b/sdk/sql/arm-sql/src/operationsInterfaces/iPv6FirewallRules.ts new file mode 100644 index 000000000000..0dea94f58b8f --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/iPv6FirewallRules.ts @@ -0,0 +1,79 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + IPv6FirewallRule, + IPv6FirewallRulesListByServerOptionalParams, + IPv6FirewallRulesGetOptionalParams, + IPv6FirewallRulesGetResponse, + IPv6FirewallRulesCreateOrUpdateOptionalParams, + IPv6FirewallRulesCreateOrUpdateResponse, + IPv6FirewallRulesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a IPv6FirewallRules. */ +export interface IPv6FirewallRules { + /** + * Gets a list of IPv6 firewall rules. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + listByServer( + resourceGroupName: string, + serverName: string, + options?: IPv6FirewallRulesListByServerOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets an IPv6 firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + firewallRuleName: string, + options?: IPv6FirewallRulesGetOptionalParams + ): Promise; + /** + * Creates or updates an IPv6 firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param parameters The required parameters for creating or updating an IPv6 firewall rule. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + firewallRuleName: string, + parameters: IPv6FirewallRule, + options?: IPv6FirewallRulesCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes an IPv6 firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serverName: string, + firewallRuleName: string, + options?: IPv6FirewallRulesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts index 717bfce71bce..0d2fb05eaaa6 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts @@ -18,10 +18,6 @@ export * from "./serviceObjectives"; export * from "./elasticPoolActivities"; export * from "./elasticPoolDatabaseActivities"; export * from "./serverUsages"; -export * from "./extendedDatabaseBlobAuditingPolicies"; -export * from "./extendedServerBlobAuditingPolicies"; -export * from "./serverBlobAuditingPolicies"; -export * from "./databaseBlobAuditingPolicies"; export * from "./databaseAdvisors"; export * from "./databaseAutomaticTuningOperations"; export * from "./databaseColumns"; @@ -61,8 +57,6 @@ export * from "./managedDatabases"; export * from "./managedDatabaseSchemas"; export * from "./managedDatabaseSecurityAlertPolicies"; export * from "./managedDatabaseSecurityEvents"; -export * from "./managedDatabaseSensitivityLabels"; -export * from "./managedDatabaseRecommendedSensitivityLabels"; export * from "./managedDatabaseTables"; export * from "./managedDatabaseTransparentDataEncryption"; export * from "./managedDatabaseVulnerabilityAssessmentRuleBaselines"; @@ -81,13 +75,10 @@ export * from "./managedInstanceVulnerabilityAssessments"; export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; export * from "./managedServerSecurityAlertPolicies"; export * from "./operations"; -export * from "./operationsHealthOperations"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./recoverableManagedDatabases"; export * from "./restorePoints"; -export * from "./sensitivityLabels"; -export * from "./recommendedSensitivityLabels"; export * from "./serverAdvisors"; export * from "./serverAutomaticTuningOperations"; export * from "./serverAzureADAdministrators"; @@ -125,3 +116,15 @@ export * from "./managedInstances"; export * from "./restorableDroppedDatabases"; export * from "./restorableDroppedManagedDatabases"; export * from "./serverConnectionPolicies"; +export * from "./distributedAvailabilityGroups"; +export * from "./serverTrustCertificates"; +export * from "./iPv6FirewallRules"; +export * from "./endpointCertificates"; +export * from "./managedDatabaseSensitivityLabels"; +export * from "./managedDatabaseRecommendedSensitivityLabels"; +export * from "./sensitivityLabels"; +export * from "./recommendedSensitivityLabels"; +export * from "./serverBlobAuditingPolicies"; +export * from "./databaseBlobAuditingPolicies"; +export * from "./extendedDatabaseBlobAuditingPolicies"; +export * from "./extendedServerBlobAuditingPolicies"; diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/operationsHealthOperations.ts b/sdk/sql/arm-sql/src/operationsInterfaces/operationsHealthOperations.ts deleted file mode 100644 index dce514ace15b..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/operationsHealthOperations.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - OperationsHealth, - OperationsHealthListByLocationOptionalParams -} from "../models"; - -/// -/** Interface representing a OperationsHealthOperations. */ -export interface OperationsHealthOperations { - /** - * Gets a service operation health status. - * @param locationName The name of the region where the resource is located. - * @param options The options parameters. - */ - listByLocation( - locationName: string, - options?: OperationsHealthListByLocationOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverTrustCertificates.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverTrustCertificates.ts new file mode 100644 index 000000000000..e9e1a4ff97cb --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/serverTrustCertificates.ts @@ -0,0 +1,116 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ServerTrustCertificate, + ServerTrustCertificatesListByInstanceOptionalParams, + ServerTrustCertificatesGetOptionalParams, + ServerTrustCertificatesGetResponse, + ServerTrustCertificatesCreateOrUpdateOptionalParams, + ServerTrustCertificatesCreateOrUpdateResponse, + ServerTrustCertificatesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ServerTrustCertificates. */ +export interface ServerTrustCertificates { + /** + * Gets a list of server trust certificates that were uploaded from box to the given Sql Managed + * Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerTrustCertificatesListByInstanceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a server trust certificate that was uploaded from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to get. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + options?: ServerTrustCertificatesGetOptionalParams + ): Promise; + /** + * Uploads a server trust certificate from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to upload. + * @param parameters The server trust certificate info. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + parameters: ServerTrustCertificate, + options?: ServerTrustCertificatesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ServerTrustCertificatesCreateOrUpdateResponse + > + >; + /** + * Uploads a server trust certificate from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to upload. + * @param parameters The server trust certificate info. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + parameters: ServerTrustCertificate, + options?: ServerTrustCertificatesCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a server trust certificate that was uploaded from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to delete. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + options?: ServerTrustCertificatesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a server trust certificate that was uploaded from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to delete. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + options?: ServerTrustCertificatesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts index 1457be1739b8..96742a1da3d0 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts @@ -14,7 +14,7 @@ import { SyncFullSchemaProperties, SyncGroupsListHubSchemasOptionalParams, SyncGroupLogProperties, - Enum60, + SyncGroupsType, SyncGroupsListLogsOptionalParams, SyncGroup, SyncGroupsListByDatabaseOptionalParams, @@ -77,7 +77,7 @@ export interface SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams ): PagedAsyncIterableIterator; /** diff --git a/sdk/sql/arm-sql/src/sqlManagementClient.ts b/sdk/sql/arm-sql/src/sqlManagementClient.ts index 93a4b86a48c5..af38e3b2bb8e 100644 --- a/sdk/sql/arm-sql/src/sqlManagementClient.ts +++ b/sdk/sql/arm-sql/src/sqlManagementClient.ts @@ -21,10 +21,6 @@ import { ElasticPoolActivitiesImpl, ElasticPoolDatabaseActivitiesImpl, ServerUsagesImpl, - ExtendedDatabaseBlobAuditingPoliciesImpl, - ExtendedServerBlobAuditingPoliciesImpl, - ServerBlobAuditingPoliciesImpl, - DatabaseBlobAuditingPoliciesImpl, DatabaseAdvisorsImpl, DatabaseAutomaticTuningOperationsImpl, DatabaseColumnsImpl, @@ -64,8 +60,6 @@ import { ManagedDatabaseSchemasImpl, ManagedDatabaseSecurityAlertPoliciesImpl, ManagedDatabaseSecurityEventsImpl, - ManagedDatabaseSensitivityLabelsImpl, - ManagedDatabaseRecommendedSensitivityLabelsImpl, ManagedDatabaseTablesImpl, ManagedDatabaseTransparentDataEncryptionImpl, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl, @@ -84,13 +78,10 @@ import { ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImpl, ManagedServerSecurityAlertPoliciesImpl, OperationsImpl, - OperationsHealthOperationsImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, RecoverableManagedDatabasesImpl, RestorePointsImpl, - SensitivityLabelsImpl, - RecommendedSensitivityLabelsImpl, ServerAdvisorsImpl, ServerAutomaticTuningOperationsImpl, ServerAzureADAdministratorsImpl, @@ -127,7 +118,19 @@ import { ManagedInstancesImpl, RestorableDroppedDatabasesImpl, RestorableDroppedManagedDatabasesImpl, - ServerConnectionPoliciesImpl + ServerConnectionPoliciesImpl, + DistributedAvailabilityGroupsImpl, + ServerTrustCertificatesImpl, + IPv6FirewallRulesImpl, + EndpointCertificatesImpl, + ManagedDatabaseSensitivityLabelsImpl, + ManagedDatabaseRecommendedSensitivityLabelsImpl, + SensitivityLabelsImpl, + RecommendedSensitivityLabelsImpl, + ServerBlobAuditingPoliciesImpl, + DatabaseBlobAuditingPoliciesImpl, + ExtendedDatabaseBlobAuditingPoliciesImpl, + ExtendedServerBlobAuditingPoliciesImpl } from "./operations"; import { RecoverableDatabases, @@ -142,10 +145,6 @@ import { ElasticPoolActivities, ElasticPoolDatabaseActivities, ServerUsages, - ExtendedDatabaseBlobAuditingPolicies, - ExtendedServerBlobAuditingPolicies, - ServerBlobAuditingPolicies, - DatabaseBlobAuditingPolicies, DatabaseAdvisors, DatabaseAutomaticTuningOperations, DatabaseColumns, @@ -185,8 +184,6 @@ import { ManagedDatabaseSchemas, ManagedDatabaseSecurityAlertPolicies, ManagedDatabaseSecurityEvents, - ManagedDatabaseSensitivityLabels, - ManagedDatabaseRecommendedSensitivityLabels, ManagedDatabaseTables, ManagedDatabaseTransparentDataEncryption, ManagedDatabaseVulnerabilityAssessmentRuleBaselines, @@ -205,13 +202,10 @@ import { ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies, ManagedServerSecurityAlertPolicies, Operations, - OperationsHealthOperations, PrivateEndpointConnections, PrivateLinkResources, RecoverableManagedDatabases, RestorePoints, - SensitivityLabels, - RecommendedSensitivityLabels, ServerAdvisors, ServerAutomaticTuningOperations, ServerAzureADAdministrators, @@ -248,7 +242,19 @@ import { ManagedInstances, RestorableDroppedDatabases, RestorableDroppedManagedDatabases, - ServerConnectionPolicies + ServerConnectionPolicies, + DistributedAvailabilityGroups, + ServerTrustCertificates, + IPv6FirewallRules, + EndpointCertificates, + ManagedDatabaseSensitivityLabels, + ManagedDatabaseRecommendedSensitivityLabels, + SensitivityLabels, + RecommendedSensitivityLabels, + ServerBlobAuditingPolicies, + DatabaseBlobAuditingPolicies, + ExtendedDatabaseBlobAuditingPolicies, + ExtendedServerBlobAuditingPolicies } from "./operationsInterfaces"; import { SqlManagementClientOptionalParams } from "./models"; @@ -283,7 +289,7 @@ export class SqlManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-sql/9.0.0`; + const packageDetails = `azsdk-js-arm-sql/10.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -320,16 +326,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { this ); this.serverUsages = new ServerUsagesImpl(this); - this.extendedDatabaseBlobAuditingPolicies = new ExtendedDatabaseBlobAuditingPoliciesImpl( - this - ); - this.extendedServerBlobAuditingPolicies = new ExtendedServerBlobAuditingPoliciesImpl( - this - ); - this.serverBlobAuditingPolicies = new ServerBlobAuditingPoliciesImpl(this); - this.databaseBlobAuditingPolicies = new DatabaseBlobAuditingPoliciesImpl( - this - ); this.databaseAdvisors = new DatabaseAdvisorsImpl(this); this.databaseAutomaticTuningOperations = new DatabaseAutomaticTuningOperationsImpl( this @@ -393,12 +389,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedDatabaseSecurityEvents = new ManagedDatabaseSecurityEventsImpl( this ); - this.managedDatabaseSensitivityLabels = new ManagedDatabaseSensitivityLabelsImpl( - this - ); - this.managedDatabaseRecommendedSensitivityLabels = new ManagedDatabaseRecommendedSensitivityLabelsImpl( - this - ); this.managedDatabaseTables = new ManagedDatabaseTablesImpl(this); this.managedDatabaseTransparentDataEncryption = new ManagedDatabaseTransparentDataEncryptionImpl( this @@ -445,17 +435,12 @@ export class SqlManagementClient extends coreClient.ServiceClient { this ); this.operations = new OperationsImpl(this); - this.operationsHealthOperations = new OperationsHealthOperationsImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); this.recoverableManagedDatabases = new RecoverableManagedDatabasesImpl( this ); this.restorePoints = new RestorePointsImpl(this); - this.sensitivityLabels = new SensitivityLabelsImpl(this); - this.recommendedSensitivityLabels = new RecommendedSensitivityLabelsImpl( - this - ); this.serverAdvisors = new ServerAdvisorsImpl(this); this.serverAutomaticTuningOperations = new ServerAutomaticTuningOperationsImpl( this @@ -513,6 +498,32 @@ export class SqlManagementClient extends coreClient.ServiceClient { 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 + ); } recoverableDatabases: RecoverableDatabases; @@ -527,10 +538,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { elasticPoolActivities: ElasticPoolActivities; elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; serverUsages: ServerUsages; - extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; - extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; - serverBlobAuditingPolicies: ServerBlobAuditingPolicies; - databaseBlobAuditingPolicies: DatabaseBlobAuditingPolicies; databaseAdvisors: DatabaseAdvisors; databaseAutomaticTuningOperations: DatabaseAutomaticTuningOperations; databaseColumns: DatabaseColumns; @@ -570,8 +577,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { managedDatabaseSchemas: ManagedDatabaseSchemas; managedDatabaseSecurityAlertPolicies: ManagedDatabaseSecurityAlertPolicies; managedDatabaseSecurityEvents: ManagedDatabaseSecurityEvents; - managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; - managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; managedDatabaseTables: ManagedDatabaseTables; managedDatabaseTransparentDataEncryption: ManagedDatabaseTransparentDataEncryption; managedDatabaseVulnerabilityAssessmentRuleBaselines: ManagedDatabaseVulnerabilityAssessmentRuleBaselines; @@ -590,13 +595,10 @@ export class SqlManagementClient extends coreClient.ServiceClient { managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies; managedServerSecurityAlertPolicies: ManagedServerSecurityAlertPolicies; operations: Operations; - operationsHealthOperations: OperationsHealthOperations; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; recoverableManagedDatabases: RecoverableManagedDatabases; restorePoints: RestorePoints; - sensitivityLabels: SensitivityLabels; - recommendedSensitivityLabels: RecommendedSensitivityLabels; serverAdvisors: ServerAdvisors; serverAutomaticTuningOperations: ServerAutomaticTuningOperations; serverAzureADAdministrators: ServerAzureADAdministrators; @@ -634,4 +636,16 @@ export class SqlManagementClient extends coreClient.ServiceClient { restorableDroppedDatabases: RestorableDroppedDatabases; restorableDroppedManagedDatabases: RestorableDroppedManagedDatabases; serverConnectionPolicies: ServerConnectionPolicies; + distributedAvailabilityGroups: DistributedAvailabilityGroups; + serverTrustCertificates: ServerTrustCertificates; + iPv6FirewallRules: IPv6FirewallRules; + endpointCertificates: EndpointCertificates; + managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; + managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; + sensitivityLabels: SensitivityLabels; + recommendedSensitivityLabels: RecommendedSensitivityLabels; + serverBlobAuditingPolicies: ServerBlobAuditingPolicies; + databaseBlobAuditingPolicies: DatabaseBlobAuditingPolicies; + extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; + extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; } diff --git a/sdk/sql/arm-sql/test/sampleTest.ts b/sdk/sql/arm-sql/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/sql/arm-sql/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * 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 { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + 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" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + 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 6e3251194117..3e6ae96443f3 100644 --- a/sdk/sql/arm-sql/tsconfig.json +++ b/sdk/sql/arm-sql/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/sdk/sql/ci.mgmt.yml b/sdk/sql/ci.mgmt.yml index cb6a672b89cb..6268f28ea928 100644 --- a/sdk/sql/ci.mgmt.yml +++ b/sdk/sql/ci.mgmt.yml @@ -1,5 +1,5 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - + trigger: branches: include: @@ -10,6 +10,7 @@ trigger: include: - sdk/sql/ci.mgmt.yml - sdk/sql/arm-sql/ + - sdk/sql/arm-sql pr: branches: include: @@ -23,11 +24,11 @@ pr: include: - sdk/sql/ci.mgmt.yml - sdk/sql/arm-sql/ - + - sdk/sql/arm-sql extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: sql Artifacts: - name: azure-arm-sql - safeName: azurearmsql \ No newline at end of file + safeName: azurearmsql