diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 2546db4067cb..4c0bf32db189 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3793,7 +3793,7 @@ packages: dependencies: semver: 7.5.0 shelljs: 0.8.5 - typescript: 5.2.0-dev.20230517 + typescript: 5.2.0-dev.20230519 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8337,8 +8337,8 @@ packages: hasBin: true dev: false - /typescript/5.2.0-dev.20230517: - resolution: {integrity: sha512-mTT3ka5HTeudnNirocnOfr/0d2CEvZExrJpP8YXqAvdwlwjwNPJ4TqHHiL1y9lx3RfsUWu6HSX539ZxngUTqeA==} + /typescript/5.2.0-dev.20230519: + resolution: {integrity: sha512-3ylSjHrr9oN98tNhwSauXs9bWl4kGiZvIbAKihcGy76HjXrzbKFT6R25f+WT52S1GvAyp3Wz7e4n56ZztPhohA==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -10816,13 +10816,13 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 2.1.0 - '@microsoft/api-extractor': 7.34.6_@types+node@14.18.43 + '@microsoft/api-extractor': 7.34.8_@types+node@14.18.46 '@rollup/plugin-commonjs': 24.1.0_rollup@2.79.1 '@rollup/plugin-json': 6.0.0_rollup@2.79.1 '@rollup/plugin-multi-entry': 6.0.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.1 '@types/chai': 4.3.5 - '@types/node': 14.18.43 + '@types/node': 14.18.46 chai: 4.3.7 cross-env: 7.0.3 dotenv: 16.0.3 @@ -10830,7 +10830,7 @@ packages: mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 - rollup-plugin-sourcemaps: 0.6.3_mn2f3gd3jpedkkr23obcmzv5eq + rollup-plugin-sourcemaps: 0.6.3_m742s5qpci6ulntpyriekwplh4 tslib: 2.5.0 typescript: 5.0.4 uglify-js: 3.17.4 @@ -14521,7 +14521,7 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-EpSU2v4ZtF6cBet3xtDZP6CVKFpIueokt1QWq2L94nDbejTY0apqrB5ld7Y1wMFd2eCjkWdyOemcoMU3aiEpng==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-/tBjWZJq4F0GRWtLPg1EJJSUnRXSFKH0iQwDiqg72Yf38il+hjeRtYIMXcR+/swv7tDy1fmNFXE8ougKu2mf7w==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: @@ -14542,7 +14542,7 @@ packages: rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_m742s5qpci6ulntpyriekwplh4 tslib: 2.5.0 - typescript: 5.0.4 + typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: - supports-color diff --git a/sdk/sql/arm-sql/CHANGELOG.md b/sdk/sql/arm-sql/CHANGELOG.md index 91fb8dc94736..5e21d165562f 100644 --- a/sdk/sql/arm-sql/CHANGELOG.md +++ b/sdk/sql/arm-sql/CHANGELOG.md @@ -1,5 +1,157 @@ # Release History +## 11.0.0-beta.1 (2023-05-19) + +**Features** + + - Added operation group NetworkSecurityPerimeterConfigurations + - Added operation DistributedAvailabilityGroups.beginSetRole + - Added operation DistributedAvailabilityGroups.beginSetRoleAndWait + - Added operation FailoverGroups.beginTryPlannedBeforeForcedFailover + - Added operation FailoverGroups.beginTryPlannedBeforeForcedFailoverAndWait + - Added operation GeoBackupPolicies.list + - Added operation ManagedDatabaseSensitivityLabels.listByDatabase + - Added operation ManagedInstanceLongTermRetentionPolicies.beginDelete + - Added operation ManagedInstanceLongTermRetentionPolicies.beginDeleteAndWait + - Added operation SensitivityLabels.listByDatabase + - Added Interface DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated + - Added Interface DataMaskingRulesListByDatabaseNextOptionalParams + - Added Interface DistributedAvailabilityGroupSetRole + - Added Interface DistributedAvailabilityGroupsSetRoleOptionalParams + - Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders + - Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + - Added Interface GeoBackupPoliciesListNextOptionalParams + - Added Interface GeoBackupPoliciesListOptionalParams + - Added Interface ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams + - Added Interface ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + - Added Interface ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + - Added Interface NetworkSecurityPerimeterConfiguration + - Added Interface NetworkSecurityPerimeterConfigurationListResult + - Added Interface NetworkSecurityPerimeterConfigurationsGetOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + - Added Interface NSPConfigAccessRule + - Added Interface NSPConfigAccessRuleProperties + - Added Interface NSPConfigAssociation + - Added Interface NSPConfigNetworkSecurityPerimeterRule + - Added Interface NSPConfigPerimeter + - Added Interface NSPConfigProfile + - Added Interface NSPProvisioningIssue + - Added Interface NSPProvisioningIssueProperties + - Added Interface PhaseDetails + - Added Interface SensitivityLabelsListByDatabaseNextOptionalParams + - Added Interface SensitivityLabelsListByDatabaseOptionalParams + - Added Interface ServerUsagesListByServerNextOptionalParams + - Added Interface UpsertManagedServerOperationStepWithEstimatesAndDuration + - Added Type Alias DataMaskingPolicyName + - Added Type Alias DataMaskingRulesListByDatabaseNextResponse + - Added Type Alias DistributedAvailabilityGroupsSetRoleResponse + - Added Type Alias FailoverGroupsTryPlannedBeforeForcedFailoverResponse + - Added Type Alias GeoBackupPoliciesListNextResponse + - Added Type Alias GeoBackupPoliciesListResponse + - Added Type Alias InstanceRole + - Added Type Alias ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse + - Added Type Alias ManagedDatabaseSensitivityLabelsListByDatabaseResponse + - Added Type Alias ManagedInstanceLongTermRetentionPoliciesDeleteResponse + - Added Type Alias ManagedInstancesStartResponse + - Added Type Alias ManagedInstancesStopResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsGetResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsListByServerNextResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsListByServerResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsReconcileResponse + - Added Type Alias Phase + - Added Type Alias RoleChangeType + - Added Type Alias SecurityAlertPolicyNameAutoGenerated + - Added Type Alias SensitivityLabelsListByDatabaseNextResponse + - Added Type Alias SensitivityLabelsListByDatabaseResponse + - Added Type Alias ServerUsagesListByServerNextResponse + - Added Type Alias Status + - Interface DatabaseExtensions has a new optional parameter administratorLogin + - Interface DatabaseExtensions has a new optional parameter administratorLoginPassword + - Interface DatabaseExtensions has a new optional parameter authenticationType + - Interface DatabaseExtensions has a new optional parameter databaseEdition + - Interface DatabaseExtensions has a new optional parameter maxSizeBytes + - Interface DatabaseExtensions has a new optional parameter networkIsolation + - Interface DatabaseExtensions has a new optional parameter serviceObjectiveName + - Interface DatabaseOperation has a new optional parameter operationPhaseDetails + - Interface DataMaskingRuleListResult has a new optional parameter nextLink + - Interface DistributedAvailabilityGroup has a new optional parameter instanceRole + - Interface EditionCapability has a new optional parameter zonePinning + - Interface ElasticPool has a new optional parameter availabilityZone + - Interface ElasticPool has a new optional parameter minCapacity + - Interface ElasticPool has a new optional parameter preferredEnclaveType + - Interface ElasticPoolEditionCapability has a new optional parameter zonePinning + - Interface ElasticPoolUpdate has a new optional parameter availabilityZone + - Interface ElasticPoolUpdate has a new optional parameter minCapacity + - Interface ElasticPoolUpdate has a new optional parameter preferredEnclaveType + - Interface GeoBackupPolicyListResult has a new optional parameter nextLink + - Interface ImportExportExtensionsOperationResult has a new optional parameter blobUri + - Interface ImportExportExtensionsOperationResult has a new optional parameter privateEndpointConnections + - Interface ImportExportExtensionsOperationResult has a new optional parameter queuedTime + - Interface ManagedDatabase has a new optional parameter isLedgerOn + - Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn + - Interface ManagedInstance has a new optional parameter virtualClusterId + - Interface ManagedInstancePrivateLinkProperties has a new optional parameter requiredZoneNames + - Interface ManagedInstanceUpdate has a new optional parameter virtualClusterId + - Interface PrivateEndpointConnection has a new optional parameter groupIds + - Interface ReplicationLink has a new optional parameter partnerDatabaseId + - Interface ServerUsageListResult has a new optional parameter nextLink + - Interface ServiceObjectiveCapability has a new optional parameter zonePinning + - Interface SqlManagementClientOptionalParams has a new optional parameter apiVersion + - Interface SqlVulnerabilityAssessmentScanRecord has a new optional parameter lastScanTime + - Added Enum KnownDataMaskingPolicyName + - Added Enum KnownInstanceRole + - Added Enum KnownPhase + - Added Enum KnownRoleChangeType + - Added Enum KnownSecurityAlertPolicyNameAutoGenerated + - Added Enum KnownStatus + - Enum KnownOperationMode has a new value Export + - Enum KnownOperationMode has a new value Import + - Enum KnownStorageCapabilityStorageAccountType has a new value Gzrs + +**Breaking Changes** + + - Removed operation group ElasticPoolActivities + - Removed operation group ElasticPoolDatabaseActivities + - Removed operation group ServerCommunicationLinks + - Removed operation group ServiceObjectives + - Removed operation Databases.listMetricDefinitions + - Removed operation Databases.listMetrics + - Removed operation ElasticPools.listMetricDefinitions + - Removed operation ElasticPools.listMetrics + - Removed operation GeoBackupPolicies.listByDatabase + - Operation DataMaskingPolicies.createOrUpdate has a new signature + - Operation DataMaskingPolicies.get has a new signature + - Operation DataMaskingRules.createOrUpdate has a new signature + - Operation DataMaskingRules.listByDatabase has a new signature + - Operation ManagedDatabaseVulnerabilityAssessmentRuleBaselines.createOrUpdate has a new signature + - Operation ManagedServerSecurityAlertPolicies.beginCreateOrUpdate has a new signature + - Operation ManagedServerSecurityAlertPolicies.beginCreateOrUpdateAndWait has a new signature + - Operation ManagedServerSecurityAlertPolicies.get has a new signature + - Operation OutboundFirewallRules.beginCreateOrUpdate has a new signature + - Operation OutboundFirewallRules.beginCreateOrUpdateAndWait has a new signature + - Operation ServerSecurityAlertPolicies.beginCreateOrUpdate has a new signature + - Operation ServerSecurityAlertPolicies.beginCreateOrUpdateAndWait has a new signature + - Operation ServerSecurityAlertPolicies.get has a new signature + - Interface ServerUsage no longer has parameter name + - Interface ServerUsage no longer has parameter nextResetTime + - Interface ServerUsage no longer has parameter resourceName + - Type of parameter provisioningState of interface ManagedInstance is changed from ManagedInstancePropertiesProvisioningState to ProvisioningState + - Type of parameter stepsList of interface ManagedInstanceOperationSteps is changed from UpsertManagedServerOperationStep[] to UpsertManagedServerOperationStepWithEstimatesAndDuration[] + - Type of parameter provisioningState of interface ManagedInstanceUpdate is changed from ManagedInstancePropertiesProvisioningState to ProvisioningState + - Class SqlManagementClient no longer has parameter elasticPoolActivities + - Class SqlManagementClient no longer has parameter elasticPoolDatabaseActivities + - Class SqlManagementClient no longer has parameter serverCommunicationLinks + - Class SqlManagementClient no longer has parameter serviceObjectives + - Removed Enum KnownManagedInstancePropertiesProvisioningState + - Removed Enum KnownPrimaryAggregationType + - Removed Enum KnownServiceObjectiveName + - Removed Enum KnownUnitDefinitionType + - Removed Enum KnownUnitType + - Removed Enum KnownUpsertManagedServerOperationStepStatus + + ## 10.0.0 (2023-03-22) **Features** diff --git a/sdk/sql/arm-sql/README.md b/sdk/sql/arm-sql/README.md index 20a34b7d9592..d3f5f0111807 100644 --- a/sdk/sql/arm-sql/README.md +++ b/sdk/sql/arm-sql/README.md @@ -6,7 +6,7 @@ The Azure SQL Database management API provides a RESTful set of web services tha [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-sql) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-sql) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-sql?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/sql/arm-sql/_meta.json b/sdk/sql/arm-sql/_meta.json index c17798370215..7c3ae3227590 100644 --- a/sdk/sql/arm-sql/_meta.json +++ b/sdk/sql/arm-sql/_meta.json @@ -1,8 +1,8 @@ { - "commit": "cd2b76ce38029e1425ee024cd9403a908c60d71e", + "commit": "02806c095989f61b2b8a415f51242e84b0d45fc4", "readme": "specification/sql/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\sql\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/sql/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/sql/arm-sql/package.json b/sdk/sql/arm-sql/package.json index 68f17cb3467e..e0a74d401c6c 100644 --- a/sdk/sql/arm-sql/package.json +++ b/sdk/sql/arm-sql/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SqlManagementClient.", - "version": "10.0.0", + "version": "11.0.0-beta.1", "engines": { "node": ">=14.0.0" }, @@ -36,7 +36,7 @@ "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~5.0.0", + "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "dotenv": "^16.0.0", @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-sql?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql" +} \ No newline at end of file diff --git a/sdk/sql/arm-sql/review/arm-sql.api.md b/sdk/sql/arm-sql/review/arm-sql.api.md index f4bed1b8d041..44732e83f1a1 100644 --- a/sdk/sql/arm-sql/review/arm-sql.api.md +++ b/sdk/sql/arm-sql/review/arm-sql.api.md @@ -575,7 +575,14 @@ export interface DatabaseEncryptionProtectorsRevertOptionalParams extends coreCl // @public export interface DatabaseExtensions extends ProxyResource { + administratorLogin?: string; + administratorLoginPassword?: string; + authenticationType?: string; + databaseEdition?: string; + maxSizeBytes?: string; + networkIsolation?: NetworkIsolationSettings; operationMode?: OperationMode; + serviceObjectiveName?: string; storageKey?: string; storageKeyType?: StorageKeyType; storageUri?: string; @@ -660,6 +667,7 @@ export interface DatabaseOperation extends ProxyResource { readonly isUserError?: boolean; readonly operation?: string; readonly operationFriendlyName?: string; + readonly operationPhaseDetails?: PhaseDetails; readonly percentComplete?: number; readonly serverName?: string; readonly startTime?: Date; @@ -751,8 +759,6 @@ export interface Databases { listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: DatabasesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; listByServer(resourceGroupName: string, serverName: string, options?: DatabasesListByServerOptionalParams): PagedAsyncIterableIterator; listInaccessibleByServer(resourceGroupName: string, serverName: string, options?: DatabasesListInaccessibleByServerOptionalParams): PagedAsyncIterableIterator; - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesListMetricDefinitionsOptionalParams): PagedAsyncIterableIterator; - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options?: DatabasesListMetricsOptionalParams): PagedAsyncIterableIterator; rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: ResourceMoveDefinition, options?: DatabasesRenameOptionalParams): Promise; } @@ -941,20 +947,6 @@ export interface DatabasesListInaccessibleByServerOptionalParams extends coreCli // @public export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; -// @public -export interface DatabasesListMetricDefinitionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; - -// @public -export interface DatabasesListMetricsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DatabasesListMetricsResponse = MetricListResult; - // @public export interface DatabasesPauseOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1360,6 +1352,11 @@ export interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResour baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; } +// @public +export interface DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated extends ProxyResource { + baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; +} + // @public export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { result: string[]; @@ -1483,8 +1480,8 @@ export type DataMaskingFunction = "Default" | "CCN" | "Email" | "Number" | "SSN" // @public export interface DataMaskingPolicies { - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: DataMaskingPolicy, options?: DataMaskingPoliciesCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: DataMaskingPoliciesGetOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingPolicyName: DataMaskingPolicyName, parameters: DataMaskingPolicy, options?: DataMaskingPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingPoliciesGetOptionalParams): Promise; } // @public @@ -1511,6 +1508,9 @@ export interface DataMaskingPolicy extends ProxyResource { readonly maskingLevel?: string; } +// @public +export type DataMaskingPolicyName = string; + // @public export interface DataMaskingRule extends ProxyResource { aliasName?: string; @@ -1531,13 +1531,14 @@ export interface DataMaskingRule extends ProxyResource { // @public export interface DataMaskingRuleListResult { - value?: DataMaskingRule[]; + readonly nextLink?: string; + readonly value?: DataMaskingRule[]; } // @public export interface DataMaskingRules { - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams): Promise; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DataMaskingRulesListByDatabaseOptionalParams): PagedAsyncIterableIterator; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingPolicyName: DataMaskingPolicyName, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams): PagedAsyncIterableIterator; } // @public @@ -1547,6 +1548,13 @@ export interface DataMaskingRulesCreateOrUpdateOptionalParams extends coreClient // @public export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; +// @public +export interface DataMaskingRulesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataMaskingRulesListByDatabaseNextResponse = DataMaskingRuleListResult; + // @public export interface DataMaskingRulesListByDatabaseOptionalParams extends coreClient.OperationOptions { } @@ -1555,10 +1563,10 @@ export interface DataMaskingRulesListByDatabaseOptionalParams extends coreClient export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; // @public -export type DataMaskingRuleState = "Disabled" | "Enabled"; +export type DataMaskingRuleState = "Enabled" | "Disabled"; // @public -export type DataMaskingState = "Disabled" | "Enabled"; +export type DataMaskingState = "Enabled" | "Disabled"; // @public export interface DataWarehouseUserActivities extends ProxyResource { @@ -1680,6 +1688,7 @@ export type DiffBackupIntervalInHours = number; // @public export interface DistributedAvailabilityGroup extends ProxyResource { readonly distributedAvailabilityGroupId?: string; + readonly instanceRole?: string; readonly lastHardenedLsn?: string; readonly linkState?: string; primaryAvailabilityGroupName?: string; @@ -1697,6 +1706,8 @@ export interface DistributedAvailabilityGroups { beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise; + beginSetRole(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroupSetRole, options?: DistributedAvailabilityGroupsSetRoleOptionalParams): Promise, DistributedAvailabilityGroupsSetRoleResponse>>; + beginSetRoleAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroupSetRole, options?: DistributedAvailabilityGroupsSetRoleOptionalParams): Promise; beginUpdate(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams): Promise, DistributedAvailabilityGroupsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsGetOptionalParams): Promise; @@ -1718,6 +1729,12 @@ export interface DistributedAvailabilityGroupsDeleteOptionalParams extends coreC updateIntervalInMs?: number; } +// @public +export interface DistributedAvailabilityGroupSetRole { + instanceRole: InstanceRole; + roleChangeType: RoleChangeType; +} + // @public export interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions { } @@ -1745,6 +1762,15 @@ export interface DistributedAvailabilityGroupsListResult { readonly value?: DistributedAvailabilityGroup[]; } +// @public +export interface DistributedAvailabilityGroupsSetRoleOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DistributedAvailabilityGroupsSetRoleResponse = DistributedAvailabilityGroup; + // @public export interface DistributedAvailabilityGroupsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1768,108 +1794,34 @@ export interface EditionCapability { readonly status?: CapabilityStatus; readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; readonly supportedStorageCapabilities?: StorageCapability[]; + readonly zonePinning?: boolean; readonly zoneRedundant?: boolean; } // @public export interface ElasticPool extends TrackedResource { + availabilityZone?: AvailabilityZoneType; readonly creationDate?: Date; highAvailabilityReplicaCount?: number; readonly kind?: string; licenseType?: ElasticPoolLicenseType; maintenanceConfigurationId?: string; maxSizeBytes?: number; + minCapacity?: number; perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + preferredEnclaveType?: AlwaysEncryptedEnclaveType; sku?: Sku; readonly state?: ElasticPoolState; zoneRedundant?: boolean; } -// @public -export interface ElasticPoolActivities { - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolActivitiesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ElasticPoolActivitiesListByElasticPoolOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; - -// @public -export interface ElasticPoolActivity extends ProxyResource { - readonly elasticPoolName?: string; - readonly endTime?: Date; - readonly errorCode?: number; - readonly errorMessage?: string; - readonly errorSeverity?: number; - location?: string; - readonly operation?: string; - readonly operationId?: string; - readonly percentComplete?: number; - readonly requestedDatabaseDtuCap?: number; - readonly requestedDatabaseDtuGuarantee?: number; - readonly requestedDatabaseDtuMax?: number; - readonly requestedDatabaseDtuMin?: number; - readonly requestedDtu?: number; - readonly requestedDtuGuarantee?: number; - readonly requestedElasticPoolName?: string; - readonly requestedStorageLimitInGB?: number; - readonly requestedStorageLimitInMB?: number; - readonly serverName?: string; - readonly startTime?: Date; - readonly state?: string; -} - -// @public -export interface ElasticPoolActivityListResult { - value: ElasticPoolActivity[]; -} - -// @public -export interface ElasticPoolDatabaseActivities { - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; - -// @public -export interface ElasticPoolDatabaseActivity extends ProxyResource { - readonly currentElasticPoolName?: string; - readonly currentServiceObjective?: string; - readonly databaseName?: string; - readonly endTime?: Date; - readonly errorCode?: number; - readonly errorMessage?: string; - readonly errorSeverity?: number; - location?: string; - readonly operation?: string; - readonly operationId?: string; - readonly percentComplete?: number; - readonly requestedElasticPoolName?: string; - readonly requestedServiceObjective?: string; - readonly serverName?: string; - readonly startTime?: Date; - readonly state?: string; -} - -// @public -export interface ElasticPoolDatabaseActivityListResult { - value: ElasticPoolDatabaseActivity[]; -} - // @public export interface ElasticPoolEditionCapability { readonly name?: string; reason?: string; readonly status?: CapabilityStatus; readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; + readonly zonePinning?: boolean; readonly zoneRedundant?: boolean; } @@ -1981,8 +1933,6 @@ export interface ElasticPools { beginUpdateAndWait(resourceGroupName: string, serverName: string, elasticPoolName: string, parameters: ElasticPoolUpdate, options?: ElasticPoolsUpdateOptionalParams): Promise; get(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolsGetOptionalParams): Promise; listByServer(resourceGroupName: string, serverName: string, options?: ElasticPoolsListByServerOptionalParams): PagedAsyncIterableIterator; - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolsListMetricDefinitionsOptionalParams): PagedAsyncIterableIterator; - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options?: ElasticPoolsListMetricsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -2028,20 +1978,6 @@ export interface ElasticPoolsListByServerOptionalParams extends coreClient.Opera // @public export type ElasticPoolsListByServerResponse = ElasticPoolListResult; -// @public -export interface ElasticPoolsListMetricDefinitionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult; - -// @public -export interface ElasticPoolsListMetricsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ElasticPoolsListMetricsResponse = MetricListResult; - // @public export type ElasticPoolState = string; @@ -2056,11 +1992,14 @@ export type ElasticPoolsUpdateResponse = ElasticPool; // @public export interface ElasticPoolUpdate { + availabilityZone?: AvailabilityZoneType; highAvailabilityReplicaCount?: number; licenseType?: ElasticPoolLicenseType; maintenanceConfigurationId?: string; maxSizeBytes?: number; + minCapacity?: number; perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + preferredEnclaveType?: AlwaysEncryptedEnclaveType; sku?: Sku; tags?: { [propertyName: string]: string; @@ -2358,6 +2297,8 @@ export interface FailoverGroups { beginFailoverAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsFailoverOptionalParams): Promise; beginForceFailoverAllowDataLoss(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams): Promise, FailoverGroupsForceFailoverAllowDataLossResponse>>; beginForceFailoverAllowDataLossAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams): Promise; + beginTryPlannedBeforeForcedFailover(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams): Promise, FailoverGroupsTryPlannedBeforeForcedFailoverResponse>>; + beginTryPlannedBeforeForcedFailoverAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams): Promise; beginUpdate(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroupUpdate, options?: FailoverGroupsUpdateOptionalParams): Promise, FailoverGroupsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroupUpdate, options?: FailoverGroupsUpdateOptionalParams): Promise; get(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsGetOptionalParams): Promise; @@ -2418,6 +2359,21 @@ export interface FailoverGroupsListByServerOptionalParams extends coreClient.Ope // @public export type FailoverGroupsListByServerResponse = FailoverGroupListResult; +// @public +export interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type FailoverGroupsTryPlannedBeforeForcedFailoverResponse = FailoverGroup; + // @public export interface FailoverGroupsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2507,7 +2463,7 @@ export type FirewallRulesReplaceResponse = FirewallRule; export interface GeoBackupPolicies { createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, parameters: GeoBackupPolicy, options?: GeoBackupPoliciesCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, options?: GeoBackupPoliciesGetOptionalParams): Promise; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: GeoBackupPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; + list(resourceGroupName: string, serverName: string, databaseName: string, options?: GeoBackupPoliciesListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -2525,30 +2481,38 @@ export interface GeoBackupPoliciesGetOptionalParams extends coreClient.Operation export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; // @public -export interface GeoBackupPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions { +export interface GeoBackupPoliciesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GeoBackupPoliciesListNextResponse = GeoBackupPolicyListResult; + +// @public +export interface GeoBackupPoliciesListOptionalParams extends coreClient.OperationOptions { } // @public -export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; +export type GeoBackupPoliciesListResponse = GeoBackupPolicyListResult; // @public export interface GeoBackupPolicy extends ProxyResource { readonly kind?: string; readonly location?: string; - state: GeoBackupPolicyState; + state?: GeoBackupPolicyState; readonly storageType?: string; } // @public export interface GeoBackupPolicyListResult { - value?: GeoBackupPolicy[]; + readonly nextLink?: string; + readonly value?: GeoBackupPolicy[]; } // @public export type GeoBackupPolicyName = string; // @public -export type GeoBackupPolicyState = "Disabled" | "Enabled"; +export type GeoBackupPolicyState = "Enabled" | "Disabled"; // @public export function getContinuationToken(page: unknown): string | undefined; @@ -2578,9 +2542,12 @@ export interface ImportExportExtensionsOperationListResult { // @public export interface ImportExportExtensionsOperationResult extends ProxyResource { + readonly blobUri?: string; readonly databaseName?: string; readonly errorMessage?: string; readonly lastModifiedTime?: string; + readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; + readonly queuedTime?: string; readonly requestId?: string; readonly requestType?: string; readonly serverName?: string; @@ -2837,6 +2804,9 @@ export interface InstancePoolVcoresCapability { readonly value?: number; } +// @public +export type InstanceRole = string; + // @public export interface IPv6FirewallRule extends ProxyResourceWithWritableName { endIPv6Address?: string; @@ -3710,6 +3680,11 @@ export enum KnownDatabaseStatus { Suspect = "Suspect" } +// @public +export enum KnownDataMaskingPolicyName { + Default = "Default" +} + // @public export enum KnownDataWarehouseUserActivityName { Current = "current" @@ -3804,6 +3779,12 @@ export enum KnownInstancePoolLicenseType { LicenseIncluded = "LicenseIncluded" } +// @public +export enum KnownInstanceRole { + Primary = "Primary", + Secondary = "Secondary" +} + // @public export enum KnownJobAgentState { Creating = "Creating", @@ -3911,25 +3892,6 @@ export enum KnownManagedInstanceLongTermRetentionPolicyName { Default = "default" } -// @public -export enum KnownManagedInstancePropertiesProvisioningState { - Accepted = "Accepted", - Canceled = "Canceled", - Created = "Created", - Creating = "Creating", - Deleted = "Deleted", - Deleting = "Deleting", - Failed = "Failed", - NotSpecified = "NotSpecified", - Registering = "Registering", - Running = "Running", - Succeeded = "Succeeded", - TimedOut = "TimedOut", - Unknown = "Unknown", - Unrecognized = "Unrecognized", - Updating = "Updating" -} - // @public export enum KnownManagedInstanceProxyOverride { Default = "Default", @@ -3994,6 +3956,8 @@ export enum KnownMoveOperationMode { // @public export enum KnownOperationMode { + Export = "Export", + Import = "Import", PolybaseImport = "PolybaseImport" } @@ -4015,13 +3979,11 @@ export enum KnownPerformanceLevelUnit { } // @public -export enum KnownPrimaryAggregationType { - Average = "Average", - Count = "Count", - Maximum = "Maximum", - Minimum = "Minimum", - None = "None", - Total = "Total" +export enum KnownPhase { + Catchup = "Catchup", + Copying = "Copying", + CutoverInProgress = "CutoverInProgress", + WaitingForCutover = "WaitingForCutover" } // @public @@ -4138,6 +4100,12 @@ export enum KnownRestoreDetailsName { Default = "Default" } +// @public +export enum KnownRoleChangeType { + Forced = "Forced", + Planned = "Planned" +} + // @public export enum KnownRuleSeverity { High = "High", @@ -4184,6 +4152,11 @@ export enum KnownSecondaryType { // @public export enum KnownSecurityAlertPolicyName { + Default = "default" +} + +// @public +export enum KnownSecurityAlertPolicyNameAutoGenerated { Default = "Default" } @@ -4230,75 +4203,6 @@ export enum KnownServerWorkspaceFeature { Disconnected = "Disconnected" } -// @public -export enum KnownServiceObjectiveName { - Basic = "Basic", - DS100 = "DS100", - DS1000 = "DS1000", - DS1200 = "DS1200", - DS1500 = "DS1500", - DS200 = "DS200", - DS2000 = "DS2000", - DS300 = "DS300", - DS400 = "DS400", - DS500 = "DS500", - DS600 = "DS600", - DW100 = "DW100", - DW1000 = "DW1000", - DW10000C = "DW10000c", - DW1000C = "DW1000c", - DW1200 = "DW1200", - DW1500 = "DW1500", - DW15000C = "DW15000c", - DW1500C = "DW1500c", - DW200 = "DW200", - DW2000 = "DW2000", - DW2000C = "DW2000c", - DW2500C = "DW2500c", - DW300 = "DW300", - DW3000 = "DW3000", - DW30000C = "DW30000c", - DW3000C = "DW3000c", - DW400 = "DW400", - DW500 = "DW500", - DW5000C = "DW5000c", - DW600 = "DW600", - DW6000 = "DW6000", - DW6000C = "DW6000c", - DW7500C = "DW7500c", - ElasticPool = "ElasticPool", - Free = "Free", - P1 = "P1", - P11 = "P11", - P15 = "P15", - P2 = "P2", - P3 = "P3", - P4 = "P4", - P6 = "P6", - PRS1 = "PRS1", - PRS2 = "PRS2", - PRS4 = "PRS4", - PRS6 = "PRS6", - S0 = "S0", - S1 = "S1", - S12 = "S12", - S2 = "S2", - S3 = "S3", - S4 = "S4", - S6 = "S6", - S7 = "S7", - S9 = "S9", - System = "System", - System0 = "System0", - System1 = "System1", - System2 = "System2", - System2L = "System2L", - System3 = "System3", - System3L = "System3L", - System4 = "System4", - System4L = "System4L" -} - // @public export enum KnownServicePrincipalType { None = "None", @@ -4331,9 +4235,20 @@ export enum KnownStartStopScheduleName { Default = "default" } +// @public +export enum KnownStatus { + Canceled = "Canceled", + Completed = "Completed", + Failed = "Failed", + InProgress = "InProgress", + NotStarted = "NotStarted", + SlowedDown = "SlowedDown" +} + // @public export enum KnownStorageCapabilityStorageAccountType { GRS = "GRS", + Gzrs = "GZRS", LRS = "LRS", ZRS = "ZRS" } @@ -4429,36 +4344,6 @@ export enum KnownTransparentDataEncryptionName { Current = "current" } -// @public -export enum KnownUnitDefinitionType { - Bytes = "Bytes", - BytesPerSecond = "BytesPerSecond", - Count = "Count", - CountPerSecond = "CountPerSecond", - Percent = "Percent", - Seconds = "Seconds" -} - -// @public -export enum KnownUnitType { - Bytes = "bytes", - BytesPerSecond = "bytesPerSecond", - Count = "count", - CountPerSecond = "countPerSecond", - Percent = "percent", - Seconds = "seconds" -} - -// @public -export enum KnownUpsertManagedServerOperationStepStatus { - Canceled = "Canceled", - Completed = "Completed", - Failed = "Failed", - InProgress = "InProgress", - NotStarted = "NotStarted", - SlowedDown = "SlowedDown" -} - // @public export enum KnownVirtualNetworkRuleState { Deleting = "Deleting", @@ -5141,6 +5026,7 @@ export interface ManagedDatabase extends TrackedResource { readonly defaultSecondaryLocation?: string; readonly earliestRestorePoint?: Date; readonly failoverGroupId?: string; + isLedgerOn?: boolean; lastBackupName?: string; longTermRetentionBackupResourceId?: string; recoverableDatabaseId?: string; @@ -5575,6 +5461,7 @@ export interface ManagedDatabaseSensitivityLabels { disableRecommendation(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams): Promise; enableRecommendation(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: SensitivityLabelSource, options?: ManagedDatabaseSensitivityLabelsGetOptionalParams): Promise; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams): PagedAsyncIterableIterator; listCurrentByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams): PagedAsyncIterableIterator; listRecommendedByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: SensitivityLabelUpdateList, options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams): Promise; @@ -5606,6 +5493,21 @@ export interface ManagedDatabaseSensitivityLabelsGetOptionalParams extends coreC // @public export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; +// @public +export interface ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; + +// @public +export interface ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type ManagedDatabaseSensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; + // @public export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions { } @@ -5782,6 +5684,7 @@ export interface ManagedDatabaseUpdate { readonly defaultSecondaryLocation?: string; readonly earliestRestorePoint?: Date; readonly failoverGroupId?: string; + isLedgerOn?: boolean; lastBackupName?: string; longTermRetentionBackupResourceId?: string; recoverableDatabaseId?: string; @@ -5799,7 +5702,7 @@ export interface ManagedDatabaseUpdate { // @public export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, parameters: DatabaseVulnerabilityAssessmentRuleBaseline, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, parameters: DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams): Promise; } @@ -5809,7 +5712,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpda } // @public -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated; // @public export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions { @@ -5820,7 +5723,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalP } // @public -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated; // @public export interface ManagedDatabaseVulnerabilityAssessments { @@ -5924,7 +5827,7 @@ export interface ManagedInstance extends TrackedResource { minimalTlsVersion?: string; primaryUserAssignedIdentityId?: string; readonly privateEndpointConnections?: ManagedInstancePecProperty[]; - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; + readonly provisioningState?: ProvisioningState; proxyOverride?: ManagedInstanceProxyOverride; publicDataEndpointEnabled?: boolean; requestedBackupStorageRedundancy?: BackupStorageRedundancy; @@ -5937,6 +5840,7 @@ export interface ManagedInstance extends TrackedResource { subnetId?: string; timezoneId?: string; vCores?: number; + readonly virtualClusterId?: string; zoneRedundant?: boolean; } @@ -6365,6 +6269,8 @@ export interface ManagedInstanceLongTermRetentionBackupListResult { export interface ManagedInstanceLongTermRetentionPolicies { beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, parameters: ManagedInstanceLongTermRetentionPolicy, options?: ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, parameters: ManagedInstanceLongTermRetentionPolicy, options?: ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams): Promise, ManagedInstanceLongTermRetentionPoliciesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, options?: ManagedInstanceLongTermRetentionPoliciesGetOptionalParams): Promise; listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; } @@ -6378,6 +6284,15 @@ export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalP // @public export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; +// @public +export interface ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedInstanceLongTermRetentionPoliciesDeleteResponse = ManagedInstanceLongTermRetentionPolicy; + // @public export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions { } @@ -6489,7 +6404,7 @@ export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInst // @public export interface ManagedInstanceOperationSteps { readonly currentStep?: number; - readonly stepsList?: UpsertManagedServerOperationStep[]; + readonly stepsList?: UpsertManagedServerOperationStepWithEstimatesAndDuration[]; readonly totalSteps?: string; } @@ -6591,6 +6506,7 @@ export interface ManagedInstancePrivateLinkListResult { export interface ManagedInstancePrivateLinkProperties { readonly groupId?: string; readonly requiredMembers?: string[]; + readonly requiredZoneNames?: string[]; } // @public @@ -6627,9 +6543,6 @@ export interface ManagedInstancePrivateLinkServiceConnectionStateProperty { status: string; } -// @public -export type ManagedInstancePropertiesProvisioningState = string; - // @public export type ManagedInstanceProxyOverride = string; @@ -6652,10 +6565,10 @@ export interface ManagedInstances { beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesDeleteOptionalParams): Promise; beginFailover(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesFailoverOptionalParams): Promise, void>>; beginFailoverAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesFailoverOptionalParams): Promise; - beginStart(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise, void>>; - beginStartAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise; - beginStop(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise, void>>; - beginStopAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise; + beginStart(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise, ManagedInstancesStartResponse>>; + beginStartAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise; + beginStop(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise, ManagedInstancesStopResponse>>; + beginStopAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise; beginUpdate(resourceGroupName: string, managedInstanceName: string, parameters: ManagedInstanceUpdate, options?: ManagedInstancesUpdateOptionalParams): Promise, ManagedInstancesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, parameters: ManagedInstanceUpdate, options?: ManagedInstancesUpdateOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesGetOptionalParams): Promise; @@ -6782,12 +6695,18 @@ export interface ManagedInstancesStartOptionalParams extends coreClient.Operatio updateIntervalInMs?: number; } +// @public +export type ManagedInstancesStartResponse = ManagedInstance; + // @public export interface ManagedInstancesStopOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export type ManagedInstancesStopResponse = ManagedInstance; + // @public export interface ManagedInstancesUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -6828,7 +6747,7 @@ export interface ManagedInstanceUpdate { minimalTlsVersion?: string; primaryUserAssignedIdentityId?: string; readonly privateEndpointConnections?: ManagedInstancePecProperty[]; - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; + readonly provisioningState?: ProvisioningState; proxyOverride?: ManagedInstanceProxyOverride; publicDataEndpointEnabled?: boolean; requestedBackupStorageRedundancy?: BackupStorageRedundancy; @@ -6844,6 +6763,7 @@ export interface ManagedInstanceUpdate { }; timezoneId?: string; vCores?: number; + readonly virtualClusterId?: string; zoneRedundant?: boolean; } @@ -7123,9 +7043,9 @@ export interface ManagedServerDnsAliasListResult { // @public export interface ManagedServerSecurityAlertPolicies { - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams): Promise; listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams): PagedAsyncIterableIterator; } @@ -7215,79 +7135,168 @@ export interface MaxSizeRangeCapability { export type MaxSizeUnit = string; // @public -export interface Metric { - readonly endTime?: Date; - readonly metricValues?: MetricValue[]; - readonly name?: MetricName; - readonly startTime?: Date; - readonly timeGrain?: string; - readonly unit?: UnitType; +export type MetricType = string; + +// @public +export interface MinCapacityCapability { + reason?: string; + readonly status?: CapabilityStatus; + readonly value?: number; } // @public -export interface MetricAvailability { - readonly retention?: string; - readonly timeGrain?: string; +export type MoveOperationMode = string; + +// @public +export interface Name { + localizedValue?: string; + value?: string; } // @public -export interface MetricDefinition { - readonly metricAvailabilities?: MetricAvailability[]; - readonly name?: MetricName; - readonly primaryAggregationType?: PrimaryAggregationType; - readonly resourceUri?: string; - readonly unit?: UnitDefinitionType; +export interface NetworkIsolationSettings { + sqlServerResourceId?: string; + storageAccountResourceId?: string; +} + +// @public +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + // (undocumented) + networkSecurityPerimeter?: NSPConfigPerimeter; + // (undocumented) + profile?: NSPConfigProfile; + // (undocumented) + provisioningIssues?: NSPProvisioningIssue[]; + // (undocumented) + provisioningState?: string; + // (undocumented) + resourceAssociation?: NSPConfigAssociation; } // @public -export interface MetricDefinitionListResult { - value: MetricDefinition[]; +export interface NetworkSecurityPerimeterConfigurationListResult { + readonly nextLink?: string; + readonly value?: NetworkSecurityPerimeterConfiguration[]; } // @public -export interface MetricListResult { - value: Metric[]; +export interface NetworkSecurityPerimeterConfigurations { + beginReconcile(resourceGroupName: string, serverName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise, NetworkSecurityPerimeterConfigurationsReconcileResponse>>; + beginReconcileAndWait(resourceGroupName: string, serverName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams): PagedAsyncIterableIterator; } // @public -export interface MetricName { - readonly localizedValue?: string; - readonly value?: string; +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type MetricType = string; +export type NetworkSecurityPerimeterConfigurationsGetResponse = NetworkSecurityPerimeterConfiguration; // @public -export interface MetricValue { - readonly average?: number; - readonly count?: number; - readonly maximum?: number; - readonly minimum?: number; - readonly timestamp?: Date; - readonly total?: number; +export interface NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface MinCapacityCapability { - reason?: string; - readonly status?: CapabilityStatus; - readonly value?: number; +export type NetworkSecurityPerimeterConfigurationsListByServerNextResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface NetworkSecurityPerimeterConfigurationsListByServerOptionalParams extends coreClient.OperationOptions { } // @public -export type MoveOperationMode = string; +export type NetworkSecurityPerimeterConfigurationsListByServerResponse = NetworkSecurityPerimeterConfigurationListResult; // @public -export interface Name { - localizedValue?: string; - value?: string; +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface NetworkIsolationSettings { - sqlServerResourceId?: string; - storageAccountResourceId?: string; +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = NetworkSecurityPerimeterConfiguration; + +// @public (undocumented) +export interface NSPConfigAccessRule { + // (undocumented) + name?: string; + // (undocumented) + properties?: NSPConfigAccessRuleProperties; +} + +// @public (undocumented) +export interface NSPConfigAccessRuleProperties { + // (undocumented) + addressPrefixes?: string[]; + // (undocumented) + direction?: string; + // (undocumented) + fullyQualifiedDomainNames?: string[]; + // (undocumented) + networkSecurityPerimeters?: NSPConfigNetworkSecurityPerimeterRule[]; + // (undocumented) + subscriptions?: string[]; +} + +// @public (undocumented) +export interface NSPConfigAssociation { + // (undocumented) + accessMode?: string; + // (undocumented) + name?: string; +} + +// @public (undocumented) +export interface NSPConfigNetworkSecurityPerimeterRule { + // (undocumented) + id?: string; + // (undocumented) + location?: string; + // (undocumented) + perimeterGuid?: string; +} + +// @public (undocumented) +export interface NSPConfigPerimeter { + // (undocumented) + id?: string; + // (undocumented) + location?: string; + // (undocumented) + perimeterGuid?: string; +} + +// @public (undocumented) +export interface NSPConfigProfile { + // (undocumented) + accessRules?: NSPConfigAccessRule[]; + // (undocumented) + accessRulesVersion?: string; + // (undocumented) + name?: string; +} + +// @public (undocumented) +export interface NSPProvisioningIssue { + // (undocumented) + name?: string; + // (undocumented) + properties?: NSPProvisioningIssueProperties; +} + +// @public (undocumented) +export interface NSPProvisioningIssueProperties { + // (undocumented) + description?: string; + // (undocumented) + issueType?: string; + // (undocumented) + severity?: string; + // (undocumented) + suggestedAccessRules?: string[]; + // (undocumented) + suggestedResourceIds?: string[]; } // @public @@ -7308,14 +7317,6 @@ export interface OperationDisplay { readonly resource?: string; } -// @public -export interface OperationImpact { - readonly changeValueAbsolute?: number; - readonly changeValueRelative?: number; - readonly name?: string; - readonly unit?: string; -} - // @public export interface OperationListResult { readonly nextLink?: string; @@ -7372,8 +7373,8 @@ export interface OutboundFirewallRuleListResult { // @public export interface OutboundFirewallRules { - beginCreateOrUpdate(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise, OutboundFirewallRulesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise, OutboundFirewallRulesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesDeleteOptionalParams): Promise; get(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesGetOptionalParams): Promise; @@ -7442,13 +7443,22 @@ export interface PerformanceLevelCapability { export type PerformanceLevelUnit = string; // @public -export type PrimaryAggregationType = string; +export type Phase = string; + +// @public +export interface PhaseDetails { + readonly phase?: Phase; + readonly phaseInformation?: { + [propertyName: string]: string; + }; +} // @public export type PrincipalType = string; // @public export interface PrivateEndpointConnection extends ProxyResource { + readonly groupIds?: string[]; privateEndpoint?: PrivateEndpointProperty; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; readonly provisioningState?: PrivateEndpointProvisioningState; @@ -7871,6 +7881,7 @@ export interface ReplicationLink extends ProxyResource { readonly isTerminationAllowed?: boolean; readonly linkType?: ReplicationLinkType; readonly partnerDatabase?: string; + readonly partnerDatabaseId?: string; readonly partnerLocation?: string; readonly partnerRole?: ReplicationRole; readonly partnerServer?: string; @@ -8161,6 +8172,9 @@ export type RestorePointsListByDatabaseResponse = RestorePointListResult; // @public export type RestorePointType = "CONTINUOUS" | "DISCRETE"; +// @public +export type RoleChangeType = string; + // @public export type RuleSeverity = string; @@ -8190,6 +8204,9 @@ export type SecondaryType = string; // @public export type SecurityAlertPolicyName = string; +// @public +export type SecurityAlertPolicyNameAutoGenerated = string; + // @public export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; @@ -8266,6 +8283,7 @@ export interface SensitivityLabels { disableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: SensitivityLabelsDisableRecommendationOptionalParams): Promise; enableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: SensitivityLabelsEnableRecommendationOptionalParams): Promise; get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: SensitivityLabelSource, options?: SensitivityLabelsGetOptionalParams): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SensitivityLabelsListByDatabaseOptionalParams): PagedAsyncIterableIterator; listCurrentByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SensitivityLabelsListCurrentByDatabaseOptionalParams): PagedAsyncIterableIterator; listRecommendedByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SensitivityLabelsListRecommendedByDatabaseOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, serverName: string, databaseName: string, parameters: SensitivityLabelUpdateList, options?: SensitivityLabelsUpdateOptionalParams): Promise; @@ -8297,6 +8315,21 @@ export interface SensitivityLabelsGetOptionalParams extends coreClient.Operation // @public export type SensitivityLabelsGetResponse = SensitivityLabel; +// @public +export interface SensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; + +// @public +export interface SensitivityLabelsListByDatabaseOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type SensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; + // @public export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions { } @@ -8649,55 +8682,6 @@ export interface ServerBlobAuditingPolicyListResult { readonly value?: ServerBlobAuditingPolicy[]; } -// @public -export interface ServerCommunicationLink extends ProxyResource { - readonly kind?: string; - readonly location?: string; - partnerServer?: string; - readonly state?: string; -} - -// @public -export interface ServerCommunicationLinkListResult { - value?: ServerCommunicationLink[]; -} - -// @public -export interface ServerCommunicationLinks { - beginCreateOrUpdate(resourceGroupName: string, serverName: string, communicationLinkName: string, parameters: ServerCommunicationLink, options?: ServerCommunicationLinksCreateOrUpdateOptionalParams): Promise, ServerCommunicationLinksCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, communicationLinkName: string, parameters: ServerCommunicationLink, options?: ServerCommunicationLinksCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: ServerCommunicationLinksDeleteOptionalParams): Promise; - get(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: ServerCommunicationLinksGetOptionalParams): Promise; - listByServer(resourceGroupName: string, serverName: string, options?: ServerCommunicationLinksListByServerOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ServerCommunicationLinksCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; - -// @public -export interface ServerCommunicationLinksDeleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface ServerCommunicationLinksGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServerCommunicationLinksGetResponse = ServerCommunicationLink; - -// @public -export interface ServerCommunicationLinksListByServerOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; - // @public export interface ServerConfigurationOption extends ProxyResource { readonly provisioningState?: ProvisioningState; @@ -9117,9 +9101,9 @@ export interface ServersDeleteOptionalParams extends coreClient.OperationOptions // @public export interface ServerSecurityAlertPolicies { - beginCreateOrUpdate(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ServerSecurityAlertPoliciesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: ServerSecurityAlertPoliciesGetOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ServerSecurityAlertPoliciesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ServerSecurityAlertPoliciesGetOptionalParams): Promise; listByServer(resourceGroupName: string, serverName: string, options?: ServerSecurityAlertPoliciesListByServerOptionalParams): PagedAsyncIterableIterator; } @@ -9390,19 +9374,17 @@ export interface ServerUpdate { } // @public -export interface ServerUsage { +export interface ServerUsage extends ProxyResource { readonly currentValue?: number; readonly displayName?: string; readonly limit?: number; - readonly name?: string; - readonly nextResetTime?: Date; - readonly resourceName?: string; readonly unit?: string; } // @public export interface ServerUsageListResult { - value: ServerUsage[]; + readonly nextLink?: string; + readonly value?: ServerUsage[]; } // @public @@ -9410,6 +9392,13 @@ export interface ServerUsages { listByServer(resourceGroupName: string, serverName: string, options?: ServerUsagesListByServerOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ServerUsagesListByServerNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerUsagesListByServerNextResponse = ServerUsageListResult; + // @public export interface ServerUsagesListByServerOptionalParams extends coreClient.OperationOptions { } @@ -9483,15 +9472,6 @@ export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabi // @public export type ServerWorkspaceFeature = string; -// @public -export interface ServiceObjective extends ProxyResource { - readonly description?: string; - readonly enabled?: boolean; - readonly isDefault?: boolean; - readonly isSystem?: boolean; - readonly serviceObjectiveName?: string; -} - // @public export interface ServiceObjectiveCapability { readonly computeModel?: string; @@ -9507,37 +9487,10 @@ export interface ServiceObjectiveCapability { readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; readonly supportedMaxSizes?: MaxSizeRangeCapability[]; readonly supportedMinCapacities?: MinCapacityCapability[]; + readonly zonePinning?: boolean; readonly zoneRedundant?: boolean; } -// @public -export interface ServiceObjectiveListResult { - value: ServiceObjective[]; -} - -// @public -export type ServiceObjectiveName = string; - -// @public -export interface ServiceObjectives { - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options?: ServiceObjectivesGetOptionalParams): Promise; - listByServer(resourceGroupName: string, serverName: string, options?: ServiceObjectivesListByServerOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ServiceObjectivesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServiceObjectivesGetResponse = ServiceObjective; - -// @public -export interface ServiceObjectivesListByServerOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; - // @public export interface ServicePrincipal { readonly clientId?: string; @@ -9561,13 +9514,6 @@ export interface Sku { tier?: string; } -// @public -export interface SloUsageMetric { - readonly inRangeTimeRatio?: number; - readonly serviceLevelObjective?: ServiceObjectiveName; - readonly serviceLevelObjectiveId?: string; -} - // @public export interface SqlAgent { createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: SqlAgentConfiguration, options?: SqlAgentCreateOrUpdateOptionalParams): Promise; @@ -9602,6 +9548,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SqlManagementClientOptionalParams); // (undocumented) + apiVersion: string; + // (undocumented) backupShortTermRetentionPolicies: BackupShortTermRetentionPolicies; // (undocumented) capabilities: Capabilities; @@ -9662,10 +9610,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) distributedAvailabilityGroups: DistributedAvailabilityGroups; // (undocumented) - elasticPoolActivities: ElasticPoolActivities; - // (undocumented) - elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; - // (undocumented) elasticPoolOperations: ElasticPoolOperations; // (undocumented) elasticPools: ElasticPools; @@ -9788,6 +9732,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) managedServerSecurityAlertPolicies: ManagedServerSecurityAlertPolicies; // (undocumented) + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; + // (undocumented) operations: Operations; // (undocumented) outboundFirewallRules: OutboundFirewallRules; @@ -9824,8 +9770,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) serverBlobAuditingPolicies: ServerBlobAuditingPolicies; // (undocumented) - serverCommunicationLinks: ServerCommunicationLinks; - // (undocumented) serverConfigurationOptions: ServerConfigurationOptions; // (undocumented) serverConnectionPolicies: ServerConnectionPolicies; @@ -9850,8 +9794,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) serverVulnerabilityAssessments: ServerVulnerabilityAssessments; // (undocumented) - serviceObjectives: ServiceObjectives; - // (undocumented) sqlAgent: SqlAgent; // (undocumented) sqlVulnerabilityAssessmentBaseline: SqlVulnerabilityAssessmentBaseline; @@ -9906,6 +9848,7 @@ export class SqlManagementClient extends coreClient.ServiceClient { // @public export interface SqlManagementClientOptionalParams extends coreClient.ServiceClientOptions { $host?: string; + apiVersion?: string; endpoint?: string; } @@ -10046,6 +9989,7 @@ export interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource { readonly errors?: SqlVulnerabilityAssessmentScanError[]; readonly highSeverityFailedRulesCount?: number; readonly isBaselineApplied?: boolean; + readonly lastScanTime?: Date; readonly lowSeverityFailedRulesCount?: number; readonly mediumSeverityFailedRulesCount?: number; readonly scanId?: string; @@ -10234,6 +10178,9 @@ export type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopM // @public export type StartStopScheduleName = string; +// @public +export type Status = string; + // @public export interface StorageCapability { reason?: string; @@ -10918,12 +10865,6 @@ export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTr // @public export type TransparentDataEncryptionState = "Enabled" | "Disabled"; -// @public -export type UnitDefinitionType = string; - -// @public -export type UnitType = string; - // @public export interface UpdateLongTermRetentionBackupParameters { requestedBackupStorageRedundancy?: BackupStorageRedundancy; @@ -10947,18 +10888,21 @@ export interface UpsertManagedServerOperationParameters { } // @public (undocumented) -export interface UpsertManagedServerOperationStep { +export interface UpsertManagedServerOperationStepWithEstimatesAndDuration { // (undocumented) name?: string; // (undocumented) order?: number; // (undocumented) - status?: UpsertManagedServerOperationStepStatus; + status?: Status; + // (undocumented) + stepEndTime?: Date; + // (undocumented) + stepStartTime?: Date; + // (undocumented) + timeElapsed?: string; } -// @public -export type UpsertManagedServerOperationStepStatus = string; - // @public export interface Usage { readonly currentValue?: number; diff --git a/sdk/sql/arm-sql/src/models/index.ts b/sdk/sql/arm-sql/src/models/index.ts index c775633dd138..ded013082f18 100644 --- a/sdk/sql/arm-sql/src/models/index.ts +++ b/sdk/sql/arm-sql/src/models/index.ts @@ -8,6 +8,20 @@ import * as coreClient from "@azure/core-client"; +/** A list of short term retention policies. */ +export interface BackupShortTermRetentionPolicyListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: BackupShortTermRetentionPolicy[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + /** ARM resource. */ export interface Resource { /** @@ -27,222 +41,118 @@ export interface Resource { readonly type?: string; } -/** The response to a list data masking rules request. */ -export interface DataMaskingRuleListResult { - /** The list of database data masking rules. */ - value?: DataMaskingRule[]; -} - -/** The response to a list geo backup policies request. */ -export interface GeoBackupPolicyListResult { - /** The list of geo backup policies. */ - value?: GeoBackupPolicy[]; -} - -/** The response to a list database metrics request. */ -export interface MetricListResult { - /** The list of metrics for the database. */ - value: Metric[]; -} - -/** Database metrics. */ -export interface Metric { - /** - * The start time for the metric (ISO-8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * The end time for the metric (ISO-8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTime?: Date; - /** - * The time step to be used to summarize the metric values. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeGrain?: string; - /** - * The unit of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unit?: UnitType; +/** A list of server auditing settings. */ +export interface ServerBlobAuditingPolicyListResult { /** - * The name information for the metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: MetricName; + readonly value?: ServerBlobAuditingPolicy[]; /** - * The metric values for the specified time window and timestep. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly metricValues?: MetricValue[]; + readonly nextLink?: string; } -/** A database metric name. */ -export interface MetricName { +/** A list of database auditing settings. */ +export interface DatabaseBlobAuditingPolicyListResult { /** - * The name of the database metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: string; + readonly value?: DatabaseBlobAuditingPolicy[]; /** - * The friendly name of the database metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly localizedValue?: string; + readonly nextLink?: string; } -/** Represents database metrics. */ -export interface MetricValue { - /** - * The number of values for the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly count?: number; - /** - * The average value of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly average?: number; - /** - * The max value of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maximum?: number; - /** - * The min value of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minimum?: number; +/** A list of database extended auditing settings. */ +export interface ExtendedDatabaseBlobAuditingPolicyListResult { /** - * The metric timestamp (ISO-8601 format). + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timestamp?: Date; + readonly value?: ExtendedDatabaseBlobAuditingPolicy[]; /** - * The total value of the metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly total?: number; -} - -/** The response to a list database metric definitions request. */ -export interface MetricDefinitionListResult { - /** The list of metric definitions for the database. */ - value: MetricDefinition[]; + readonly nextLink?: string; } -/** A database metric definition. */ -export interface MetricDefinition { - /** - * The name information for the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: MetricName; - /** - * The primary aggregation type defining how metric values are displayed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly primaryAggregationType?: PrimaryAggregationType; - /** - * The resource uri of the database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceUri?: string; +/** A list of server extended auditing settings. */ +export interface ExtendedServerBlobAuditingPolicyListResult { /** - * The unit of the metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: UnitDefinitionType; + readonly value?: ExtendedServerBlobAuditingPolicy[]; /** - * The list of database metric availabilities for the metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly metricAvailabilities?: MetricAvailability[]; + readonly nextLink?: string; } -/** A metric availability value. */ -export interface MetricAvailability { +/** The list of database data masking rules. */ +export interface DataMaskingRuleListResult { /** - * The length of retention for the database metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly retention?: string; + readonly value?: DataMaskingRule[]; /** - * The granularity of the database metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeGrain?: string; -} - -/** A list of server communication links. */ -export interface ServerCommunicationLinkListResult { - /** The list of server communication links. */ - value?: ServerCommunicationLink[]; -} - -/** Represents the response to a get database service objectives request. */ -export interface ServiceObjectiveListResult { - /** The list of database service objectives. */ - value: ServiceObjective[]; -} - -/** Represents the response to a list elastic pool activity request. */ -export interface ElasticPoolActivityListResult { - /** The list of elastic pool activities. */ - value: ElasticPoolActivity[]; -} - -/** Represents the response to a list elastic pool database activity request. */ -export interface ElasticPoolDatabaseActivityListResult { - /** The list of elastic pool database activities. */ - value: ElasticPoolDatabaseActivity[]; -} - -/** Represents the response to a list server metrics request. */ -export interface ServerUsageListResult { - /** The list of server metrics for the server. */ - value: ServerUsage[]; + readonly nextLink?: string; } -/** Represents server metrics. */ -export interface ServerUsage { - /** - * Name of the server usage metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceName?: string; - /** - * The metric display name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly displayName?: string; +/** User activities of a data warehouse */ +export interface DataWarehouseUserActivitiesListResult { /** - * The current value of the metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly value?: DataWarehouseUserActivities[]; /** - * The current limit of the metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly nextLink?: string; +} + +/** A list of the database's Advanced Threat Protection configurations. */ +export interface DatabaseAdvancedThreatProtectionListResult { /** - * The units of the metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly value?: DatabaseAdvancedThreatProtection[]; /** - * The next reset time for the metric (ISO8601 format). + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextResetTime?: Date; + readonly nextLink?: string; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } /** Contains information of current state for an Azure SQL Database, Server or Elastic Pool Recommended Action. */ @@ -382,13 +292,13 @@ export interface DatabaseColumnListResult { readonly nextLink?: string; } -/** A list of database schemas. */ -export interface DatabaseSchemaListResult { +/** Import export operation extensions list. */ +export interface ImportExportExtensionsOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSchema[]; + readonly value?: ImportExportExtensionsOperationResult[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -396,43 +306,40 @@ export interface DatabaseSchemaListResult { readonly nextLink?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** A list of the database's security alert policies. */ -export interface DatabaseSecurityAlertListResult { +/** Contains the private endpoint connection requests status. */ +export interface PrivateEndpointConnectionRequestStatus { /** - * Array of results. + * Resource id for which the private endpoint is created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSecurityAlertPolicy[]; + readonly privateLinkServiceId?: string; /** - * Link to retrieve next page of results. + * The connection name for the private endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly privateEndpointConnectionName?: string; + /** + * Status of this private endpoint connection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; } -/** A list of database tables. */ -export interface DatabaseTableListResult { +/** Contains the ARM resources for which to create private endpoint connection. */ +export interface NetworkIsolationSettings { + /** The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter. */ + storageAccountResourceId?: string; + /** The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation. */ + sqlServerResourceId?: string; +} + +/** The response to a list database operations request */ +export interface DatabaseOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseTable[]; + readonly value?: DatabaseOperation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -440,43 +347,27 @@ export interface DatabaseTableListResult { readonly nextLink?: string; } -/** Properties for an Azure SQL Database Vulnerability Assessment rule baseline's result. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { - /** The rule baseline result */ - result: string[]; -} - -/** Properties of a Vulnerability Assessment recurring scans. */ -export interface VulnerabilityAssessmentRecurringScansProperties { - /** Recurring scans state. */ - isEnabled?: boolean; - /** Specifies that the schedule scan notification will be is sent to the subscription administrators. */ - emailSubscriptionAdmins?: boolean; - /** Specifies an array of e-mail addresses to which the scan notification is sent. */ - emails?: string[]; -} - -/** A list of the database's vulnerability assessments. */ -export interface DatabaseVulnerabilityAssessmentListResult { +/** The phase details properties of a database operation. */ +export interface PhaseDetails { /** - * Array of results. + * The operation phase. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseVulnerabilityAssessment[]; + readonly phase?: Phase; /** - * Link to retrieve next page of results. + * The operation phase information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly phaseInformation?: { [propertyName: string]: string }; } -/** A list of vulnerability assessment scan records. */ -export interface VulnerabilityAssessmentScanRecordListResult { +/** A list of database schemas. */ +export interface DatabaseSchemaListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: VulnerabilityAssessmentScanRecord[]; + readonly value?: DatabaseSchema[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -484,27 +375,27 @@ export interface VulnerabilityAssessmentScanRecordListResult { readonly nextLink?: string; } -/** Properties of a vulnerability assessment scan error. */ -export interface VulnerabilityAssessmentScanError { +/** A list of the database's security alert policies. */ +export interface DatabaseSecurityAlertListResult { /** - * The error code. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly value?: DatabaseSecurityAlertPolicy[]; /** - * The error message. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly nextLink?: string; } -/** User activities of a data warehouse */ -export interface DataWarehouseUserActivitiesListResult { +/** A list of SQL Vulnerability Assessments baseline set. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DataWarehouseUserActivities[]; + readonly value?: DatabaseSqlVulnerabilityAssessmentBaselineSet[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -512,13 +403,13 @@ export interface DataWarehouseUserActivitiesListResult { readonly nextLink?: string; } -/** A list of deleted servers. */ -export interface DeletedServerListResult { +/** A list of SQL Vulnerability Assessments rule baseline. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DeletedServer[]; + readonly value?: DatabaseSqlVulnerabilityAssessmentRuleBaseline[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -526,13 +417,13 @@ export interface DeletedServerListResult { readonly nextLink?: string; } -/** The response to a list elastic pool operations request */ -export interface ElasticPoolOperationListResult { +/** A list of vulnerability assessment scan results. */ +export interface SQLVulnerabilityAssessmentScanListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ElasticPoolOperation[]; + readonly value?: SqlVulnerabilityAssessmentScanResults[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -540,152 +431,157 @@ export interface ElasticPoolOperationListResult { readonly nextLink?: string; } -/** A list of server encryption protectors. */ -export interface EncryptionProtectorListResult { +/** SQL Vulnerability Assessment remediation Details. */ +export interface Remediation { /** - * Array of results. + * SQL Vulnerability Assessment remediation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: EncryptionProtector[]; + readonly description?: string; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment remediation script. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Read-write endpoint of the failover group instance. */ -export interface FailoverGroupReadWriteEndpoint { - /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - failoverPolicy: ReadWriteEndpointFailoverPolicy; - /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - failoverWithDataLossGracePeriodMinutes?: number; -} - -/** Read-only endpoint of the failover group instance. */ -export interface FailoverGroupReadOnlyEndpoint { - /** Failover policy of the read-only endpoint for the failover group. */ - failoverPolicy?: ReadOnlyEndpointFailoverPolicy; -} - -/** Partner server information for the failover group. */ -export interface PartnerInfo { - /** Resource identifier of the partner server. */ - id: string; + readonly scripts?: string[]; /** - * Geo location of the partner server. + * SQL Vulnerability Assessment is remediation automated. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly automated?: boolean; /** - * Replication role of the partner server. + * SQL Vulnerability Assessment optional link to remediate in Azure Portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationRole?: FailoverGroupReplicationRole; -} - -/** A failover group update request. */ -export interface FailoverGroupUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Read-write endpoint of the failover group instance. */ - readWriteEndpoint?: FailoverGroupReadWriteEndpoint; - /** Read-only endpoint of the failover group instance. */ - readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; - /** List of databases in the failover group. */ - databases?: string[]; + readonly portalLink?: string; } -/** A list of failover groups. */ -export interface FailoverGroupListResult { +/** SQL Vulnerability Assessment baseline adjusted results */ +export interface BaselineAdjustedResult { /** - * Array of results. + * SQL Vulnerability Assessment baseline details * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: FailoverGroup[]; + readonly baseline?: Baseline; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment baseline status * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** ARM resource. */ -export interface ResourceWithWritableName { + readonly status?: RuleStatus; /** - * Resource ID. + * SQL Vulnerability Assessment results that are not in baseline * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; - /** Resource name. */ - name?: string; + readonly resultsNotInBaseline?: string[][]; /** - * Resource type. + * SQL Vulnerability Assessment results that are in baseline. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly resultsOnlyInBaseline?: string[][]; } -/** The response to a list firewall rules request */ -export interface FirewallRuleListResult { +/** SQL Vulnerability Assessment baseline Details */ +export interface Baseline { /** - * Array of results. + * SQL Vulnerability Assessment baseline expected results * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: FirewallRule[]; + readonly expectedResults?: string[][]; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment baseline update time (UTC) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of server firewall rules. */ -export interface FirewallRuleList { - values?: FirewallRule[]; + readonly updatedTime?: Date; } -/** An ARM Resource SKU. */ -export interface Sku { - /** The name of the SKU, typically, a letter + Number code, e.g. P3. */ - name: string; - /** The tier or edition of the particular SKU, e.g. Basic, Premium. */ - tier?: string; - /** Size of the particular SKU */ - size?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** Capacity of the particular SKU. */ - capacity?: number; +/** SQL Vulnerability Assessment rule metadata details. */ +export interface VaRule { + /** + * SQL Vulnerability Assessment rule Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleId?: string; + /** + * SQL Vulnerability Assessment rule severity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly severity?: RuleSeverity; + /** + * SQL Vulnerability Assessment rule category. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly category?: string; + /** + * SQL Vulnerability Assessment rule type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleType?: RuleType; + /** + * SQL Vulnerability Assessment rule title. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly title?: string; + /** + * SQL Vulnerability Assessment rule description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * SQL Vulnerability Assessment rule rationale. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly rationale?: string; + /** + * SQL Vulnerability Assessment rule query details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly queryCheck?: QueryCheck; + /** + * SQL Vulnerability Assessment benchmark references. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly benchmarkReferences?: BenchmarkReference[]; } -/** An update to an Instance pool. */ -export interface InstancePoolUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** SQL Vulnerability Assessment query check object. */ +export interface QueryCheck { + /** + * SQL Vulnerability Assessment rule query. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly query?: string; + /** + * SQL Vulnerability Assessment query expected result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expectedResult?: string[][]; + /** + * SQL Vulnerability Assessment column names of query expected result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly columnNames?: string[]; } -/** A list of Azure SQL instance pools. */ -export interface InstancePoolListResult { +/** SQL Vulnerability Assessment benchmark reference */ +export interface BenchmarkReference { /** - * Array of results. + * SQL Vulnerability Assessment benchmark name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: InstancePool[]; + readonly benchmark?: string; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment benchmark reference. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly reference?: string; } -/** A list of Azure SQL job agents. */ -export interface JobAgentListResult { +/** A list of vulnerability assessment scan records. */ +export interface SqlVulnerabilityAssessmentScanRecordListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobAgent[]; + readonly value?: SqlVulnerabilityAssessmentScanRecord[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -693,19 +589,27 @@ export interface JobAgentListResult { readonly nextLink?: string; } -/** An update to an Azure SQL job agent. */ -export interface JobAgentUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** Properties of a vulnerability assessment scan error. */ +export interface SqlVulnerabilityAssessmentScanError { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; } -/** A list of job credentials. */ -export interface JobCredentialListResult { +/** A list of SQL Vulnerability Assessments. */ +export interface SqlVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobCredential[]; + readonly value?: SqlVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -713,13 +617,13 @@ export interface JobCredentialListResult { readonly nextLink?: string; } -/** A list of job executions. */ -export interface JobExecutionListResult { +/** A list of database tables. */ +export interface DatabaseTableListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobExecution[]; + readonly value?: DatabaseTable[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -727,32 +631,33 @@ export interface JobExecutionListResult { readonly nextLink?: string; } -/** The target that a job execution is executed on. */ -export interface JobExecutionTarget { - /** - * The type of the target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: JobTargetType; +/** A list of database usage metrics. */ +export interface DatabaseUsageListResult { /** - * The server name. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly value?: DatabaseUsage[]; /** - * The database name. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly nextLink?: string; } -/** A list of jobs. */ -export interface JobListResult { +/** Properties for an Azure SQL Database Vulnerability Assessment rule baseline's result. */ +export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { + /** The rule baseline result */ + result: string[]; +} + +/** A list of vulnerability assessment scan records. */ +export interface VulnerabilityAssessmentScanRecordListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Job[]; + readonly value?: VulnerabilityAssessmentScanRecord[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -760,85 +665,27 @@ export interface JobListResult { readonly nextLink?: string; } -/** Scheduling properties of a job. */ -export interface JobSchedule { - /** Schedule start time. */ - startTime?: Date; - /** Schedule end time. */ - endTime?: Date; - /** Schedule interval type */ - type?: JobScheduleType; - /** Whether or not the schedule is enabled. */ - enabled?: boolean; - /** Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format. */ - interval?: string; -} - -/** A list of job steps. */ -export interface JobStepListResult { +/** Properties of a vulnerability assessment scan error. */ +export interface VulnerabilityAssessmentScanError { /** - * Array of results. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobStep[]; + readonly code?: string; /** - * Link to retrieve next page of results. + * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** The action to be executed by a job step. */ -export interface JobStepAction { - /** Type of action being executed by the job step. */ - type?: JobStepActionType; - /** The source of the action to execute. */ - source?: JobStepActionSource; - /** The action value, for example the text of the T-SQL script to execute. */ - value: string; -} - -/** The output configuration of a job step. */ -export interface JobStepOutput { - /** The output destination type. */ - type?: JobStepOutputType; - /** The output destination subscription id. */ - subscriptionId?: string; - /** The output destination resource group. */ - resourceGroupName?: string; - /** The output destination server name. */ - serverName: string; - /** The output destination database. */ - databaseName: string; - /** The output destination schema. */ - schemaName?: string; - /** The output destination table. */ - tableName: string; - /** The resource ID of the credential to use to connect to the output destination. */ - credential: string; -} - -/** The execution options of a job step. */ -export interface JobStepExecutionOptions { - /** Execution timeout for the job step. */ - timeoutSeconds?: number; - /** Maximum number of times the job step will be reattempted if the first attempt fails. */ - retryAttempts?: number; - /** Initial delay between retries for job step execution. */ - initialRetryIntervalSeconds?: number; - /** The maximum amount of time to wait between retries for job step execution. */ - maximumRetryIntervalSeconds?: number; - /** The backoff multiplier for the time between retries. */ - retryIntervalBackoffMultiplier?: number; + readonly message?: string; } -/** A list of target groups. */ -export interface JobTargetGroupListResult { +/** A list of the database's vulnerability assessments. */ +export interface DatabaseVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobTargetGroup[]; + readonly value?: DatabaseVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -846,31 +693,23 @@ export interface JobTargetGroupListResult { readonly nextLink?: string; } -/** A job target, for example a specific database or a container of databases that is evaluated during job execution. */ -export interface JobTarget { - /** Whether the target is included or excluded from the group. */ - membershipType?: JobTargetGroupMembershipType; - /** The target type. */ - type: JobTargetType; - /** The target server name. */ - serverName?: string; - /** The target database name. */ - databaseName?: string; - /** The target elastic pool name. */ - elasticPoolName?: string; - /** The target shard map. */ - shardMapName?: string; - /** The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target. */ - refreshCredential?: string; +/** Properties of a Vulnerability Assessment recurring scans. */ +export interface VulnerabilityAssessmentRecurringScansProperties { + /** Recurring scans state. */ + isEnabled?: boolean; + /** Specifies that the schedule scan notification will be is sent to the subscription administrators. */ + emailSubscriptionAdmins?: boolean; + /** Specifies an array of e-mail addresses to which the scan notification is sent. */ + emails?: string[]; } -/** A list of job versions. */ -export interface JobVersionListResult { +/** A list of databases. */ +export interface DatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobVersion[]; + readonly value?: Database[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -878,508 +717,827 @@ export interface JobVersionListResult { readonly nextLink?: string; } -/** The location capability. */ -export interface LocationCapabilities { - /** - * The location name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; +/** An ARM Resource SKU. */ +export interface Sku { + /** The name of the SKU, typically, a letter + Number code, e.g. P3. */ + name: string; + /** The tier or edition of the particular SKU, e.g. Basic, Premium. */ + tier?: string; + /** Size of the particular SKU */ + size?: string; + /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ + family?: string; + /** Capacity of the particular SKU. */ + capacity?: number; +} + +/** Azure Active Directory identity configuration for a resource. */ +export interface DatabaseIdentity { + /** The identity type */ + type?: DatabaseIdentityType; /** - * The list of supported server versions. + * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedServerVersions?: ServerVersionCapability[]; + readonly tenantId?: string; + /** The resource ids of the user assigned identities to use */ + userAssignedIdentities?: { [propertyName: string]: DatabaseUserIdentity }; +} + +/** Azure Active Directory identity configuration for a resource. */ +export interface DatabaseUserIdentity { /** - * The list of supported managed instance versions. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; + readonly principalId?: string; /** - * The status of the capability. + * The Azure Active Directory client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly clientId?: string; } -/** The server capability */ -export interface ServerVersionCapability { +/** Database level key used for encryption at rest. */ +export interface DatabaseKey { /** - * The server version name. + * The database key type. Only supported value is 'AzureKeyVault'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly type?: DatabaseKeyType; /** - * The list of supported database editions. + * Thumbprint of the database key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedEditions?: EditionCapability[]; + readonly thumbprint?: string; /** - * The list of supported elastic pool editions. + * The database key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedElasticPoolEditions?: ElasticPoolEditionCapability[]; + readonly creationDate?: Date; /** - * The status of the capability. + * Subregion of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly subregion?: string; } -/** The edition capability. */ -export interface EditionCapability { - /** - * The database edition name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The list of supported service objectives for the edition. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; +/** A database update resource. */ +export interface DatabaseUpdate { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Database identity */ + identity?: DatabaseIdentity; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** - * Whether or not zone redundancy is supported for the edition. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the mode of database creation. + * + * Default: regular database creation. + * + * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. + * + * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database. + * + * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified. + * + * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. + * + * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time. + * + * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. + * + * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. */ - readonly zoneRedundant?: boolean; + createMode?: CreateMode; + /** The collation of the database. */ + collation?: string; + /** The max size of the database expressed in bytes. */ + maxSizeBytes?: number; + /** The name of the sample schema to apply when creating this database. */ + sampleName?: SampleName; + /** The resource identifier of the elastic pool containing this database. */ + elasticPoolId?: string; + /** The resource identifier of the source database associated with create operation of this database. */ + sourceDatabaseId?: string; /** - * The read scale capability for the edition. + * The status of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly readScale?: ReadScaleCapability; + readonly status?: DatabaseStatus; /** - * The list of supported storage capabilities for this edition + * The ID of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedStorageCapabilities?: StorageCapability[]; + readonly databaseId?: string; /** - * The status of the capability. + * The creation date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; -} - -/** The service objectives capability. */ -export interface ServiceObjectiveCapability { + readonly creationDate?: Date; /** - * The unique ID of the service objective. + * The current service level objective name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly currentServiceObjectiveName?: string; /** - * The service objective name. + * The requested service level objective name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly requestedServiceObjectiveName?: string; /** - * The list of supported maximum database sizes. + * The default secondary region for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaxSizes?: MaxSizeRangeCapability[]; + readonly defaultSecondaryLocation?: string; /** - * The performance level. + * Failover Group resource identifier that this database belongs to. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly performanceLevel?: PerformanceLevelCapability; + readonly failoverGroupId?: string; + /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ + restorePointInTime?: Date; + /** Specifies the time that the database was deleted. */ + sourceDatabaseDeletionDate?: Date; + /** The resource identifier of the recovery point associated with create operation of this database. */ + recoveryServicesRecoveryPointId?: string; + /** The resource identifier of the long term retention backup associated with create operation of this database. */ + longTermRetentionBackupResourceId?: string; + /** The resource identifier of the recoverable database associated with create operation of this database. */ + recoverableDatabaseId?: string; + /** The resource identifier of the restorable dropped database associated with create operation of this database. */ + restorableDroppedDatabaseId?: string; + /** Collation of the metadata catalog. */ + catalogCollation?: CatalogCollationType; + /** Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. */ + zoneRedundant?: boolean; + /** The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. */ + licenseType?: DatabaseLicenseType; /** - * The sku. + * The max log size for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sku?: Sku; + readonly maxLogSizeBytes?: number; /** - * List of supported license types. + * This records the earliest start date and time that restore is available for this database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly earliestRestoreDate?: Date; + /** The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. */ + readScale?: DatabaseReadScale; + /** The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool. */ + highAvailabilityReplicaCount?: number; + /** The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby. */ + secondaryType?: SecondaryType; /** - * The included (free) max size. + * The name and tier of the SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly includedMaxSize?: MaxSizeCapability; + readonly currentSku?: Sku; + /** Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled */ + autoPauseDelay?: number; /** - * Whether or not zone redundancy is supported for the service objective. + * The storage account type used to store backups for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; + /** The storage account type to be used to store backups for this database. */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + /** Minimal capacity that database will always have allocated, if not paused */ + minCapacity?: number; /** - * Supported time range for auto pause delay + * The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedAutoPauseDelay?: AutoPauseDelayTimeRange; + readonly pausedDate?: Date; /** - * List of supported min capacities + * The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMinCapacities?: MinCapacityCapability[]; + readonly resumedDate?: Date; + /** Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur. */ + maintenanceConfigurationId?: string; + /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ + isLedgerOn?: boolean; /** - * The compute model + * Infra encryption is enabled for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly computeModel?: string; + readonly isInfraEncryptionEnabled?: boolean; + /** The Client id used for cross tenant per database CMK scenario */ + federatedClientId?: string; + /** The resource ids of the user assigned identities to use */ + keys?: { [propertyName: string]: DatabaseKey }; + /** The azure key vault URI of the database if it's configured with per Database Customer Managed Keys. */ + encryptionProtector?: string; + /** Type of enclave requested on the database i.e. Default or VBS enclaves. */ + preferredEnclaveType?: AlwaysEncryptedEnclaveType; /** - * List of supported maintenance configurations - * NOTE: This property will not be serialized. It can only be populated by the server. + * Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier. + * + * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier. + * + * When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database. + * + * To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state. */ - readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; + manualCutover?: boolean; /** - * The status of the capability. - * NOTE: This property will not be serialized. It can only be populated by the server. + * To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress. + * + * This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter. + * + * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress. + * + * When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + performCutover?: boolean; } -/** The maximum size range capability. */ -export interface MaxSizeRangeCapability { - /** - * Minimum value. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minValue?: MaxSizeCapability; +/** Contains the information necessary to perform export database operation. */ +export interface ExportDatabaseDefinition { + /** Storage key type. */ + storageKeyType: StorageKeyType; + /** Storage key. */ + storageKey: string; + /** Storage Uri. */ + storageUri: string; + /** Administrator login name. */ + administratorLogin: string; + /** Administrator login password. */ + administratorLoginPassword: string; + /** Authentication type. */ + authenticationType?: string; + /** Optional resource information to enable network isolation for request. */ + networkIsolation?: NetworkIsolationSettings; +} + +/** Contains the information necessary to perform import operation for existing database. */ +export interface ImportExistingDatabaseDefinition { + /** Storage key type. */ + storageKeyType: StorageKeyType; + /** Storage key. */ + storageKey: string; + /** Storage Uri. */ + storageUri: string; + /** Administrator login name. */ + administratorLogin: string; + /** Administrator login password. */ + administratorLoginPassword: string; + /** Authentication type. */ + authenticationType?: string; + /** Optional resource information to enable network isolation for request. */ + networkIsolation?: NetworkIsolationSettings; +} + +/** Contains the information necessary to perform a resource move (rename). */ +export interface ResourceMoveDefinition { + /** The target ID for the resource */ + id: string; +} + +/** A list of deleted servers. */ +export interface DeletedServerListResult { /** - * Maximum value. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxValue?: MaxSizeCapability; + readonly value?: DeletedServer[]; /** - * Scale/step size for discrete values between the minimum value and the maximum value. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scaleSize?: MaxSizeCapability; + readonly nextLink?: string; +} + +/** A list of distributed availability groups in instance. */ +export interface DistributedAvailabilityGroupsListResult { /** - * Size of transaction log. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly logSize?: LogSizeCapability; + readonly value?: DistributedAvailabilityGroup[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The maximum size capability. */ -export interface MaxSizeCapability { +/** Distributed availability group failover request. */ +export interface DistributedAvailabilityGroupSetRole { + /** New role of managed instance in a distributed availability group, can be Primary or Secondary. */ + instanceRole: InstanceRole; + /** The type of the role change, can be Planned or Forced. */ + roleChangeType: RoleChangeType; +} + +/** The response to a list elastic pool operations request */ +export interface ElasticPoolOperationListResult { /** - * The maximum size limit (see 'unit' for the units). + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly value?: ElasticPoolOperation[]; /** - * The units that the limit is expressed in. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: MaxSizeUnit; + readonly nextLink?: string; } -/** The log size capability. */ -export interface LogSizeCapability { +/** The result of an elastic pool list request. */ +export interface ElasticPoolListResult { /** - * The log size limit (see 'unit' for the units). + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly value?: ElasticPool[]; /** - * The units that the limit is expressed in. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: LogSizeUnit; + readonly nextLink?: string; } -/** The performance level capability. */ -export interface PerformanceLevelCapability { +/** Per database settings of an elastic pool. */ +export interface ElasticPoolPerDatabaseSettings { + /** The minimum capacity all databases are guaranteed. */ + minCapacity?: number; + /** The maximum capacity any one database can consume. */ + maxCapacity?: number; +} + +/** An elastic pool update. */ +export interface ElasticPoolUpdate { + /** An ARM Resource SKU. */ + sku?: Sku; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The storage limit for the database elastic pool in bytes. */ + maxSizeBytes?: number; + /** Minimal capacity that serverless pool will not shrink below, if not paused */ + minCapacity?: number; + /** The per database settings for the elastic pool. */ + perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ + zoneRedundant?: boolean; + /** The license type to apply for this elastic pool. */ + licenseType?: ElasticPoolLicenseType; + /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ + maintenanceConfigurationId?: string; + /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. */ + highAvailabilityReplicaCount?: number; + /** Type of enclave requested on the elastic pool. */ + preferredEnclaveType?: AlwaysEncryptedEnclaveType; + /** Specifies the availability zone the pool's primary replica is pinned to. */ + availabilityZone?: AvailabilityZoneType; +} + +/** A list of server encryption protectors. */ +export interface EncryptionProtectorListResult { /** - * Performance level value. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly value?: EncryptionProtector[]; /** - * Unit type used to measure performance level. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PerformanceLevelUnit; + readonly nextLink?: string; } -/** The license type capability */ -export interface LicenseTypeCapability { +/** A list of endpoint certificates on the target instance. */ +export interface EndpointCertificateListResult { /** - * License type identifier. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: EndpointCertificate[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** Supported auto pause delay time range */ -export interface AutoPauseDelayTimeRange { +/** A list of failover groups. */ +export interface FailoverGroupListResult { /** - * Minimum value + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly minValue?: number; + readonly value?: FailoverGroup[]; /** - * Maximum value + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxValue?: number; + readonly nextLink?: string; +} + +/** Read-write endpoint of the failover group instance. */ +export interface FailoverGroupReadWriteEndpoint { + /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ + failoverPolicy: ReadWriteEndpointFailoverPolicy; + /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ + failoverWithDataLossGracePeriodMinutes?: number; +} + +/** Read-only endpoint of the failover group instance. */ +export interface FailoverGroupReadOnlyEndpoint { + /** Failover policy of the read-only endpoint for the failover group. */ + failoverPolicy?: ReadOnlyEndpointFailoverPolicy; +} + +/** Partner server information for the failover group. */ +export interface PartnerInfo { + /** Resource identifier of the partner server. */ + id: string; /** - * Step value for discrete values between the minimum value and the maximum value. + * Geo location of the partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepSize?: number; + readonly location?: string; /** - * Default value is no value is provided + * Replication role of the partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly default?: number; + readonly replicationRole?: FailoverGroupReplicationRole; +} + +/** A failover group update request. */ +export interface FailoverGroupUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** Read-write endpoint of the failover group instance. */ + readWriteEndpoint?: FailoverGroupReadWriteEndpoint; + /** Read-only endpoint of the failover group instance. */ + readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; + /** List of databases in the failover group. */ + databases?: string[]; +} + +/** The response to a list firewall rules request */ +export interface FirewallRuleListResult { /** - * Unit of time that delay is expressed in + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PauseDelayTimeUnit; + readonly value?: FirewallRule[]; /** - * Value that is used to not pause (infinite delay before pause) + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly doNotPauseValue?: number; + readonly nextLink?: string; } -/** The min capacity capability */ -export interface MinCapacityCapability { +/** ARM resource. */ +export interface ResourceWithWritableName { /** - * Min capacity value + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly id?: string; + /** Resource name. */ + name?: string; /** - * The status of the capability. + * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly type?: string; } -/** The maintenance configuration capability */ -export interface MaintenanceConfigurationCapability { - /** - * Maintenance configuration name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; +/** A list of server firewall rules. */ +export interface FirewallRuleList { + values?: FirewallRule[]; +} + +/** The list of geo backup policies. */ +export interface GeoBackupPolicyListResult { /** - * Whether or not zone redundancy is supported for the maintenance configuration. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly value?: GeoBackupPolicy[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The read scale capability. */ -export interface ReadScaleCapability { +/** The response to a list IPv6 firewall rules request */ +export interface IPv6FirewallRuleListResult { /** - * The maximum number of read scale replicas. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxNumberOfReplicas?: number; + readonly value?: IPv6FirewallRule[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The storage account type capability. */ -export interface StorageCapability { +/** A list of instance failover groups. */ +export interface InstanceFailoverGroupListResult { /** - * The storage account type for the database's backups. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageAccountType?: StorageCapabilityStorageAccountType; + readonly value?: InstanceFailoverGroup[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The elastic pool edition capability. */ -export interface ElasticPoolEditionCapability { - /** - * The elastic pool edition name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; +/** Read-write endpoint of the failover group instance. */ +export interface InstanceFailoverGroupReadWriteEndpoint { + /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ + failoverPolicy: ReadWriteEndpointFailoverPolicy; + /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ + failoverWithDataLossGracePeriodMinutes?: number; +} + +/** Read-only endpoint of the failover group instance. */ +export interface InstanceFailoverGroupReadOnlyEndpoint { + /** Failover policy of the read-only endpoint for the failover group. */ + failoverPolicy?: ReadOnlyEndpointFailoverPolicy; +} + +/** Partner region information for the failover group. */ +export interface PartnerRegionInfo { + /** Geo location of the partner managed instances. */ + location?: string; /** - * The list of supported elastic pool DTU levels for the edition. + * Replication role of the partner managed instances. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; + readonly replicationRole?: InstanceFailoverGroupReplicationRole; +} + +/** Pairs of Managed Instances in the failover group. */ +export interface ManagedInstancePairInfo { + /** Id of Primary Managed Instance in pair. */ + primaryManagedInstanceId?: string; + /** Id of Partner Managed Instance in pair. */ + partnerManagedInstanceId?: string; +} + +/** A list of Azure SQL instance pools. */ +export interface InstancePoolListResult { /** - * Whether or not zone redundancy is supported for the edition. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly value?: InstancePool[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The Elastic Pool performance level capability. */ -export interface ElasticPoolPerformanceLevelCapability { +/** An update to an Instance pool. */ +export interface InstancePoolUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** A list of Azure SQL job agents. */ +export interface JobAgentListResult { /** - * The performance level for the pool. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly performanceLevel?: PerformanceLevelCapability; + readonly value?: JobAgent[]; /** - * The sku. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sku?: Sku; + readonly nextLink?: string; +} + +/** An update to an Azure SQL job agent. */ +export interface JobAgentUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** A list of job credentials. */ +export interface JobCredentialListResult { /** - * List of supported license types. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly value?: JobCredential[]; /** - * The maximum number of databases supported. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxDatabaseCount?: number; + readonly nextLink?: string; +} + +/** A list of job executions. */ +export interface JobExecutionListResult { /** - * The included (free) max size for this performance level. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly includedMaxSize?: MaxSizeCapability; + readonly value?: JobExecution[]; /** - * The list of supported max sizes. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaxSizes?: MaxSizeRangeCapability[]; + readonly nextLink?: string; +} + +/** The target that a job execution is executed on. */ +export interface JobExecutionTarget { /** - * The list of supported per database max sizes. + * The type of the target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; + readonly type?: JobTargetType; /** - * The list of supported per database max performance levels. + * The server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; + readonly serverName?: string; /** - * Whether or not zone redundancy is supported for the performance level. + * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly databaseName?: string; +} + +/** A list of job steps. */ +export interface JobStepListResult { /** - * List of supported maintenance configurations + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; + readonly value?: JobStep[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The max per-database performance level capability. */ -export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { +/** The action to be executed by a job step. */ +export interface JobStepAction { + /** Type of action being executed by the job step. */ + type?: JobStepActionType; + /** The source of the action to execute. */ + source?: JobStepActionSource; + /** The action value, for example the text of the T-SQL script to execute. */ + value: string; +} + +/** The output configuration of a job step. */ +export interface JobStepOutput { + /** The output destination type. */ + type?: JobStepOutputType; + /** The output destination subscription id. */ + subscriptionId?: string; + /** The output destination resource group. */ + resourceGroupName?: string; + /** The output destination server name. */ + serverName: string; + /** The output destination database. */ + databaseName: string; + /** The output destination schema. */ + schemaName?: string; + /** The output destination table. */ + tableName: string; + /** The resource ID of the credential to use to connect to the output destination. */ + credential: string; +} + +/** The execution options of a job step. */ +export interface JobStepExecutionOptions { + /** Execution timeout for the job step. */ + timeoutSeconds?: number; + /** Maximum number of times the job step will be reattempted if the first attempt fails. */ + retryAttempts?: number; + /** Initial delay between retries for job step execution. */ + initialRetryIntervalSeconds?: number; + /** The maximum amount of time to wait between retries for job step execution. */ + maximumRetryIntervalSeconds?: number; + /** The backoff multiplier for the time between retries. */ + retryIntervalBackoffMultiplier?: number; +} + +/** A list of target groups. */ +export interface JobTargetGroupListResult { /** - * The maximum performance level per database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly value?: JobTargetGroup[]; /** - * Unit type used to measure performance level. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PerformanceLevelUnit; + readonly nextLink?: string; +} + +/** A job target, for example a specific database or a container of databases that is evaluated during job execution. */ +export interface JobTarget { + /** Whether the target is included or excluded from the group. */ + membershipType?: JobTargetGroupMembershipType; + /** The target type. */ + type: JobTargetType; + /** The target server name. */ + serverName?: string; + /** The target database name. */ + databaseName?: string; + /** The target elastic pool name. */ + elasticPoolName?: string; + /** The target shard map. */ + shardMapName?: string; + /** The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target. */ + refreshCredential?: string; +} + +/** A list of job versions. */ +export interface JobVersionListResult { /** - * The list of supported min database performance levels. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedPerDatabaseMinPerformanceLevels?: ElasticPoolPerDatabaseMinPerformanceLevelCapability[]; + readonly value?: JobVersion[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The minimum per-database performance level capability. */ -export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { +/** A list of jobs. */ +export interface JobListResult { /** - * The minimum performance level per database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly value?: Job[]; /** - * Unit type used to measure performance level. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PerformanceLevelUnit; + readonly nextLink?: string; +} + +/** Scheduling properties of a job. */ +export interface JobSchedule { + /** Schedule start time. */ + startTime?: Date; + /** Schedule end time. */ + endTime?: Date; + /** Schedule interval type */ + type?: JobScheduleType; + /** Whether or not the schedule is enabled. */ + enabled?: boolean; + /** Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format. */ + interval?: string; +} + +/** A list of ledger digest upload settings. */ +export interface LedgerDigestUploadsListResult { /** - * The status of the capability. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly value?: LedgerDigestUploads[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** The managed instance capability */ -export interface ManagedInstanceVersionCapability { +/** The location capability. */ +export interface LocationCapabilities { /** - * The server version name. + * The location name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The list of supported managed instance editions. + * The list of supported server versions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedEditions?: ManagedInstanceEditionCapability[]; + readonly supportedServerVersions?: ServerVersionCapability[]; /** - * The list of supported instance pool editions. + * The list of supported managed instance versions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedInstancePoolEditions?: InstancePoolEditionCapability[]; + readonly supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1389,28 +1547,23 @@ export interface ManagedInstanceVersionCapability { reason?: string; } -/** The managed server capability */ -export interface ManagedInstanceEditionCapability { +/** The server capability */ +export interface ServerVersionCapability { /** - * The managed server version name. + * The server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The supported families. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; - /** - * The list of supported storage capabilities for this edition + * The list of supported database editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedStorageCapabilities?: StorageCapability[]; + readonly supportedEditions?: EditionCapability[]; /** - * Whether or not zone redundancy is supported for the edition. + * The list of supported elastic pool editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly supportedElasticPoolEditions?: ElasticPoolEditionCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1420,28 +1573,38 @@ export interface ManagedInstanceEditionCapability { reason?: string; } -/** The managed server family capability. */ -export interface ManagedInstanceFamilyCapability { +/** The edition capability. */ +export interface EditionCapability { /** - * Family name. + * The database edition name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * SKU name. + * The list of supported service objectives for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sku?: string; + readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; /** - * List of supported license types. + * Whether or not zone redundancy is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly zoneRedundant?: boolean; /** - * List of supported virtual cores values. + * The read scale capability for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; + readonly readScale?: ReadScaleCapability; + /** + * The list of supported storage capabilities for this edition + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly supportedStorageCapabilities?: StorageCapability[]; + /** + * Whether or not zone pinning is supported for the edition. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly zonePinning?: boolean; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1451,80 +1614,73 @@ export interface ManagedInstanceFamilyCapability { reason?: string; } -/** The managed instance virtual cores capability. */ -export interface ManagedInstanceVcoresCapability { +/** The service objectives capability. */ +export interface ServiceObjectiveCapability { /** - * The virtual cores identifier. + * The unique ID of the service objective. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The service objective name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The virtual cores value. + * The list of supported maximum database sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly supportedMaxSizes?: MaxSizeRangeCapability[]; /** - * Included size. + * The performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly includedMaxSize?: MaxSizeCapability; + readonly performanceLevel?: PerformanceLevelCapability; /** - * Storage size ranges. + * The sku. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedStorageSizes?: MaxSizeRangeCapability[]; + readonly sku?: Sku; /** - * True if this service objective is supported for managed instances in an instance pool. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instancePoolSupported?: boolean; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * True if this service objective is supported for standalone managed instances. + * The included (free) max size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly standaloneSupported?: boolean; + readonly includedMaxSize?: MaxSizeCapability; /** - * List of supported maintenance configurations + * Whether or not zone redundancy is supported for the service objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaintenanceConfigurations?: ManagedInstanceMaintenanceConfigurationCapability[]; + readonly zoneRedundant?: boolean; /** - * The status of the capability. + * Supported time range for auto pause delay * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; -} - -/** The maintenance configuration capability */ -export interface ManagedInstanceMaintenanceConfigurationCapability { + readonly supportedAutoPauseDelay?: AutoPauseDelayTimeRange; /** - * Maintenance configuration name + * List of supported min capacities * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly supportedMinCapacities?: MinCapacityCapability[]; /** - * The status of the capability. + * The compute model * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; -} - -/** The instance pool capability */ -export interface InstancePoolEditionCapability { + readonly computeModel?: string; /** - * The instance pool version name. + * List of supported maintenance configurations * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; /** - * The supported families. + * Whether or not zone pinning is supported. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedFamilies?: InstancePoolFamilyCapability[]; + readonly zonePinning?: boolean; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1534,23 +1690,28 @@ export interface InstancePoolEditionCapability { reason?: string; } -/** The instance pool family capability. */ -export interface InstancePoolFamilyCapability { +/** The maximum size range capability. */ +export interface MaxSizeRangeCapability { /** - * Family name. + * Minimum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly minValue?: MaxSizeCapability; /** - * List of supported license types. + * Maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly maxValue?: MaxSizeCapability; /** - * List of supported virtual cores values. + * Scale/step size for discrete values between the minimum value and the maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedVcoresValues?: InstancePoolVcoresCapability[]; + readonly scaleSize?: MaxSizeCapability; + /** + * Size of transaction log. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly logSize?: LogSizeCapability; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1560,577 +1721,536 @@ export interface InstancePoolFamilyCapability { reason?: string; } -/** The managed instance virtual cores capability. */ -export interface InstancePoolVcoresCapability { +/** The maximum size capability. */ +export interface MaxSizeCapability { /** - * The virtual cores identifier. + * The maximum size limit (see 'unit' for the units). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly limit?: number; /** - * The virtual cores value. + * The units that the limit is expressed in. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly unit?: MaxSizeUnit; +} + +/** The log size capability. */ +export interface LogSizeCapability { /** - * Storage limit. + * The log size limit (see 'unit' for the units). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageLimit?: MaxSizeCapability; + readonly limit?: number; /** - * The status of the capability. + * The units that the limit is expressed in. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly unit?: LogSizeUnit; } -/** A list of long term retention policies. */ -export interface LongTermRetentionPolicyListResult { +/** The performance level capability. */ +export interface PerformanceLevelCapability { /** - * Array of results. + * Performance level value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LongTermRetentionPolicy[]; + readonly value?: number; /** - * Link to retrieve next page of results. + * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Maintenance window time range. */ -export interface MaintenanceWindowTimeRange { - /** Day of maintenance window. */ - dayOfWeek?: DayOfWeek; - /** Start time minutes offset from 12am. */ - startTime?: string; - /** Duration of maintenance window in minutes. */ - duration?: string; + readonly unit?: PerformanceLevelUnit; } -/** A list of short term retention policies. */ -export interface ManagedBackupShortTermRetentionPolicyListResult { +/** The license type capability */ +export interface LicenseTypeCapability { /** - * Array of results. + * License type identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedBackupShortTermRetentionPolicy[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** Execution statistics for one particular query */ -export interface ManagedInstanceQueryStatistics { +/** Supported auto pause delay time range */ +export interface AutoPauseDelayTimeRange { /** - * Array of results. + * Minimum value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: QueryStatistics[]; + readonly minValue?: number; /** - * Link to retrieve next page of results. + * Maximum value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Properties of a query execution statistics. */ -export interface QueryStatisticsProperties { + readonly maxValue?: number; /** - * Database name of the database in which this query was executed. + * Step value for discrete values between the minimum value and the maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly stepSize?: number; /** - * Unique query id (unique within one database). + * Default value is no value is provided * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queryId?: string; + readonly default?: number; /** - * The start time for the metric (ISO-8601 format). + * Unit of time that delay is expressed in * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: string; + readonly unit?: PauseDelayTimeUnit; /** - * The end time for the metric (ISO-8601 format). + * Value that is used to not pause (infinite delay before pause) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: string; - /** List of intervals with appropriate metric data */ - intervals?: QueryMetricInterval[]; + readonly doNotPauseValue?: number; } -/** Properties of a query metrics interval. */ -export interface QueryMetricInterval { +/** The min capacity capability */ +export interface MinCapacityCapability { /** - * The start time for the metric interval (ISO-8601 format). + * Min capacity value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intervalStartTime?: string; + readonly value?: number; /** - * Interval type (length). + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intervalType?: QueryTimeGrainType; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** The maintenance configuration capability */ +export interface MaintenanceConfigurationCapability { /** - * Execution count of a query in this interval. + * Maintenance configuration name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executionCount?: number; - /** List of metric objects for this interval */ - metrics?: QueryMetricProperties[]; + readonly name?: string; + /** + * Whether or not zone redundancy is supported for the maintenance configuration. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly zoneRedundant?: boolean; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** Properties of a topquery metric in one interval. */ -export interface QueryMetricProperties { +/** The read scale capability. */ +export interface ReadScaleCapability { /** - * The name information for the metric. + * The maximum number of read scale replicas. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly maxNumberOfReplicas?: number; /** - * The UI appropriate name for the metric. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** The storage account type capability. */ +export interface StorageCapability { /** - * The unit of the metric. + * The storage account type for the database's backups. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: QueryMetricUnitType; + readonly storageAccountType?: StorageCapabilityStorageAccountType; /** - * The value of the metric. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** The elastic pool edition capability. */ +export interface ElasticPoolEditionCapability { /** - * Metric value when min() aggregate function is used over the interval. + * The elastic pool edition name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly min?: number; + readonly name?: string; /** - * Metric value when max() aggregate function is used over the interval. + * The list of supported elastic pool DTU levels for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly max?: number; + readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; /** - * Metric value when avg() aggregate function is used over the interval. + * Whether or not zone redundancy is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly avg?: number; + readonly zoneRedundant?: boolean; /** - * Metric value when sum() aggregate function is used over the interval. + * Whether or not zone pinning is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sum?: number; + readonly zonePinning?: boolean; /** - * Metric value when stdev aggregate function is used over the interval. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stdev?: number; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of the managed database's security alert policies. */ -export interface ManagedDatabaseSecurityAlertPolicyListResult { +/** The Elastic Pool performance level capability. */ +export interface ElasticPoolPerformanceLevelCapability { /** - * Array of results. + * The performance level for the pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedDatabaseSecurityAlertPolicy[]; + readonly performanceLevel?: PerformanceLevelCapability; /** - * Link to retrieve next page of results. + * The sku. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of security events. */ -export interface SecurityEventCollection { + readonly sku?: Sku; /** - * Array of results. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SecurityEvent[]; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * Link to retrieve next page of results. + * The maximum number of databases supported. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** The properties of a security event sql injection additional properties. */ -export interface SecurityEventSqlInjectionAdditionalProperties { + readonly maxDatabaseCount?: number; /** - * The threat ID. + * The included (free) max size for this performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly threatId?: string; + readonly includedMaxSize?: MaxSizeCapability; /** - * The statement + * The list of supported max sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statement?: string; + readonly supportedMaxSizes?: MaxSizeRangeCapability[]; /** - * The statement highlight offset + * The list of supported per database max sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statementHighlightOffset?: number; + readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; /** - * The statement highlight length + * The list of supported per database max performance levels. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statementHighlightLength?: number; + readonly supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; /** - * The sql error code + * Whether or not zone redundancy is supported for the performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly zoneRedundant?: boolean; /** - * The sql error severity + * List of supported maintenance configurations * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; /** - * The sql error message + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of managed transparent data encryptions */ -export interface ManagedTransparentDataEncryptionListResult { +/** The max per-database performance level capability. */ +export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { /** - * Array of results. + * The maximum performance level per database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedTransparentDataEncryption[]; + readonly limit?: number; /** - * Link to retrieve next page of results. + * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of managed instance administrators. */ -export interface ManagedInstanceAdministratorListResult { + readonly unit?: PerformanceLevelUnit; /** - * Array of results. + * The list of supported min database performance levels. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceAdministrator[]; + readonly supportedPerDatabaseMinPerformanceLevels?: ElasticPoolPerDatabaseMinPerformanceLevelCapability[]; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of active directory only authentications. */ -export interface ManagedInstanceAzureADOnlyAuthListResult { +/** The minimum per-database performance level capability. */ +export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { /** - * Array of results. + * The minimum performance level per database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceAzureADOnlyAuthentication[]; + readonly limit?: number; /** - * Link to retrieve next page of results. + * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly unit?: PerformanceLevelUnit; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of managed instance encryption protectors. */ -export interface ManagedInstanceEncryptionProtectorListResult { +/** The managed instance capability */ +export interface ManagedInstanceVersionCapability { /** - * Array of results. + * The server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceEncryptionProtector[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The list of supported managed instance editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of managed instance keys. */ -export interface ManagedInstanceKeyListResult { + readonly supportedEditions?: ManagedInstanceEditionCapability[]; /** - * Array of results. + * The list of supported instance pool editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceKey[]; + readonly supportedInstancePoolEditions?: InstancePoolEditionCapability[]; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of long term retention policies. */ -export interface ManagedInstanceLongTermRetentionPolicyListResult { +/** The managed server capability */ +export interface ManagedInstanceEditionCapability { /** - * Array of results. + * The managed server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceLongTermRetentionPolicy[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The supported families. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** The response to a list managed instance operations request */ -export interface ManagedInstanceOperationListResult { + readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; /** - * Array of results. + * The list of supported storage capabilities for this edition * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceOperation[]; + readonly supportedStorageCapabilities?: StorageCapability[]; /** - * Link to retrieve next page of results. + * Whether or not zone redundancy is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly zoneRedundant?: boolean; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** The parameters of a managed instance operation. */ -export interface ManagedInstanceOperationParametersPair { +/** The managed server family capability. */ +export interface ManagedInstanceFamilyCapability { /** - * The current parameters. + * Family name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentParameters?: UpsertManagedServerOperationParameters; + readonly name?: string; /** - * The requested parameters. + * SKU name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedParameters?: UpsertManagedServerOperationParameters; -} - -export interface UpsertManagedServerOperationParameters { - family?: string; - tier?: string; - vCores?: number; - storageSizeInGB?: number; -} - -/** The steps of a managed instance operation. */ -export interface ManagedInstanceOperationSteps { + readonly sku?: string; /** - * The total number of operation steps. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalSteps?: string; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * The number of current operation steps. + * List of supported virtual cores values. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentStep?: number; + readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; /** - * The operation steps list. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepsList?: UpsertManagedServerOperationStep[]; -} - -export interface UpsertManagedServerOperationStep { - order?: number; - name?: string; - status?: UpsertManagedServerOperationStepStatus; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** Properties of a private endpoint connection. */ -export interface ManagedInstancePrivateEndpointConnectionProperties { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: ManagedInstancePrivateEndpointProperty; - /** Connection State of the Private Endpoint Connection. */ - privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; +/** The managed instance virtual cores capability. */ +export interface ManagedInstanceVcoresCapability { /** - * State of the Private Endpoint Connection. + * The virtual cores identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; -} - -export interface ManagedInstancePrivateEndpointProperty { - /** Resource id of the private endpoint. */ - id?: string; -} - -export interface ManagedInstancePrivateLinkServiceConnectionStateProperty { - /** The private link service connection status. */ - status: string; - /** The private link service connection description. */ - description: string; + readonly name?: string; /** - * The private link service connection description. + * The virtual cores value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actionsRequired?: string; -} - -/** A list of private endpoint connections. */ -export interface ManagedInstancePrivateEndpointConnectionListResult { + readonly value?: number; /** - * Array of results. + * Included size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstancePrivateEndpointConnection[]; + readonly includedMaxSize?: MaxSizeCapability; /** - * Link to retrieve next page of results. + * Storage size ranges. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of private link resources */ -export interface ManagedInstancePrivateLinkListResult { + readonly supportedStorageSizes?: MaxSizeRangeCapability[]; /** - * Array of results. + * True if this service objective is supported for managed instances in an instance pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstancePrivateLink[]; + readonly instancePoolSupported?: boolean; /** - * Link to retrieve next page of results. + * True if this service objective is supported for standalone managed instances. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Properties of a private link resource. */ -export interface ManagedInstancePrivateLinkProperties { + readonly standaloneSupported?: boolean; /** - * The private link resource group id. + * List of supported maintenance configurations * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly supportedMaintenanceConfigurations?: ManagedInstanceMaintenanceConfigurationCapability[]; /** - * The private link resource required member names. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of the ManagedInstance's vulnerability assessments. */ -export interface ManagedInstanceVulnerabilityAssessmentListResult { +/** The maintenance configuration capability */ +export interface ManagedInstanceMaintenanceConfigurationCapability { /** - * Array of results. + * Maintenance configuration name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceVulnerabilityAssessment[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of the managed Server's security alert policies. */ -export interface ManagedServerSecurityAlertPolicyListResult { +/** The instance pool capability */ +export interface InstancePoolEditionCapability { /** - * Array of results. + * The instance pool version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedServerSecurityAlertPolicy[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The supported families. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly supportedFamilies?: InstancePoolFamilyCapability[]; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** Result of the request to list SQL operations. */ -export interface OperationListResult { +/** The instance pool family capability. */ +export interface InstancePoolFamilyCapability { /** - * Array of results. + * Family name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Operation[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** SQL REST API operation definition. */ -export interface Operation { - /** - * The name of the operation being performed on this particular object. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The localized display information for this particular operation / action. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly display?: OperationDisplay; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * The intended executor of the operation. + * List of supported virtual cores values. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly origin?: OperationOrigin; + readonly supportedVcoresValues?: InstancePoolVcoresCapability[]; /** - * Additional descriptions for the operation. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: { [propertyName: string]: Record }; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** Display metadata associated with the operation. */ -export interface OperationDisplay { - /** - * The localized friendly form of the resource provider name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provider?: string; +/** The managed instance virtual cores capability. */ +export interface InstancePoolVcoresCapability { /** - * The localized friendly form of the resource type related to this action/operation. + * The virtual cores identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resource?: string; + readonly name?: string; /** - * The localized friendly name for the operation. + * The virtual cores value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly value?: number; /** - * The localized friendly description for the operation. + * Storage limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; -} - -export interface PrivateEndpointProperty { - /** Resource id of the private endpoint. */ - id?: string; -} - -export interface PrivateLinkServiceConnectionStateProperty { - /** The private link service connection status. */ - status: PrivateLinkServiceConnectionStateStatus; - /** The private link service connection description. */ - description: string; + readonly storageLimit?: MaxSizeCapability; /** - * The actions required for private link service connection. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actionsRequired?: PrivateLinkServiceConnectionStateActionsRequire; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of private endpoint connections. */ -export interface PrivateEndpointConnectionListResult { +/** A list of long term retention backups. */ +export interface LongTermRetentionBackupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: PrivateEndpointConnection[]; + readonly value?: LongTermRetentionBackup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2138,46 +2258,35 @@ export interface PrivateEndpointConnectionListResult { readonly nextLink?: string; } -/** A list of private link resources */ -export interface PrivateLinkResourceListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: PrivateLinkResource[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +/** Contains the information necessary to perform long term retention backup copy operation. */ +export interface CopyLongTermRetentionBackupParameters { + /** The subscription that owns the target server */ + targetSubscriptionId?: string; + /** The resource group that owns the target server */ + targetResourceGroup?: string; + /** The resource Id of the target server that owns the database */ + targetServerResourceId?: string; + /** The fully qualified domain name of the target server */ + targetServerFullyQualifiedDomainName?: string; + /** The name of the database owns the copied backup. */ + targetDatabaseName?: string; + /** The storage redundancy type of the copied backup */ + targetBackupStorageRedundancy?: BackupStorageRedundancy; } -/** Properties of a private link resource. */ -export interface PrivateLinkResourceProperties { - /** - * The private link resource group id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly groupId?: string; - /** - * The private link resource required member names. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requiredMembers?: string[]; - /** - * The private link resource required zone names. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requiredZoneNames?: string[]; +/** Contains the information necessary to perform long term retention backup update operation. */ +export interface UpdateLongTermRetentionBackupParameters { + /** The storage redundancy type of the copied backup */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; } -/** A list of recoverable managed databases. */ -export interface RecoverableManagedDatabaseListResult { +/** A list of long term retention backups for managed database(s). */ +export interface ManagedInstanceLongTermRetentionBackupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RecoverableManagedDatabase[]; + readonly value?: ManagedInstanceLongTermRetentionBackup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2185,13 +2294,13 @@ export interface RecoverableManagedDatabaseListResult { readonly nextLink?: string; } -/** A list of long term retention backups. */ -export interface RestorePointListResult { +/** A list of long term retention policies. */ +export interface LongTermRetentionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RestorePoint[]; + readonly value?: LongTermRetentionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2199,40 +2308,37 @@ export interface RestorePointListResult { readonly nextLink?: string; } -/** Contains the information necessary to perform a create database restore point operation. */ -export interface CreateDatabaseRestorePointDefinition { - /** The restore point label to apply */ - restorePointLabel: string; +/** Maintenance window time range. */ +export interface MaintenanceWindowTimeRange { + /** Day of maintenance window. */ + dayOfWeek?: DayOfWeek; + /** Start time minutes offset from 12am. */ + startTime?: string; + /** Duration of maintenance window in minutes. */ + duration?: string; } -/** Automatic tuning properties for individual advisors. */ -export interface AutomaticTuningServerOptions { - /** Automatic tuning option desired state. */ - desiredState?: AutomaticTuningOptionModeDesired; - /** - * Automatic tuning option actual state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actualState?: AutomaticTuningOptionModeActual; +/** A list of short term retention policies. */ +export interface ManagedBackupShortTermRetentionPolicyListResult { /** - * Reason code if desired and actual state are different. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reasonCode?: number; + readonly value?: ManagedBackupShortTermRetentionPolicy[]; /** - * Reason description if desired and actual state are different. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reasonDesc?: AutomaticTuningServerReason; + readonly nextLink?: string; } -/** A list of active directory administrators. */ -export interface AdministratorListResult { +/** A list of the managed database's Advanced Threat Protection settings. */ +export interface ManagedDatabaseAdvancedThreatProtectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerAzureADAdministrator[]; + readonly value?: ManagedDatabaseAdvancedThreatProtection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2240,13 +2346,13 @@ export interface AdministratorListResult { readonly nextLink?: string; } -/** A list of active directory only authentications. */ -export interface AzureADOnlyAuthListResult { +/** List of managed database move operations. */ +export interface ManagedDatabaseMoveOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerAzureADOnlyAuthentication[]; + readonly value?: ManagedDatabaseMoveOperationResult[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2254,13 +2360,13 @@ export interface AzureADOnlyAuthListResult { readonly nextLink?: string; } -/** A list of server DevOps audit settings. */ -export interface ServerDevOpsAuditSettingsListResult { +/** Execution statistics for one particular query */ +export interface ManagedInstanceQueryStatistics { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerDevOpsAuditingSettings[]; + readonly value?: QueryStatistics[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2268,183 +2374,152 @@ export interface ServerDevOpsAuditSettingsListResult { readonly nextLink?: string; } -/** A list of server DNS aliases. */ -export interface ServerDnsAliasListResult { +/** Properties of a query execution statistics. */ +export interface QueryStatisticsProperties { /** - * Array of results. + * Database name of the database in which this query was executed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerDnsAlias[]; + readonly databaseName?: string; /** - * Link to retrieve next page of results. + * Unique query id (unique within one database). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A server dns alias acquisition request. */ -export interface ServerDnsAliasAcquisition { - /** The id of the server alias that will be acquired to point to this server instead. */ - oldServerDnsAliasId: string; -} - -/** A list of server keys. */ -export interface ServerKeyListResult { + readonly queryId?: string; /** - * Array of results. + * The start time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerKey[]; + readonly startTime?: string; /** - * Link to retrieve next page of results. + * The end time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly endTime?: string; + /** List of intervals with appropriate metric data */ + intervals?: QueryMetricInterval[]; } -/** The response to a list server operations request */ -export interface ServerOperationListResult { +/** Properties of a query metrics interval. */ +export interface QueryMetricInterval { /** - * Array of results. + * The start time for the metric interval (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerOperation[]; + readonly intervalStartTime?: string; /** - * Link to retrieve next page of results. + * Interval type (length). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly intervalType?: QueryTimeGrainType; + /** + * Execution count of a query in this interval. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly executionCount?: number; + /** List of metric objects for this interval */ + metrics?: QueryMetricProperties[]; } -/** A list of the server's security alert policies. */ -export interface LogicalServerSecurityAlertPolicyListResult { +/** Properties of a topquery metric in one interval. */ +export interface QueryMetricProperties { /** - * Array of results. + * The name information for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerSecurityAlertPolicy[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The UI appropriate name for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Server info for the server trust group. */ -export interface ServerInfo { - /** Server Id. */ - serverId: string; -} - -/** A list of server trust groups. */ -export interface ServerTrustGroupListResult { + readonly displayName?: string; /** - * Array of results. + * The unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerTrustGroup[]; + readonly unit?: QueryMetricUnitType; /** - * Link to retrieve next page of results. + * The value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of the server's vulnerability assessments. */ -export interface ServerVulnerabilityAssessmentListResult { + readonly value?: number; /** - * Array of results. + * Metric value when min() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerVulnerabilityAssessment[]; + readonly min?: number; /** - * Link to retrieve next page of results. + * Metric value when max() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of subscription usage metrics in a location. */ -export interface SubscriptionUsageListResult { + readonly max?: number; /** - * Array of results. + * Metric value when avg() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SubscriptionUsage[]; + readonly avg?: number; /** - * Link to retrieve next page of results. + * Metric value when sum() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of sync agents. */ -export interface SyncAgentListResult { + readonly sum?: number; /** - * Array of results. + * Metric value when stdev aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncAgent[]; + readonly stdev?: number; +} + +/** The managed database's restore details backup set properties. */ +export interface ManagedDatabaseRestoreDetailsBackupSetProperties { /** - * Link to retrieve next page of results. + * Backup set status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Properties of an Azure SQL Database sync agent key. */ -export interface SyncAgentKeyProperties { + readonly status?: string; /** - * Key of sync agent. + * First stripe name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly syncAgentKey?: string; -} - -/** A list of sync agent linked databases. */ -export interface SyncAgentLinkedDatabaseListResult { + readonly firstStripeName?: string; /** - * Array of results. + * Number of stripes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncAgentLinkedDatabase[]; + readonly numberOfStripes?: number; /** - * Link to retrieve next page of results. + * Backup size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of sync database ID properties. */ -export interface SyncDatabaseIdListResult { + readonly backupSizeMB?: number; /** - * Array of results. + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncDatabaseIdProperties[]; + readonly restoreStartedTimestampUtc?: Date; /** - * Link to retrieve next page of results. + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly restoreFinishedTimestampUtc?: Date; } -/** Properties of the sync database id. */ -export interface SyncDatabaseIdProperties { +/** The managed database's restore details unrestorable file properties. */ +export interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties { /** - * ARM resource id of sync database. + * File name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly name?: string; } -/** A list of sync schema properties. */ -export interface SyncFullSchemaPropertiesListResult { +/** A list of the managed database's security alert policies. */ +export interface ManagedDatabaseSecurityAlertPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncFullSchemaProperties[]; + readonly value?: ManagedDatabaseSecurityAlertPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2452,95 +2527,66 @@ export interface SyncFullSchemaPropertiesListResult { readonly nextLink?: string; } -/** Properties of the database full schema. */ -export interface SyncFullSchemaProperties { - /** - * List of tables in the database full schema. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tables?: SyncFullSchemaTable[]; - /** - * Last update time of the database schema. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastUpdateTime?: Date; -} - -/** Properties of the table in the database full schema. */ -export interface SyncFullSchemaTable { - /** - * List of columns in the table of database full schema. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly columns?: SyncFullSchemaTableColumn[]; - /** - * Error id of the table. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorId?: string; - /** - * If there is error in the table. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly hasError?: boolean; +/** A list of security events. */ +export interface SecurityEventCollection { /** - * Name of the table. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: SecurityEvent[]; /** - * Quoted name of the table. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly quotedName?: string; + readonly nextLink?: string; } -/** Properties of the column in the table of database full schema. */ -export interface SyncFullSchemaTableColumn { +/** The properties of a security event sql injection additional properties. */ +export interface SecurityEventSqlInjectionAdditionalProperties { /** - * Data size of the column. + * The threat ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataSize?: string; + readonly threatId?: string; /** - * Data type of the column. + * The statement * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataType?: string; + readonly statement?: string; /** - * Error id of the column. + * The statement highlight offset * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorId?: string; + readonly statementHighlightOffset?: number; /** - * If there is error in the table. + * The statement highlight length * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hasError?: boolean; + readonly statementHighlightLength?: number; /** - * If it is the primary key of the table. + * The sql error code * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isPrimaryKey?: boolean; + readonly errorCode?: number; /** - * Name of the column. + * The sql error severity * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly errorSeverity?: number; /** - * Quoted name of the column. + * The sql error message * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly quotedName?: string; + readonly errorMessage?: string; } -/** A list of sync group log properties. */ -export interface SyncGroupLogListResult { +/** 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?: SyncGroupLogProperties[]; + 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. @@ -2548,73 +2594,23 @@ export interface SyncGroupLogListResult { readonly nextLink?: string; } -/** Properties of an Azure SQL Database sync group log. */ -export interface SyncGroupLogProperties { - /** - * Timestamp of the sync group log. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timestamp?: Date; - /** - * Type of the sync group log. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: SyncGroupLogType; - /** - * Source of the sync group log. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly source?: string; - /** - * Details of the sync group log. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly details?: string; - /** - * TracingId of the sync group log. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tracingId?: string; - /** - * OperationStatus of the sync group log. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationStatus?: string; -} - -/** Properties of sync group schema. */ -export interface SyncGroupSchema { - /** List of tables in sync group schema. */ - tables?: SyncGroupSchemaTable[]; - /** Name of master sync member where the schema is from. */ - masterSyncMemberName?: string; -} - -/** Properties of table in sync group schema. */ -export interface SyncGroupSchemaTable { - /** List of columns in sync group schema. */ - columns?: SyncGroupSchemaTableColumn[]; - /** Quoted name of sync group schema table. */ - quotedName?: string; +/** A list of sensitivity label update operations. */ +export interface SensitivityLabelUpdateList { + operations?: SensitivityLabelUpdate[]; } -/** Properties of column in sync group table. */ -export interface SyncGroupSchemaTableColumn { - /** Quoted name of sync group table column. */ - quotedName?: string; - /** Data size of the column. */ - dataSize?: string; - /** Data type of the column. */ - dataType?: string; +/** A list of recommended sensitivity label update operations. */ +export interface RecommendedSensitivityLabelUpdateList { + operations?: RecommendedSensitivityLabelUpdate[]; } -/** A list of sync groups. */ -export interface SyncGroupListResult { +/** A list of managed transparent data encryptions */ +export interface ManagedTransparentDataEncryptionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncGroup[]; + readonly value?: ManagedTransparentDataEncryption[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2622,13 +2618,13 @@ export interface SyncGroupListResult { readonly nextLink?: string; } -/** A list of Azure SQL Database sync members. */ -export interface SyncMemberListResult { +/** A list of managed databases. */ +export interface ManagedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncMember[]; + readonly value?: ManagedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2636,55 +2632,98 @@ export interface SyncMemberListResult { readonly nextLink?: string; } -/** A list of time zones. */ -export interface TimeZoneListResult { +/** An managed database update. */ +export interface ManagedDatabaseUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** Collation of the managed database. */ + collation?: string; /** - * Array of results. + * Status of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: TimeZone[]; + readonly status?: ManagedDatabaseStatus; /** - * Link to retrieve next page of results. + * Creation date of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of virtual network rules. */ -export interface VirtualNetworkRuleListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: VirtualNetworkRule[]; + readonly creationDate?: Date; /** - * Link to retrieve next page of results. + * Earliest restore point in time for point in time restore. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of workload classifiers for a workload group. */ -export interface WorkloadClassifierListResult { + readonly earliestRestorePoint?: Date; + /** Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ + restorePointInTime?: Date; /** - * Array of results. + * Geo paired region. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: WorkloadClassifier[]; + readonly defaultSecondaryLocation?: string; + /** Collation of the metadata catalog. */ + catalogCollation?: CatalogCollationType; + /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ + createMode?: ManagedDatabaseCreateMode; + /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ + storageContainerUri?: string; + /** The resource identifier of the source database associated with create operation of this database. */ + sourceDatabaseId?: string; + /** The resource identifier of the cross-subscription source database associated with create operation of this database. */ + crossSubscriptionSourceDatabaseId?: string; + /** The restorable dropped database resource id to restore when creating this database. */ + restorableDroppedDatabaseId?: string; + /** The restorable cross-subscription dropped database resource id to restore when creating this database. */ + crossSubscriptionRestorableDroppedDatabaseId?: string; + /** Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. */ + storageContainerIdentity?: string; + /** Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. */ + storageContainerSasToken?: string; /** - * Link to retrieve next page of results. + * Instance Failover Group resource identifier that this managed database belongs to. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly failoverGroupId?: string; + /** The resource identifier of the recoverable database associated with create operation of this database. */ + recoverableDatabaseId?: string; + /** The name of the Long Term Retention backup to be used for restore of this managed database. */ + longTermRetentionBackupResourceId?: string; + /** Whether to auto complete restore of this managed database. */ + autoCompleteRestore?: boolean; + /** Last backup file name for restore of this managed database. */ + lastBackupName?: string; + /** Target managed instance id used in cross-subscription restore. */ + crossSubscriptionTargetManagedInstanceId?: string; + /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ + isLedgerOn?: boolean; } -/** A list of workload groups. */ -export interface WorkloadGroupListResult { +/** Contains the information necessary to perform a managed database move. */ +export interface ManagedDatabaseMoveDefinition { + /** The destination managed database ID */ + destinationManagedDatabaseId: string; +} + +/** Contains the information necessary to perform a complete database restore operation. */ +export interface CompleteDatabaseRestoreDefinition { + /** The last backup name to apply */ + lastBackupName: string; +} + +/** Contains the information necessary to start a managed database move. */ +export interface ManagedDatabaseStartMoveDefinition { + /** The destination managed database ID */ + destinationManagedDatabaseId: string; + /** The move operation mode. */ + operationMode?: MoveOperationMode; +} + +/** A list of managed instance administrators. */ +export interface ManagedInstanceAdministratorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: WorkloadGroup[]; + readonly value?: ManagedInstanceAdministrator[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2692,13 +2731,13 @@ export interface WorkloadGroupListResult { readonly nextLink?: string; } -/** A list of short term retention policies. */ -export interface BackupShortTermRetentionPolicyListResult { +/** A list of the managed instance's Advanced Threat Protection settings. */ +export interface ManagedInstanceAdvancedThreatProtectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: BackupShortTermRetentionPolicy[]; + readonly value?: ManagedInstanceAdvancedThreatProtection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2706,13 +2745,13 @@ export interface BackupShortTermRetentionPolicyListResult { readonly nextLink?: string; } -/** Import export operation extensions list. */ -export interface ImportExportExtensionsOperationListResult { +/** A list of active directory only authentications. */ +export interface ManagedInstanceAzureADOnlyAuthListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ImportExportExtensionsOperationResult[]; + readonly value?: ManagedInstanceAzureADOnlyAuthentication[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2720,13 +2759,13 @@ export interface ImportExportExtensionsOperationListResult { readonly nextLink?: string; } -/** The response to a list database operations request */ -export interface DatabaseOperationListResult { +/** A list of managed instance's DTCs. */ +export interface ManagedInstanceDtcListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseOperation[]; + readonly value?: ManagedInstanceDtc[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2734,13 +2773,37 @@ export interface DatabaseOperationListResult { readonly nextLink?: string; } -/** A list of database usage metrics. */ -export interface DatabaseUsageListResult { +/** The Security Settings of managed instance DTC. */ +export interface ManagedInstanceDtcSecuritySettings { + /** Transaction Manager communication settings of managed instance DTC. */ + transactionManagerCommunicationSettings?: ManagedInstanceDtcTransactionManagerCommunicationSettings; + /** Allow XA Transactions to managed instance DTC. */ + xaTransactionsEnabled?: boolean; + /** Allow SNA LU 6.2 Transactions to managed instance DTC. */ + snaLu6Point2TransactionsEnabled?: boolean; + /** Default timeout for XA Transactions (in seconds). */ + xaTransactionsDefaultTimeout?: number; + /** Maximum timeout for XA Transactions (in seconds). */ + xaTransactionsMaximumTimeout?: number; +} + +/** The Transaction Manager Communication Settings of managed instance DTC. */ +export interface ManagedInstanceDtcTransactionManagerCommunicationSettings { + /** Allow Inbound traffic to managed instance DTC. */ + allowInboundEnabled?: boolean; + /** Allow Outbound traffic of managed instance DTC. */ + allowOutboundEnabled?: boolean; + /** Authentication type of managed instance DTC. */ + authentication?: string; +} + +/** A list of managed instance encryption protectors. */ +export interface ManagedInstanceEncryptionProtectorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseUsage[]; + readonly value?: ManagedInstanceEncryptionProtector[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2748,13 +2811,13 @@ export interface DatabaseUsageListResult { readonly nextLink?: string; } -/** A list of ledger digest upload settings. */ -export interface LedgerDigestUploadsListResult { +/** A list of managed instance keys. */ +export interface ManagedInstanceKeyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LedgerDigestUploads[]; + readonly value?: ManagedInstanceKey[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2762,13 +2825,13 @@ export interface LedgerDigestUploadsListResult { readonly nextLink?: string; } -/** A list of outbound rules. */ -export interface OutboundFirewallRuleListResult { +/** A list of long term retention policies. */ +export interface ManagedInstanceLongTermRetentionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: OutboundFirewallRule[]; + readonly value?: ManagedInstanceLongTermRetentionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2776,13 +2839,13 @@ export interface OutboundFirewallRuleListResult { readonly nextLink?: string; } -/** A list of usages. */ -export interface UsageListResult { +/** The response to a list managed instance operations request */ +export interface ManagedInstanceOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Usage[]; + readonly value?: ManagedInstanceOperation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2790,82 +2853,106 @@ export interface UsageListResult { readonly nextLink?: string; } -/** ARM usage. */ -export interface Usage { +/** The parameters of a managed instance operation. */ +export interface ManagedInstanceOperationParametersPair { /** - * Resource ID. + * The current parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly currentParameters?: UpsertManagedServerOperationParameters; /** - * Resource name. + * The requested parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: Name; + readonly requestedParameters?: UpsertManagedServerOperationParameters; +} + +export interface UpsertManagedServerOperationParameters { + family?: string; + tier?: string; + vCores?: number; + storageSizeInGB?: number; +} + +/** The steps of a managed instance operation. */ +export interface ManagedInstanceOperationSteps { /** - * Resource type. + * The total number of operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly totalSteps?: string; /** - * Usage unit. + * The number of current operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly currentStep?: number; /** - * Usage current value. + * The operation steps list. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly stepsList?: UpsertManagedServerOperationStepWithEstimatesAndDuration[]; +} + +export interface UpsertManagedServerOperationStepWithEstimatesAndDuration { + stepStartTime?: Date; + stepEndTime?: Date; + timeElapsed?: string; + order?: number; + name?: string; + status?: Status; +} + +/** A list of private endpoint connections. */ +export interface ManagedInstancePrivateEndpointConnectionListResult { /** - * Usage limit. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly value?: ManagedInstancePrivateEndpointConnection[]; /** - * Usage requested limit. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedLimit?: number; + readonly nextLink?: string; } -/** ARM Usage Name */ -export interface Name { - /** Usage name value */ - value?: string; - /** Usage name localized value. */ - localizedValue?: string; +/** Properties of a private endpoint connection. */ +export interface ManagedInstancePrivateEndpointConnectionProperties { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: ManagedInstancePrivateEndpointProperty; + /** Connection State of the Private Endpoint Connection. */ + privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; + /** + * State of the Private Endpoint Connection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } -/** Contains the information necessary to perform long term retention backup copy operation. */ -export interface CopyLongTermRetentionBackupParameters { - /** The subscription that owns the target server */ - targetSubscriptionId?: string; - /** The resource group that owns the target server */ - targetResourceGroup?: string; - /** The resource Id of the target server that owns the database */ - targetServerResourceId?: string; - /** The fully qualified domain name of the target server */ - targetServerFullyQualifiedDomainName?: string; - /** The name of the database owns the copied backup. */ - targetDatabaseName?: string; - /** The storage redundancy type of the copied backup */ - targetBackupStorageRedundancy?: BackupStorageRedundancy; +export interface ManagedInstancePrivateEndpointProperty { + /** Resource id of the private endpoint. */ + id?: string; } -/** Contains the information necessary to perform long term retention backup update operation. */ -export interface UpdateLongTermRetentionBackupParameters { - /** The storage redundancy type of the copied backup */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; +export interface ManagedInstancePrivateLinkServiceConnectionStateProperty { + /** The private link service connection status. */ + status: string; + /** The private link service connection description. */ + description: string; + /** + * The private link service connection description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionsRequired?: string; } -/** A list of long term retention backups. */ -export interface LongTermRetentionBackupListResult { +/** A list of private link resources */ +export interface ManagedInstancePrivateLinkListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LongTermRetentionBackup[]; + readonly value?: ManagedInstancePrivateLink[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2873,27 +2960,32 @@ export interface LongTermRetentionBackupListResult { readonly nextLink?: string; } -/** A list of long term retention backups for managed database(s). */ -export interface ManagedInstanceLongTermRetentionBackupListResult { +/** Properties of a private link resource. */ +export interface ManagedInstancePrivateLinkProperties { /** - * Array of results. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceLongTermRetentionBackup[]; + readonly groupId?: string; /** - * Link to retrieve next page of results. + * The private link resource required member names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly requiredMembers?: string[]; + /** + * The private link resource required zone names. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requiredZoneNames?: string[]; } -/** A list of restorable dropped managed databases. */ -export interface RestorableDroppedManagedDatabaseListResult { +/** A list of the ManagedInstance's vulnerability assessments. */ +export interface ManagedInstanceVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RestorableDroppedManagedDatabase[]; + readonly value?: ManagedInstanceVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2901,13 +2993,13 @@ export interface RestorableDroppedManagedDatabaseListResult { readonly nextLink?: string; } -/** A list of server connection policy objects. */ -export interface ServerConnectionPolicyListResult { +/** A list of managed instances. */ +export interface ManagedInstanceListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerConnectionPolicy[]; + readonly value?: ManagedInstance[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2915,135 +3007,200 @@ export interface ServerConnectionPolicyListResult { readonly nextLink?: string; } -/** A list of distributed availability groups in instance. */ -export interface DistributedAvailabilityGroupsListResult { +/** Azure Active Directory identity configuration for a resource. */ +export interface ResourceIdentity { + /** The resource ids of the user assigned identities to use */ + userAssignedIdentities?: { [propertyName: string]: UserIdentity }; /** - * Array of results. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DistributedAvailabilityGroup[]; + readonly principalId?: string; + /** The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. */ + type?: IdentityType; /** - * Link to retrieve next page of results. + * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly tenantId?: string; } -/** A list of server trust certificates in instance. */ -export interface ServerTrustCertificatesListResult { +/** Azure Active Directory identity configuration for a resource. */ +export interface UserIdentity { /** - * Array of results. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerTrustCertificate[]; + readonly principalId?: string; /** - * Link to retrieve next page of results. + * The Azure Active Directory client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly clientId?: string; } -/** The response to a list IPv6 firewall rules request */ -export interface IPv6FirewallRuleListResult { +/** A private endpoint connection under a managed instance */ +export interface ManagedInstancePecProperty { /** - * Array of results. + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: IPv6FirewallRule[]; + readonly id?: string; /** - * Link to retrieve next page of results. + * Private endpoint connection properties * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly properties?: ManagedInstancePrivateEndpointConnectionProperties; } -/** A list of endpoint certificates on the target instance. */ -export interface EndpointCertificateListResult { +/** Properties of a active directory administrator. */ +export interface ManagedInstanceExternalAdministrator { + /** Type of the sever administrator. */ + administratorType?: AdministratorType; + /** Principal Type of the sever administrator. */ + principalType?: PrincipalType; + /** Login name of the server administrator. */ + login?: string; + /** SID (object ID) of the server administrator. */ + sid?: string; + /** Tenant ID of the administrator. */ + tenantId?: string; + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; +} + +/** The managed instance's service principal configuration for a resource. */ +export interface ServicePrincipal { /** - * Array of results. + * The Azure Active Directory application object id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: EndpointCertificate[]; + readonly principalId?: string; /** - * Link to retrieve next page of results. + * The Azure Active Directory application client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly clientId?: string; + /** + * The Azure Active Directory tenant id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Service principal type. */ + type?: ServicePrincipalType; } -/** A list of sensitivity labels. */ -export interface SensitivityLabelListResult { +/** An update request for an Azure SQL Database managed instance. */ +export interface ManagedInstanceUpdate { + /** Managed instance sku */ + sku?: Sku; + /** Managed instance identity */ + identity?: ResourceIdentity; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** - * Array of results. + * Provisioning state of managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SensitivityLabel[]; + readonly provisioningState?: ProvisioningState; /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the mode of database creation. + * + * Default: Regular instance creation. + * + * Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. */ - readonly nextLink?: string; -} - -/** A list of 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 { + managedInstanceCreateMode?: ManagedServerCreateMode; /** - * Array of results. + * The fully qualified domain name of the managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerBlobAuditingPolicy[]; + 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; /** - * Link to retrieve next page of results. + * The state of the managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of database auditing settings. */ -export interface DatabaseBlobAuditingPolicyListResult { + readonly state?: string; + /** The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). */ + licenseType?: ManagedInstanceLicenseType; + /** The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ + vCores?: number; + /** Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. */ + storageSizeInGB?: number; + /** Collation of the managed instance. */ + collation?: string; /** - * Array of results. + * The Dns Zone that the managed instance is in. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseBlobAuditingPolicy[]; + 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; /** - * Link to retrieve next page of results. + * Id of the timezone. Allowed values are timezones supported by Windows. + * Windows keeps details on supported timezones, including the id, in registry under + * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. + * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. + * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. + * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". + */ + timezoneId?: string; + /** The Id of the instance pool this managed server belongs to. */ + instancePoolId?: string; + /** Specifies maintenance configuration id to apply to this managed instance. */ + maintenanceConfigurationId?: string; + /** + * List of private endpoint connections on a managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of database extended auditing settings. */ -export interface ExtendedDatabaseBlobAuditingPolicyListResult { + readonly privateEndpointConnections?: ManagedInstancePecProperty[]; + /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; /** - * Array of results. + * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ExtendedDatabaseBlobAuditingPolicy[]; + readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; + /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + /** Whether or not the multi-az is enabled. */ + zoneRedundant?: boolean; + /** The resource id of a user assigned identity to be used by default. */ + primaryUserAssignedIdentityId?: string; + /** A CMK URI of the key to use for encryption. */ + keyId?: string; + /** The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ + administrators?: ManagedInstanceExternalAdministrator; + /** The managed instance's service principal. */ + servicePrincipal?: ServicePrincipal; /** - * Link to retrieve next page of results. + * Virtual cluster resource id for the Managed Instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly virtualClusterId?: string; } -/** A list of server extended auditing settings. */ -export interface ExtendedServerBlobAuditingPolicyListResult { +/** A collection of endpoints that the managed instance service requires outbound network access to. */ +export interface OutboundEnvironmentEndpointCollection { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ExtendedServerBlobAuditingPolicy[]; + readonly value?: OutboundEnvironmentEndpoint[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3051,41 +3208,113 @@ export interface ExtendedServerBlobAuditingPolicyListResult { readonly nextLink?: string; } -/** A list of the database's Advanced Threat Protection configurations. */ -export interface DatabaseAdvancedThreatProtectionListResult { +/** An endpoint that the managed instance service requires outbound network access to. */ +export interface OutboundEnvironmentEndpoint { /** - * Array of results. + * The type of service accessed by the managed instance service, e.g., Azure Storage, Azure Active Directory, etc. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseAdvancedThreatProtection[]; + readonly category?: string; /** - * Link to retrieve next page of results. + * The endpoints that the managed instance service communicates with in order to function correctly. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly endpoints?: EndpointDependency[]; } -/** A list of the server's Advanced Threat Protection configurations. */ -export interface LogicalServerAdvancedThreatProtectionListResult { +/** A domain name that the managed instance service needs to communicate with, along with additional details. */ +export interface EndpointDependency { /** - * Array of results. + * The domain name of the dependency. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerAdvancedThreatProtection[]; + readonly domainName?: string; /** - * Link to retrieve next page of results. + * The IP Addresses and Ports used when connecting to DomainName. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly endpointDetails?: EndpointDetail[]; } -/** A list of managed server DNS aliases. */ -export interface ManagedServerDnsAliasListResult { +/** A domain name that the managed instance service needs to communicate with, along with additional details. */ +export interface EndpointDetail { /** - * Array of results. + * The port an endpoint is connected to. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedServerDnsAlias[]; + readonly port?: number; +} + +/** A list of top resource consuming queries on managed instance */ +export interface TopQueriesListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: TopQueries[]; + /** + * 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; +} + +export interface TopQueries { + /** + * Requested number of top queries. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfQueries?: number; + /** + * Aggregation function used to calculate query metrics. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly aggregationFunction?: string; + /** + * Metric used to rank queries. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly observationMetric?: string; + /** + * Interval type (length). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly intervalType?: QueryTimeGrainType; + /** + * The start time for the metric (ISO-8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: string; + /** + * The end time for the metric (ISO-8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endTime?: string; + /** List of top resource consuming queries with appropriate metric data */ + queries?: QueryStatisticsProperties[]; +} + +/** A list of ledger digest upload settings. */ +export interface ManagedLedgerDigestUploadsListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ManagedLedgerDigestUploads[]; + /** + * 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 managed server DNS aliases. */ +export interface ManagedServerDnsAliasListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ManagedServerDnsAlias[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3105,13 +3334,13 @@ export interface ManagedServerDnsAliasAcquisition { oldManagedServerDnsAliasResourceId: string; } -/** A list of SQL Vulnerability Assessments baseline set. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { +/** A list of the managed Server's security alert policies. */ +export interface ManagedServerSecurityAlertPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSqlVulnerabilityAssessmentBaselineSet[]; + readonly value?: ManagedServerSecurityAlertPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3119,13 +3348,13 @@ export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { readonly nextLink?: string; } -/** A list of SQL Vulnerability Assessments rule baseline. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult { +/** A list of NSP configurations for a server. */ +export interface NetworkSecurityPerimeterConfigurationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSqlVulnerabilityAssessmentRuleBaseline[]; + readonly value?: NetworkSecurityPerimeterConfiguration[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3133,13 +3362,62 @@ export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult { readonly nextLink?: string; } -/** A list of vulnerability assessment scan results. */ -export interface SQLVulnerabilityAssessmentScanListResult { +export interface NSPConfigPerimeter { + id?: string; + perimeterGuid?: string; + location?: string; +} + +export interface NSPConfigAssociation { + name?: string; + accessMode?: string; +} + +export interface NSPConfigProfile { + name?: string; + accessRulesVersion?: string; + accessRules?: NSPConfigAccessRule[]; +} + +export interface NSPConfigAccessRule { + name?: string; + properties?: NSPConfigAccessRuleProperties; +} + +export interface NSPConfigAccessRuleProperties { + direction?: string; + addressPrefixes?: string[]; + fullyQualifiedDomainNames?: string[]; + subscriptions?: string[]; + networkSecurityPerimeters?: NSPConfigNetworkSecurityPerimeterRule[]; +} + +export interface NSPConfigNetworkSecurityPerimeterRule { + id?: string; + perimeterGuid?: string; + location?: string; +} + +export interface NSPProvisioningIssue { + name?: string; + properties?: NSPProvisioningIssueProperties; +} + +export interface NSPProvisioningIssueProperties { + issueType?: string; + severity?: string; + description?: string; + suggestedResourceIds?: string[]; + suggestedAccessRules?: string[]; +} + +/** Result of the request to list SQL operations. */ +export interface OperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SqlVulnerabilityAssessmentScanResults[]; + readonly value?: Operation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3147,157 +3425,171 @@ export interface SQLVulnerabilityAssessmentScanListResult { readonly nextLink?: string; } -/** SQL Vulnerability Assessment remediation Details. */ -export interface Remediation { +/** SQL REST API operation definition. */ +export interface Operation { /** - * SQL Vulnerability Assessment remediation description. + * The name of the operation being performed on this particular object. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly name?: string; /** - * SQL Vulnerability Assessment remediation script. + * The localized display information for this particular operation / action. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scripts?: string[]; + readonly display?: OperationDisplay; /** - * SQL Vulnerability Assessment is remediation automated. + * The intended executor of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly automated?: boolean; + readonly origin?: OperationOrigin; /** - * SQL Vulnerability Assessment optional link to remediate in Azure Portal. + * Additional descriptions for the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly portalLink?: string; + readonly properties?: { [propertyName: string]: Record }; } -/** SQL Vulnerability Assessment baseline adjusted results */ -export interface BaselineAdjustedResult { +/** Display metadata associated with the operation. */ +export interface OperationDisplay { /** - * SQL Vulnerability Assessment baseline details + * The localized friendly form of the resource provider name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly baseline?: Baseline; + readonly provider?: string; /** - * SQL Vulnerability Assessment baseline status + * The localized friendly form of the resource type related to this action/operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: RuleStatus; + readonly resource?: string; /** - * SQL Vulnerability Assessment results that are not in baseline + * The localized friendly name for the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resultsNotInBaseline?: string[][]; + readonly operation?: string; /** - * SQL Vulnerability Assessment results that are in baseline. + * The localized friendly description for the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resultsOnlyInBaseline?: string[][]; + readonly description?: string; } -/** SQL Vulnerability Assessment baseline Details */ -export interface Baseline { +/** A list of outbound rules. */ +export interface OutboundFirewallRuleListResult { /** - * SQL Vulnerability Assessment baseline expected results + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly expectedResults?: string[][]; + readonly value?: OutboundFirewallRule[]; /** - * SQL Vulnerability Assessment baseline update time (UTC) + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly updatedTime?: Date; + readonly nextLink?: string; } -/** SQL Vulnerability Assessment rule metadata details. */ -export interface VaRule { - /** - * SQL Vulnerability Assessment rule Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ruleId?: string; - /** - * SQL Vulnerability Assessment rule severity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly severity?: RuleSeverity; +/** A list of private endpoint connections. */ +export interface PrivateEndpointConnectionListResult { /** - * SQL Vulnerability Assessment rule category. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly category?: string; + readonly value?: PrivateEndpointConnection[]; /** - * SQL Vulnerability Assessment rule type. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleType?: RuleType; + readonly nextLink?: string; +} + +/** Properties of a private endpoint connection. */ +export interface PrivateEndpointConnectionProperties { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpointProperty; /** - * SQL Vulnerability Assessment rule title. + * Group IDs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly title?: string; + readonly groupIds?: string[]; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** - * SQL Vulnerability Assessment rule description. + * State of the private endpoint connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly provisioningState?: PrivateEndpointProvisioningState; +} + +export interface PrivateEndpointProperty { + /** Resource id of the private endpoint. */ + id?: string; +} + +export interface PrivateLinkServiceConnectionStateProperty { + /** The private link service connection status. */ + status: PrivateLinkServiceConnectionStateStatus; + /** The private link service connection description. */ + description: string; /** - * SQL Vulnerability Assessment rule rationale. + * The actions required for private link service connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly rationale?: string; + readonly actionsRequired?: PrivateLinkServiceConnectionStateActionsRequire; +} + +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { /** - * SQL Vulnerability Assessment rule query details. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queryCheck?: QueryCheck; + readonly value?: PrivateLinkResource[]; /** - * SQL Vulnerability Assessment benchmark references. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly benchmarkReferences?: BenchmarkReference[]; + readonly nextLink?: string; } -/** SQL Vulnerability Assessment query check object. */ -export interface QueryCheck { +/** Properties of a private link resource. */ +export interface PrivateLinkResourceProperties { /** - * SQL Vulnerability Assessment rule query. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly query?: string; + readonly groupId?: string; /** - * SQL Vulnerability Assessment query expected result. + * The private link resource required member names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly expectedResult?: string[][]; + readonly requiredMembers?: string[]; /** - * SQL Vulnerability Assessment column names of query expected result. + * The private link resource required zone names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly columnNames?: string[]; + readonly requiredZoneNames?: string[]; } -/** SQL Vulnerability Assessment benchmark reference */ -export interface BenchmarkReference { +/** A list of recoverable databases. */ +export interface RecoverableDatabaseListResult { /** - * SQL Vulnerability Assessment benchmark name + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly benchmark?: string; + readonly value?: RecoverableDatabase[]; /** - * SQL Vulnerability Assessment benchmark reference. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reference?: string; + readonly nextLink?: string; } -/** A list of vulnerability assessment scan records. */ -export interface SqlVulnerabilityAssessmentScanRecordListResult { +/** A list of recoverable managed databases. */ +export interface RecoverableManagedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SqlVulnerabilityAssessmentScanRecord[]; + readonly value?: RecoverableManagedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3305,27 +3597,27 @@ export interface SqlVulnerabilityAssessmentScanRecordListResult { readonly nextLink?: string; } -/** Properties of a vulnerability assessment scan error. */ -export interface SqlVulnerabilityAssessmentScanError { +/** A list of replication links. */ +export interface ReplicationLinkListResult { /** - * The error code. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly value?: ReplicationLink[]; /** - * The error message. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly nextLink?: string; } -/** A list of SQL Vulnerability Assessments. */ -export interface SqlVulnerabilityAssessmentListResult { +/** A list of restorable dropped databases. */ +export interface RestorableDroppedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SqlVulnerabilityAssessment[]; + readonly value?: RestorableDroppedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3333,13 +3625,13 @@ export interface SqlVulnerabilityAssessmentListResult { readonly nextLink?: string; } -/** A list of the managed database's Advanced Threat Protection settings. */ -export interface ManagedDatabaseAdvancedThreatProtectionListResult { +/** A list of restorable dropped managed databases. */ +export interface RestorableDroppedManagedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedDatabaseAdvancedThreatProtection[]; + readonly value?: RestorableDroppedManagedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3347,13 +3639,13 @@ export interface ManagedDatabaseAdvancedThreatProtectionListResult { readonly nextLink?: string; } -/** A list of the managed instance's Advanced Threat Protection settings. */ -export interface ManagedInstanceAdvancedThreatProtectionListResult { +/** A list of long term retention backups. */ +export interface RestorePointListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceAdvancedThreatProtection[]; + readonly value?: RestorePoint[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3361,13 +3653,19 @@ export interface ManagedInstanceAdvancedThreatProtectionListResult { readonly nextLink?: string; } -/** A list of replication links. */ -export interface ReplicationLinkListResult { +/** Contains the information necessary to perform a create database restore point operation. */ +export interface CreateDatabaseRestorePointDefinition { + /** The restore point label to apply */ + restorePointLabel: string; +} + +/** A list of the server's Advanced Threat Protection configurations. */ +export interface LogicalServerAdvancedThreatProtectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ReplicationLink[]; + readonly value?: ServerAdvancedThreatProtection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3375,27 +3673,34 @@ export interface ReplicationLinkListResult { readonly nextLink?: string; } -/** List of managed database move operations. */ -export interface ManagedDatabaseMoveOperationListResult { +/** Automatic tuning properties for individual advisors. */ +export interface AutomaticTuningServerOptions { + /** Automatic tuning option desired state. */ + desiredState?: AutomaticTuningOptionModeDesired; /** - * Array of results. + * Automatic tuning option actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedDatabaseMoveOperationResult[]; + readonly actualState?: AutomaticTuningOptionModeActual; /** - * Link to retrieve next page of results. + * Reason code if desired and actual state are different. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly reasonCode?: number; + /** + * Reason description if desired and actual state are different. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reasonDesc?: AutomaticTuningServerReason; } -/** A list of managed instance's DTCs. */ -export interface ManagedInstanceDtcListResult { +/** A list of active directory administrators. */ +export interface AdministratorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceDtc[]; + readonly value?: ServerAzureADAdministrator[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3403,37 +3708,13 @@ export interface ManagedInstanceDtcListResult { readonly nextLink?: string; } -/** The Security Settings of managed instance DTC. */ -export interface ManagedInstanceDtcSecuritySettings { - /** Transaction Manager communication settings of managed instance DTC. */ - transactionManagerCommunicationSettings?: ManagedInstanceDtcTransactionManagerCommunicationSettings; - /** Allow XA Transactions to managed instance DTC. */ - xaTransactionsEnabled?: boolean; - /** Allow SNA LU 6.2 Transactions to managed instance DTC. */ - snaLu6Point2TransactionsEnabled?: boolean; - /** Default timeout for XA Transactions (in seconds). */ - xaTransactionsDefaultTimeout?: number; - /** Maximum timeout for XA Transactions (in seconds). */ - xaTransactionsMaximumTimeout?: number; -} - -/** The Transaction Manager Communication Settings of managed instance DTC. */ -export interface ManagedInstanceDtcTransactionManagerCommunicationSettings { - /** Allow Inbound traffic to managed instance DTC. */ - allowInboundEnabled?: boolean; - /** Allow Outbound traffic of managed instance DTC. */ - allowOutboundEnabled?: boolean; - /** Authentication type of managed instance DTC. */ - authentication?: string; -} - -/** A list of synapselink workspaces */ -export interface SynapseLinkWorkspaceListResult { +/** A list of active directory only authentications. */ +export interface AzureADOnlyAuthListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SynapseLinkWorkspace[]; + readonly value?: ServerAzureADOnlyAuthentication[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3441,21 +3722,13 @@ export interface SynapseLinkWorkspaceListResult { readonly nextLink?: string; } -/** Properties of a Synapse link workspaces */ -export interface SynapseLinkWorkspaceInfoProperties { - /** Synapse link workspace id. */ - workspaceId?: string; - /** Link connection name. */ - linkConnectionName?: string; -} - -/** A list of virtual clusters. */ -export interface VirtualClusterListResult { +/** A list of server configuration options. */ +export interface ServerConfigurationOptionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: VirtualCluster[]; + readonly value?: ServerConfigurationOption[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3463,31 +3736,27 @@ export interface VirtualClusterListResult { readonly nextLink?: string; } -/** An update request for virtual cluster. */ -export interface VirtualClusterUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** A list of server connection policy objects. */ +export interface ServerConnectionPolicyListResult { /** - * Subnet resource ID for the virtual cluster. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subnetId?: string; - /** Virtual cluster version. */ - version?: string; + readonly value?: ServerConnectionPolicy[]; /** - * List of resources in this virtual cluster. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly childResources?: string[]; + readonly nextLink?: string; } -/** A list of instance failover groups. */ -export interface InstanceFailoverGroupListResult { +/** A list of server DevOps audit settings. */ +export interface ServerDevOpsAuditSettingsListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: InstanceFailoverGroup[]; + readonly value?: ServerDevOpsAuditingSettings[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3495,89 +3764,89 @@ export interface InstanceFailoverGroupListResult { readonly nextLink?: string; } -/** Read-write endpoint of the failover group instance. */ -export interface InstanceFailoverGroupReadWriteEndpoint { - /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - failoverPolicy: ReadWriteEndpointFailoverPolicy; - /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - failoverWithDataLossGracePeriodMinutes?: number; -} - -/** Read-only endpoint of the failover group instance. */ -export interface InstanceFailoverGroupReadOnlyEndpoint { - /** Failover policy of the read-only endpoint for the failover group. */ - failoverPolicy?: ReadOnlyEndpointFailoverPolicy; -} - -/** Partner region information for the failover group. */ -export interface PartnerRegionInfo { - /** Geo location of the partner managed instances. */ - location?: string; +/** A list of server DNS aliases. */ +export interface ServerDnsAliasListResult { /** - * Replication role of the partner managed instances. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationRole?: InstanceFailoverGroupReplicationRole; + readonly value?: ServerDnsAlias[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** Pairs of Managed Instances in the failover group. */ -export interface ManagedInstancePairInfo { - /** Id of Primary Managed Instance in pair. */ - primaryManagedInstanceId?: string; - /** Id of Partner Managed Instance in pair. */ - partnerManagedInstanceId?: string; +/** A server dns alias acquisition request. */ +export interface ServerDnsAliasAcquisition { + /** The id of the server alias that will be acquired to point to this server instead. */ + oldServerDnsAliasId: string; } -/** The managed database's restore details backup set properties. */ -export interface ManagedDatabaseRestoreDetailsBackupSetProperties { +/** A list of server keys. */ +export interface ServerKeyListResult { /** - * Backup set status. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly value?: ServerKey[]; /** - * First stripe name. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly firstStripeName?: string; + readonly nextLink?: string; +} + +/** The response to a list server operations request */ +export interface ServerOperationListResult { /** - * Number of stripes. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfStripes?: number; + readonly value?: ServerOperation[]; /** - * Backup size. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupSizeMB?: number; + readonly nextLink?: string; +} + +/** A list of the server's security alert policies. */ +export interface LogicalServerSecurityAlertPolicyListResult { /** - * Last restored file time. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restoreStartedTimestampUtc?: Date; + readonly value?: ServerSecurityAlertPolicy[]; /** - * Last restored file time. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restoreFinishedTimestampUtc?: Date; + readonly nextLink?: string; } -/** The managed database's restore details unrestorable file properties. */ -export interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties { +/** A list of server trust certificates in instance. */ +export interface ServerTrustCertificatesListResult { /** - * File name. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: ServerTrustCertificate[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** A list of managed databases. */ -export interface ManagedDatabaseListResult { +/** A list of server trust groups. */ +export interface ServerTrustGroupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedDatabase[]; + readonly value?: ServerTrustGroup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3585,96 +3854,33 @@ export interface ManagedDatabaseListResult { readonly nextLink?: string; } -/** An managed database update. */ -export interface ManagedDatabaseUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Collation of the managed database. */ - collation?: string; +/** Server info for the server trust group. */ +export interface ServerInfo { + /** Server Id. */ + serverId: string; +} + +/** A list of server usage metrics. */ +export interface ServerUsageListResult { /** - * Status of the database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: ManagedDatabaseStatus; + readonly value?: ServerUsage[]; /** - * Creation date of the database. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; - /** - * Earliest restore point in time for point in time restore. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly earliestRestorePoint?: Date; - /** Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ - restorePointInTime?: Date; - /** - * Geo paired region. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly defaultSecondaryLocation?: string; - /** Collation of the metadata catalog. */ - catalogCollation?: CatalogCollationType; - /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ - createMode?: ManagedDatabaseCreateMode; - /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ - storageContainerUri?: string; - /** The resource identifier of the source database associated with create operation of this database. */ - sourceDatabaseId?: string; - /** The resource identifier of the cross-subscription source database associated with create operation of this database. */ - crossSubscriptionSourceDatabaseId?: string; - /** The restorable dropped database resource id to restore when creating this database. */ - restorableDroppedDatabaseId?: string; - /** The restorable cross-subscription dropped database resource id to restore when creating this database. */ - crossSubscriptionRestorableDroppedDatabaseId?: string; - /** Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. */ - storageContainerIdentity?: string; - /** Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. */ - storageContainerSasToken?: string; - /** - * Instance Failover Group resource identifier that this managed database belongs to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly failoverGroupId?: string; - /** The resource identifier of the recoverable database associated with create operation of this database. */ - recoverableDatabaseId?: string; - /** The name of the Long Term Retention backup to be used for restore of this managed database. */ - longTermRetentionBackupResourceId?: string; - /** Whether to auto complete restore of this managed database. */ - autoCompleteRestore?: boolean; - /** Last backup file name for restore of this managed database. */ - lastBackupName?: string; - /** Target managed instance id used in cross-subscription restore. */ - crossSubscriptionTargetManagedInstanceId?: string; -} - -/** Contains the information necessary to perform a managed database move. */ -export interface ManagedDatabaseMoveDefinition { - /** The destination managed database ID */ - destinationManagedDatabaseId: string; -} - -/** Contains the information necessary to perform a complete database restore operation. */ -export interface CompleteDatabaseRestoreDefinition { - /** The last backup name to apply */ - lastBackupName: string; -} - -/** Contains the information necessary to start a managed database move. */ -export interface ManagedDatabaseStartMoveDefinition { - /** The destination managed database ID */ - destinationManagedDatabaseId: string; - /** The move operation mode. */ - operationMode?: MoveOperationMode; + readonly nextLink?: string; } -/** A list of databases. */ -export interface DatabaseListResult { +/** A list of the server's vulnerability assessments. */ +export interface ServerVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Database[]; + readonly value?: ServerVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3682,305 +3888,328 @@ export interface DatabaseListResult { readonly nextLink?: string; } -/** Azure Active Directory identity configuration for a resource. */ -export interface DatabaseIdentity { - /** The identity type */ - type?: DatabaseIdentityType; +/** A request to check whether the specified name for a resource is available. */ +export interface CheckNameAvailabilityRequest { + name: string; + type: "Microsoft.Sql/servers"; +} + +/** The result of a name availability check. */ +export interface CheckNameAvailabilityResponse { /** - * The Azure Active Directory tenant id. + * The name whose availability was checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; - /** The resource ids of the user assigned identities to use */ - userAssignedIdentities?: { [propertyName: string]: DatabaseUserIdentity }; -} - -/** Azure Active Directory identity configuration for a resource. */ -export interface DatabaseUserIdentity { + readonly name?: string; /** - * The Azure Active Directory principal id. + * True if the name is available, otherwise false. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly available?: boolean; /** - * The Azure Active Directory client id. + * The reason code explaining why the name is unavailable. Will be undefined if the name is available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; + readonly reason?: CheckNameAvailabilityReason; + /** + * A message explaining why the name is unavailable. Will be undefined if the name is available. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; } -/** Database level key used for encryption at rest. */ -export interface DatabaseKey { +/** A list of servers. */ +export interface ServerListResult { /** - * The database key type. Only supported value is 'AzureKeyVault'. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: DatabaseKeyType; + readonly value?: Server[]; /** - * Thumbprint of the database key. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly nextLink?: string; +} + +/** A private endpoint connection under a server */ +export interface ServerPrivateEndpointConnection { /** - * The database key creation date. + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly id?: string; /** - * Subregion of the server key. + * Private endpoint connection properties * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subregion?: string; + readonly properties?: PrivateEndpointConnectionProperties; } -/** A database update resource. */ -export interface DatabaseUpdate { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Database identity */ - identity?: DatabaseIdentity; +/** Properties of a active directory administrator. */ +export interface ServerExternalAdministrator { + /** Type of the sever administrator. */ + administratorType?: AdministratorType; + /** Principal Type of the sever administrator. */ + principalType?: PrincipalType; + /** Login name of the server administrator. */ + login?: string; + /** SID (object ID) of the server administrator. */ + sid?: string; + /** Tenant ID of the administrator. */ + tenantId?: string; + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; +} + +/** An update request for an Azure SQL Database server. */ +export interface ServerUpdate { + /** Server identity */ + identity?: ResourceIdentity; /** Resource tags. */ tags?: { [propertyName: string]: string }; + /** Administrator username for the server. Once created it cannot be changed. */ + administratorLogin?: string; + /** The administrator login password (required for server creation). */ + administratorLoginPassword?: string; + /** The version of the server. */ + version?: string; /** - * Specifies the mode of database creation. - * - * Default: regular database creation. - * - * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. - * - * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database. - * - * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified. - * - * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. - * - * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time. - * - * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. - * - * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. + * The state of the server. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - createMode?: CreateMode; - /** The collation of the database. */ - collation?: string; - /** The max size of the database expressed in bytes. */ - maxSizeBytes?: number; - /** The name of the sample schema to apply when creating this database. */ - sampleName?: SampleName; - /** The resource identifier of the elastic pool containing this database. */ - elasticPoolId?: string; - /** The resource identifier of the source database associated with create operation of this database. */ - sourceDatabaseId?: string; + readonly state?: string; /** - * The status of the database. + * The fully qualified domain name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: DatabaseStatus; + readonly fullyQualifiedDomainName?: string; /** - * The ID of the database. + * List of private endpoint connections on a server * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseId?: string; + readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; + /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; + /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter' */ + publicNetworkAccess?: ServerPublicNetworkAccessFlag; /** - * The creation date of the database (ISO8601 format). + * 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 creationDate?: Date; + readonly workspaceFeature?: ServerWorkspaceFeature; + /** The resource id of a user assigned identity to be used by default. */ + primaryUserAssignedIdentityId?: string; + /** The Client id used for cross tenant CMK scenario */ + federatedClientId?: string; + /** A CMK URI of the key to use for encryption. */ + keyId?: string; + /** The Azure Active Directory administrator of the server. This can only be used at server create time. If used for server update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ + administrators?: ServerExternalAdministrator; + /** Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ + restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; /** - * The current service level objective name of the database. + * Status of external governance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentServiceObjectiveName?: string; + readonly externalGovernanceStatus?: ExternalGovernanceStatus; +} + +/** Contains the information necessary to perform import operation for new database. */ +export interface ImportNewDatabaseDefinition { + /** Name of the import database. */ + databaseName?: string; + /** Edition of the import database. */ + edition?: string; + /** Service level objective name of the import database. */ + serviceObjectiveName?: string; + /** Max size in bytes for the import database. */ + maxSizeBytes?: string; + /** Storage key type. */ + storageKeyType: StorageKeyType; + /** Storage key. */ + storageKey: string; + /** Storage Uri. */ + storageUri: string; + /** Administrator login name. */ + administratorLogin: string; + /** Administrator login password. */ + administratorLoginPassword: string; + /** Authentication type. */ + authenticationType?: string; + /** Optional resource information to enable network isolation for request. */ + networkIsolation?: NetworkIsolationSettings; +} + +/** Managed instance's Start/Stop schedule list result. */ +export interface StartStopManagedInstanceScheduleListResult { /** - * The requested service level objective name of the database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedServiceObjectiveName?: string; + readonly value?: StartStopManagedInstanceSchedule[]; /** - * The default secondary region for this database. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly defaultSecondaryLocation?: string; + readonly nextLink?: string; +} + +/** Schedule info describing when the server should be started or stopped. */ +export interface ScheduleItem { + /** Start day. */ + startDay: DayOfWeek; + /** Start time. */ + startTime: string; + /** Stop day. */ + stopDay: DayOfWeek; + /** Stop time. */ + stopTime: string; +} + +/** A list of subscription usage metrics in a location. */ +export interface SubscriptionUsageListResult { /** - * Failover Group resource identifier that this database belongs to. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly failoverGroupId?: string; - /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ - restorePointInTime?: Date; - /** Specifies the time that the database was deleted. */ - sourceDatabaseDeletionDate?: Date; - /** The resource identifier of the recovery point associated with create operation of this database. */ - recoveryServicesRecoveryPointId?: string; - /** The resource identifier of the long term retention backup associated with create operation of this database. */ - longTermRetentionBackupResourceId?: string; - /** The resource identifier of the recoverable database associated with create operation of this database. */ - recoverableDatabaseId?: string; - /** The resource identifier of the restorable dropped database associated with create operation of this database. */ - restorableDroppedDatabaseId?: string; - /** Collation of the metadata catalog. */ - catalogCollation?: CatalogCollationType; - /** Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. */ - zoneRedundant?: boolean; - /** The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. */ - licenseType?: DatabaseLicenseType; + readonly value?: SubscriptionUsage[]; /** - * The max log size for this database. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxLogSizeBytes?: number; + readonly nextLink?: string; +} + +/** A list of synapselink workspaces */ +export interface SynapseLinkWorkspaceListResult { /** - * This records the earliest start date and time that restore is available for this database (ISO8601 format). + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; - /** The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. */ - readScale?: DatabaseReadScale; - /** The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool. */ - highAvailabilityReplicaCount?: number; - /** The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby. */ - secondaryType?: SecondaryType; + readonly value?: SynapseLinkWorkspace[]; /** - * The name and tier of the SKU. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentSku?: Sku; - /** Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled */ - autoPauseDelay?: number; + readonly nextLink?: string; +} + +/** Properties of a Synapse link workspaces */ +export interface SynapseLinkWorkspaceInfoProperties { + /** Synapse link workspace id. */ + workspaceId?: string; + /** Link connection name. */ + linkConnectionName?: string; +} + +/** A list of sync agents. */ +export interface SyncAgentListResult { /** - * The storage account type used to store backups for this database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; - /** The storage account type to be used to store backups for this database. */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; - /** Minimal capacity that database will always have allocated, if not paused */ - minCapacity?: number; + readonly value?: SyncAgent[]; /** - * The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly pausedDate?: Date; + readonly nextLink?: string; +} + +/** Properties of an Azure SQL Database sync agent key. */ +export interface SyncAgentKeyProperties { /** - * The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. + * Key of sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resumedDate?: Date; - /** Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur. */ - maintenanceConfigurationId?: string; - /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ - isLedgerOn?: boolean; + readonly syncAgentKey?: string; +} + +/** A list of sync agent linked databases. */ +export interface SyncAgentLinkedDatabaseListResult { /** - * Infra encryption is enabled for this database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isInfraEncryptionEnabled?: boolean; - /** The Client id used for cross tenant per database CMK scenario */ - federatedClientId?: string; - /** The resource ids of the user assigned identities to use */ - keys?: { [propertyName: string]: DatabaseKey }; - /** The azure key vault URI of the database if it's configured with per Database Customer Managed Keys. */ - encryptionProtector?: string; - /** Type of enclave requested on the database i.e. Default or VBS enclaves. */ - preferredEnclaveType?: AlwaysEncryptedEnclaveType; - /** - * Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier. - * - * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier. - * - * When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database. - * - * To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state. - */ - manualCutover?: boolean; + readonly value?: SyncAgentLinkedDatabase[]; /** - * To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress. - * - * This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter. - * - * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress. - * - * When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - performCutover?: boolean; -} - -/** Contains the information necessary to perform export database operation. */ -export interface ExportDatabaseDefinition { - /** Storage key type. */ - storageKeyType: StorageKeyType; - /** Storage key. */ - storageKey: string; - /** Storage Uri. */ - storageUri: string; - /** Administrator login name. */ - administratorLogin: string; - /** Administrator login password. */ - administratorLoginPassword: string; - /** Authentication type. */ - authenticationType?: string; - /** Optional resource information to enable network isolation for request. */ - networkIsolation?: NetworkIsolationSettings; + readonly nextLink?: string; } -/** Contains the ARM resources for which to create private endpoint connection. */ -export interface NetworkIsolationSettings { - /** The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter. */ - storageAccountResourceId?: string; - /** The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation. */ - sqlServerResourceId?: string; +/** A list of sync database ID properties. */ +export interface SyncDatabaseIdListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: SyncDatabaseIdProperties[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** Contains the private endpoint connection requests status. */ -export interface PrivateEndpointConnectionRequestStatus { +/** Properties of the sync database id. */ +export interface SyncDatabaseIdProperties { /** - * Resource id for which the private endpoint is created. + * ARM resource id of sync database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateLinkServiceId?: string; + readonly id?: string; +} + +/** A list of sync groups. */ +export interface SyncGroupListResult { /** - * The connection name for the private endpoint. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnectionName?: string; + readonly value?: SyncGroup[]; /** - * Status of this private endpoint connection. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly nextLink?: string; } -/** Contains the information necessary to perform import operation for existing database. */ -export interface ImportExistingDatabaseDefinition { - /** Storage key type. */ - storageKeyType: StorageKeyType; - /** Storage key. */ - storageKey: string; - /** Storage Uri. */ - storageUri: string; - /** Administrator login name. */ - administratorLogin: string; - /** Administrator login password. */ - administratorLoginPassword: string; - /** Authentication type. */ - authenticationType?: string; - /** Optional resource information to enable network isolation for request. */ - networkIsolation?: NetworkIsolationSettings; +/** Properties of sync group schema. */ +export interface SyncGroupSchema { + /** List of tables in sync group schema. */ + tables?: SyncGroupSchemaTable[]; + /** Name of master sync member where the schema is from. */ + masterSyncMemberName?: string; } -/** Contains the information necessary to perform a resource move (rename). */ -export interface ResourceMoveDefinition { - /** The target ID for the resource */ - id: string; +/** Properties of table in sync group schema. */ +export interface SyncGroupSchemaTable { + /** List of columns in sync group schema. */ + columns?: SyncGroupSchemaTableColumn[]; + /** Quoted name of sync group schema table. */ + quotedName?: string; } -/** The result of an elastic pool list request. */ -export interface ElasticPoolListResult { +/** Properties of column in sync group table. */ +export interface SyncGroupSchemaTableColumn { + /** Quoted name of sync group table column. */ + quotedName?: string; + /** Data size of the column. */ + dataSize?: string; + /** Data type of the column. */ + dataType?: string; +} + +/** A list of sync schema properties. */ +export interface SyncFullSchemaPropertiesListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ElasticPool[]; + readonly value?: SyncFullSchemaProperties[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3988,234 +4217,95 @@ export interface ElasticPoolListResult { readonly nextLink?: string; } -/** Per database settings of an elastic pool. */ -export interface ElasticPoolPerDatabaseSettings { - /** The minimum capacity all databases are guaranteed. */ - minCapacity?: number; - /** The maximum capacity any one database can consume. */ - maxCapacity?: number; -} - -/** An elastic pool update. */ -export interface ElasticPoolUpdate { - /** An ARM Resource SKU. */ - sku?: Sku; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The storage limit for the database elastic pool in bytes. */ - maxSizeBytes?: number; - /** The per database settings for the elastic pool. */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; - /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ - zoneRedundant?: boolean; - /** The license type to apply for this elastic pool. */ - licenseType?: ElasticPoolLicenseType; - /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ - maintenanceConfigurationId?: string; - /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. */ - highAvailabilityReplicaCount?: number; -} - -/** A list of managed instances. */ -export interface ManagedInstanceListResult { +/** Properties of the database full schema. */ +export interface SyncFullSchemaProperties { /** - * Array of results. + * List of tables in the database full schema. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstance[]; + readonly tables?: SyncFullSchemaTable[]; /** - * Link to retrieve next page of results. + * Last update time of the database schema. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly lastUpdateTime?: Date; } -/** Azure Active Directory identity configuration for a resource. */ -export interface ResourceIdentity { - /** The resource ids of the user assigned identities to use */ - userAssignedIdentities?: { [propertyName: string]: UserIdentity }; - /** - * The Azure Active Directory principal id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. */ - type?: IdentityType; +/** Properties of the table in the database full schema. */ +export interface SyncFullSchemaTable { /** - * The Azure Active Directory tenant id. + * List of columns in the table of database full schema. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; -} - -/** Azure Active Directory identity configuration for a resource. */ -export interface UserIdentity { + readonly columns?: SyncFullSchemaTableColumn[]; /** - * The Azure Active Directory principal id. + * Error id of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly errorId?: string; /** - * The Azure Active Directory client id. + * If there is error in the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; -} - -/** A private endpoint connection under a managed instance */ -export interface ManagedInstancePecProperty { + readonly hasError?: boolean; /** - * Resource ID. + * Name of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly name?: string; /** - * Private endpoint connection properties + * Quoted name of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: ManagedInstancePrivateEndpointConnectionProperties; -} - -/** Properties of a active directory administrator. */ -export interface ManagedInstanceExternalAdministrator { - /** Type of the sever administrator. */ - administratorType?: AdministratorType; - /** Principal Type of the sever administrator. */ - principalType?: PrincipalType; - /** Login name of the server administrator. */ - login?: string; - /** SID (object ID) of the server administrator. */ - sid?: string; - /** Tenant ID of the administrator. */ - tenantId?: string; - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; + readonly quotedName?: string; } -/** The managed instance's service principal configuration for a resource. */ -export interface ServicePrincipal { - /** - * The Azure Active Directory application object id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; +/** Properties of the column in the table of database full schema. */ +export interface SyncFullSchemaTableColumn { /** - * The Azure Active Directory application client id. + * Data size of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; + readonly dataSize?: string; /** - * The Azure Active Directory tenant id. + * Data type of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; - /** Service principal type. */ - type?: ServicePrincipalType; -} - -/** An update request for an Azure SQL Database managed instance. */ -export interface ManagedInstanceUpdate { - /** Managed instance sku */ - sku?: Sku; - /** Managed instance identity */ - identity?: ResourceIdentity; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; - /** - * 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; + readonly dataType?: string; /** - * The fully qualified domain name of the managed instance. + * Error id of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedDomainName?: string; - /** Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). */ - administratorLogin?: string; - /** The administrator login password (required for managed instance creation). */ - administratorLoginPassword?: string; - /** Subnet resource ID for the managed instance. */ - subnetId?: string; + readonly errorId?: string; /** - * The state of the managed instance. + * If there is error in the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; - /** The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). */ - licenseType?: ManagedInstanceLicenseType; - /** The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ - vCores?: number; - /** Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. */ - storageSizeInGB?: number; - /** Collation of the managed instance. */ - collation?: string; + readonly hasError?: boolean; /** - * The Dns Zone that the managed instance is in. + * If it is the primary key of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dnsZone?: string; - /** The resource id of another managed instance whose DNS zone this managed instance will share after creation. */ - dnsZonePartner?: string; - /** Whether or not the public data endpoint is enabled. */ - publicDataEndpointEnabled?: boolean; - /** The resource identifier of the source managed instance associated with create operation of this instance. */ - sourceManagedInstanceId?: string; - /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ - restorePointInTime?: Date; - /** Connection type used for connecting to the instance. */ - proxyOverride?: ManagedInstanceProxyOverride; - /** - * Id of the timezone. Allowed values are timezones supported by Windows. - * Windows keeps details on supported timezones, including the id, in registry under - * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. - * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. - * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. - * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". - */ - timezoneId?: string; - /** The Id of the instance pool this managed server belongs to. */ - instancePoolId?: string; - /** Specifies maintenance configuration id to apply to this managed instance. */ - maintenanceConfigurationId?: string; + readonly isPrimaryKey?: boolean; /** - * List of private endpoint connections on a managed instance. + * Name of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: ManagedInstancePecProperty[]; - /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ - minimalTlsVersion?: string; + readonly name?: string; /** - * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) + * Quoted name of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; - /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; - /** Whether or not the multi-az is enabled. */ - zoneRedundant?: boolean; - /** The resource id of a user assigned identity to be used by default. */ - primaryUserAssignedIdentityId?: string; - /** A CMK URI of the key to use for encryption. */ - keyId?: string; - /** The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ - administrators?: ManagedInstanceExternalAdministrator; - /** The managed instance's service principal. */ - servicePrincipal?: ServicePrincipal; + readonly quotedName?: string; } -/** A collection of endpoints that the managed instance service requires outbound network access to. */ -export interface OutboundEnvironmentEndpointCollection { +/** A list of sync group log properties. */ +export interface SyncGroupLogListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: OutboundEnvironmentEndpoint[]; + readonly value?: SyncGroupLogProperties[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4223,50 +4313,47 @@ export interface OutboundEnvironmentEndpointCollection { readonly nextLink?: string; } -/** An endpoint that the managed instance service requires outbound network access to. */ -export interface OutboundEnvironmentEndpoint { +/** Properties of an Azure SQL Database sync group log. */ +export interface SyncGroupLogProperties { /** - * The type of service accessed by the managed instance service, e.g., Azure Storage, Azure Active Directory, etc. + * Timestamp of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly category?: string; + readonly timestamp?: Date; /** - * The endpoints that the managed instance service communicates with in order to function correctly. + * Type of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endpoints?: EndpointDependency[]; -} - -/** A domain name that the managed instance service needs to communicate with, along with additional details. */ -export interface EndpointDependency { + readonly type?: SyncGroupLogType; /** - * The domain name of the dependency. + * Source of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly domainName?: string; + readonly source?: string; /** - * The IP Addresses and Ports used when connecting to DomainName. + * Details of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endpointDetails?: EndpointDetail[]; -} - -/** A domain name that the managed instance service needs to communicate with, along with additional details. */ -export interface EndpointDetail { + readonly details?: string; /** - * The port an endpoint is connected to. + * TracingId of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly port?: number; + readonly tracingId?: string; + /** + * OperationStatus of the sync group log. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationStatus?: string; } -/** A list of top resource consuming queries on managed instance */ -export interface TopQueriesListResult { +/** A list of Azure SQL Database sync members. */ +export interface SyncMemberListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: TopQueries[]; + readonly value?: SyncMember[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4274,62 +4361,27 @@ export interface TopQueriesListResult { readonly nextLink?: string; } -export interface TopQueries { - /** - * Requested number of top queries. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly numberOfQueries?: number; +/** A list of time zones. */ +export interface TimeZoneListResult { /** - * Aggregation function used to calculate query metrics. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly aggregationFunction?: string; + readonly value?: TimeZone[]; /** - * Metric used to rank queries. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly observationMetric?: string; - /** - * Interval type (length). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly intervalType?: QueryTimeGrainType; - /** - * The start time for the metric (ISO-8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: string; - /** - * The end time for the metric (ISO-8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTime?: string; - /** List of top resource consuming queries with appropriate metric data */ - queries?: QueryStatisticsProperties[]; -} - -/** A list of ledger digest upload settings. */ -export interface ManagedLedgerDigestUploadsListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ManagedLedgerDigestUploads[]; - /** - * Link to retrieve next page of results. + * 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 recoverable databases. */ -export interface RecoverableDatabaseListResult { +/** A list of transparent data encryptions */ +export interface LogicalDatabaseTransparentDataEncryptionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RecoverableDatabase[]; + readonly value?: LogicalDatabaseTransparentDataEncryption[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4337,13 +4389,13 @@ export interface RecoverableDatabaseListResult { readonly nextLink?: string; } -/** A list of restorable dropped databases. */ -export interface RestorableDroppedDatabaseListResult { +/** A list of usages. */ +export interface UsageListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RestorableDroppedDatabase[]; + readonly value?: Usage[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4351,198 +4403,92 @@ export interface RestorableDroppedDatabaseListResult { readonly nextLink?: string; } -/** A list of server configuration options. */ -export interface ServerConfigurationOptionListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ServerConfigurationOption[]; +/** ARM usage. */ +export interface Usage { /** - * Link to retrieve next page of results. + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A request to check whether the specified name for a resource is available. */ -export interface CheckNameAvailabilityRequest { - name: string; - type: "Microsoft.Sql/servers"; -} - -/** The result of a name availability check. */ -export interface CheckNameAvailabilityResponse { + readonly id?: string; /** - * The name whose availability was checked. + * Resource name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly name?: Name; /** - * True if the name is available, otherwise false. + * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly available?: boolean; + readonly type?: string; /** - * The reason code explaining why the name is unavailable. Will be undefined if the name is available. + * Usage unit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reason?: CheckNameAvailabilityReason; + readonly unit?: string; /** - * A message explaining why the name is unavailable. Will be undefined if the name is available. + * Usage current value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; -} - -/** A list of servers. */ -export interface ServerListResult { + readonly currentValue?: number; /** - * Array of results. + * Usage limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Server[]; + readonly limit?: number; /** - * Link to retrieve next page of results. + * Usage requested limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly requestedLimit?: number; } -/** A private endpoint connection under a server */ -export interface ServerPrivateEndpointConnection { - /** - * Resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Private endpoint connection properties - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly properties?: PrivateEndpointConnectionProperties; +/** ARM Usage Name */ +export interface Name { + /** Usage name value */ + value?: string; + /** Usage name localized value. */ + localizedValue?: string; } -/** Properties of a private endpoint connection. */ -export interface PrivateEndpointConnectionProperties { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: PrivateEndpointProperty; +/** A list of virtual clusters. */ +export interface VirtualClusterListResult { /** - * Group IDs. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupIds?: string[]; - /** Connection state of the private endpoint connection. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + readonly value?: VirtualCluster[]; /** - * State of the private endpoint connection. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: PrivateEndpointProvisioningState; -} - -/** Properties of a active directory administrator. */ -export interface ServerExternalAdministrator { - /** Type of the sever administrator. */ - administratorType?: AdministratorType; - /** Principal Type of the sever administrator. */ - principalType?: PrincipalType; - /** Login name of the server administrator. */ - login?: string; - /** SID (object ID) of the server administrator. */ - sid?: string; - /** Tenant ID of the administrator. */ - tenantId?: string; - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; + readonly nextLink?: string; } -/** An update request for an Azure SQL Database server. */ -export interface ServerUpdate { - /** Server identity */ - identity?: ResourceIdentity; +/** An update request for virtual cluster. */ +export interface VirtualClusterUpdate { /** Resource tags. */ tags?: { [propertyName: string]: string }; - /** Administrator username for the server. Once created it cannot be changed. */ - administratorLogin?: string; - /** The administrator login password (required for server creation). */ - administratorLoginPassword?: string; - /** The version of the server. */ - version?: string; - /** - * The 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: 'None', '1.0', '1.1', '1.2' */ - minimalTlsVersion?: string; - /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter' */ - publicNetworkAccess?: ServerPublicNetworkAccessFlag; /** - * Whether or not existing server has a workspace created and if it allows connection from workspace + * Subnet resource ID for the virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workspaceFeature?: ServerWorkspaceFeature; - /** The resource id of a user assigned identity to be used by default. */ - primaryUserAssignedIdentityId?: string; - /** The Client id used for cross tenant CMK scenario */ - federatedClientId?: string; - /** A CMK URI of the key to use for encryption. */ - keyId?: string; - /** The Azure Active Directory administrator of the server. This can only be used at server create time. If used for server update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ - administrators?: ServerExternalAdministrator; - /** Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ - restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; + readonly subnetId?: string; + /** Virtual cluster version. */ + version?: string; /** - * Status of external governance. + * List of resources in this virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly externalGovernanceStatus?: ExternalGovernanceStatus; -} - -/** Contains the information necessary to perform import operation for new database. */ -export interface ImportNewDatabaseDefinition { - /** Name of the import database. */ - databaseName?: string; - /** Edition of the import database. */ - edition?: string; - /** Service level objective name of the import database. */ - serviceObjectiveName?: string; - /** Max size in bytes for the import database. */ - maxSizeBytes?: string; - /** Storage key type. */ - storageKeyType: StorageKeyType; - /** Storage key. */ - storageKey: string; - /** Storage Uri. */ - storageUri: string; - /** Administrator login name. */ - administratorLogin: string; - /** Administrator login password. */ - administratorLoginPassword: string; - /** Authentication type. */ - authenticationType?: string; - /** Optional resource information to enable network isolation for request. */ - networkIsolation?: NetworkIsolationSettings; + readonly childResources?: string[]; } -/** Managed instance's Start/Stop schedule list result. */ -export interface StartStopManagedInstanceScheduleListResult { +/** A list of virtual network rules. */ +export interface VirtualNetworkRuleListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: StartStopManagedInstanceSchedule[]; + readonly value?: VirtualNetworkRule[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4550,25 +4496,13 @@ export interface StartStopManagedInstanceScheduleListResult { readonly nextLink?: string; } -/** Schedule info describing when the server should be started or stopped. */ -export interface ScheduleItem { - /** Start day. */ - startDay: DayOfWeek; - /** Start time. */ - startTime: string; - /** Stop day. */ - stopDay: DayOfWeek; - /** Stop time. */ - stopTime: string; -} - -/** A list of transparent data encryptions */ -export interface LogicalDatabaseTransparentDataEncryptionListResult { +/** A list of workload classifiers for a workload group. */ +export interface WorkloadClassifierListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LogicalDatabaseTransparentDataEncryption[]; + readonly value?: WorkloadClassifier[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4576,47 +4510,18 @@ export interface LogicalDatabaseTransparentDataEncryptionListResult { 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 workload groups. */ +export interface WorkloadGroupListResult { /** - * 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?: WorkloadGroup[]; /** - * 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; -} - -/** 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; + readonly nextLink?: string; } /** The properties that are supported in the $filter operation. */ @@ -4642,331 +4547,579 @@ export interface TrackedResource extends Resource { export interface ProxyResourceWithWritableName extends ResourceWithWritableName {} -/** Represents a database data masking policy. */ -export interface DataMaskingPolicy extends ProxyResource { - /** - * The location of the data masking policy. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** - * The kind of data masking policy. Metadata, used for Azure portal. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; - /** The state of the data masking policy. */ - dataMaskingState?: DataMaskingState; - /** The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries. */ - exemptPrincipals?: string; - /** - * The list of the application principals. This is a legacy parameter and is no longer used. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly applicationPrincipals?: string; - /** - * The masking level. This is a legacy parameter and is no longer used. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maskingLevel?: string; +/** A short term retention policy. */ +export interface BackupShortTermRetentionPolicy extends ProxyResource { + /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ + retentionDays?: number; + /** The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases. */ + diffBackupIntervalInHours?: DiffBackupIntervalInHours; } -/** Represents a database data masking rule. */ -export interface DataMaskingRule extends ProxyResource { - /** - * The location of the data masking rule. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; +/** A server blob auditing policy. */ +export interface ServerBlobAuditingPolicy extends ProxyResource { /** - * The kind of Data Masking Rule. Metadata, used for Azure portal. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly kind?: string; + isDevopsAuditEnabled?: boolean; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The rule Id. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - readonly idPropertiesId?: string; - /** The alias name. This is a legacy parameter and is no longer used. */ - aliasName?: string; - /** The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState. */ - ruleState?: DataMaskingRuleState; - /** The schema name on which the data masking rule is applied. */ - schemaName?: string; - /** The table name on which the data masking rule is applied. */ - tableName?: string; - /** The column name on which the data masking rule is applied. */ - columnName?: string; - /** The masking function that is used for the data masking rule. */ - maskingFunction?: DataMaskingFunction; - /** The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ - numberFrom?: string; - /** The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ - numberTo?: string; - /** If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored. */ - prefixSize?: string; - /** If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored. */ - suffixSize?: string; - /** If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored. */ - replacementString?: string; -} - -/** A database geo backup policy. */ -export interface GeoBackupPolicy extends ProxyResource { + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * Kind of geo backup policy. This is metadata used for the Azure portal experience. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly kind?: string; + isAzureMonitorTargetEnabled?: boolean; /** - * Backup policy location. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly location?: string; - /** The state of the geo backup policy. */ - state: GeoBackupPolicyState; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The storage type of the geo backup policy. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly storageType?: string; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; } -/** Server communication link. */ -export interface ServerCommunicationLink extends ProxyResource { - /** - * Communication link location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; +/** A database blob auditing policy. */ +export interface DatabaseBlobAuditingPolicy extends ProxyResource { /** - * Communication link kind. This property is used for Azure Portal metadata. + * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: string; - /** The name of the partner server. */ - partnerServer?: string; -} - -/** Represents a database service objective. */ -export interface ServiceObjective extends ProxyResource { - /** - * The name for the service objective. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serviceObjectiveName?: string; - /** - * Gets whether the service level objective is the default service objective. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isDefault?: boolean; - /** - * Gets whether the service level objective is a system service objective. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isSystem?: boolean; - /** - * The description for the service level objective. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; - /** - * Gets whether the service level objective is enabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly enabled?: boolean; -} - -/** Represents the activity on an elastic pool. */ -export interface ElasticPoolActivity extends ProxyResource { - /** The geo-location where the resource lives */ - location?: string; - /** - * The time the operation finished (ISO8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTime?: Date; - /** - * The error code if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorCode?: number; - /** - * The error message if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; - /** - * The error severity if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorSeverity?: number; - /** - * The operation name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operation?: string; - /** - * The unique operation ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationId?: string; - /** - * The percentage complete if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly percentComplete?: number; - /** - * The requested max DTU per database if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestedDatabaseDtuMax?: number; - /** - * The requested min DTU per database if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestedDatabaseDtuMin?: number; - /** - * The requested DTU for the pool if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestedDtu?: number; - /** - * The requested name for the elastic pool if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestedElasticPoolName?: string; - /** - * The requested storage limit for the pool in GB if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestedStorageLimitInGB?: number; - /** - * The name of the elastic pool. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - readonly elasticPoolName?: string; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The name of the server the elastic pool is in. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly serverName?: string; + isAzureMonitorTargetEnabled?: boolean; /** - * The time the operation started (ISO8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly startTime?: Date; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The current state of the operation. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly state?: string; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** An extended database blob auditing policy. */ +export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { + /** Specifies condition of where clause when creating an audit. */ + predicateExpression?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The requested storage limit in MB. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - readonly requestedStorageLimitInMB?: number; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The requested per database DTU guarantee. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly requestedDatabaseDtuGuarantee?: number; + isAzureMonitorTargetEnabled?: boolean; /** - * The requested per database DTU cap. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly requestedDatabaseDtuCap?: number; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The requested DTU guarantee. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly requestedDtuGuarantee?: number; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; } -/** Represents the activity on an elastic pool. */ -export interface ElasticPoolDatabaseActivity extends ProxyResource { - /** The geo-location where the resource lives */ - location?: string; +/** An extended server blob auditing policy. */ +export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { /** - * The database name. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly databaseName?: 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 time the operation finished (ISO8601 format). - * 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 endTime?: Date; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The error code if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly errorCode?: number; + isAzureMonitorTargetEnabled?: boolean; /** - * The error message if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly errorMessage?: string; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The error severity if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly errorSeverity?: number; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** A database data masking policy. */ +export interface DataMaskingPolicy extends ProxyResource { /** - * The operation name. + * The location of the data masking policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly location?: string; /** - * The unique operation ID. + * The kind of Data Masking Policy. Metadata, used for Azure portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationId?: string; + readonly kind?: string; + /** The state of the data masking policy. */ + dataMaskingState?: DataMaskingState; + /** The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries. */ + exemptPrincipals?: string; /** - * The percentage complete if available. + * The list of the application principals. This is a legacy parameter and is no longer used. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly applicationPrincipals?: string; /** - * The name for the elastic pool the database is moving into if available. + * The masking level. This is a legacy parameter and is no longer used. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedElasticPoolName?: string; + readonly maskingLevel?: string; +} + +/** A database data masking rule. */ +export interface DataMaskingRule extends ProxyResource { /** - * The name of the current elastic pool the database is in if available. + * The location of the data masking rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentElasticPoolName?: string; + readonly location?: string; /** - * The name of the current service objective if available. + * The kind of Data Masking Rule. Metadata, used for Azure portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentServiceObjective?: string; + readonly kind?: string; /** - * The name of the requested service objective if available. + * The rule Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedServiceObjective?: string; + readonly idPropertiesId?: string; + /** The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState. */ + ruleState?: DataMaskingRuleState; + /** The schema name on which the data masking rule is applied. */ + schemaName?: string; + /** The table name on which the data masking rule is applied. */ + tableName?: string; + /** The column name on which the data masking rule is applied. */ + columnName?: string; + /** The alias name. This is a legacy parameter and is no longer used. */ + aliasName?: string; + /** The masking function that is used for the data masking rule. */ + maskingFunction?: DataMaskingFunction; + /** The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ + numberFrom?: string; + /** The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ + numberTo?: string; + /** If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored. */ + prefixSize?: string; + /** If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored. */ + suffixSize?: string; + /** If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored. */ + replacementString?: string; +} + +/** User activities of a data warehouse */ +export interface DataWarehouseUserActivities extends ProxyResource { /** - * The name of the server the elastic pool is in. + * Count of running and suspended queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly activeQueriesCount?: number; +} + +/** A database Advanced Threat Protection. */ +export interface DatabaseAdvancedThreatProtection extends ProxyResource { /** - * The time the operation started (ISO8601 format). + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** - * The current state of the operation. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly creationTime?: Date; } /** Database, Server or Elastic Pool Recommended Action. */ @@ -5161,158 +5314,93 @@ export interface DatabaseColumn extends ProxyResource { isComputed?: boolean; } -/** A database schema resource. */ -export interface DatabaseSchema extends ProxyResource {} - -/** A database security alert policy. */ -export interface DatabaseSecurityAlertPolicy extends ProxyResource { +/** An Extension operation result resource. */ +export interface ImportExportExtensionsOperationResult extends ProxyResource { /** - * SystemData of SecurityAlertPolicyResource. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ - state?: SecurityAlertsPolicyState; - /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - disabledAlerts?: string[]; - /** Specifies an array of e-mail addresses to which the alert is sent. */ - emailAddresses?: string[]; - /** Specifies that the alert is sent to the account administrators. */ - emailAccountAdmins?: boolean; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ - storageEndpoint?: string; - /** Specifies the identifier key of the Threat Detection audit storage account. */ - storageAccountAccessKey?: string; - /** Specifies the number of days to keep in the Threat Detection audit logs. */ - retentionDays?: number; + readonly requestId?: string; /** - * Specifies the UTC creation time of the policy. + * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A database table resource. */ -export interface DatabaseTable extends ProxyResource { - /** The table temporal type. */ - temporalType?: TableTemporalType; - /** Whether or not the table is memory optimized. */ - memoryOptimized?: boolean; -} - -/** A database vulnerability assessment rule baseline. */ -export interface DatabaseVulnerabilityAssessmentRuleBaseline - extends ProxyResource { - /** The rule baseline result */ - baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; -} - -/** A database vulnerability assessment. */ -export interface DatabaseVulnerabilityAssessment extends ProxyResource { - /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set */ - storageContainerPath?: string; - /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. */ - storageContainerSasKey?: string; - /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ - storageAccountAccessKey?: string; - /** The recurring scans settings */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** A vulnerability assessment scan record. */ -export interface VulnerabilityAssessmentScanRecord extends ProxyResource { + readonly requestType?: string; /** - * The scan ID. + * Last modified time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scanId?: string; + readonly lastModifiedTime?: string; /** - * The scan trigger type. + * Server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; + readonly serverName?: string; /** - * The scan status. + * Database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: VulnerabilityAssessmentScanState; + readonly databaseName?: string; /** - * The scan start time (UTC). + * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly status?: string; /** - * The scan end time (UTC). + * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; + readonly errorMessage?: string; /** - * The scan errors. + * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errors?: VulnerabilityAssessmentScanError[]; + readonly queuedTime?: string; /** - * The scan results storage container path. + * Blob URI. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageContainerPath?: string; + readonly blobUri?: string; /** - * The number of failed security checks. + * Gets the status of private endpoints associated with this request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFailedSecurityChecks?: number; -} - -/** A database Vulnerability Assessment scan export resource. */ -export interface DatabaseVulnerabilityAssessmentScansExport - extends ProxyResource { - /** - * Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly exportedReportLocation?: string; -} - -/** User activities of a data warehouse */ -export interface DataWarehouseUserActivities extends ProxyResource { - /** - * Count of running and suspended queries. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly activeQueriesCount?: number; + readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; } -/** A deleted server. */ -export interface DeletedServer extends ProxyResource { - /** - * The version of the deleted server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly version?: string; - /** - * The deletion time of the deleted server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly deletionTime?: Date; - /** - * The original ID of the server before deletion. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly originalId?: string; - /** - * The fully qualified domain name of the server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly fullyQualifiedDomainName?: string; +/** An Import, Export, or PolybaseImport resource. */ +export interface DatabaseExtensions extends ProxyResource { + /** Operation mode of the operation: Import, Export, or PolybaseImport. */ + operationMode?: OperationMode; + /** Storage key type: StorageAccessKey or SharedAccessKey. */ + storageKeyType?: StorageKeyType; + /** Storage key for the storage account. */ + storageKey?: string; + /** Storage Uri for the storage account. */ + storageUri?: string; + /** Administrator login name. */ + administratorLogin?: string; + /** Administrator login password. */ + administratorLoginPassword?: string; + /** Authentication type: SQL authentication or AD password. */ + authenticationType?: string; + /** Database edition for the newly created database in the case of an import operation. */ + databaseEdition?: string; + /** Database service level objective for the newly created database in the case of an import operation. */ + serviceObjectiveName?: string; + /** Database max size in bytes for the newly created database in the case of an import operation. */ + maxSizeBytes?: string; + /** Optional resource information to enable network isolation for request. */ + networkIsolation?: NetworkIsolationSettings; } -/** A elastic pool operation. */ -export interface ElasticPoolOperation extends ProxyResource { +/** A database operation. */ +export interface DatabaseOperation extends ProxyResource { /** - * The name of the elastic pool the operation is being performed on. + * The name of the database the operation is being performed on. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: string; + readonly databaseName?: string; /** * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5342,7 +5430,7 @@ export interface ElasticPoolOperation extends ProxyResource { * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly state?: ManagementOperationState; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5378,715 +5466,552 @@ export interface ElasticPoolOperation extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isCancellable?: boolean; + /** + * The operation phase details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationPhaseDetails?: PhaseDetails; } -/** The server encryption protector. */ -export interface EncryptionProtector extends ProxyResource { +/** A database schema resource. */ +export interface DatabaseSchema extends ProxyResource {} + +/** A database security alert policy. */ +export interface DatabaseSecurityAlertPolicy extends ProxyResource { /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly systemData?: SystemData; + /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ + state?: SecurityAlertsPolicyState; + /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; /** - * Resource location. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly creationTime?: Date; +} + +/** A database sql vulnerability assessment baseline set. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselineSet + extends ProxyResource { /** - * Subregion of the encryption protector. + * SystemData of DatabaseSqlVulnerabilityAssessmentBaselineSetResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subregion?: string; - /** The name of the server key. */ - serverKeyName?: string; - /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; + readonly systemData?: SystemData; + /** The baseline set result */ + results?: { [propertyName: string]: string[][] }; +} + +/** A database sql vulnerability assessment rule baseline list input. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput + extends ProxyResource { /** - * The URI of the server key. + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly uri?: string; + readonly systemData?: SystemData; + /** The latest scan flag */ + latestScan?: boolean; + /** The rule baseline result list */ + results?: { [propertyName: string]: string[][] }; +} + +/** A database sql vulnerability assessment rule baseline. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaseline + extends ProxyResource { /** - * Thumbprint of the server key. + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; - /** Key auto rotation opt-in flag. Either true or false. */ - autoRotationEnabled?: boolean; + readonly systemData?: SystemData; + /** The rule baseline result */ + results?: string[][]; } -/** A failover group. */ -export interface FailoverGroup extends ProxyResource { +/** A database sql vulnerability assessment rule baseline input. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput + extends ProxyResource { /** - * Resource location. + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineInputResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Read-write endpoint of the failover group instance. */ - readWriteEndpoint?: FailoverGroupReadWriteEndpoint; - /** Read-only endpoint of the failover group instance. */ - readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; + readonly systemData?: SystemData; + /** The latest scan flag */ + latestScan?: boolean; + /** The rule baseline result */ + results?: string[][]; +} + +export interface SqlVulnerabilityAssessmentScanResults extends ProxyResource { /** - * Local replication role of the failover group instance. + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationRole?: FailoverGroupReplicationRole; + readonly systemData?: SystemData; /** - * Replication state of the failover group instance. + * SQL Vulnerability Assessment rule Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationState?: string; - /** List of partner server information for the failover group. */ - partnerServers?: PartnerInfo[]; - /** List of databases in the failover group. */ - databases?: string[]; -} - -/** A stored credential that can be used by a job to connect to target databases. */ -export interface JobCredential extends ProxyResource { - /** The credential user name. */ - username?: string; - /** The credential password. */ - password?: string; -} - -/** An execution of a job */ -export interface JobExecution extends ProxyResource { + readonly ruleId?: string; /** - * The job version number. + * SQL Vulnerability Assessment rule result status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly jobVersion?: number; + readonly status?: RuleStatus; /** - * The job step name. + * SQL Vulnerability Assessment error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepName?: string; + readonly errorMessage?: string; /** - * The job step id. + * SQL Vulnerability Assessment is the query results trimmed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepId?: number; + readonly isTrimmed?: boolean; /** - * The unique identifier of the job execution. + * SQL Vulnerability Assessment query results that was run. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly jobExecutionId?: string; + readonly queryResults?: string[][]; /** - * The detailed state of the job execution. + * SQL Vulnerability Assessment the remediation details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lifecycle?: JobExecutionLifecycle; + readonly remediation?: Remediation; /** - * The ARM provisioning state of the job execution. + * SQL Vulnerability Assessment rule result adjusted with baseline. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly baselineAdjustedResult?: BaselineAdjustedResult; /** - * The time that the job execution was created. + * SQL Vulnerability Assessment rule metadata. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createTime?: Date; + readonly ruleMetadata?: VaRule; +} + +/** A vulnerability assessment scan record. */ +export interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource { /** - * The time that the job execution started. + * SystemData of SqlVulnerabilityAssessmentScanRecordResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly systemData?: SystemData; /** - * The time that the job execution completed. + * The scan ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; - /** Number of times the job execution has been attempted. */ - currentAttempts?: number; + readonly scanId?: string; /** - * Start time of the current attempt. + * The scan trigger type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentAttemptStartTime?: Date; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** - * The last status or error message. + * The scan status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastMessage?: string; + readonly state?: VulnerabilityAssessmentScanState; /** - * The target that this execution is executed on. + * The scan start time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly target?: JobExecutionTarget; -} - -/** A job. */ -export interface Job extends ProxyResource { - /** User-defined description of the job. */ - description?: string; + readonly startTime?: Date; /** - * The job version number. + * The scan end time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: number; - /** Schedule properties of the job. */ - schedule?: JobSchedule; -} - -/** A job step. */ -export interface JobStep extends ProxyResource { - /** The job step's index within the job. If not specified when creating the job step, it will be created as the last step. If not specified when updating the job step, the step id is not modified. */ - stepId?: number; - /** The resource ID of the target group that the job step will be executed on. */ - targetGroup?: string; - /** The resource ID of the job credential that will be used to connect to the targets. */ - credential?: string; - /** The action payload of the job step. */ - action?: JobStepAction; - /** Output destination properties of the job step. */ - output?: JobStepOutput; - /** Execution options for the job step. */ - executionOptions?: JobStepExecutionOptions; -} - -/** A group of job targets. */ -export interface JobTargetGroup extends ProxyResource { - /** Members of the target group. */ - members?: JobTarget[]; -} - -/** A job version. */ -export interface JobVersion extends ProxyResource {} - -/** A long term retention policy. */ -export interface LongTermRetentionPolicy extends ProxyResource { - /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ - weeklyRetention?: string; - /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ - monthlyRetention?: string; - /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ - yearlyRetention?: string; - /** The week of year to take the yearly backup in an ISO 8601 format. */ - weekOfYear?: number; -} - -/** Maintenance window options. */ -export interface MaintenanceWindowOptions extends ProxyResource { - /** Whether maintenance windows are enabled for the database. */ - isEnabled?: boolean; - /** Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. */ - maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; - /** Minimum duration of maintenance window. */ - minDurationInMinutes?: number; - /** Default duration for maintenance window. */ - defaultDurationInMinutes?: number; - /** Minimum number of maintenance windows cycles to be set on the database. */ - minCycles?: number; - /** Time granularity in minutes for maintenance windows. */ - timeGranularityInMinutes?: number; - /** Whether we allow multiple maintenance windows per cycle. */ - allowMultipleMaintenanceWindowsPerCycle?: boolean; -} - -/** Maintenance windows. */ -export interface MaintenanceWindows extends ProxyResource { - timeRanges?: MaintenanceWindowTimeRange[]; -} - -/** A short term retention policy. */ -export interface ManagedBackupShortTermRetentionPolicy extends ProxyResource { - /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ - retentionDays?: number; -} - -/** Database query. */ -export interface ManagedInstanceQuery extends ProxyResource { - /** Query text. */ - queryText?: string; -} - -export interface QueryStatistics extends ProxyResource { - /** - * Database name of the database in which this query was executed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly databaseName?: string; + readonly endTime?: Date; /** - * Unique query id (unique within one database). + * The scan errors. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queryId?: string; + readonly errors?: SqlVulnerabilityAssessmentScanError[]; /** - * The start time for the metric (ISO-8601 format). + * The server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: string; + readonly server?: string; /** - * The end time for the metric (ISO-8601 format). + * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: string; - /** List of intervals with appropriate metric data */ - intervals?: QueryMetricInterval[]; -} - -/** A managed database security alert policy. */ -export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource { - /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ - state?: SecurityAlertPolicyState; - /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - disabledAlerts?: string[]; - /** Specifies an array of e-mail addresses to which the alert is sent. */ - emailAddresses?: string[]; - /** Specifies that the alert is sent to the account administrators. */ - emailAccountAdmins?: boolean; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ - storageEndpoint?: string; - /** Specifies the identifier key of the Threat Detection audit storage account. */ - storageAccountAccessKey?: string; - /** Specifies the number of days to keep in the Threat Detection audit logs. */ - retentionDays?: number; + readonly database?: string; /** - * Specifies the UTC creation time of the policy. + * The SQL version. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A security event. */ -export interface SecurityEvent extends ProxyResource { + readonly sqlVersion?: string; /** - * The time when the security event occurred. + * The number of failed rules with high severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly eventTime?: Date; + readonly highSeverityFailedRulesCount?: number; /** - * The type of the security event. + * The number of failed rules with medium severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly securityEventType?: SecurityEventType; + readonly mediumSeverityFailedRulesCount?: number; /** - * The subscription name + * The number of failed rules with low severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subscription?: string; + readonly lowSeverityFailedRulesCount?: number; /** - * The server name + * The number of total passed rules. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly server?: string; + readonly totalPassedRulesCount?: number; /** - * The database name + * The number of total failed rules. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly database?: string; + readonly totalFailedRulesCount?: number; /** - * The IP address of the client who executed the statement. + * The number of total rules assessed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientIp?: string; + readonly totalRulesCount?: number; /** - * The application used to execute the statement. + * Baseline created for this database, and has one or more rules. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly applicationName?: string; + readonly isBaselineApplied?: boolean; /** - * The principal user who executed the statement + * The last scan time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalName?: string; + readonly lastScanTime?: Date; +} + +/** A SQL Vulnerability Assessment. */ +export interface SqlVulnerabilityAssessment extends ProxyResource { /** - * The sql injection additional properties, populated only if the type of the security event is sql injection. + * SystemData of SqlVulnerabilityAssessmentResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; + readonly systemData?: SystemData; + /** Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: SqlVulnerabilityAssessmentState; } -/** A managed database transparent data encryption state. */ -export interface ManagedTransparentDataEncryption extends ProxyResource { - /** Specifies the state of the transparent data encryption. */ - state?: TransparentDataEncryptionState; +/** A database table resource. */ +export interface DatabaseTable extends ProxyResource { + /** The table temporal type. */ + temporalType?: TableTemporalType; + /** Whether or not the table is memory optimized. */ + memoryOptimized?: boolean; } -/** An Azure SQL managed instance administrator. */ -export interface ManagedInstanceAdministrator extends ProxyResource { - /** Type of the managed instance administrator. */ - administratorType?: ManagedInstanceAdministratorType; - /** Login name of the managed instance administrator. */ - login?: string; - /** SID (object ID) of the managed instance administrator. */ - sid?: string; - /** Tenant ID of the managed instance administrator. */ - tenantId?: string; +/** Usage metric of a database. */ +export interface DatabaseUsage extends ProxyResource { + /** + * User-readable name of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * Current value of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentValue?: number; + /** + * Boundary value of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly limit?: number; + /** + * Unit of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: string; } -/** Azure Active Directory only authentication. */ -export interface ManagedInstanceAzureADOnlyAuthentication +/** A database vulnerability assessment rule baseline. */ +export interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResource { - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; + /** The rule baseline result */ + baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; } -/** The managed instance encryption protector. */ -export interface ManagedInstanceEncryptionProtector extends ProxyResource { +/** A vulnerability assessment scan record. */ +export interface VulnerabilityAssessmentScanRecord extends ProxyResource { /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * The scan ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; - /** The name of the managed instance key. */ - serverKeyName?: string; - /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; + readonly scanId?: string; /** - * The URI of the server key. + * The scan trigger type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly uri?: string; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** - * Thumbprint of the server key. + * The scan status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; - /** Key auto rotation opt-in flag. Either true or false. */ - autoRotationEnabled?: boolean; -} - -/** A managed instance key. */ -export interface ManagedInstanceKey extends ProxyResource { + readonly state?: VulnerabilityAssessmentScanState; /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * The scan start time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; - /** The key type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; - /** The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ - uri?: string; + readonly startTime?: Date; /** - * Thumbprint of the key. + * The scan end time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly endTime?: Date; /** - * The key creation date. + * The scan errors. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly errors?: VulnerabilityAssessmentScanError[]; /** - * Key auto rotation opt-in flag. Either true or false. + * The scan results storage container path. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly autoRotationEnabled?: boolean; -} - -/** A long term retention policy. */ -export interface ManagedInstanceLongTermRetentionPolicy extends ProxyResource { - /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ - weeklyRetention?: string; - /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ - monthlyRetention?: string; - /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ - yearlyRetention?: string; - /** The week of year to take the yearly backup in an ISO 8601 format. */ - weekOfYear?: number; + readonly storageContainerPath?: string; + /** + * The number of failed security checks. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFailedSecurityChecks?: number; } -/** A managed instance operation. */ -export interface ManagedInstanceOperation extends ProxyResource { +/** A database Vulnerability Assessment scan export resource. */ +export interface DatabaseVulnerabilityAssessmentScansExport + extends ProxyResource { /** - * The name of the managed instance the operation is being performed on. + * Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceName?: string; + readonly exportedReportLocation?: string; +} + +/** A database vulnerability assessment. */ +export interface DatabaseVulnerabilityAssessment extends ProxyResource { + /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set */ + storageContainerPath?: string; + /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageContainerSasKey?: string; + /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageAccountAccessKey?: string; + /** The recurring scans settings */ + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +} + +/** An ImportExport operation result resource. */ +export interface ImportExportOperationResult extends ProxyResource { /** - * The name of operation. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly requestId?: string; /** - * The friendly name of operation. + * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly requestType?: string; /** - * The percentage of the operation completed. + * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly queuedTime?: string; /** - * The operation start time. + * Last modified time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly lastModifiedTime?: string; /** - * The operation state. + * Blob Uri. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly blobUri?: string; /** - * The operation error code. + * Server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly serverName?: string; /** - * The operation error description. + * Database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDescription?: string; + readonly databaseName?: string; /** - * The operation error severity. + * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly status?: string; /** - * Whether or not the error is a user error. + * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUserError?: boolean; + readonly errorMessage?: string; /** - * The estimated completion time of the operation. + * Gets the status of private endpoints associated with this request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedCompletionTime?: Date; + readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; +} + +/** A deleted server. */ +export interface DeletedServer extends ProxyResource { /** - * The operation description. + * The version of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly version?: string; /** - * Whether the operation can be cancelled. + * The deletion time of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; + readonly deletionTime?: Date; /** - * The operation parameters. + * The original ID of the server before deletion. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationParameters?: ManagedInstanceOperationParametersPair; + readonly originalId?: string; /** - * The operation steps. + * The fully qualified domain name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationSteps?: ManagedInstanceOperationSteps; + readonly fullyQualifiedDomainName?: string; } -/** A private endpoint connection */ -export interface ManagedInstancePrivateEndpointConnection - extends ProxyResource { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: ManagedInstancePrivateEndpointProperty; - /** Connection State of the Private Endpoint Connection. */ - privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; +/** Distributed availability group between box and Sql Managed Instance. */ +export interface DistributedAvailabilityGroup extends ProxyResource { + /** The name of the target database */ + targetDatabase?: string; + /** The source endpoint */ + sourceEndpoint?: string; + /** The primary availability group name */ + primaryAvailabilityGroupName?: string; + /** The secondary availability group name */ + secondaryAvailabilityGroupName?: string; + /** The replication mode of a distributed availability group. Parameter will be ignored during link creation. */ + replicationMode?: ReplicationMode; /** - * State of the Private Endpoint Connection. + * The distributed availability group id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; -} - -/** A private link resource */ -export interface ManagedInstancePrivateLink extends ProxyResource { + readonly distributedAvailabilityGroupId?: string; /** - * The private link resource group id. + * The source replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: ManagedInstancePrivateLinkProperties; -} - -/** A TDE certificate that can be uploaded into a server. */ -export interface TdeCertificate extends ProxyResource { - /** The base64 encoded certificate private blob. */ - privateBlob?: string; - /** The certificate password. */ - certPassword?: string; -} - -/** A managed instance vulnerability assessment. */ -export interface ManagedInstanceVulnerabilityAssessment extends ProxyResource { - /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ - storageContainerPath?: string; - /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ - storageContainerSasKey?: string; - /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ - storageAccountAccessKey?: string; - /** The recurring scans settings */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** A managed server security alert policy. */ -export interface ManagedServerSecurityAlertPolicy extends ProxyResource { + readonly sourceReplicaId?: string; /** - * SystemData of SecurityAlertPolicyResource. + * The target replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ - state?: SecurityAlertsPolicyState; - /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - disabledAlerts?: string[]; - /** Specifies an array of e-mail addresses to which the alert is sent. */ - emailAddresses?: string[]; - /** Specifies that the alert is sent to the account administrators. */ - emailAccountAdmins?: boolean; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ - storageEndpoint?: string; - /** Specifies the identifier key of the Threat Detection audit storage account. */ - storageAccountAccessKey?: string; - /** Specifies the number of days to keep in the Threat Detection audit logs. */ - retentionDays?: number; + readonly targetReplicaId?: string; /** - * Specifies the UTC creation time of the policy. + * The link state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A private endpoint connection */ -export interface PrivateEndpointConnection extends ProxyResource { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: PrivateEndpointProperty; - /** Connection state of the private endpoint connection. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + readonly linkState?: string; /** - * State of the private endpoint connection. + * The last hardened lsn * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: PrivateEndpointProvisioningState; -} - -/** A private link resource */ -export interface PrivateLinkResource extends ProxyResource { + readonly lastHardenedLsn?: string; /** - * The private link resource group id. + * Role of managed instance * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: PrivateLinkResourceProperties; + readonly instanceRole?: string; } -/** A recoverable managed database resource. */ -export interface RecoverableManagedDatabase extends ProxyResource { +/** A elastic pool operation. */ +export interface ElasticPoolOperation extends ProxyResource { /** - * The last available backup date. + * The name of the elastic pool the operation is being performed on. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAvailableBackupDate?: string; -} - -/** Database restore points. */ -export interface RestorePoint extends ProxyResource { + readonly elasticPoolName?: string; /** - * Resource location. + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly operation?: string; /** - * The type of restore point + * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointType?: RestorePointType; + readonly operationFriendlyName?: string; /** - * The earliest time to which this database can be restored + * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; + readonly percentComplete?: number; /** - * The time the backup was taken + * The name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointCreationDate?: Date; + readonly serverName?: string; /** - * The label of restore point for backup request by user + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointLabel?: string; -} - -/** Server-level Automatic Tuning. */ -export interface ServerAutomaticTuning extends ProxyResource { - /** Automatic tuning desired state. */ - desiredState?: AutomaticTuningServerMode; + readonly startTime?: Date; /** - * Automatic tuning actual state. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actualState?: AutomaticTuningServerMode; - /** Automatic tuning options definition. */ - options?: { [propertyName: string]: AutomaticTuningServerOptions }; -} - -/** Azure Active Directory administrator. */ -export interface ServerAzureADAdministrator extends ProxyResource { - /** Type of the sever administrator. */ - administratorType?: AdministratorType; - /** Login name of the server administrator. */ - login?: string; - /** SID (object ID) of the server administrator. */ - sid?: string; - /** Tenant ID of the administrator. */ - tenantId?: string; + readonly state?: string; /** - * Azure Active Directory only Authentication enabled. + * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly azureADOnlyAuthentication?: boolean; -} - -/** Azure Active Directory only authentication. */ -export interface ServerAzureADOnlyAuthentication extends ProxyResource { - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; -} - -/** A server DevOps auditing settings. */ -export interface ServerDevOpsAuditingSettings extends ProxyResource { + readonly errorCode?: number; /** - * SystemData of ServerDevOpsAuditSettingsResource. + * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; + readonly errorDescription?: string; /** - * Specifies whether DevOps audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure DevOps audit, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should be also created. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * The operation error severity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; - /** Specifies whether Managed Identity is used to access blob storage */ - isManagedIdentityInUse?: boolean; - /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ - state?: BlobAuditingPolicyState; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - storageEndpoint?: string; + readonly errorSeverity?: number; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * Whether or not the error is a user error. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -} - -/** A server DNS alias. */ -export interface ServerDnsAlias extends ProxyResource { + readonly isUserError?: boolean; /** - * The fully qualified DNS record for alias + * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly azureDnsRecord?: string; + readonly estimatedCompletionTime?: Date; + /** + * The operation description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * Whether the operation can be cancelled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isCancellable?: boolean; } -/** A server key. */ -export interface ServerKey extends ProxyResource { +/** The server encryption protector. */ +export interface EncryptionProtector extends ProxyResource { /** * Kind of encryption protector. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6098,476 +6023,469 @@ export interface ServerKey extends ProxyResource { */ readonly location?: string; /** - * Subregion of the server key. + * Subregion of the encryption protector. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly subregion?: string; - /** The server key type like 'ServiceManaged', 'AzureKeyVault'. */ + /** The name of the server key. */ + serverKeyName?: string; + /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ serverKeyType?: ServerKeyType; - /** The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ - uri?: string; + /** + * The URI of the server key. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly uri?: string; /** * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly thumbprint?: string; + /** Key auto rotation opt-in flag. Either true or false. */ + autoRotationEnabled?: boolean; +} + +/** Certificate used on an endpoint on the Managed Instance. */ +export interface EndpointCertificate extends ProxyResource { + /** The certificate public blob */ + publicBlob?: string; +} + +/** A failover group. */ +export interface FailoverGroup extends ProxyResource { /** - * The server key creation date. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly location?: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** Read-write endpoint of the failover group instance. */ + readWriteEndpoint?: FailoverGroupReadWriteEndpoint; + /** Read-only endpoint of the failover group instance. */ + readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; /** - * Key auto rotation opt-in flag. Either true or false. + * Local replication role of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly autoRotationEnabled?: boolean; + readonly replicationRole?: FailoverGroupReplicationRole; + /** + * Replication state of the failover group instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly replicationState?: string; + /** List of partner server information for the failover group. */ + partnerServers?: PartnerInfo[]; + /** List of databases in the failover group. */ + databases?: string[]; } -/** A server operation. */ -export interface ServerOperation extends ProxyResource { +/** A Geo backup policy. */ +export interface GeoBackupPolicy extends ProxyResource { /** - * The name of operation. + * Backup policy location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly location?: string; /** - * The friendly name of operation. + * Kind of geo backup policy. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly kind?: string; + /** The state of the geo backup policy. */ + state?: GeoBackupPolicyState; /** - * The percentage of the operation completed. + * The storage type of the geo backup policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly storageType?: string; +} + +/** An instance failover group. */ +export interface InstanceFailoverGroup extends ProxyResource { + /** Type of the geo-secondary instance. Set 'Standby' if the instance is used as a DR option only. */ + secondaryType?: SecondaryInstanceType; + /** Read-write endpoint of the failover group instance. */ + readWriteEndpoint?: InstanceFailoverGroupReadWriteEndpoint; + /** Read-only endpoint of the failover group instance. */ + readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; /** - * The name of the server. + * Local replication role of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly replicationRole?: InstanceFailoverGroupReplicationRole; /** - * The operation start time. + * Replication state of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly replicationState?: string; + /** Partner region information for the failover group. */ + partnerRegions?: PartnerRegionInfo[]; + /** List of managed instance pairs in the failover group. */ + managedInstancePairs?: ManagedInstancePairInfo[]; +} + +/** A stored credential that can be used by a job to connect to target databases. */ +export interface JobCredential extends ProxyResource { + /** The credential user name. */ + username?: string; + /** The credential password. */ + password?: string; +} + +/** An execution of a job */ +export interface JobExecution extends ProxyResource { /** - * The operation state. + * The job version number. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly jobVersion?: number; /** - * The operation error code. + * The job step name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly stepName?: string; /** - * The operation error description. + * The job step id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDescription?: string; + readonly stepId?: number; /** - * The operation error severity. + * The unique identifier of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly jobExecutionId?: string; /** - * Whether or not the error is a user error. + * The detailed state of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUserError?: boolean; + readonly lifecycle?: JobExecutionLifecycle; /** - * The estimated completion time of the operation. + * The ARM provisioning state of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedCompletionTime?: Date; + readonly provisioningState?: ProvisioningState; /** - * The operation description. + * The time that the job execution was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly createTime?: Date; /** - * Whether the operation can be cancelled. + * The time that the job execution started. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; -} - -/** A server security alert policy. */ -export interface ServerSecurityAlertPolicy extends ProxyResource { + readonly startTime?: Date; /** - * SystemData of SecurityAlertPolicyResource. + * The time that the job execution completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ - state?: SecurityAlertsPolicyState; - /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - disabledAlerts?: string[]; - /** Specifies an array of e-mail addresses to which the alert is sent. */ - emailAddresses?: string[]; - /** Specifies that the alert is sent to the account administrators. */ - emailAccountAdmins?: boolean; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ - storageEndpoint?: string; - /** Specifies the identifier key of the Threat Detection audit storage account. */ - storageAccountAccessKey?: string; - /** Specifies the number of days to keep in the Threat Detection audit logs. */ - retentionDays?: number; + readonly endTime?: Date; + /** Number of times the job execution has been attempted. */ + currentAttempts?: number; /** - * Specifies the UTC creation time of the policy. + * Start time of the current attempt. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly currentAttemptStartTime?: Date; + /** + * The last status or error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastMessage?: string; + /** + * The target that this execution is executed on. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: JobExecutionTarget; } -/** A server trust group. */ -export interface ServerTrustGroup extends ProxyResource { - /** Group members information for the server trust group. */ - groupMembers?: ServerInfo[]; - /** Trust scope of the server trust group. */ - trustScopes?: ServerTrustGroupPropertiesTrustScopesItem[]; +/** A job step. */ +export interface JobStep extends ProxyResource { + /** The job step's index within the job. If not specified when creating the job step, it will be created as the last step. If not specified when updating the job step, the step id is not modified. */ + stepId?: number; + /** The resource ID of the target group that the job step will be executed on. */ + targetGroup?: string; + /** The resource ID of the job credential that will be used to connect to the targets. */ + credential?: string; + /** The action payload of the job step. */ + action?: JobStepAction; + /** Output destination properties of the job step. */ + output?: JobStepOutput; + /** Execution options for the job step. */ + executionOptions?: JobStepExecutionOptions; } -/** A server vulnerability assessment. */ -export interface ServerVulnerabilityAssessment extends ProxyResource { - /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ - storageContainerPath?: string; - /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ - storageContainerSasKey?: string; - /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ - storageAccountAccessKey?: string; - /** The recurring scans settings */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +/** A group of job targets. */ +export interface JobTargetGroup extends ProxyResource { + /** Members of the target group. */ + members?: JobTarget[]; } -/** A recoverable managed database resource. */ -export interface SqlAgentConfiguration extends ProxyResource { - /** The state of Sql Agent. */ - state?: SqlAgentConfigurationPropertiesState; -} +/** A job version. */ +export interface JobVersion extends ProxyResource {} -/** Usage Metric of a Subscription in a Location. */ -export interface SubscriptionUsage extends ProxyResource { +/** A job. */ +export interface Job extends ProxyResource { + /** User-defined description of the job. */ + description?: string; /** - * User-readable name of the metric. + * The job version number. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly version?: number; + /** Schedule properties of the job. */ + schedule?: JobSchedule; +} + +/** Azure SQL Database ledger digest upload settings. */ +export interface LedgerDigestUploads extends ProxyResource { + /** The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. */ + digestStorageEndpoint?: string; /** - * Current value of the metric. + * Specifies the state of ledger digest upload. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly state?: LedgerDigestUploadsState; +} + +/** A long term retention backup. */ +export interface LongTermRetentionBackup extends ProxyResource { /** - * Boundary value of the metric. + * The server name that the backup database belong to. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly serverName?: string; /** - * Unit of the metric. + * The create time of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; -} - -/** An Azure SQL Database sync agent. */ -export interface SyncAgent extends ProxyResource { + readonly serverCreateTime?: Date; /** - * Name of the sync agent. + * The name of the database the backup belong to * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly namePropertiesName?: string; - /** ARM resource id of the sync database in the sync agent. */ - syncDatabaseId?: string; + readonly databaseName?: string; /** - * Last alive time of the sync agent. + * The delete time of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAliveTime?: Date; + readonly databaseDeletionTime?: Date; /** - * State of the sync agent. + * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: SyncAgentState; + readonly backupTime?: Date; /** - * If the sync agent version is up to date. + * The time the long term retention backup will expire. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUpToDate?: boolean; + readonly backupExpirationTime?: Date; /** - * Expiration time of the sync agent version. + * The storage redundancy type of the backup * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly expiryTime?: Date; + readonly backupStorageRedundancy?: BackupStorageRedundancy; + /** The storage redundancy type of the backup */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; +} + +/** A LongTermRetentionBackup operation result resource. */ +export interface LongTermRetentionBackupOperationResult extends ProxyResource { /** - * Version of the sync agent. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; -} - -/** An Azure SQL Database sync agent linked database. */ -export interface SyncAgentLinkedDatabase extends ProxyResource { + readonly requestId?: string; /** - * Type of the sync agent linked database. + * Operation type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseType?: SyncMemberDbType; + readonly operationType?: string; /** - * Id of the sync agent linked database. + * Source backup resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseId?: string; + readonly fromBackupResourceId?: string; /** - * Description of the sync agent linked database. + * Target backup resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly toBackupResourceId?: string; /** - * Server name of the sync agent linked database. + * The storage redundancy type of the copied backup * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly targetBackupStorageRedundancy?: BackupStorageRedundancy; /** - * Database name of the sync agent linked database. + * Operation status * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly status?: string; /** - * User name of the sync agent linked database. + * Progress message * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userName?: string; + readonly message?: string; } -/** An Azure SQL Database sync group. */ -export interface SyncGroup extends ProxyResource { - /** The name and capacity of the SKU. */ - sku?: Sku; - /** Sync interval of the sync group. */ - interval?: number; +/** A long term retention backup for a managed database. */ +export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { /** - * Last sync time of the sync group. + * The managed instance that the backup database belongs to. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastSyncTime?: Date; - /** Conflict resolution policy of the sync group. */ - conflictResolutionPolicy?: SyncConflictResolutionPolicy; - /** ARM resource id of the sync database in the sync group. */ - syncDatabaseId?: string; - /** User name for the sync group hub database credential. */ - hubDatabaseUserName?: string; - /** Password for the sync group hub database credential. */ - hubDatabasePassword?: string; + readonly managedInstanceName?: string; /** - * Sync state of the sync group. + * The create time of the instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly syncState?: SyncGroupState; - /** Sync schema of the sync group. */ - schema?: SyncGroupSchema; - /** If conflict logging is enabled. */ - enableConflictLogging?: boolean; - /** Conflict logging retention period. */ - conflictLoggingRetentionInDays?: number; - /** If use private link connection is enabled. */ - usePrivateLinkConnection?: boolean; + readonly managedInstanceCreateTime?: Date; /** - * Private endpoint name of the sync group if use private link connection is enabled. + * The name of the database the backup belong to * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointName?: string; -} - -/** An Azure SQL Database sync member. */ -export interface SyncMember extends ProxyResource { - /** Database type of the sync member. */ - databaseType?: SyncMemberDbType; - /** ARM resource id of the sync agent in the sync member. */ - syncAgentId?: string; - /** SQL Server database id of the sync member. */ - sqlServerDatabaseId?: string; - /** ARM resource id of the sync member logical database, for sync members in Azure. */ - syncMemberAzureDatabaseResourceId?: string; - /** Whether to use private link connection. */ - usePrivateLinkConnection?: boolean; + readonly databaseName?: string; /** - * Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure. + * The delete time of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointName?: string; - /** Server name of the member database in the sync member */ - serverName?: string; - /** Database name of the member database in the sync member. */ - databaseName?: string; - /** User name of the member database in the sync member. */ - userName?: string; - /** Password of the member database in the sync member. */ - password?: string; - /** Sync direction of the sync member. */ - syncDirection?: SyncDirection; + readonly databaseDeletionTime?: Date; /** - * Sync state of the sync member. + * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly syncState?: SyncMemberState; -} - -/** Time Zone. */ -export interface TimeZone extends ProxyResource { + readonly backupTime?: Date; /** - * The time zone id + * The time the long term retention backup will expire. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeZoneId?: string; + readonly backupExpirationTime?: Date; /** - * The time zone display name + * The storage redundancy type of the backup * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly backupStorageRedundancy?: BackupStorageRedundancy; } -/** A virtual network rule. */ -export interface VirtualNetworkRule extends ProxyResource { - /** The ARM resource id of the virtual network subnet. */ - virtualNetworkSubnetId?: string; - /** Create firewall rule before the virtual network has vnet service endpoint enabled. */ - ignoreMissingVnetServiceEndpoint?: boolean; +/** A long term retention policy. */ +export interface LongTermRetentionPolicy extends ProxyResource { + /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ + weeklyRetention?: string; + /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ + monthlyRetention?: string; + /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ + yearlyRetention?: string; + /** The week of year to take the yearly backup in an ISO 8601 format. */ + weekOfYear?: number; +} + +/** Maintenance window options. */ +export interface MaintenanceWindowOptions extends ProxyResource { + /** Whether maintenance windows are enabled for the database. */ + isEnabled?: boolean; + /** Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. */ + maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; + /** Minimum duration of maintenance window. */ + minDurationInMinutes?: number; + /** Default duration for maintenance window. */ + defaultDurationInMinutes?: number; + /** Minimum number of maintenance windows cycles to be set on the database. */ + minCycles?: number; + /** Time granularity in minutes for maintenance windows. */ + timeGranularityInMinutes?: number; + /** Whether we allow multiple maintenance windows per cycle. */ + allowMultipleMaintenanceWindowsPerCycle?: boolean; +} + +/** Maintenance windows. */ +export interface MaintenanceWindows extends ProxyResource { + timeRanges?: MaintenanceWindowTimeRange[]; +} + +/** A short term retention policy. */ +export interface ManagedBackupShortTermRetentionPolicy extends ProxyResource { + /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ + retentionDays?: number; +} + +/** A managed database Advanced Threat Protection. */ +export interface ManagedDatabaseAdvancedThreatProtection extends ProxyResource { /** - * Virtual Network Rule State + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: VirtualNetworkRuleState; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; + /** + * Specifies the UTC creation time of the policy. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationTime?: Date; } -/** Workload classifier operations for a data warehouse */ -export interface WorkloadClassifier extends ProxyResource { - /** The workload classifier member name. */ - memberName?: string; - /** The workload classifier label. */ - label?: string; - /** The workload classifier context. */ - context?: string; - /** The workload classifier start time for classification. */ - startTime?: string; - /** The workload classifier end time for classification. */ - endTime?: string; - /** The workload classifier importance. */ - importance?: string; -} - -/** Workload group operations for a data warehouse */ -export interface WorkloadGroup extends ProxyResource { - /** The workload group minimum percentage resource. */ - minResourcePercent?: number; - /** The workload group cap percentage resource. */ - maxResourcePercent?: number; - /** The workload group request minimum grant percentage. */ - minResourcePercentPerRequest?: number; - /** The workload group request maximum grant percentage. */ - maxResourcePercentPerRequest?: number; - /** The workload group importance level. */ - importance?: string; - /** The workload group query execution timeout. */ - queryExecutionTimeout?: number; -} - -/** A short term retention policy. */ -export interface BackupShortTermRetentionPolicy extends ProxyResource { - /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ - retentionDays?: number; - /** The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases. */ - diffBackupIntervalInHours?: DiffBackupIntervalInHours; -} - -/** An export managed database operation result resource. */ -export interface DatabaseExtensions extends ProxyResource { - /** Operation Mode. */ - operationMode?: OperationMode; - /** Storage key type. */ - storageKeyType?: StorageKeyType; - /** Storage key. */ - storageKey?: string; - /** Storage Uri. */ - storageUri?: string; -} - -/** An Extension operation result resource. */ -export interface ImportExportExtensionsOperationResult extends ProxyResource { - /** - * Request Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestId?: string; - /** - * Request type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestType?: string; +/** A managed database move operation. */ +export interface ManagedDatabaseMoveOperationResult extends ProxyResource { /** - * Last modified time. + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedTime?: string; + readonly operation?: string; /** - * Server name. + * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly operationFriendlyName?: string; /** - * Database name. + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly startTime?: Date; /** - * Operation status. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly state?: ManagementOperationState; /** - * Error message. + * Operation mode. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; -} - -/** A database operation. */ -export interface DatabaseOperation extends ProxyResource { + readonly operationMode?: MoveOperationMode; /** - * The name of the database the operation is being performed on. + * Source Managed Instance name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly sourceManagedInstanceName?: string; /** - * The name of operation. + * Target Managed Instance name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly targetManagedInstanceName?: string; /** - * The friendly name of operation. + * Source Managed Instance resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly sourceManagedInstanceId?: string; /** - * The percentage of the operation completed. + * Target Managed instance resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly targetManagedInstanceId?: string; /** - * The name of the server. + * Source database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly sourceDatabaseName?: string; /** - * The operation start time. + * Target database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly targetDatabaseName?: string; /** - * The operation state. + * Is move operation cancellable. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly isCancellable?: boolean; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6588,261 +6506,223 @@ export interface DatabaseOperation extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isUserError?: boolean; +} + +/** Database query. */ +export interface ManagedInstanceQuery extends ProxyResource { + /** Query text. */ + queryText?: string; +} + +export interface QueryStatistics extends ProxyResource { /** - * The estimated completion time of the operation. + * Database name of the database in which this query was executed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedCompletionTime?: Date; + readonly databaseName?: string; /** - * The operation description. + * Unique query id (unique within one database). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly queryId?: string; /** - * Whether the operation can be cancelled. + * The start time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; -} - -/** Usage metric of a database. */ -export interface DatabaseUsage extends ProxyResource { + readonly startTime?: string; /** - * User-readable name of the metric. + * The end time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly endTime?: string; + /** List of intervals with appropriate metric data */ + intervals?: QueryMetricInterval[]; +} + +/** A managed database restore details. */ +export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { /** - * Current value of the metric. + * Restore type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly typePropertiesType?: string; /** - * Boundary value of the metric. + * Restore status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly status?: string; /** - * Unit of the metric. + * The reason why restore is in Blocked state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; -} - -/** Azure SQL Database ledger digest upload settings. */ -export interface LedgerDigestUploads extends ProxyResource { - /** The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. */ - digestStorageEndpoint?: string; + readonly blockReason?: string; /** - * Specifies the state of ledger digest upload. + * Last uploaded file name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: LedgerDigestUploadsState; -} - -/** An Azure SQL DB Server Outbound Firewall Rule. */ -export interface OutboundFirewallRule extends ProxyResource { + readonly lastUploadedFileName?: string; /** - * The state of the outbound rule. + * Last uploaded file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; -} - -/** A LongTermRetentionBackup operation result resource. */ -export interface LongTermRetentionBackupOperationResult extends ProxyResource { + readonly lastUploadedFileTime?: Date; /** - * Request Id. + * Last restored file name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestId?: string; + readonly lastRestoredFileName?: string; /** - * Operation type. + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationType?: string; + readonly lastRestoredFileTime?: Date; /** - * Source backup resource id + * Percent completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fromBackupResourceId?: string; + readonly percentCompleted?: number; /** - * Target backup resource id + * Current restored size MB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly toBackupResourceId?: string; + readonly currentRestoredSizeMB?: number; /** - * The storage redundancy type of the copied backup + * Current restore plan size MB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetBackupStorageRedundancy?: BackupStorageRedundancy; + readonly currentRestorePlanSizeMB?: number; /** - * Operation status + * Current backup type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly currentBackupType?: string; /** - * Progress message + * Current restoring file name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; -} - -/** A long term retention backup. */ -export interface LongTermRetentionBackup extends ProxyResource { + readonly currentRestoringFileName?: string; /** - * The server name that the backup database belong to. + * Number of files detected. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly numberOfFilesDetected?: number; /** - * The create time of the server. + * Number of files queued. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverCreateTime?: Date; + readonly numberOfFilesQueued?: number; /** - * The name of the database the backup belong to + * Number of files skipped. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly numberOfFilesSkipped?: number; /** - * The delete time of the database + * Number of files restoring. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseDeletionTime?: Date; + readonly numberOfFilesRestoring?: number; /** - * The time the backup was taken + * Number of files restored. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupTime?: Date; + readonly numberOfFilesRestored?: number; /** - * The time the long term retention backup will expire. + * Number of files unrestorable. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupExpirationTime?: Date; + readonly numberOfFilesUnrestorable?: number; /** - * The storage redundancy type of the backup + * Full backup sets. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupStorageRedundancy?: BackupStorageRedundancy; - /** The storage redundancy type of the backup */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; -} - -/** A long term retention backup for a managed database. */ -export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { + readonly fullBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; /** - * The managed instance that the backup database belongs to. + * Diff backup sets. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceName?: string; + readonly diffBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; /** - * The create time of the instance. + * Log backup sets. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceCreateTime?: Date; - /** - * The name of the database the backup belong to - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly databaseName?: string; - /** - * The delete time of the database - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly databaseDeletionTime?: Date; - /** - * The time the backup was taken - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupTime?: Date; + readonly logBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; /** - * The time the long term retention backup will expire. + * Unrestorable files. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupExpirationTime?: Date; + readonly unrestorableFiles?: ManagedDatabaseRestoreDetailsUnrestorableFileProperties[]; +} + +/** A managed database security alert policy. */ +export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource { + /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ + state?: SecurityAlertPolicyState; + /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; /** - * The storage redundancy type of the backup + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupStorageRedundancy?: BackupStorageRedundancy; + readonly creationTime?: Date; } -/** A server connection policy */ -export interface ServerConnectionPolicy extends ProxyResource { +/** A security event. */ +export interface SecurityEvent extends ProxyResource { /** - * Resource location. + * The time when the security event occurred. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly eventTime?: Date; /** - * Metadata used for the Azure portal experience. + * The type of the security event. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; - /** The server connection type. */ - connectionType?: ServerConnectionType; -} - -/** Distributed availability group between box and Sql Managed Instance. */ -export interface DistributedAvailabilityGroup extends ProxyResource { - /** The name of the target database */ - targetDatabase?: string; - /** The source endpoint */ - sourceEndpoint?: string; - /** The primary availability group name */ - primaryAvailabilityGroupName?: string; - /** The secondary availability group name */ - secondaryAvailabilityGroupName?: string; - /** The replication mode of a distributed availability group. Parameter will be ignored during link creation. */ - replicationMode?: ReplicationMode; + readonly securityEventType?: SecurityEventType; /** - * The distributed availability group id + * The subscription name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly distributedAvailabilityGroupId?: string; + readonly subscription?: string; /** - * The source replica id + * The server name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sourceReplicaId?: string; + readonly server?: string; /** - * The target replica id + * The database name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetReplicaId?: string; + readonly database?: string; /** - * The link state + * The IP address of the client who executed the statement. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly linkState?: string; + readonly clientIp?: string; /** - * The last hardened lsn + * The application used to execute the statement. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastHardenedLsn?: string; -} - -/** Server trust certificate imported from box to enable connection between box and Sql Managed Instance. */ -export interface ServerTrustCertificate extends ProxyResource { - /** The certificate public blob */ - publicBlob?: string; + readonly applicationName?: string; /** - * The certificate thumbprint + * The principal user who executed the statement * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly principalName?: string; /** - * The certificate name + * The sql injection additional properties, populated only if the type of the security event is sql injection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly certificateName?: string; -} - -/** Certificate used on an endpoint on the Managed Instance. */ -export interface EndpointCertificate extends ProxyResource { - /** The certificate public blob */ - publicBlob?: string; + readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; } /** A sensitivity label. */ @@ -6907,755 +6787,392 @@ export interface RecommendedSensitivityLabelUpdate extends ProxyResource { column?: string; } -/** A server blob auditing policy. */ -export interface ServerBlobAuditingPolicy extends ProxyResource { +/** A managed database transparent data encryption state. */ +export interface ManagedTransparentDataEncryption extends ProxyResource { + /** Specifies the state of the transparent data encryption. */ + state?: TransparentDataEncryptionState; +} + +/** A database vulnerability assessment rule baseline. */ +export interface DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated + extends ProxyResource { + /** The rule baseline result */ + baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; +} + +/** An Azure SQL managed instance administrator. */ +export interface ManagedInstanceAdministrator extends ProxyResource { + /** Type of the managed instance administrator. */ + administratorType?: ManagedInstanceAdministratorType; + /** Login name of the managed instance administrator. */ + login?: string; + /** SID (object ID) of the managed instance administrator. */ + sid?: string; + /** Tenant ID of the managed instance administrator. */ + tenantId?: string; +} + +/** A managed instance Advanced Threat Protection. */ +export interface ManagedInstanceAdvancedThreatProtection extends ProxyResource { /** - * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * SystemData of AdvancedThreatProtectionResource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isDevopsAuditEnabled?: boolean; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * DBCC_GROUP - * DATABASE_OWNERSHIP_CHANGE_GROUP - * DATABASE_CHANGE_GROUP - * LEDGER_OPERATION_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * Specifies the UTC creation time of the policy. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; + readonly creationTime?: Date; +} + +/** Azure Active Directory only authentication. */ +export interface ManagedInstanceAzureADOnlyAuthentication + extends ProxyResource { + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; +} + +/** SQL Managed Instance DTC */ +export interface ManagedInstanceDtc extends ProxyResource { + /** Active status of managed instance DTC. */ + dtcEnabled?: boolean; + /** Security settings of managed instance DTC. */ + securitySettings?: ManagedInstanceDtcSecuritySettings; + /** External dns suffix search list of managed instance DTC. */ + externalDnsSuffixSearchList?: string[]; /** - * 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) - * + * Host name dns suffix of managed instance DTC. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; - /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - */ - queueDelayMs?: number; - /** Specifies whether Managed Identity is used to access blob storage */ - isManagedIdentityInUse?: boolean; - /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ - state?: BlobAuditingPolicyState; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - storageEndpoint?: string; + readonly dtcHostNameDnsSuffix?: string; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * Provisioning state of managed instance DTC. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; + readonly provisioningState?: ProvisioningState; } -/** A database blob auditing policy. */ -export interface DatabaseBlobAuditingPolicy extends ProxyResource { +/** The managed instance encryption protector. */ +export interface ManagedInstanceEncryptionProtector extends ProxyResource { /** - * Resource kind. + * 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; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; - /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * DBCC_GROUP - * DATABASE_OWNERSHIP_CHANGE_GROUP - * DATABASE_CHANGE_GROUP - * LEDGER_OPERATION_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; - /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * - */ - isAzureMonitorTargetEnabled?: boolean; + /** The name of the managed instance key. */ + serverKeyName?: string; + /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * The URI of the server key. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - queueDelayMs?: number; - /** Specifies whether Managed Identity is used to access blob storage */ - isManagedIdentityInUse?: boolean; - /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ - state?: BlobAuditingPolicyState; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - storageEndpoint?: string; + readonly uri?: 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) + * Thumbprint of the server key. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; + readonly thumbprint?: string; + /** Key auto rotation opt-in flag. Either true or false. */ + autoRotationEnabled?: boolean; } -/** An extended database blob auditing policy. */ -export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { - /** Specifies condition of where clause when creating an audit. */ - predicateExpression?: string; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; +/** A managed instance key. */ +export interface ManagedInstanceKey extends ProxyResource { /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * DBCC_GROUP - * DATABASE_OWNERSHIP_CHANGE_GROUP - * DATABASE_CHANGE_GROUP - * LEDGER_OPERATION_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * 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. */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; + readonly kind?: string; + /** The key type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; + /** The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ + uri?: string; /** - * Specifies 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) - * + * Thumbprint of the key. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly thumbprint?: 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. + * The key creation date. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - queueDelayMs?: number; - /** Specifies whether Managed Identity is used to access blob storage */ - isManagedIdentityInUse?: boolean; - /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ - state?: BlobAuditingPolicyState; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - storageEndpoint?: string; + readonly creationDate?: Date; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * Key auto rotation opt-in flag. Either true or false. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; + readonly autoRotationEnabled?: boolean; } -/** An extended server blob auditing policy. */ -export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { +/** A long term retention policy. */ +export interface ManagedInstanceLongTermRetentionPolicy extends ProxyResource { + /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ + weeklyRetention?: string; + /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ + monthlyRetention?: string; + /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ + yearlyRetention?: string; + /** The week of year to take the yearly backup in an ISO 8601 format. */ + weekOfYear?: number; +} + +/** A managed instance operation. */ +export interface ManagedInstanceOperation extends ProxyResource { /** - * 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) - * + * The name of the managed instance the operation is being performed on. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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 managedInstanceName?: string; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * DBCC_GROUP - * DATABASE_OWNERSHIP_CHANGE_GROUP - * DATABASE_CHANGE_GROUP - * LEDGER_OPERATION_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * The name of operation. + * 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 operation?: string; /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * The friendly name of operation. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly operationFriendlyName?: 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. + * The percentage of the operation completed. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - queueDelayMs?: number; - /** Specifies whether Managed Identity is used to access blob storage */ - isManagedIdentityInUse?: boolean; - /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ - state?: BlobAuditingPolicyState; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - storageEndpoint?: string; + readonly percentComplete?: number; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * The operation 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 database Advanced Threat Protection. */ -export interface DatabaseAdvancedThreatProtection extends ProxyResource { + readonly startTime?: Date; /** - * SystemData of AdvancedThreatProtectionResource. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ - state?: AdvancedThreatProtectionState; + readonly state?: ManagementOperationState; /** - * Specifies the UTC creation time of the policy. + * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A server Advanced Threat Protection. */ -export interface ServerAdvancedThreatProtection extends ProxyResource { + readonly errorCode?: number; /** - * SystemData of AdvancedThreatProtectionResource. + * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ - state?: AdvancedThreatProtectionState; + readonly errorDescription?: string; /** - * Specifies the UTC creation time of the policy. + * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A managed server DNS alias. */ -export interface ManagedServerDnsAlias extends ProxyResource { + readonly errorSeverity?: number; /** - * The fully qualified DNS record for managed server alias + * Whether or not the error is a user error. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly azureDnsRecord?: string; + readonly isUserError?: boolean; /** - * The fully qualified public DNS record for managed server alias + * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicAzureDnsRecord?: string; -} - -/** A database sql vulnerability assessment baseline set. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselineSet - extends ProxyResource { + readonly estimatedCompletionTime?: Date; /** - * SystemData of DatabaseSqlVulnerabilityAssessmentBaselineSetResource. + * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** The baseline set result */ - results?: { [propertyName: string]: string[][] }; -} - -/** A database sql vulnerability assessment rule baseline list input. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput - extends ProxyResource { + readonly description?: string; /** - * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputResource. + * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** The latest scan flag */ - latestScan?: boolean; - /** The rule baseline result list */ - results?: { [propertyName: string]: string[][] }; -} - -/** A database sql vulnerability assessment rule baseline. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaseline - extends ProxyResource { + readonly isCancellable?: boolean; /** - * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineResource. + * The operation parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** The rule baseline result */ - results?: string[][]; -} - -/** A database sql vulnerability assessment rule baseline input. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput - extends ProxyResource { + readonly operationParameters?: ManagedInstanceOperationParametersPair; /** - * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineInputResource. + * The operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** The latest scan flag */ - latestScan?: boolean; - /** The rule baseline result */ - results?: string[][]; + readonly operationSteps?: ManagedInstanceOperationSteps; } -export interface SqlVulnerabilityAssessmentScanResults extends ProxyResource { +/** A private endpoint connection */ +export interface ManagedInstancePrivateEndpointConnection + extends ProxyResource { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: ManagedInstancePrivateEndpointProperty; + /** Connection State of the Private Endpoint Connection. */ + privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; /** - * SystemData of AdvancedThreatProtectionResource. + * State of the Private Endpoint Connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; + readonly provisioningState?: string; +} + +/** A private link resource */ +export interface ManagedInstancePrivateLink extends ProxyResource { /** - * SQL Vulnerability Assessment rule Id. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleId?: string; - /** - * SQL Vulnerability Assessment rule result status. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: RuleStatus; - /** - * SQL Vulnerability Assessment error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; - /** - * SQL Vulnerability Assessment is the query results trimmed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isTrimmed?: boolean; - /** - * SQL Vulnerability Assessment query results that was run. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly queryResults?: string[][]; + readonly properties?: ManagedInstancePrivateLinkProperties; +} + +/** A TDE certificate that can be uploaded into a server. */ +export interface TdeCertificate extends ProxyResource { + /** The base64 encoded certificate private blob. */ + privateBlob?: string; + /** The certificate password. */ + certPassword?: string; +} + +/** A managed instance vulnerability assessment. */ +export interface ManagedInstanceVulnerabilityAssessment extends ProxyResource { + /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ + storageContainerPath?: string; + /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageContainerSasKey?: string; + /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageAccountAccessKey?: string; + /** The recurring scans settings */ + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +} + +/** Azure SQL Database ledger digest upload settings. */ +export interface ManagedLedgerDigestUploads extends ProxyResource { + /** The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. */ + digestStorageEndpoint?: string; /** - * SQL Vulnerability Assessment the remediation details. + * Specifies the state of ledger digest upload. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly remediation?: Remediation; + readonly state?: ManagedLedgerDigestUploadsState; +} + +/** A managed server DNS alias. */ +export interface ManagedServerDnsAlias extends ProxyResource { /** - * SQL Vulnerability Assessment rule result adjusted with baseline. + * The fully qualified DNS record for managed server alias * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly baselineAdjustedResult?: BaselineAdjustedResult; + readonly azureDnsRecord?: string; /** - * SQL Vulnerability Assessment rule metadata. + * The fully qualified public DNS record for managed server alias * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleMetadata?: VaRule; + readonly publicAzureDnsRecord?: string; } -/** A vulnerability assessment scan record. */ -export interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource { +/** A managed server security alert policy. */ +export interface ManagedServerSecurityAlertPolicy extends ProxyResource { /** - * SystemData of SqlVulnerabilityAssessmentScanRecordResource. + * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; + /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ + state?: SecurityAlertsPolicyState; + /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; /** - * The scan ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly scanId?: string; - /** - * The scan trigger type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; - /** - * The scan status. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: VulnerabilityAssessmentScanState; - /** - * The scan start time (UTC). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * The scan end time (UTC). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTime?: Date; - /** - * The scan errors. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errors?: SqlVulnerabilityAssessmentScanError[]; - /** - * The server name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly server?: string; - /** - * The database name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly database?: string; - /** - * The SQL version. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sqlVersion?: string; - /** - * The number of failed rules with high severity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly highSeverityFailedRulesCount?: number; - /** - * The number of failed rules with medium severity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly mediumSeverityFailedRulesCount?: number; - /** - * The number of failed rules with low severity. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lowSeverityFailedRulesCount?: number; + readonly creationTime?: Date; +} + +/** NSP Configuration for a server. */ +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + provisioningState?: string; + networkSecurityPerimeter?: NSPConfigPerimeter; + resourceAssociation?: NSPConfigAssociation; + profile?: NSPConfigProfile; + provisioningIssues?: NSPProvisioningIssue[]; +} + +/** An Azure SQL DB Server Outbound Firewall Rule. */ +export interface OutboundFirewallRule extends ProxyResource { /** - * The number of total passed rules. + * The state of the outbound rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalPassedRulesCount?: number; + readonly provisioningState?: string; +} + +/** A private endpoint connection */ +export interface PrivateEndpointConnection extends ProxyResource { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpointProperty; /** - * The number of total failed rules. + * Group IDs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalFailedRulesCount?: number; + readonly groupIds?: string[]; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** - * The number of total rules assessed. + * State of the private endpoint connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalRulesCount?: number; + readonly provisioningState?: PrivateEndpointProvisioningState; +} + +/** A private link resource */ +export interface PrivateLinkResource extends ProxyResource { /** - * Baseline created for this database, and has one or more rules. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isBaselineApplied?: boolean; + readonly properties?: PrivateLinkResourceProperties; } -/** A SQL Vulnerability Assessment. */ -export interface SqlVulnerabilityAssessment extends ProxyResource { +/** A recoverable database resource. */ +export interface RecoverableDatabase extends ProxyResource { /** - * SystemData of SqlVulnerabilityAssessmentResource. + * The edition of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ - state?: SqlVulnerabilityAssessmentState; -} - -/** A managed database Advanced Threat Protection. */ -export interface ManagedDatabaseAdvancedThreatProtection extends ProxyResource { + readonly edition?: string; /** - * SystemData of AdvancedThreatProtectionResource. + * The service level objective name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ - state?: AdvancedThreatProtectionState; + readonly serviceLevelObjective?: string; /** - * Specifies the UTC creation time of the policy. + * The elastic pool name of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A managed instance Advanced Threat Protection. */ -export interface ManagedInstanceAdvancedThreatProtection extends ProxyResource { + readonly elasticPoolName?: string; /** - * SystemData of AdvancedThreatProtectionResource. + * The last available backup date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ - state?: AdvancedThreatProtectionState; + readonly lastAvailableBackupDate?: Date; + /** The resource ids of the user assigned identities to use */ + keys?: { [propertyName: string]: DatabaseKey }; +} + +/** A recoverable managed database resource. */ +export interface RecoverableManagedDatabase extends ProxyResource { /** - * Specifies the UTC creation time of the policy. + * The last available backup date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly lastAvailableBackupDate?: string; } /** A replication link. */ @@ -7670,6 +7187,11 @@ export interface ReplicationLink extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly partnerDatabase?: string; + /** + * Resource partner database Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly partnerDatabaseId?: string; /** * Resource partner location. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -7717,405 +7239,398 @@ export interface ReplicationLink extends ProxyResource { readonly linkType?: ReplicationLinkType; } -/** A managed database move operation. */ -export interface ManagedDatabaseMoveOperationResult extends ProxyResource { +/** A restorable dropped database resource. */ +export interface RestorableDroppedDatabase extends ProxyResource { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Resource location. */ + location?: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** - * The name of operation. + * The name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly databaseName?: string; /** - * The friendly name of operation. + * The max size of the database expressed in bytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly maxSizeBytes?: number; /** - * The operation start time. + * The creation date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly creationDate?: Date; /** - * The operation state. + * The deletion date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly deletionDate?: Date; /** - * Operation mode. + * 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 operationMode?: MoveOperationMode; + readonly earliestRestoreDate?: Date; /** - * Source Managed Instance name. + * The storage account type used to store backups for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sourceManagedInstanceName?: string; + readonly backupStorageRedundancy?: BackupStorageRedundancy; + /** The resource ids of the user assigned identities to use */ + keys?: { [propertyName: string]: DatabaseKey }; +} + +/** Database restore points. */ +export interface RestorePoint extends ProxyResource { /** - * Target Managed Instance name. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetManagedInstanceName?: string; + readonly location?: string; /** - * Source Managed Instance resource id. + * The type of restore point * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sourceManagedInstanceId?: string; + readonly restorePointType?: RestorePointType; /** - * Target Managed instance resource id. + * The earliest time to which this database can be restored * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetManagedInstanceId?: string; + readonly earliestRestoreDate?: Date; /** - * Source database name. + * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sourceDatabaseName?: string; + readonly restorePointCreationDate?: Date; /** - * Target database name. + * The label of restore point for backup request by user * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetDatabaseName?: string; + readonly restorePointLabel?: string; +} + +/** A server Advanced Threat Protection. */ +export interface ServerAdvancedThreatProtection extends ProxyResource { /** - * Is move operation cancellable. + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** - * The operation error code. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly creationTime?: Date; +} + +/** Server-level Automatic Tuning. */ +export interface ServerAutomaticTuning extends ProxyResource { + /** Automatic tuning desired state. */ + desiredState?: AutomaticTuningServerMode; /** - * The operation error description. + * Automatic tuning actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDescription?: string; + readonly actualState?: AutomaticTuningServerMode; + /** Automatic tuning options definition. */ + options?: { [propertyName: string]: AutomaticTuningServerOptions }; +} + +/** Azure Active Directory administrator. */ +export interface ServerAzureADAdministrator extends ProxyResource { + /** Type of the sever administrator. */ + administratorType?: AdministratorType; + /** Login name of the server administrator. */ + login?: string; + /** SID (object ID) of the server administrator. */ + sid?: string; + /** Tenant ID of the administrator. */ + tenantId?: string; /** - * The operation error severity. + * Azure Active Directory only Authentication enabled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly azureADOnlyAuthentication?: boolean; +} + +/** Azure Active Directory only authentication. */ +export interface ServerAzureADOnlyAuthentication extends ProxyResource { + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; +} + +/** A server configuration option */ +export interface ServerConfigurationOption extends ProxyResource { + /** Value of the server configuration option. */ + serverConfigurationOptionValue?: number; /** - * Whether or not the error is a user error. + * Provisioning state of server configuration option. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUserError?: boolean; + readonly provisioningState?: ProvisioningState; } -/** SQL Managed Instance DTC */ -export interface ManagedInstanceDtc extends ProxyResource { - /** Active status of managed instance DTC. */ - dtcEnabled?: boolean; - /** Security settings of managed instance DTC. */ - securitySettings?: ManagedInstanceDtcSecuritySettings; - /** External dns suffix search list of managed instance DTC. */ - externalDnsSuffixSearchList?: string[]; +/** A server connection policy */ +export interface ServerConnectionPolicy extends ProxyResource { /** - * Host name dns suffix of managed instance DTC. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dtcHostNameDnsSuffix?: string; + readonly location?: string; /** - * Provisioning state of managed instance DTC. + * Metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; -} - -/** Synapse link workspace resource */ -export interface SynapseLinkWorkspace extends ProxyResource { - /** List of all synapselink workspaces */ - workspaces?: SynapseLinkWorkspaceInfoProperties[]; + readonly kind?: string; + /** The server connection type. */ + connectionType?: ServerConnectionType; } -/** A refresh DNS servers operation. */ -export interface UpdateVirtualClusterDnsServersOperation extends ProxyResource { +/** A server DevOps auditing settings. */ +export interface ServerDevOpsAuditingSettings extends ProxyResource { /** - * The status of the DNS refresh operation. + * SystemData of ServerDevOpsAuditSettingsResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: DNSRefreshOperationStatus; -} - -/** An instance failover group. */ -export interface InstanceFailoverGroup extends ProxyResource { - /** Type of the geo-secondary instance. Set 'Standby' if the instance is used as a DR option only. */ - secondaryType?: SecondaryInstanceType; - /** Read-write endpoint of the failover group instance. */ - readWriteEndpoint?: InstanceFailoverGroupReadWriteEndpoint; - /** Read-only endpoint of the failover group instance. */ - readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; + readonly systemData?: SystemData; /** - * Local replication role of the failover group instance. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether DevOps audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure DevOps audit, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should be also created. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly replicationRole?: InstanceFailoverGroupReplicationRole; + isAzureMonitorTargetEnabled?: boolean; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * Replication state of the failover group 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 replicationState?: string; - /** Partner region information for the failover group. */ - partnerRegions?: PartnerRegionInfo[]; - /** List of managed instance pairs in the failover group. */ - managedInstancePairs?: ManagedInstancePairInfo[]; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; } -/** A managed database restore details. */ -export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { +/** A server DNS alias. */ +export interface ServerDnsAlias extends ProxyResource { /** - * Restore type. + * The fully qualified DNS record for alias * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly typePropertiesType?: string; + readonly azureDnsRecord?: string; +} + +/** A server key. */ +export interface ServerKey extends ProxyResource { /** - * Restore status. + * 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 status?: string; + readonly kind?: string; /** - * The reason why restore is in Blocked state. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly blockReason?: string; + readonly location?: string; /** - * Last uploaded file name. + * Subregion of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastUploadedFileName?: string; + readonly subregion?: string; + /** The server key type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; + /** The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: 'https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion' */ + uri?: string; /** - * Last uploaded file time. + * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastUploadedFileTime?: Date; + readonly thumbprint?: string; /** - * Last restored file name. + * The server key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastRestoredFileName?: string; + readonly creationDate?: Date; /** - * Last restored file time. + * Key auto rotation opt-in flag. Either true or false. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastRestoredFileTime?: Date; + readonly autoRotationEnabled?: boolean; +} + +/** A server operation. */ +export interface ServerOperation extends ProxyResource { /** - * Percent completed. + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentCompleted?: number; + readonly operation?: string; /** - * Current restored size MB. + * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentRestoredSizeMB?: number; + readonly operationFriendlyName?: string; /** - * Current restore plan size MB. + * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentRestorePlanSizeMB?: number; + readonly percentComplete?: number; /** - * Current backup type. + * The name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentBackupType?: string; + readonly serverName?: string; /** - * Current restoring file name. + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentRestoringFileName?: string; + readonly startTime?: Date; /** - * Number of files detected. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesDetected?: number; + readonly state?: ManagementOperationState; /** - * Number of files queued. + * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesQueued?: number; + readonly errorCode?: number; /** - * Number of files skipped. + * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesSkipped?: number; + readonly errorDescription?: string; /** - * Number of files restoring. + * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesRestoring?: number; + readonly errorSeverity?: number; /** - * Number of files restored. + * Whether or not the error is a user error. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesRestored?: number; + readonly isUserError?: boolean; /** - * Number of files unrestorable. + * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesUnrestorable?: number; + readonly estimatedCompletionTime?: Date; /** - * Full backup sets. + * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; - /** - * Diff backup sets. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly diffBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; - /** - * Log backup sets. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly logBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + readonly description?: string; /** - * Unrestorable files. + * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unrestorableFiles?: ManagedDatabaseRestoreDetailsUnrestorableFileProperties[]; + readonly isCancellable?: boolean; } -/** An ImportExport operation result resource. */ -export interface ImportExportOperationResult extends ProxyResource { - /** - * Request Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestId?: string; - /** - * Request type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestType?: string; - /** - * Queued time. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly queuedTime?: string; - /** - * Last modified time. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastModifiedTime?: string; - /** - * Blob Uri. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly blobUri?: string; - /** - * Server name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serverName?: string; - /** - * Database name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly databaseName?: string; - /** - * Operation status. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; - /** - * Error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; +/** A server security alert policy. */ +export interface ServerSecurityAlertPolicy extends ProxyResource { /** - * Gets the status of private endpoints associated with this request. + * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; -} - -/** Azure SQL Database ledger digest upload settings. */ -export interface ManagedLedgerDigestUploads extends ProxyResource { - /** The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. */ - digestStorageEndpoint?: string; + readonly systemData?: SystemData; + /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ + state?: SecurityAlertsPolicyState; + /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; /** - * Specifies the state of ledger digest upload. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagedLedgerDigestUploadsState; + readonly creationTime?: Date; } -/** A recoverable database resource. */ -export interface RecoverableDatabase extends ProxyResource { - /** - * The edition of the database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly edition?: string; - /** - * The service level objective name of the database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serviceLevelObjective?: string; +/** Server trust certificate imported from box to enable connection between box and Sql Managed Instance. */ +export interface ServerTrustCertificate extends ProxyResource { + /** The certificate public blob */ + publicBlob?: string; /** - * The elastic pool name of the database + * The certificate thumbprint * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: string; + readonly thumbprint?: string; /** - * The last available backup date. + * The certificate name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAvailableBackupDate?: Date; - /** The resource ids of the user assigned identities to use */ - keys?: { [propertyName: string]: DatabaseKey }; + readonly certificateName?: string; } -/** A restorable dropped database resource. */ -export interface RestorableDroppedDatabase extends ProxyResource { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Resource location. */ - location?: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** - * The name of the database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly databaseName?: string; - /** - * The max size of the database expressed in bytes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maxSizeBytes?: number; +/** A server trust group. */ +export interface ServerTrustGroup extends ProxyResource { + /** Group members information for the server trust group. */ + groupMembers?: ServerInfo[]; + /** Trust scope of the server trust group. */ + trustScopes?: ServerTrustGroupPropertiesTrustScopesItem[]; +} + +/** Usage metric of a server. */ +export interface ServerUsage extends ProxyResource { /** - * The creation date of the database (ISO8601 format). + * User-readable name of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly displayName?: string; /** - * The deletion date of the database (ISO8601 format). + * Current value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deletionDate?: Date; + readonly currentValue?: number; /** - * The earliest restore date of the database (ISO8601 format). + * Boundary value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; + readonly limit?: number; /** - * The storage account type used to store backups for this database. + * Unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupStorageRedundancy?: BackupStorageRedundancy; - /** The resource ids of the user assigned identities to use */ - keys?: { [propertyName: string]: DatabaseKey }; + readonly unit?: string; } -/** A server configuration option */ -export interface ServerConfigurationOption extends ProxyResource { - /** Value of the server configuration option. */ - serverConfigurationOptionValue?: number; - /** - * Provisioning state of server configuration option. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; +/** A server vulnerability assessment. */ +export interface ServerVulnerabilityAssessment extends ProxyResource { + /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ + storageContainerPath?: string; + /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageContainerSasKey?: string; + /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageAccountAccessKey?: string; + /** The recurring scans settings */ + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; } /** An RefreshExternalGovernanceStatus operation result resource. */ @@ -8153,6 +7668,12 @@ export interface RefreshExternalGovernanceStatusOperationResult readonly errorMessage?: string; } +/** A recoverable managed database resource. */ +export interface SqlAgentConfiguration extends ProxyResource { + /** The state of Sql Agent. */ + state?: SqlAgentConfigurationPropertiesState; +} + /** Managed instance's Start/Stop schedule. */ export interface StartStopManagedInstanceSchedule extends ProxyResource { /** @@ -8178,137 +7699,252 @@ export interface StartStopManagedInstanceSchedule extends ProxyResource { readonly nextExecutionTime?: string; } -/** A logical database transparent data encryption state. */ -export interface LogicalDatabaseTransparentDataEncryption - extends ProxyResource { - /** Specifies the state of the transparent data encryption. */ - state?: TransparentDataEncryptionState; -} - -/** An Azure SQL instance pool. */ -export interface InstancePool extends TrackedResource { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Resource ID of the subnet to place this instance pool in. */ - subnetId?: string; - /** Count of vCores belonging to this instance pool. */ - vCores?: number; - /** The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). */ - licenseType?: InstancePoolLicenseType; -} - -/** An Azure SQL job agent. */ -export interface JobAgent extends TrackedResource { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Resource ID of the database to store job metadata in. */ - databaseId?: string; +/** Usage Metric of a Subscription in a Location. */ +export interface SubscriptionUsage extends ProxyResource { /** - * The state of the job agent. + * User-readable name of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: JobAgentState; -} - -/** A restorable dropped managed database resource. */ -export interface RestorableDroppedManagedDatabase extends TrackedResource { + readonly displayName?: string; /** - * The name of the database. + * Current value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly currentValue?: number; /** - * The creation date of the database (ISO8601 format). + * Boundary value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly limit?: number; /** - * The deletion date of the database (ISO8601 format). + * Unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deletionDate?: Date; + readonly unit?: string; +} + +/** Synapse link workspace resource */ +export interface SynapseLinkWorkspace extends ProxyResource { + /** List of all synapselink workspaces */ + workspaces?: SynapseLinkWorkspaceInfoProperties[]; +} + +/** An Azure SQL Database sync agent. */ +export interface SyncAgent extends ProxyResource { /** - * The earliest restore date of the database (ISO8601 format). + * Name of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; -} - -/** An Azure SQL virtual cluster. */ -export interface VirtualCluster extends TrackedResource { + readonly namePropertiesName?: string; + /** ARM resource id of the sync database in the sync agent. */ + syncDatabaseId?: string; /** - * Subnet resource ID for the virtual cluster. + * Last alive time of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subnetId?: string; - /** Virtual cluster version. */ - version?: string; + readonly lastAliveTime?: Date; /** - * List of resources in this virtual cluster. + * State of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly childResources?: string[]; + readonly state?: SyncAgentState; + /** + * If the sync agent version is up to date. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isUpToDate?: boolean; + /** + * Expiration time of the sync agent version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expiryTime?: Date; + /** + * Version of the sync agent. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly version?: string; } -/** A managed database resource. */ -export interface ManagedDatabase extends TrackedResource { - /** Collation of the managed database. */ - collation?: string; +/** An Azure SQL Database sync agent linked database. */ +export interface SyncAgentLinkedDatabase extends ProxyResource { /** - * Status of the database. + * Type of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: ManagedDatabaseStatus; + readonly databaseType?: SyncMemberDbType; /** - * Creation date of the database. + * Id of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly databaseId?: string; /** - * Earliest restore point in time for point in time restore. + * Description of the sync agent linked database. * 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 description?: string; /** - * Geo paired region. + * Server name of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly defaultSecondaryLocation?: string; - /** Collation of the metadata catalog. */ - catalogCollation?: CatalogCollationType; - /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ - createMode?: ManagedDatabaseCreateMode; - /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ - storageContainerUri?: string; - /** The resource identifier of the source database associated with create operation of this database. */ - sourceDatabaseId?: string; - /** The resource identifier of the cross-subscription source database associated with create operation of this database. */ - crossSubscriptionSourceDatabaseId?: string; - /** The restorable dropped database resource id to restore when creating this database. */ - restorableDroppedDatabaseId?: string; - /** The restorable cross-subscription dropped database resource id to restore when creating this database. */ - crossSubscriptionRestorableDroppedDatabaseId?: string; - /** Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. */ - storageContainerIdentity?: string; - /** Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. */ - storageContainerSasToken?: string; + readonly serverName?: string; /** - * Instance Failover Group resource identifier that this managed database belongs to. + * Database name of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly failoverGroupId?: string; - /** The resource identifier of the recoverable database associated with create operation of this database. */ - recoverableDatabaseId?: string; - /** The name of the Long Term Retention backup to be used for restore of this managed database. */ - longTermRetentionBackupResourceId?: string; - /** Whether to auto complete restore of this managed database. */ - autoCompleteRestore?: boolean; - /** Last backup file name for restore of this managed database. */ - lastBackupName?: string; - /** Target managed instance id used in cross-subscription restore. */ - crossSubscriptionTargetManagedInstanceId?: string; + readonly databaseName?: string; + /** + * User name of the sync agent linked database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userName?: string; +} + +/** An Azure SQL Database sync group. */ +export interface SyncGroup extends ProxyResource { + /** The name and capacity of the SKU. */ + sku?: Sku; + /** Sync interval of the sync group. */ + interval?: number; + /** + * Last sync time of the sync group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastSyncTime?: Date; + /** Conflict resolution policy of the sync group. */ + conflictResolutionPolicy?: SyncConflictResolutionPolicy; + /** ARM resource id of the sync database in the sync group. */ + syncDatabaseId?: string; + /** User name for the sync group hub database credential. */ + hubDatabaseUserName?: string; + /** Password for the sync group hub database credential. */ + hubDatabasePassword?: string; + /** + * Sync state of the sync group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly syncState?: SyncGroupState; + /** Sync schema of the sync group. */ + schema?: SyncGroupSchema; + /** If conflict logging is enabled. */ + enableConflictLogging?: boolean; + /** Conflict logging retention period. */ + conflictLoggingRetentionInDays?: number; + /** If use private link connection is enabled. */ + usePrivateLinkConnection?: boolean; + /** + * Private endpoint name of the sync group if use private link connection is enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointName?: string; +} + +/** An Azure SQL Database sync member. */ +export interface SyncMember extends ProxyResource { + /** Database type of the sync member. */ + databaseType?: SyncMemberDbType; + /** ARM resource id of the sync agent in the sync member. */ + syncAgentId?: string; + /** SQL Server database id of the sync member. */ + sqlServerDatabaseId?: string; + /** ARM resource id of the sync member logical database, for sync members in Azure. */ + syncMemberAzureDatabaseResourceId?: string; + /** Whether to use private link connection. */ + usePrivateLinkConnection?: boolean; + /** + * Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointName?: string; + /** Server name of the member database in the sync member */ + serverName?: string; + /** Database name of the member database in the sync member. */ + databaseName?: string; + /** User name of the member database in the sync member. */ + userName?: string; + /** Password of the member database in the sync member. */ + password?: string; + /** Sync direction of the sync member. */ + syncDirection?: SyncDirection; + /** + * Sync state of the sync member. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly syncState?: SyncMemberState; +} + +/** Time Zone property. */ +export interface TimeZone extends ProxyResource { + /** + * The time zone id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly timeZoneId?: string; + /** + * The time zone display name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; +} + +/** A logical database transparent data encryption state. */ +export interface LogicalDatabaseTransparentDataEncryption + extends ProxyResource { + /** Specifies the state of the transparent data encryption. */ + state?: TransparentDataEncryptionState; +} + +/** A refresh DNS servers operation. */ +export interface UpdateVirtualClusterDnsServersOperation extends ProxyResource { + /** + * The status of the DNS refresh operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: DNSRefreshOperationStatus; +} + +/** A virtual network rule. */ +export interface VirtualNetworkRule extends ProxyResource { + /** The ARM resource id of the virtual network subnet. */ + virtualNetworkSubnetId?: string; + /** Create firewall rule before the virtual network has vnet service endpoint enabled. */ + ignoreMissingVnetServiceEndpoint?: boolean; + /** + * Virtual Network Rule State + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: VirtualNetworkRuleState; +} + +/** Workload classifier operations for a data warehouse */ +export interface WorkloadClassifier extends ProxyResource { + /** The workload classifier member name. */ + memberName?: string; + /** The workload classifier label. */ + label?: string; + /** The workload classifier context. */ + context?: string; + /** The workload classifier start time for classification. */ + startTime?: string; + /** The workload classifier end time for classification. */ + endTime?: string; + /** The workload classifier importance. */ + importance?: string; +} + +/** Workload group operations for a data warehouse */ +export interface WorkloadGroup extends ProxyResource { + /** The workload group minimum percentage resource. */ + minResourcePercent?: number; + /** The workload group cap percentage resource. */ + maxResourcePercent?: number; + /** The workload group request minimum grant percentage. */ + minResourcePercentPerRequest?: number; + /** The workload group request maximum grant percentage. */ + maxResourcePercentPerRequest?: number; + /** The workload group importance level. */ + importance?: string; + /** The workload group query execution timeout. */ + queryExecutionTimeout?: number; } /** A database resource. */ @@ -8552,6 +8188,8 @@ export interface ElasticPool extends TrackedResource { readonly creationDate?: Date; /** The storage limit for the database elastic pool in bytes. */ maxSizeBytes?: number; + /** Minimal capacity that serverless pool will not shrink below, if not paused */ + minCapacity?: number; /** The per database settings for the elastic pool. */ perDatabaseSettings?: ElasticPoolPerDatabaseSettings; /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ @@ -8560,31 +8198,126 @@ export interface ElasticPool extends TrackedResource { licenseType?: ElasticPoolLicenseType; /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ maintenanceConfigurationId?: string; - /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. */ + /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. */ highAvailabilityReplicaCount?: number; + /** Type of enclave requested on the elastic pool. */ + preferredEnclaveType?: AlwaysEncryptedEnclaveType; + /** Specifies the availability zone the pool's primary replica is pinned to. */ + availabilityZone?: AvailabilityZoneType; } -/** An Azure SQL managed instance. */ -export interface ManagedInstance extends TrackedResource { - /** The Azure Active Directory identity of the managed instance. */ - identity?: ResourceIdentity; - /** Managed instance SKU. Allowed values for sku.name: GP_Gen5, GP_G8IM, GP_G8IH, BC_Gen5, BC_G8IM, BC_G8IH */ +/** An Azure SQL instance pool. */ +export interface InstancePool extends TrackedResource { + /** The name and tier of the SKU. */ 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; + /** Resource ID of the subnet to place this instance pool in. */ + subnetId?: string; + /** Count of vCores belonging to this instance pool. */ + vCores?: number; + /** The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). */ + licenseType?: InstancePoolLicenseType; +} + +/** An Azure SQL job agent. */ +export interface JobAgent extends TrackedResource { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Resource ID of the database to store job metadata in. */ + databaseId?: string; + /** + * The state of the job agent. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: JobAgentState; +} + +/** A managed database resource. */ +export interface ManagedDatabase extends TrackedResource { + /** Collation of the managed database. */ + collation?: string; + /** + * Status of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: ManagedDatabaseStatus; + /** + * Creation date of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** + * Earliest restore point in time for point in time restore. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly earliestRestorePoint?: Date; + /** Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ + restorePointInTime?: Date; + /** + * Geo paired region. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly defaultSecondaryLocation?: string; + /** Collation of the metadata catalog. */ + catalogCollation?: CatalogCollationType; + /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ + createMode?: ManagedDatabaseCreateMode; + /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ + storageContainerUri?: string; + /** The resource identifier of the source database associated with create operation of this database. */ + sourceDatabaseId?: string; + /** The resource identifier of the cross-subscription source database associated with create operation of this database. */ + crossSubscriptionSourceDatabaseId?: string; + /** The restorable dropped database resource id to restore when creating this database. */ + restorableDroppedDatabaseId?: string; + /** The restorable cross-subscription dropped database resource id to restore when creating this database. */ + crossSubscriptionRestorableDroppedDatabaseId?: string; + /** Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. */ + storageContainerIdentity?: string; + /** Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. */ + storageContainerSasToken?: string; + /** + * Instance Failover Group resource identifier that this managed database belongs to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly failoverGroupId?: string; + /** The resource identifier of the recoverable database associated with create operation of this database. */ + recoverableDatabaseId?: string; + /** The name of the Long Term Retention backup to be used for restore of this managed database. */ + longTermRetentionBackupResourceId?: string; + /** Whether to auto complete restore of this managed database. */ + autoCompleteRestore?: boolean; + /** Last backup file name for restore of this managed database. */ + lastBackupName?: string; + /** Target managed instance id used in cross-subscription restore. */ + crossSubscriptionTargetManagedInstanceId?: string; + /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ + isLedgerOn?: boolean; +} + +/** An Azure SQL managed instance. */ +export interface ManagedInstance extends TrackedResource { + /** The Azure Active Directory identity of the managed instance. */ + identity?: ResourceIdentity; + /** Managed instance SKU. Allowed values for sku.name: GP_Gen5, GP_G8IM, GP_G8IH, BC_Gen5, BC_G8IM, BC_G8IH */ + sku?: Sku; + /** + * Provisioning state of managed instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * Specifies the mode of database creation. + * + * 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). */ @@ -8656,6 +8389,35 @@ export interface ManagedInstance extends TrackedResource { administrators?: ManagedInstanceExternalAdministrator; /** The managed instance's service principal. */ servicePrincipal?: ServicePrincipal; + /** + * Virtual cluster resource id for the Managed Instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly virtualClusterId?: string; +} + +/** A restorable dropped managed database resource. */ +export interface RestorableDroppedManagedDatabase extends TrackedResource { + /** + * The name of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly databaseName?: string; + /** + * The creation date of the database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** + * The deletion date of the database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly deletionDate?: Date; + /** + * The earliest restore date of the database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly earliestRestoreDate?: Date; } /** An Azure SQL Database server. */ @@ -8714,6 +8476,22 @@ export interface Server extends TrackedResource { readonly externalGovernanceStatus?: ExternalGovernanceStatus; } +/** An Azure SQL virtual cluster. */ +export interface VirtualCluster extends TrackedResource { + /** + * Subnet resource ID for the virtual cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subnetId?: string; + /** Virtual cluster version. */ + version?: string; + /** + * List of resources in this virtual cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly childResources?: string[]; +} + /** A server firewall rule. */ export interface FirewallRule extends ProxyResourceWithWritableName { /** The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all Azure-internal IP addresses. */ @@ -8730,110 +8508,112 @@ export interface IPv6FirewallRule extends ProxyResourceWithWritableName { endIPv6Address?: string; } -/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ -export enum KnownGeoBackupPolicyName { +/** Defines headers for FailoverGroups_tryPlannedBeforeForcedFailover operation. */ +export interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders { + location?: string; +} + +/** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ +export enum KnownDiffBackupIntervalInHours { + /** Twelve */ + Twelve = 12, + /** TwentyFour */ + TwentyFour = 24 +} + +/** + * Defines values for DiffBackupIntervalInHours. \ + * {@link KnownDiffBackupIntervalInHours} can be used interchangeably with DiffBackupIntervalInHours, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **12** \ + * **24** + */ +export type DiffBackupIntervalInHours = number; + +/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ +export enum KnownShortTermRetentionPolicyName { + /** Default */ + Default = "default" +} + +/** + * Defines values for ShortTermRetentionPolicyName. \ + * {@link KnownShortTermRetentionPolicyName} can be used interchangeably with ShortTermRetentionPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type ShortTermRetentionPolicyName = string; + +/** Known values of {@link DataMaskingPolicyName} that the service accepts. */ +export enum KnownDataMaskingPolicyName { /** Default */ Default = "Default" } /** - * Defines values for GeoBackupPolicyName. \ - * {@link KnownGeoBackupPolicyName} can be used interchangeably with GeoBackupPolicyName, + * Defines values for DataMaskingPolicyName. \ + * {@link KnownDataMaskingPolicyName} can be used interchangeably with DataMaskingPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** */ -export type GeoBackupPolicyName = string; +export type DataMaskingPolicyName = string; -/** Known values of {@link UnitType} that the service accepts. */ -export enum KnownUnitType { - /** Count */ - Count = "count", - /** Bytes */ - Bytes = "bytes", - /** Seconds */ - Seconds = "seconds", - /** Percent */ - Percent = "percent", - /** CountPerSecond */ - CountPerSecond = "countPerSecond", - /** BytesPerSecond */ - BytesPerSecond = "bytesPerSecond" +/** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ +export enum KnownDataWarehouseUserActivityName { + /** Current */ + Current = "current" } /** - * Defines values for UnitType. \ - * {@link KnownUnitType} can be used interchangeably with UnitType, + * Defines values for DataWarehouseUserActivityName. \ + * {@link KnownDataWarehouseUserActivityName} can be used interchangeably with DataWarehouseUserActivityName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **count** \ - * **bytes** \ - * **seconds** \ - * **percent** \ - * **countPerSecond** \ - * **bytesPerSecond** + * **current** */ -export type UnitType = string; +export type DataWarehouseUserActivityName = string; -/** Known values of {@link PrimaryAggregationType} that the service accepts. */ -export enum KnownPrimaryAggregationType { - /** None */ - None = "None", - /** Average */ - Average = "Average", - /** Count */ - Count = "Count", - /** Minimum */ - Minimum = "Minimum", - /** Maximum */ - Maximum = "Maximum", - /** Total */ - Total = "Total" +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" } /** - * Defines values for PrimaryAggregationType. \ - * {@link KnownPrimaryAggregationType} can be used interchangeably with PrimaryAggregationType, + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **Average** \ - * **Count** \ - * **Minimum** \ - * **Maximum** \ - * **Total** + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type PrimaryAggregationType = string; +export type CreatedByType = string; -/** Known values of {@link UnitDefinitionType} that the service accepts. */ -export enum KnownUnitDefinitionType { - /** Count */ - Count = "Count", - /** Bytes */ - Bytes = "Bytes", - /** Seconds */ - Seconds = "Seconds", - /** Percent */ - Percent = "Percent", - /** CountPerSecond */ - CountPerSecond = "CountPerSecond", - /** BytesPerSecond */ - BytesPerSecond = "BytesPerSecond" +/** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */ +export enum KnownAdvancedThreatProtectionName { + /** Default */ + Default = "Default" } /** - * Defines values for UnitDefinitionType. \ - * {@link KnownUnitDefinitionType} can be used interchangeably with UnitDefinitionType, + * Defines values for AdvancedThreatProtectionName. \ + * {@link KnownAdvancedThreatProtectionName} can be used interchangeably with AdvancedThreatProtectionName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Count** \ - * **Bytes** \ - * **Seconds** \ - * **Percent** \ - * **CountPerSecond** \ - * **BytesPerSecond** + * **Default** */ -export type UnitDefinitionType = string; +export type AdvancedThreatProtectionName = string; /** Known values of {@link RecommendedActionCurrentState} that the service accepts. */ export enum KnownRecommendedActionCurrentState { @@ -9024,44 +8804,128 @@ export enum KnownTableTemporalType { */ export type TableTemporalType = string; -/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ -export enum KnownSecurityAlertPolicyName { - /** Default */ - Default = "Default" +/** Known values of {@link EncryptionProtectorName} that the service accepts. */ +export enum KnownEncryptionProtectorName { + /** Current */ + Current = "current" } /** - * Defines values for SecurityAlertPolicyName. \ - * {@link KnownSecurityAlertPolicyName} can be used interchangeably with SecurityAlertPolicyName, + * 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 - * **Default** + * **current** */ -export type SecurityAlertPolicyName = string; +export type EncryptionProtectorName = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" +/** Known values of {@link OperationMode} that the service accepts. */ +export enum KnownOperationMode { + /** PolybaseImport */ + PolybaseImport = "PolybaseImport", + /** Import */ + Import = "Import", + /** Export */ + Export = "Export" } /** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * 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 - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** + * **PolybaseImport** \ + * **Import** \ + * **Export** */ -export type CreatedByType = string; +export type OperationMode = string; + +/** Known values of {@link StorageKeyType} that the service accepts. */ +export enum KnownStorageKeyType { + /** SharedAccessKey */ + SharedAccessKey = "SharedAccessKey", + /** StorageAccessKey */ + StorageAccessKey = "StorageAccessKey" +} + +/** + * Defines values for StorageKeyType. \ + * {@link KnownStorageKeyType} can be used interchangeably with StorageKeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SharedAccessKey** \ + * **StorageAccessKey** + */ +export type StorageKeyType = string; + +/** Known values of {@link ManagementOperationState} that the service accepts. */ +export enum KnownManagementOperationState { + /** Pending */ + Pending = "Pending", + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** CancelInProgress */ + CancelInProgress = "CancelInProgress", + /** Cancelled */ + Cancelled = "Cancelled" +} + +/** + * Defines values for ManagementOperationState. \ + * {@link KnownManagementOperationState} can be used interchangeably with ManagementOperationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending** \ + * **InProgress** \ + * **Succeeded** \ + * **Failed** \ + * **CancelInProgress** \ + * **Cancelled** + */ +export type ManagementOperationState = string; + +/** Known values of {@link Phase} that the service accepts. */ +export enum KnownPhase { + /** Copying */ + Copying = "Copying", + /** Catchup */ + Catchup = "Catchup", + /** WaitingForCutover */ + WaitingForCutover = "WaitingForCutover", + /** CutoverInProgress */ + CutoverInProgress = "CutoverInProgress" +} + +/** + * Defines values for Phase. \ + * {@link KnownPhase} can be used interchangeably with Phase, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Copying** \ + * **Catchup** \ + * **WaitingForCutover** \ + * **CutoverInProgress** + */ +export type Phase = string; + +/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ +export enum KnownSecurityAlertPolicyName { + /** Default */ + Default = "default" +} + +/** + * Defines values for SecurityAlertPolicyName. \ + * {@link KnownSecurityAlertPolicyName} can be used interchangeably with SecurityAlertPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type SecurityAlertPolicyName = string; /** Known values of {@link VulnerabilityAssessmentName} that the service accepts. */ export enum KnownVulnerabilityAssessmentName { @@ -9078,6 +8942,108 @@ export enum KnownVulnerabilityAssessmentName { */ export type VulnerabilityAssessmentName = string; +/** Known values of {@link BaselineName} that the service accepts. */ +export enum KnownBaselineName { + /** Default */ + Default = "default" +} + +/** + * Defines values for BaselineName. \ + * {@link KnownBaselineName} can be used interchangeably with BaselineName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type BaselineName = string; + +/** Known values of {@link SQLVulnerabilityAssessmentName} that the service accepts. */ +export enum KnownSQLVulnerabilityAssessmentName { + /** Default */ + Default = "default" +} + +/** + * Defines values for SQLVulnerabilityAssessmentName. \ + * {@link KnownSQLVulnerabilityAssessmentName} can be used interchangeably with SQLVulnerabilityAssessmentName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type SQLVulnerabilityAssessmentName = string; + +/** Known values of {@link RuleStatus} that the service accepts. */ +export enum KnownRuleStatus { + /** NonFinding */ + NonFinding = "NonFinding", + /** Finding */ + Finding = "Finding", + /** InternalError */ + InternalError = "InternalError" +} + +/** + * Defines values for RuleStatus. \ + * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NonFinding** \ + * **Finding** \ + * **InternalError** + */ +export type RuleStatus = string; + +/** Known values of {@link RuleSeverity} that the service accepts. */ +export enum KnownRuleSeverity { + /** High */ + High = "High", + /** Medium */ + Medium = "Medium", + /** Low */ + Low = "Low", + /** Informational */ + Informational = "Informational", + /** Obsolete */ + Obsolete = "Obsolete" +} + +/** + * Defines values for RuleSeverity. \ + * {@link KnownRuleSeverity} can be used interchangeably with RuleSeverity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **High** \ + * **Medium** \ + * **Low** \ + * **Informational** \ + * **Obsolete** + */ +export type RuleSeverity = string; + +/** Known values of {@link RuleType} that the service accepts. */ +export enum KnownRuleType { + /** Binary */ + Binary = "Binary", + /** BaselineExpected */ + BaselineExpected = "BaselineExpected", + /** PositiveList */ + PositiveList = "PositiveList", + /** NegativeList */ + NegativeList = "NegativeList" +} + +/** + * Defines values for RuleType. \ + * {@link KnownRuleType} can be used interchangeably with RuleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Binary** \ + * **BaselineExpected** \ + * **PositiveList** \ + * **NegativeList** + */ +export type RuleType = string; + /** Known values of {@link VulnerabilityAssessmentScanTriggerType} that the service accepts. */ export enum KnownVulnerabilityAssessmentScanTriggerType { /** OnDemand */ @@ -9120,110 +9086,206 @@ export enum KnownVulnerabilityAssessmentScanState { */ export type VulnerabilityAssessmentScanState = string; -/** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ -export enum KnownDataWarehouseUserActivityName { - /** Current */ - Current = "current" +/** Known values of {@link SqlVulnerabilityAssessmentName} that the service accepts. */ +export enum KnownSqlVulnerabilityAssessmentName { + /** Default */ + Default = "default" } /** - * Defines values for DataWarehouseUserActivityName. \ - * {@link KnownDataWarehouseUserActivityName} can be used interchangeably with DataWarehouseUserActivityName, + * Defines values for SqlVulnerabilityAssessmentName. \ + * {@link KnownSqlVulnerabilityAssessmentName} can be used interchangeably with SqlVulnerabilityAssessmentName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **current** + * **default** */ -export type DataWarehouseUserActivityName = string; +export type SqlVulnerabilityAssessmentName = string; -/** Known values of {@link ServerKeyType} that the service accepts. */ -export enum KnownServerKeyType { - /** ServiceManaged */ - ServiceManaged = "ServiceManaged", - /** AzureKeyVault */ - AzureKeyVault = "AzureKeyVault" +/** Known values of {@link DatabaseIdentityType} that the service accepts. */ +export enum KnownDatabaseIdentityType { + /** None */ + None = "None", + /** UserAssigned */ + UserAssigned = "UserAssigned" } /** - * Defines values for ServerKeyType. \ - * {@link KnownServerKeyType} can be used interchangeably with ServerKeyType, + * 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 - * **ServiceManaged** \ - * **AzureKeyVault** + * **None** \ + * **UserAssigned** */ -export type ServerKeyType = string; +export type DatabaseIdentityType = string; -/** Known values of {@link EncryptionProtectorName} that the service accepts. */ -export enum KnownEncryptionProtectorName { - /** Current */ - Current = "current" +/** Known values of {@link CreateMode} that the service accepts. */ +export enum KnownCreateMode { + /** Default */ + Default = "Default", + /** Copy */ + Copy = "Copy", + /** Secondary */ + Secondary = "Secondary", + /** PointInTimeRestore */ + PointInTimeRestore = "PointInTimeRestore", + /** Restore */ + Restore = "Restore", + /** Recovery */ + Recovery = "Recovery", + /** RestoreExternalBackup */ + RestoreExternalBackup = "RestoreExternalBackup", + /** RestoreExternalBackupSecondary */ + RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary", + /** RestoreLongTermRetentionBackup */ + RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup", + /** OnlineSecondary */ + OnlineSecondary = "OnlineSecondary" } /** - * Defines values for EncryptionProtectorName. \ - * {@link KnownEncryptionProtectorName} can be used interchangeably with EncryptionProtectorName, + * 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 - * **current** + * **Default** \ + * **Copy** \ + * **Secondary** \ + * **PointInTimeRestore** \ + * **Restore** \ + * **Recovery** \ + * **RestoreExternalBackup** \ + * **RestoreExternalBackupSecondary** \ + * **RestoreLongTermRetentionBackup** \ + * **OnlineSecondary** */ -export type EncryptionProtectorName = string; +export type CreateMode = string; -/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadWriteEndpointFailoverPolicy { - /** Manual */ - Manual = "Manual", - /** Automatic */ - Automatic = "Automatic" +/** Known values of {@link SampleName} that the service accepts. */ +export enum KnownSampleName { + /** AdventureWorksLT */ + AdventureWorksLT = "AdventureWorksLT", + /** WideWorldImportersStd */ + WideWorldImportersStd = "WideWorldImportersStd", + /** WideWorldImportersFull */ + WideWorldImportersFull = "WideWorldImportersFull" } /** - * Defines values for ReadWriteEndpointFailoverPolicy. \ - * {@link KnownReadWriteEndpointFailoverPolicy} can be used interchangeably with ReadWriteEndpointFailoverPolicy, + * 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 - * **Manual** \ - * **Automatic** + * **AdventureWorksLT** \ + * **WideWorldImportersStd** \ + * **WideWorldImportersFull** */ -export type ReadWriteEndpointFailoverPolicy = string; +export type SampleName = string; -/** Known values of {@link ReadOnlyEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadOnlyEndpointFailoverPolicy { +/** Known values of {@link DatabaseStatus} that the service accepts. */ +export enum KnownDatabaseStatus { + /** Online */ + Online = "Online", + /** Restoring */ + Restoring = "Restoring", + /** RecoveryPending */ + RecoveryPending = "RecoveryPending", + /** Recovering */ + Recovering = "Recovering", + /** Suspect */ + Suspect = "Suspect", + /** Offline */ + Offline = "Offline", + /** Standby */ + Standby = "Standby", + /** Shutdown */ + Shutdown = "Shutdown", + /** EmergencyMode */ + EmergencyMode = "EmergencyMode", + /** AutoClosed */ + AutoClosed = "AutoClosed", + /** Copying */ + Copying = "Copying", + /** Creating */ + Creating = "Creating", + /** Inaccessible */ + Inaccessible = "Inaccessible", + /** OfflineSecondary */ + OfflineSecondary = "OfflineSecondary", + /** Pausing */ + Pausing = "Pausing", + /** Paused */ + Paused = "Paused", + /** Resuming */ + Resuming = "Resuming", + /** Scaling */ + Scaling = "Scaling", + /** OfflineChangingDwPerformanceTiers */ + OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers", + /** OnlineChangingDwPerformanceTiers */ + OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers", /** Disabled */ Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled" + /** Stopping */ + Stopping = "Stopping", + /** Stopped */ + Stopped = "Stopped", + /** Starting */ + Starting = "Starting" } /** - * Defines values for ReadOnlyEndpointFailoverPolicy. \ - * {@link KnownReadOnlyEndpointFailoverPolicy} can be used interchangeably with ReadOnlyEndpointFailoverPolicy, + * 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** \ - * **Enabled** + * **Stopping** \ + * **Stopped** \ + * **Starting** */ -export type ReadOnlyEndpointFailoverPolicy = string; +export type DatabaseStatus = string; -/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ -export enum KnownFailoverGroupReplicationRole { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** Known values of {@link CatalogCollationType} that the service accepts. */ +export enum KnownCatalogCollationType { + /** DatabaseDefault */ + DatabaseDefault = "DATABASE_DEFAULT", + /** SQLLatin1GeneralCP1CIAS */ + SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" } /** - * Defines values for FailoverGroupReplicationRole. \ - * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, + * 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 - * **Primary** \ - * **Secondary** + * **DATABASE_DEFAULT** \ + * **SQL_Latin1_General_CP1_CI_AS** */ -export type FailoverGroupReplicationRole = string; +export type CatalogCollationType = string; -/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ -export enum KnownInstancePoolLicenseType { +/** Known values of {@link DatabaseLicenseType} that the service accepts. */ +export enum KnownDatabaseLicenseType { /** LicenseIncluded */ LicenseIncluded = "LicenseIncluded", /** BasePrice */ @@ -9231,535 +9293,464 @@ export enum KnownInstancePoolLicenseType { } /** - * Defines values for InstancePoolLicenseType. \ - * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, + * Defines values for DatabaseLicenseType. \ + * {@link KnownDatabaseLicenseType} can be used interchangeably with DatabaseLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **LicenseIncluded** \ * **BasePrice** */ -export type InstancePoolLicenseType = string; +export type DatabaseLicenseType = string; -/** Known values of {@link JobAgentState} that the service accepts. */ -export enum KnownJobAgentState { - /** Creating */ - Creating = "Creating", - /** Ready */ - Ready = "Ready", - /** Updating */ - Updating = "Updating", - /** Deleting */ - Deleting = "Deleting", +/** Known values of {@link DatabaseReadScale} that the service accepts. */ +export enum KnownDatabaseReadScale { + /** Enabled */ + Enabled = "Enabled", /** Disabled */ Disabled = "Disabled" } /** - * Defines values for JobAgentState. \ - * {@link KnownJobAgentState} can be used interchangeably with JobAgentState, + * Defines values for DatabaseReadScale. \ + * {@link KnownDatabaseReadScale} can be used interchangeably with DatabaseReadScale, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ - * **Ready** \ - * **Updating** \ - * **Deleting** \ + * **Enabled** \ * **Disabled** */ -export type JobAgentState = string; +export type DatabaseReadScale = string; -/** Known values of {@link JobExecutionLifecycle} that the service accepts. */ -export enum KnownJobExecutionLifecycle { - /** Created */ - Created = "Created", - /** InProgress */ - InProgress = "InProgress", - /** WaitingForChildJobExecutions */ - WaitingForChildJobExecutions = "WaitingForChildJobExecutions", - /** WaitingForRetry */ - WaitingForRetry = "WaitingForRetry", - /** Succeeded */ - Succeeded = "Succeeded", - /** SucceededWithSkipped */ - SucceededWithSkipped = "SucceededWithSkipped", - /** Failed */ - Failed = "Failed", - /** TimedOut */ - TimedOut = "TimedOut", - /** Canceled */ - Canceled = "Canceled", - /** Skipped */ - Skipped = "Skipped" +/** Known values of {@link SecondaryType} that the service accepts. */ +export enum KnownSecondaryType { + /** Geo */ + Geo = "Geo", + /** Named */ + Named = "Named", + /** Standby */ + Standby = "Standby" } /** - * Defines values for JobExecutionLifecycle. \ - * {@link KnownJobExecutionLifecycle} can be used interchangeably with JobExecutionLifecycle, + * 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 - * **Created** \ - * **InProgress** \ - * **WaitingForChildJobExecutions** \ - * **WaitingForRetry** \ - * **Succeeded** \ - * **SucceededWithSkipped** \ - * **Failed** \ - * **TimedOut** \ - * **Canceled** \ - * **Skipped** + * **Geo** \ + * **Named** \ + * **Standby** */ -export type JobExecutionLifecycle = string; +export type SecondaryType = string; -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Created */ - Created = "Created", - /** InProgress */ - InProgress = "InProgress", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled" +/** Known values of {@link BackupStorageRedundancy} that the service accepts. */ +export enum KnownBackupStorageRedundancy { + /** Geo */ + Geo = "Geo", + /** Local */ + Local = "Local", + /** Zone */ + Zone = "Zone", + /** GeoZone */ + GeoZone = "GeoZone" } /** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * 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 - * **Created** \ - * **InProgress** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **Geo** \ + * **Local** \ + * **Zone** \ + * **GeoZone** */ -export type ProvisioningState = string; +export type BackupStorageRedundancy = string; -/** Known values of {@link JobTargetType} that the service accepts. */ -export enum KnownJobTargetType { - /** TargetGroup */ - TargetGroup = "TargetGroup", - /** SqlDatabase */ - SqlDatabase = "SqlDatabase", - /** SqlElasticPool */ - SqlElasticPool = "SqlElasticPool", - /** SqlShardMap */ - SqlShardMap = "SqlShardMap", - /** SqlServer */ - SqlServer = "SqlServer" +/** Known values of {@link DatabaseKeyType} that the service accepts. */ +export enum KnownDatabaseKeyType { + /** AzureKeyVault */ + AzureKeyVault = "AzureKeyVault" } /** - * Defines values for JobTargetType. \ - * {@link KnownJobTargetType} can be used interchangeably with JobTargetType, + * Defines values for DatabaseKeyType. \ + * {@link KnownDatabaseKeyType} can be used interchangeably with DatabaseKeyType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **TargetGroup** \ - * **SqlDatabase** \ - * **SqlElasticPool** \ - * **SqlShardMap** \ - * **SqlServer** + * **AzureKeyVault** */ -export type JobTargetType = string; +export type DatabaseKeyType = string; -/** Known values of {@link JobStepActionType} that the service accepts. */ -export enum KnownJobStepActionType { - /** TSql */ - TSql = "TSql" +/** Known values of {@link AlwaysEncryptedEnclaveType} that the service accepts. */ +export enum KnownAlwaysEncryptedEnclaveType { + /** Default */ + Default = "Default", + /** VBS */ + VBS = "VBS" } /** - * Defines values for JobStepActionType. \ - * {@link KnownJobStepActionType} can be used interchangeably with JobStepActionType, + * Defines values for AlwaysEncryptedEnclaveType. \ + * {@link KnownAlwaysEncryptedEnclaveType} can be used interchangeably with AlwaysEncryptedEnclaveType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **TSql** + * **Default** \ + * **VBS** */ -export type JobStepActionType = string; +export type AlwaysEncryptedEnclaveType = string; -/** Known values of {@link JobStepActionSource} that the service accepts. */ -export enum KnownJobStepActionSource { - /** Inline */ - Inline = "Inline" +/** Known values of {@link AvailabilityZoneType} that the service accepts. */ +export enum KnownAvailabilityZoneType { + /** NoPreference */ + NoPreference = "NoPreference", + /** One */ + One = "1", + /** Two */ + Two = "2", + /** Three */ + Three = "3" } /** - * Defines values for JobStepActionSource. \ - * {@link KnownJobStepActionSource} can be used interchangeably with JobStepActionSource, + * Defines values for AvailabilityZoneType. \ + * {@link KnownAvailabilityZoneType} can be used interchangeably with AvailabilityZoneType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Inline** + * **NoPreference** \ + * **1** \ + * **2** \ + * **3** */ -export type JobStepActionSource = string; +export type AvailabilityZoneType = string; -/** Known values of {@link JobStepOutputType} that the service accepts. */ -export enum KnownJobStepOutputType { - /** SqlDatabase */ - SqlDatabase = "SqlDatabase" +/** Known values of {@link ReplicaType} that the service accepts. */ +export enum KnownReplicaType { + /** Primary */ + Primary = "Primary", + /** ReadableSecondary */ + ReadableSecondary = "ReadableSecondary" } /** - * Defines values for JobStepOutputType. \ - * {@link KnownJobStepOutputType} can be used interchangeably with JobStepOutputType, + * 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 - * **SqlDatabase** + * **Primary** \ + * **ReadableSecondary** */ -export type JobStepOutputType = string; +export type ReplicaType = string; -/** Known values of {@link CapabilityGroup} that the service accepts. */ -export enum KnownCapabilityGroup { - /** SupportedEditions */ - SupportedEditions = "supportedEditions", - /** SupportedElasticPoolEditions */ - SupportedElasticPoolEditions = "supportedElasticPoolEditions", - /** SupportedManagedInstanceVersions */ - SupportedManagedInstanceVersions = "supportedManagedInstanceVersions", - /** SupportedInstancePoolEditions */ - SupportedInstancePoolEditions = "supportedInstancePoolEditions", - /** SupportedManagedInstanceEditions */ - SupportedManagedInstanceEditions = "supportedManagedInstanceEditions" +/** Known values of {@link ReplicationMode} that the service accepts. */ +export enum KnownReplicationMode { + /** Async */ + Async = "Async", + /** Sync */ + Sync = "Sync" } /** - * Defines values for CapabilityGroup. \ - * {@link KnownCapabilityGroup} can be used interchangeably with CapabilityGroup, + * 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 - * **supportedEditions** \ - * **supportedElasticPoolEditions** \ - * **supportedManagedInstanceVersions** \ - * **supportedInstancePoolEditions** \ - * **supportedManagedInstanceEditions** + * **Async** \ + * **Sync** */ -export type CapabilityGroup = string; +export type ReplicationMode = string; -/** Known values of {@link MaxSizeUnit} that the service accepts. */ -export enum KnownMaxSizeUnit { - /** Megabytes */ - Megabytes = "Megabytes", - /** Gigabytes */ - Gigabytes = "Gigabytes", - /** Terabytes */ - Terabytes = "Terabytes", - /** Petabytes */ - Petabytes = "Petabytes" +/** Known values of {@link InstanceRole} that the service accepts. */ +export enum KnownInstanceRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for MaxSizeUnit. \ - * {@link KnownMaxSizeUnit} can be used interchangeably with MaxSizeUnit, + * Defines values for InstanceRole. \ + * {@link KnownInstanceRole} can be used interchangeably with InstanceRole, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** + * **Primary** \ + * **Secondary** */ -export type MaxSizeUnit = string; +export type InstanceRole = string; -/** Known values of {@link LogSizeUnit} that the service accepts. */ -export enum KnownLogSizeUnit { - /** Megabytes */ - Megabytes = "Megabytes", - /** Gigabytes */ - Gigabytes = "Gigabytes", - /** Terabytes */ - Terabytes = "Terabytes", - /** Petabytes */ - Petabytes = "Petabytes", - /** Percent */ - Percent = "Percent" +/** Known values of {@link RoleChangeType} that the service accepts. */ +export enum KnownRoleChangeType { + /** Forced */ + Forced = "Forced", + /** Planned */ + Planned = "Planned" } /** - * Defines values for LogSizeUnit. \ - * {@link KnownLogSizeUnit} can be used interchangeably with LogSizeUnit, + * Defines values for RoleChangeType. \ + * {@link KnownRoleChangeType} can be used interchangeably with RoleChangeType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** \ - * **Percent** + * **Forced** \ + * **Planned** */ -export type LogSizeUnit = string; +export type RoleChangeType = string; -/** Known values of {@link PerformanceLevelUnit} that the service accepts. */ -export enum KnownPerformanceLevelUnit { - /** DTU */ - DTU = "DTU", - /** VCores */ - VCores = "VCores" +/** Known values of {@link ElasticPoolState} that the service accepts. */ +export enum KnownElasticPoolState { + /** Creating */ + Creating = "Creating", + /** Ready */ + Ready = "Ready", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for PerformanceLevelUnit. \ - * {@link KnownPerformanceLevelUnit} can be used interchangeably with PerformanceLevelUnit, + * 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 - * **DTU** \ - * **VCores** + * **Creating** \ + * **Ready** \ + * **Disabled** */ -export type PerformanceLevelUnit = string; +export type ElasticPoolState = string; -/** Known values of {@link PauseDelayTimeUnit} that the service accepts. */ -export enum KnownPauseDelayTimeUnit { - /** Minutes */ - Minutes = "Minutes" +/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ +export enum KnownElasticPoolLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for PauseDelayTimeUnit. \ - * {@link KnownPauseDelayTimeUnit} can be used interchangeably with PauseDelayTimeUnit, + * 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 - * **Minutes** + * **LicenseIncluded** \ + * **BasePrice** */ -export type PauseDelayTimeUnit = string; +export type ElasticPoolLicenseType = string; -/** Known values of {@link StorageCapabilityStorageAccountType} that the service accepts. */ -export enum KnownStorageCapabilityStorageAccountType { - /** GRS */ - GRS = "GRS", - /** LRS */ - LRS = "LRS", - /** ZRS */ - ZRS = "ZRS" +/** Known values of {@link ServerKeyType} that the service accepts. */ +export enum KnownServerKeyType { + /** ServiceManaged */ + ServiceManaged = "ServiceManaged", + /** AzureKeyVault */ + AzureKeyVault = "AzureKeyVault" } /** - * Defines values for StorageCapabilityStorageAccountType. \ - * {@link KnownStorageCapabilityStorageAccountType} can be used interchangeably with StorageCapabilityStorageAccountType, + * 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 - * **GRS** \ - * **LRS** \ - * **ZRS** + * **ServiceManaged** \ + * **AzureKeyVault** */ -export type StorageCapabilityStorageAccountType = string; +export type ServerKeyType = string; -/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ -export enum KnownLongTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ +export enum KnownReadWriteEndpointFailoverPolicy { + /** Manual */ + Manual = "Manual", + /** Automatic */ + Automatic = "Automatic" } /** - * Defines values for LongTermRetentionPolicyName. \ - * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, + * Defines values for ReadWriteEndpointFailoverPolicy. \ + * {@link KnownReadWriteEndpointFailoverPolicy} can be used interchangeably with ReadWriteEndpointFailoverPolicy, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** - */ -export type LongTermRetentionPolicyName = string; - -/** Known values of {@link DayOfWeek} that the service accepts. */ -export enum KnownDayOfWeek { - /** Sunday */ - Sunday = "Sunday", - /** Monday */ - Monday = "Monday", - /** Tuesday */ - Tuesday = "Tuesday", - /** Wednesday */ - Wednesday = "Wednesday", - /** Thursday */ - Thursday = "Thursday", - /** Friday */ - Friday = "Friday", - /** Saturday */ - Saturday = "Saturday" -} - -/** - * 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 = "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** + * **Manual** \ + * **Automatic** */ -export type ManagedShortTermRetentionPolicyName = string; +export type ReadWriteEndpointFailoverPolicy = string; -/** Known values of {@link QueryTimeGrainType} that the service accepts. */ -export enum KnownQueryTimeGrainType { - /** PT1H */ - PT1H = "PT1H", - /** P1D */ - P1D = "P1D" +/** Known values of {@link ReadOnlyEndpointFailoverPolicy} that the service accepts. */ +export enum KnownReadOnlyEndpointFailoverPolicy { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" } /** - * Defines values for QueryTimeGrainType. \ - * {@link KnownQueryTimeGrainType} can be used interchangeably with QueryTimeGrainType, + * 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 - * **PT1H** \ - * **P1D** + * **Disabled** \ + * **Enabled** */ -export type QueryTimeGrainType = string; +export type ReadOnlyEndpointFailoverPolicy = string; -/** Known values of {@link QueryMetricUnitType} that the service accepts. */ -export enum KnownQueryMetricUnitType { - /** Percentage */ - Percentage = "percentage", - /** KB */ - KB = "KB", - /** Microseconds */ - Microseconds = "microseconds", - /** Count */ - Count = "count" +/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ +export enum KnownFailoverGroupReplicationRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for QueryMetricUnitType. \ - * {@link KnownQueryMetricUnitType} can be used interchangeably with QueryMetricUnitType, + * 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 - * **percentage** \ - * **KB** \ - * **microseconds** \ - * **count** + * **Primary** \ + * **Secondary** */ -export type QueryMetricUnitType = string; +export type FailoverGroupReplicationRole = string; -/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ -export enum KnownTransparentDataEncryptionName { - /** Current */ - Current = "current" +/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ +export enum KnownGeoBackupPolicyName { + /** Default */ + Default = "Default" } /** - * Defines values for TransparentDataEncryptionName. \ - * {@link KnownTransparentDataEncryptionName} can be used interchangeably with TransparentDataEncryptionName, + * 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 - * **current** + * **Default** */ -export type TransparentDataEncryptionName = string; +export type GeoBackupPolicyName = string; -/** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ -export enum KnownManagedInstanceAdministratorType { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link SecondaryInstanceType} that the service accepts. */ +export enum KnownSecondaryInstanceType { + /** Geo */ + Geo = "Geo", + /** Standby */ + Standby = "Standby" } /** - * Defines values for ManagedInstanceAdministratorType. \ - * {@link KnownManagedInstanceAdministratorType} can be used interchangeably with ManagedInstanceAdministratorType, + * Defines values for SecondaryInstanceType. \ + * {@link KnownSecondaryInstanceType} can be used interchangeably with SecondaryInstanceType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ActiveDirectory** + * **Geo** \ + * **Standby** */ -export type ManagedInstanceAdministratorType = string; +export type SecondaryInstanceType = string; -/** Known values of {@link AdministratorName} that the service accepts. */ -export enum KnownAdministratorName { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ +export enum KnownInstanceFailoverGroupReplicationRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for AdministratorName. \ - * {@link KnownAdministratorName} can be used interchangeably with AdministratorName, + * 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 - * **ActiveDirectory** + * **Primary** \ + * **Secondary** */ -export type AdministratorName = string; +export type InstanceFailoverGroupReplicationRole = string; -/** Known values of {@link AuthenticationName} that the service accepts. */ -export enum KnownAuthenticationName { - /** Default */ - Default = "Default" +/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ +export enum KnownInstancePoolLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for AuthenticationName. \ - * {@link KnownAuthenticationName} can be used interchangeably with AuthenticationName, + * 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 - * **Default** + * **LicenseIncluded** \ + * **BasePrice** */ -export type AuthenticationName = string; +export type InstancePoolLicenseType = string; -/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedInstanceLongTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link JobAgentState} that the service accepts. */ +export enum KnownJobAgentState { + /** Creating */ + Creating = "Creating", + /** Ready */ + Ready = "Ready", + /** Updating */ + Updating = "Updating", + /** Deleting */ + Deleting = "Deleting", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for ManagedInstanceLongTermRetentionPolicyName. \ - * {@link KnownManagedInstanceLongTermRetentionPolicyName} can be used interchangeably with ManagedInstanceLongTermRetentionPolicyName, + * Defines values for JobAgentState. \ + * {@link KnownJobAgentState} can be used interchangeably with JobAgentState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **Creating** \ + * **Ready** \ + * **Updating** \ + * **Deleting** \ + * **Disabled** */ -export type ManagedInstanceLongTermRetentionPolicyName = string; +export type JobAgentState = string; -/** Known values of {@link ManagementOperationState} that the service accepts. */ -export enum KnownManagementOperationState { - /** Pending */ - Pending = "Pending", +/** Known values of {@link JobExecutionLifecycle} that the service accepts. */ +export enum KnownJobExecutionLifecycle { + /** Created */ + Created = "Created", /** InProgress */ InProgress = "InProgress", + /** WaitingForChildJobExecutions */ + WaitingForChildJobExecutions = "WaitingForChildJobExecutions", + /** WaitingForRetry */ + WaitingForRetry = "WaitingForRetry", /** Succeeded */ Succeeded = "Succeeded", + /** SucceededWithSkipped */ + SucceededWithSkipped = "SucceededWithSkipped", /** Failed */ Failed = "Failed", - /** CancelInProgress */ - CancelInProgress = "CancelInProgress", - /** Cancelled */ - Cancelled = "Cancelled" + /** TimedOut */ + TimedOut = "TimedOut", + /** Canceled */ + Canceled = "Canceled", + /** Skipped */ + Skipped = "Skipped" } /** - * Defines values for ManagementOperationState. \ - * {@link KnownManagementOperationState} can be used interchangeably with ManagementOperationState, + * 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 - * **Pending** \ + * **Created** \ * **InProgress** \ + * **WaitingForChildJobExecutions** \ + * **WaitingForRetry** \ * **Succeeded** \ + * **SucceededWithSkipped** \ * **Failed** \ - * **CancelInProgress** \ - * **Cancelled** + * **TimedOut** \ + * **Canceled** \ + * **Skipped** */ -export type ManagementOperationState = string; +export type JobExecutionLifecycle = string; -/** Known values of {@link UpsertManagedServerOperationStepStatus} that the service accepts. */ -export enum KnownUpsertManagedServerOperationStepStatus { - /** NotStarted */ - NotStarted = "NotStarted", +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Created */ + Created = "Created", /** InProgress */ InProgress = "InProgress", - /** SlowedDown */ - SlowedDown = "SlowedDown", - /** Completed */ - Completed = "Completed", + /** Succeeded */ + Succeeded = "Succeeded", /** Failed */ Failed = "Failed", /** Canceled */ @@ -9767,1888 +9758,1427 @@ export enum KnownUpsertManagedServerOperationStepStatus { } /** - * Defines values for UpsertManagedServerOperationStepStatus. \ - * {@link KnownUpsertManagedServerOperationStepStatus} can be used interchangeably with UpsertManagedServerOperationStepStatus, - * this enum contains the known values that the service supports. + * 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 - * **NotStarted** \ + * **Created** \ * **InProgress** \ - * **SlowedDown** \ - * **Completed** \ + * **Succeeded** \ * **Failed** \ * **Canceled** */ -export type UpsertManagedServerOperationStepStatus = string; +export type ProvisioningState = string; -/** Known values of {@link OperationOrigin} that the service accepts. */ -export enum KnownOperationOrigin { - /** User */ - User = "user", - /** System */ - System = "system" +/** Known values of {@link JobTargetType} that the service accepts. */ +export enum KnownJobTargetType { + /** TargetGroup */ + TargetGroup = "TargetGroup", + /** SqlDatabase */ + SqlDatabase = "SqlDatabase", + /** SqlElasticPool */ + SqlElasticPool = "SqlElasticPool", + /** SqlShardMap */ + SqlShardMap = "SqlShardMap", + /** SqlServer */ + SqlServer = "SqlServer" } /** - * Defines values for OperationOrigin. \ - * {@link KnownOperationOrigin} can be used interchangeably with OperationOrigin, + * 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 - * **user** \ - * **system** + * **TargetGroup** \ + * **SqlDatabase** \ + * **SqlElasticPool** \ + * **SqlShardMap** \ + * **SqlServer** */ -export type OperationOrigin = string; +export type JobTargetType = string; -/** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */ -export enum KnownPrivateLinkServiceConnectionStateStatus { - /** Approved */ - Approved = "Approved", - /** Pending */ - Pending = "Pending", - /** Rejected */ - Rejected = "Rejected", - /** Disconnected */ - Disconnected = "Disconnected" +/** Known values of {@link JobStepActionType} that the service accepts. */ +export enum KnownJobStepActionType { + /** TSql */ + TSql = "TSql" } /** - * Defines values for PrivateLinkServiceConnectionStateStatus. \ - * {@link KnownPrivateLinkServiceConnectionStateStatus} can be used interchangeably with PrivateLinkServiceConnectionStateStatus, + * 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 - * **Approved** \ - * **Pending** \ - * **Rejected** \ - * **Disconnected** + * **TSql** */ -export type PrivateLinkServiceConnectionStateStatus = string; +export type JobStepActionType = string; -/** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ -export enum KnownPrivateLinkServiceConnectionStateActionsRequire { - /** None */ - None = "None" +/** Known values of {@link JobStepActionSource} that the service accepts. */ +export enum KnownJobStepActionSource { + /** Inline */ + Inline = "Inline" } /** - * Defines values for PrivateLinkServiceConnectionStateActionsRequire. \ - * {@link KnownPrivateLinkServiceConnectionStateActionsRequire} can be used interchangeably with PrivateLinkServiceConnectionStateActionsRequire, + * 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 - * **None** + * **Inline** */ -export type PrivateLinkServiceConnectionStateActionsRequire = string; +export type JobStepActionSource = string; -/** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointProvisioningState { - /** Approving */ - Approving = "Approving", - /** Ready */ - Ready = "Ready", - /** Dropping */ - Dropping = "Dropping", - /** Failed */ - Failed = "Failed", - /** Rejecting */ - Rejecting = "Rejecting" +/** Known values of {@link JobStepOutputType} that the service accepts. */ +export enum KnownJobStepOutputType { + /** SqlDatabase */ + SqlDatabase = "SqlDatabase" } /** - * Defines values for PrivateEndpointProvisioningState. \ - * {@link KnownPrivateEndpointProvisioningState} can be used interchangeably with PrivateEndpointProvisioningState, + * 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 - * **Approving** \ - * **Ready** \ - * **Dropping** \ - * **Failed** \ - * **Rejecting** + * **SqlDatabase** */ -export type PrivateEndpointProvisioningState = string; +export type JobStepOutputType = string; -/** Known values of {@link AdministratorType} that the service accepts. */ -export enum KnownAdministratorType { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link LedgerDigestUploadsName} that the service accepts. */ +export enum KnownLedgerDigestUploadsName { + /** Current */ + Current = "current" } /** - * Defines values for AdministratorType. \ - * {@link KnownAdministratorType} can be used interchangeably with AdministratorType, + * 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 - * **ActiveDirectory** + * **current** */ -export type AdministratorType = string; +export type LedgerDigestUploadsName = string; -/** Known values of {@link DevOpsAuditingSettingsName} that the service accepts. */ -export enum KnownDevOpsAuditingSettingsName { - /** Default */ - Default = "Default" +/** Known values of {@link CapabilityGroup} that the service accepts. */ +export enum KnownCapabilityGroup { + /** SupportedEditions */ + SupportedEditions = "supportedEditions", + /** SupportedElasticPoolEditions */ + SupportedElasticPoolEditions = "supportedElasticPoolEditions", + /** SupportedManagedInstanceVersions */ + SupportedManagedInstanceVersions = "supportedManagedInstanceVersions", + /** SupportedInstancePoolEditions */ + SupportedInstancePoolEditions = "supportedInstancePoolEditions", + /** SupportedManagedInstanceEditions */ + SupportedManagedInstanceEditions = "supportedManagedInstanceEditions" } /** - * Defines values for DevOpsAuditingSettingsName. \ - * {@link KnownDevOpsAuditingSettingsName} can be used interchangeably with DevOpsAuditingSettingsName, + * 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 - * **Default** + * **supportedEditions** \ + * **supportedElasticPoolEditions** \ + * **supportedManagedInstanceVersions** \ + * **supportedInstancePoolEditions** \ + * **supportedManagedInstanceEditions** */ -export type DevOpsAuditingSettingsName = string; +export type CapabilityGroup = string; -/** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ -export enum KnownServerTrustGroupPropertiesTrustScopesItem { - /** GlobalTransactions */ - GlobalTransactions = "GlobalTransactions", - /** ServiceBroker */ - ServiceBroker = "ServiceBroker" +/** Known values of {@link MaxSizeUnit} that the service accepts. */ +export enum KnownMaxSizeUnit { + /** Megabytes */ + Megabytes = "Megabytes", + /** Gigabytes */ + Gigabytes = "Gigabytes", + /** Terabytes */ + Terabytes = "Terabytes", + /** Petabytes */ + Petabytes = "Petabytes" } /** - * Defines values for ServerTrustGroupPropertiesTrustScopesItem. \ - * {@link KnownServerTrustGroupPropertiesTrustScopesItem} can be used interchangeably with ServerTrustGroupPropertiesTrustScopesItem, + * 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 - * **GlobalTransactions** \ - * **ServiceBroker** + * **Megabytes** \ + * **Gigabytes** \ + * **Terabytes** \ + * **Petabytes** */ -export type ServerTrustGroupPropertiesTrustScopesItem = string; +export type MaxSizeUnit = string; -/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ -export enum KnownSqlAgentConfigurationPropertiesState { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link LogSizeUnit} that the service accepts. */ +export enum KnownLogSizeUnit { + /** Megabytes */ + Megabytes = "Megabytes", + /** Gigabytes */ + Gigabytes = "Gigabytes", + /** Terabytes */ + Terabytes = "Terabytes", + /** Petabytes */ + Petabytes = "Petabytes", + /** Percent */ + Percent = "Percent" } /** - * Defines values for SqlAgentConfigurationPropertiesState. \ - * {@link KnownSqlAgentConfigurationPropertiesState} can be used interchangeably with SqlAgentConfigurationPropertiesState, + * 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 - * **Enabled** \ - * **Disabled** + * **Megabytes** \ + * **Gigabytes** \ + * **Terabytes** \ + * **Petabytes** \ + * **Percent** */ -export type SqlAgentConfigurationPropertiesState = string; +export type LogSizeUnit = string; -/** Known values of {@link SyncAgentState} that the service accepts. */ -export enum KnownSyncAgentState { - /** Online */ - Online = "Online", - /** Offline */ - Offline = "Offline", - /** NeverConnected */ - NeverConnected = "NeverConnected" +/** Known values of {@link PerformanceLevelUnit} that the service accepts. */ +export enum KnownPerformanceLevelUnit { + /** DTU */ + DTU = "DTU", + /** VCores */ + VCores = "VCores" } /** - * Defines values for SyncAgentState. \ - * {@link KnownSyncAgentState} can be used interchangeably with SyncAgentState, + * 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 - * **Online** \ - * **Offline** \ - * **NeverConnected** + * **DTU** \ + * **VCores** */ -export type SyncAgentState = string; +export type PerformanceLevelUnit = string; -/** Known values of {@link SyncMemberDbType} that the service accepts. */ -export enum KnownSyncMemberDbType { - /** AzureSqlDatabase */ - AzureSqlDatabase = "AzureSqlDatabase", - /** SqlServerDatabase */ - SqlServerDatabase = "SqlServerDatabase" +/** Known values of {@link PauseDelayTimeUnit} that the service accepts. */ +export enum KnownPauseDelayTimeUnit { + /** Minutes */ + Minutes = "Minutes" } /** - * Defines values for SyncMemberDbType. \ - * {@link KnownSyncMemberDbType} can be used interchangeably with SyncMemberDbType, + * 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 - * **AzureSqlDatabase** \ - * **SqlServerDatabase** + * **Minutes** */ -export type SyncMemberDbType = string; +export type PauseDelayTimeUnit = string; -/** Known values of {@link SyncGroupsType} that the service accepts. */ -export enum KnownSyncGroupsType { - /** All */ - All = "All", - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning", - /** Success */ - Success = "Success" +/** Known values of {@link StorageCapabilityStorageAccountType} that the service accepts. */ +export enum KnownStorageCapabilityStorageAccountType { + /** GRS */ + GRS = "GRS", + /** LRS */ + LRS = "LRS", + /** ZRS */ + ZRS = "ZRS", + /** Gzrs */ + Gzrs = "GZRS" } /** - * Defines values for SyncGroupsType. \ - * {@link KnownSyncGroupsType} can be used interchangeably with SyncGroupsType, + * 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 - * **All** \ - * **Error** \ - * **Warning** \ - * **Success** + * **GRS** \ + * **LRS** \ + * **ZRS** \ + * **GZRS** */ -export type SyncGroupsType = string; +export type StorageCapabilityStorageAccountType = string; -/** Known values of {@link SyncGroupLogType} that the service accepts. */ -export enum KnownSyncGroupLogType { +/** Known values of {@link DatabaseState} that the service accepts. */ +export enum KnownDatabaseState { /** All */ All = "All", - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning", - /** Success */ - Success = "Success" + /** Live */ + Live = "Live", + /** Deleted */ + Deleted = "Deleted" } /** - * Defines values for SyncGroupLogType. \ - * {@link KnownSyncGroupLogType} can be used interchangeably with SyncGroupLogType, + * 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** \ - * **Error** \ - * **Warning** \ - * **Success** + * **Live** \ + * **Deleted** */ -export type SyncGroupLogType = string; +export type DatabaseState = string; -/** Known values of {@link SyncConflictResolutionPolicy} that the service accepts. */ -export enum KnownSyncConflictResolutionPolicy { - /** HubWin */ - HubWin = "HubWin", - /** MemberWin */ - MemberWin = "MemberWin" +/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ +export enum KnownLongTermRetentionPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for SyncConflictResolutionPolicy. \ - * {@link KnownSyncConflictResolutionPolicy} can be used interchangeably with SyncConflictResolutionPolicy, + * 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 - * **HubWin** \ - * **MemberWin** + * **default** */ -export type SyncConflictResolutionPolicy = string; +export type LongTermRetentionPolicyName = string; -/** Known values of {@link SyncGroupState} that the service accepts. */ -export enum KnownSyncGroupState { - /** NotReady */ - NotReady = "NotReady", - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning", - /** Progressing */ - Progressing = "Progressing", - /** Good */ - Good = "Good" +/** Known values of {@link DayOfWeek} that the service accepts. */ +export enum KnownDayOfWeek { + /** Sunday */ + Sunday = "Sunday", + /** Monday */ + Monday = "Monday", + /** Tuesday */ + Tuesday = "Tuesday", + /** Wednesday */ + Wednesday = "Wednesday", + /** Thursday */ + Thursday = "Thursday", + /** Friday */ + Friday = "Friday", + /** Saturday */ + Saturday = "Saturday" } /** - * Defines values for SyncGroupState. \ - * {@link KnownSyncGroupState} can be used interchangeably with SyncGroupState, + * 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 - * **NotReady** \ - * **Error** \ - * **Warning** \ - * **Progressing** \ - * **Good** + * **Sunday** \ + * **Monday** \ + * **Tuesday** \ + * **Wednesday** \ + * **Thursday** \ + * **Friday** \ + * **Saturday** */ -export type SyncGroupState = string; +export type DayOfWeek = string; -/** Known values of {@link SyncDirection} that the service accepts. */ -export enum KnownSyncDirection { - /** Bidirectional */ - Bidirectional = "Bidirectional", - /** OneWayMemberToHub */ - OneWayMemberToHub = "OneWayMemberToHub", - /** OneWayHubToMember */ - OneWayHubToMember = "OneWayHubToMember" +/** Known values of {@link ManagedShortTermRetentionPolicyName} that the service accepts. */ +export enum KnownManagedShortTermRetentionPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for SyncDirection. \ - * {@link KnownSyncDirection} can be used interchangeably with SyncDirection, + * 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 - * **Bidirectional** \ - * **OneWayMemberToHub** \ - * **OneWayHubToMember** + * **default** */ -export type SyncDirection = string; +export type ManagedShortTermRetentionPolicyName = string; -/** Known values of {@link SyncMemberState} that the service accepts. */ -export enum KnownSyncMemberState { - /** SyncInProgress */ - SyncInProgress = "SyncInProgress", - /** SyncSucceeded */ - SyncSucceeded = "SyncSucceeded", - /** SyncFailed */ - SyncFailed = "SyncFailed", - /** DisabledTombstoneCleanup */ - DisabledTombstoneCleanup = "DisabledTombstoneCleanup", - /** DisabledBackupRestore */ - DisabledBackupRestore = "DisabledBackupRestore", - /** SyncSucceededWithWarnings */ - SyncSucceededWithWarnings = "SyncSucceededWithWarnings", - /** SyncCancelling */ - SyncCancelling = "SyncCancelling", - /** SyncCancelled */ - SyncCancelled = "SyncCancelled", - /** UnProvisioned */ - UnProvisioned = "UnProvisioned", - /** Provisioning */ - Provisioning = "Provisioning", - /** Provisioned */ - Provisioned = "Provisioned", - /** ProvisionFailed */ - ProvisionFailed = "ProvisionFailed", - /** DeProvisioning */ - DeProvisioning = "DeProvisioning", - /** DeProvisioned */ - DeProvisioned = "DeProvisioned", - /** DeProvisionFailed */ - DeProvisionFailed = "DeProvisionFailed", - /** Reprovisioning */ - Reprovisioning = "Reprovisioning", - /** ReprovisionFailed */ - ReprovisionFailed = "ReprovisionFailed", - /** UnReprovisioned */ - UnReprovisioned = "UnReprovisioned" +/** Known values of {@link MoveOperationMode} that the service accepts. */ +export enum KnownMoveOperationMode { + /** Move */ + Move = "Move", + /** Copy */ + Copy = "Copy" } /** - * Defines values for SyncMemberState. \ - * {@link KnownSyncMemberState} can be used interchangeably with SyncMemberState, + * Defines values for MoveOperationMode. \ + * {@link KnownMoveOperationMode} can be used interchangeably with MoveOperationMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SyncInProgress** \ - * **SyncSucceeded** \ - * **SyncFailed** \ - * **DisabledTombstoneCleanup** \ - * **DisabledBackupRestore** \ - * **SyncSucceededWithWarnings** \ - * **SyncCancelling** \ - * **SyncCancelled** \ - * **UnProvisioned** \ - * **Provisioning** \ - * **Provisioned** \ - * **ProvisionFailed** \ - * **DeProvisioning** \ - * **DeProvisioned** \ - * **DeProvisionFailed** \ - * **Reprovisioning** \ - * **ReprovisionFailed** \ - * **UnReprovisioned** + * **Move** \ + * **Copy** */ -export type SyncMemberState = string; +export type MoveOperationMode = string; -/** Known values of {@link VirtualNetworkRuleState} that the service accepts. */ -export enum KnownVirtualNetworkRuleState { - /** Initializing */ - Initializing = "Initializing", - /** InProgress */ - InProgress = "InProgress", - /** Ready */ - Ready = "Ready", - /** Failed */ - Failed = "Failed", - /** Deleting */ - Deleting = "Deleting", - /** Unknown */ - Unknown = "Unknown" +/** Known values of {@link QueryTimeGrainType} that the service accepts. */ +export enum KnownQueryTimeGrainType { + /** PT1H */ + PT1H = "PT1H", + /** P1D */ + P1D = "P1D" } /** - * Defines values for VirtualNetworkRuleState. \ - * {@link KnownVirtualNetworkRuleState} can be used interchangeably with VirtualNetworkRuleState, + * 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 - * **Initializing** \ - * **InProgress** \ - * **Ready** \ - * **Failed** \ - * **Deleting** \ - * **Unknown** + * **PT1H** \ + * **P1D** */ -export type VirtualNetworkRuleState = string; - -/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownShortTermRetentionPolicyName { - /** Default */ - Default = "default" -} +export type QueryTimeGrainType = string; -/** - * Defines values for ShortTermRetentionPolicyName. \ - * {@link KnownShortTermRetentionPolicyName} can be used interchangeably with ShortTermRetentionPolicyName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **default** - */ -export type ShortTermRetentionPolicyName = string; - -/** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ -export enum KnownDiffBackupIntervalInHours { - /** Twelve */ - Twelve = 12, - /** TwentyFour */ - TwentyFour = 24 -} - -/** - * Defines values for DiffBackupIntervalInHours. \ - * {@link KnownDiffBackupIntervalInHours} can be used interchangeably with DiffBackupIntervalInHours, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **12** \ - * **24** - */ -export type DiffBackupIntervalInHours = number; - -/** Known values of {@link OperationMode} that the service accepts. */ -export enum KnownOperationMode { - /** PolybaseImport */ - PolybaseImport = "PolybaseImport" +/** Known values of {@link QueryMetricUnitType} that the service accepts. */ +export enum KnownQueryMetricUnitType { + /** Percentage */ + Percentage = "percentage", + /** KB */ + KB = "KB", + /** Microseconds */ + Microseconds = "microseconds", + /** Count */ + Count = "count" } /** - * Defines values for OperationMode. \ - * {@link KnownOperationMode} can be used interchangeably with OperationMode, + * 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 - * **PolybaseImport** + * **percentage** \ + * **KB** \ + * **microseconds** \ + * **count** */ -export type OperationMode = string; +export type QueryMetricUnitType = string; -/** Known values of {@link StorageKeyType} that the service accepts. */ -export enum KnownStorageKeyType { - /** SharedAccessKey */ - SharedAccessKey = "SharedAccessKey", - /** StorageAccessKey */ - StorageAccessKey = "StorageAccessKey" +/** Known values of {@link RestoreDetailsName} that the service accepts. */ +export enum KnownRestoreDetailsName { + /** Default */ + Default = "Default" } /** - * Defines values for StorageKeyType. \ - * {@link KnownStorageKeyType} can be used interchangeably with StorageKeyType, + * 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 - * **SharedAccessKey** \ - * **StorageAccessKey** + * **Default** */ -export type StorageKeyType = string; +export type RestoreDetailsName = string; -/** Known values of {@link LedgerDigestUploadsName} that the service accepts. */ -export enum KnownLedgerDigestUploadsName { +/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ +export enum KnownTransparentDataEncryptionName { /** Current */ Current = "current" } /** - * Defines values for LedgerDigestUploadsName. \ - * {@link KnownLedgerDigestUploadsName} can be used interchangeably with LedgerDigestUploadsName, + * Defines values for TransparentDataEncryptionName. \ + * {@link KnownTransparentDataEncryptionName} can be used interchangeably with TransparentDataEncryptionName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **current** */ -export type LedgerDigestUploadsName = string; - -/** Known values of {@link BackupStorageRedundancy} that the service accepts. */ -export enum KnownBackupStorageRedundancy { - /** Geo */ - Geo = "Geo", - /** Local */ - Local = "Local", - /** Zone */ - Zone = "Zone", - /** GeoZone */ - GeoZone = "GeoZone" -} - -/** - * 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; +export type TransparentDataEncryptionName = string; -/** Known values of {@link DatabaseState} that the service accepts. */ -export enum KnownDatabaseState { - /** All */ - All = "All", - /** Live */ - Live = "Live", - /** Deleted */ - Deleted = "Deleted" +/** Known values of {@link ManagedDatabaseStatus} that the service accepts. */ +export enum KnownManagedDatabaseStatus { + /** Online */ + Online = "Online", + /** Offline */ + Offline = "Offline", + /** Shutdown */ + Shutdown = "Shutdown", + /** Creating */ + Creating = "Creating", + /** Inaccessible */ + Inaccessible = "Inaccessible", + /** Restoring */ + Restoring = "Restoring", + /** Updating */ + Updating = "Updating", + /** Stopping */ + Stopping = "Stopping", + /** Stopped */ + Stopped = "Stopped", + /** Starting */ + Starting = "Starting", + /** DbMoving */ + DbMoving = "DbMoving", + /** DbCopying */ + DbCopying = "DbCopying" } /** - * Defines values for DatabaseState. \ - * {@link KnownDatabaseState} can be used interchangeably with DatabaseState, + * 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 - * **All** \ - * **Live** \ - * **Deleted** + * **Online** \ + * **Offline** \ + * **Shutdown** \ + * **Creating** \ + * **Inaccessible** \ + * **Restoring** \ + * **Updating** \ + * **Stopping** \ + * **Stopped** \ + * **Starting** \ + * **DbMoving** \ + * **DbCopying** */ -export type DatabaseState = string; +export type ManagedDatabaseStatus = string; -/** Known values of {@link ConnectionPolicyName} that the service accepts. */ -export enum KnownConnectionPolicyName { +/** Known values of {@link ManagedDatabaseCreateMode} that the service accepts. */ +export enum KnownManagedDatabaseCreateMode { /** Default */ - Default = "default" + Default = "Default", + /** RestoreExternalBackup */ + RestoreExternalBackup = "RestoreExternalBackup", + /** PointInTimeRestore */ + PointInTimeRestore = "PointInTimeRestore", + /** Recovery */ + Recovery = "Recovery", + /** RestoreLongTermRetentionBackup */ + RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup" } /** - * Defines values for ConnectionPolicyName. \ - * {@link KnownConnectionPolicyName} can be used interchangeably with ConnectionPolicyName, + * 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 ConnectionPolicyName = string; +export type ManagedDatabaseCreateMode = string; -/** Known values of {@link ServerConnectionType} that the service accepts. */ -export enum KnownServerConnectionType { - /** Default */ - Default = "Default", - /** Redirect */ - Redirect = "Redirect", - /** Proxy */ - Proxy = "Proxy" +/** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ +export enum KnownManagedInstanceAdministratorType { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for ServerConnectionType. \ - * {@link KnownServerConnectionType} can be used interchangeably with ServerConnectionType, + * 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 - * **Default** \ - * **Redirect** \ - * **Proxy** + * **ActiveDirectory** */ -export type ServerConnectionType = string; +export type ManagedInstanceAdministratorType = string; -/** Known values of {@link ReplicationMode} that the service accepts. */ -export enum KnownReplicationMode { - /** Async */ - Async = "Async", - /** Sync */ - Sync = "Sync" +/** Known values of {@link AdministratorName} that the service accepts. */ +export enum KnownAdministratorName { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for ReplicationMode. \ - * {@link KnownReplicationMode} can be used interchangeably with ReplicationMode, + * 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 - * **Async** \ - * **Sync** + * **ActiveDirectory** */ -export type ReplicationMode = string; +export type AdministratorName = string; -/** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */ -export enum KnownAdvancedThreatProtectionName { +/** Known values of {@link AuthenticationName} that the service accepts. */ +export enum KnownAuthenticationName { /** Default */ Default = "Default" } /** - * Defines values for AdvancedThreatProtectionName. \ - * {@link KnownAdvancedThreatProtectionName} can be used interchangeably with AdvancedThreatProtectionName, + * Defines values for AuthenticationName. \ + * {@link KnownAuthenticationName} can be used interchangeably with AuthenticationName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** */ -export type AdvancedThreatProtectionName = string; +export type AuthenticationName = string; -/** Known values of {@link BaselineName} that the service accepts. */ -export enum KnownBaselineName { - /** Default */ - Default = "default" +/** Known values of {@link DtcName} that the service accepts. */ +export enum KnownDtcName { + /** Current */ + Current = "current" } /** - * Defines values for BaselineName. \ - * {@link KnownBaselineName} can be used interchangeably with BaselineName, + * Defines values for DtcName. \ + * {@link KnownDtcName} can be used interchangeably with DtcName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **current** */ -export type BaselineName = string; +export type DtcName = string; -/** Known values of {@link SQLVulnerabilityAssessmentName} that the service accepts. */ -export enum KnownSQLVulnerabilityAssessmentName { +/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ +export enum KnownManagedInstanceLongTermRetentionPolicyName { /** Default */ Default = "default" } /** - * Defines values for SQLVulnerabilityAssessmentName. \ - * {@link KnownSQLVulnerabilityAssessmentName} can be used interchangeably with SQLVulnerabilityAssessmentName, + * Defines values for ManagedInstanceLongTermRetentionPolicyName. \ + * {@link KnownManagedInstanceLongTermRetentionPolicyName} can be used interchangeably with ManagedInstanceLongTermRetentionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **default** */ -export type SQLVulnerabilityAssessmentName = string; +export type ManagedInstanceLongTermRetentionPolicyName = string; -/** Known values of {@link RuleStatus} that the service accepts. */ -export enum KnownRuleStatus { - /** NonFinding */ - NonFinding = "NonFinding", - /** Finding */ - Finding = "Finding", - /** InternalError */ - InternalError = "InternalError" +/** Known values of {@link Status} that the service accepts. */ +export enum KnownStatus { + /** NotStarted */ + NotStarted = "NotStarted", + /** InProgress */ + InProgress = "InProgress", + /** SlowedDown */ + SlowedDown = "SlowedDown", + /** Completed */ + Completed = "Completed", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" } /** - * Defines values for RuleStatus. \ - * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, + * Defines values for Status. \ + * {@link KnownStatus} can be used interchangeably with Status, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NonFinding** \ - * **Finding** \ - * **InternalError** + * **NotStarted** \ + * **InProgress** \ + * **SlowedDown** \ + * **Completed** \ + * **Failed** \ + * **Canceled** */ -export type RuleStatus = string; +export type Status = string; -/** Known values of {@link RuleSeverity} that the service accepts. */ -export enum KnownRuleSeverity { - /** High */ - High = "High", - /** Medium */ - Medium = "Medium", - /** Low */ - Low = "Low", - /** Informational */ - Informational = "Informational", - /** Obsolete */ - Obsolete = "Obsolete" +/** Known values of {@link IdentityType} that the service accepts. */ +export enum KnownIdentityType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" } /** - * Defines values for RuleSeverity. \ - * {@link KnownRuleSeverity} can be used interchangeably with RuleSeverity, + * 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 - * **High** \ - * **Medium** \ - * **Low** \ - * **Informational** \ - * **Obsolete** + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned,UserAssigned** */ -export type RuleSeverity = string; +export type IdentityType = string; -/** Known values of {@link RuleType} that the service accepts. */ -export enum KnownRuleType { - /** Binary */ - Binary = "Binary", - /** BaselineExpected */ - BaselineExpected = "BaselineExpected", - /** PositiveList */ - PositiveList = "PositiveList", - /** NegativeList */ - NegativeList = "NegativeList" +/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ +export enum KnownManagedServerCreateMode { + /** Default */ + Default = "Default", + /** PointInTimeRestore */ + PointInTimeRestore = "PointInTimeRestore" } /** - * Defines values for RuleType. \ - * {@link KnownRuleType} can be used interchangeably with RuleType, + * 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 - * **Binary** \ - * **BaselineExpected** \ - * **PositiveList** \ - * **NegativeList** + * **Default** \ + * **PointInTimeRestore** */ -export type RuleType = string; +export type ManagedServerCreateMode = string; -/** Known values of {@link SqlVulnerabilityAssessmentName} that the service accepts. */ -export enum KnownSqlVulnerabilityAssessmentName { - /** Default */ - Default = "default" +/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ +export enum KnownManagedInstanceLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for SqlVulnerabilityAssessmentName. \ - * {@link KnownSqlVulnerabilityAssessmentName} can be used interchangeably with SqlVulnerabilityAssessmentName, + * Defines values for ManagedInstanceLicenseType. \ + * {@link KnownManagedInstanceLicenseType} can be used interchangeably with ManagedInstanceLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **LicenseIncluded** \ + * **BasePrice** */ -export type SqlVulnerabilityAssessmentName = string; +export type ManagedInstanceLicenseType = string; -/** Known values of {@link ReplicationState} that the service accepts. */ -export enum KnownReplicationState { - /** Pending */ - Pending = "PENDING", - /** Seeding */ - Seeding = "SEEDING", - /** CatchUP */ - CatchUP = "CATCH_UP", - /** Suspended */ - Suspended = "SUSPENDED" +/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ +export enum KnownManagedInstanceProxyOverride { + /** Proxy */ + Proxy = "Proxy", + /** Redirect */ + Redirect = "Redirect", + /** Default */ + Default = "Default" } /** - * Defines values for ReplicationState. \ - * {@link KnownReplicationState} can be used interchangeably with ReplicationState, + * 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 - * **PENDING** \ - * **SEEDING** \ - * **CATCH_UP** \ - * **SUSPENDED** + * **Proxy** \ + * **Redirect** \ + * **Default** */ -export type ReplicationState = string; +export type ManagedInstanceProxyOverride = string; -/** Known values of {@link ReplicationLinkType} that the service accepts. */ -export enum KnownReplicationLinkType { - /** GEO */ - GEO = "GEO", - /** Named */ - Named = "NAMED", - /** Standby */ - Standby = "STANDBY" +/** Known values of {@link AdministratorType} that the service accepts. */ +export enum KnownAdministratorType { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for ReplicationLinkType. \ - * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType, + * 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 - * **GEO** \ - * **NAMED** \ - * **STANDBY** + * **ActiveDirectory** */ -export type ReplicationLinkType = string; +export type AdministratorType = string; -/** Known values of {@link MoveOperationMode} that the service accepts. */ -export enum KnownMoveOperationMode { - /** Move */ - Move = "Move", - /** Copy */ - Copy = "Copy" +/** Known values of {@link PrincipalType} that the service accepts. */ +export enum KnownPrincipalType { + /** User */ + User = "User", + /** Group */ + Group = "Group", + /** Application */ + Application = "Application" } /** - * Defines values for MoveOperationMode. \ - * {@link KnownMoveOperationMode} can be used interchangeably with MoveOperationMode, + * 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 - * **Move** \ - * **Copy** + * **User** \ + * **Group** \ + * **Application** */ -export type MoveOperationMode = string; +export type PrincipalType = string; -/** Known values of {@link DtcName} that the service accepts. */ -export enum KnownDtcName { - /** Current */ - Current = "current" +/** Known values of {@link ServicePrincipalType} that the service accepts. */ +export enum KnownServicePrincipalType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned" } /** - * Defines values for DtcName. \ - * {@link KnownDtcName} can be used interchangeably with DtcName, + * 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 - * **current** + * **None** \ + * **SystemAssigned** */ -export type DtcName = string; +export type ServicePrincipalType = string; -/** Known values of {@link DNSRefreshOperationStatus} that the service accepts. */ -export enum KnownDNSRefreshOperationStatus { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** InProgress */ - InProgress = "InProgress" +/** Known values of {@link AggregationFunctionType} that the service accepts. */ +export enum KnownAggregationFunctionType { + /** Avg */ + Avg = "avg", + /** Min */ + Min = "min", + /** Max */ + Max = "max", + /** Stdev */ + Stdev = "stdev", + /** Sum */ + Sum = "sum" } /** - * Defines values for DNSRefreshOperationStatus. \ - * {@link KnownDNSRefreshOperationStatus} can be used interchangeably with DNSRefreshOperationStatus, + * 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 - * **Succeeded** \ - * **Failed** \ - * **InProgress** + * **avg** \ + * **min** \ + * **max** \ + * **stdev** \ + * **sum** */ -export type DNSRefreshOperationStatus = string; - -/** Known values of {@link SecondaryInstanceType} that the service accepts. */ -export enum KnownSecondaryInstanceType { - /** Geo */ - Geo = "Geo", - /** Standby */ - Standby = "Standby" -} +export type AggregationFunctionType = string; -/** - * Defines values for SecondaryInstanceType. \ - * {@link KnownSecondaryInstanceType} can be used interchangeably with SecondaryInstanceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Geo** \ - * **Standby** - */ -export type SecondaryInstanceType = string; - -/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ -export enum KnownInstanceFailoverGroupReplicationRole { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** Known values of {@link MetricType} that the service accepts. */ +export enum KnownMetricType { + /** Cpu */ + Cpu = "cpu", + /** Io */ + Io = "io", + /** LogIo */ + LogIo = "logIo", + /** Duration */ + Duration = "duration", + /** Dtu */ + Dtu = "dtu" } /** - * Defines values for InstanceFailoverGroupReplicationRole. \ - * {@link KnownInstanceFailoverGroupReplicationRole} can be used interchangeably with InstanceFailoverGroupReplicationRole, + * 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 - * **Primary** \ - * **Secondary** + * **cpu** \ + * **io** \ + * **logIo** \ + * **duration** \ + * **dtu** */ -export type InstanceFailoverGroupReplicationRole = string; +export type MetricType = string; -/** Known values of {@link RestoreDetailsName} that the service accepts. */ -export enum KnownRestoreDetailsName { - /** Default */ - Default = "Default" +/** Known values of {@link ManagedLedgerDigestUploadsState} that the service accepts. */ +export enum KnownManagedLedgerDigestUploadsState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for RestoreDetailsName. \ - * {@link KnownRestoreDetailsName} can be used interchangeably with RestoreDetailsName, + * Defines values for ManagedLedgerDigestUploadsState. \ + * {@link KnownManagedLedgerDigestUploadsState} can be used interchangeably with ManagedLedgerDigestUploadsState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** + * **Enabled** \ + * **Disabled** */ -export type RestoreDetailsName = string; +export type ManagedLedgerDigestUploadsState = string; -/** Known values of {@link ManagedDatabaseStatus} that the service accepts. */ -export enum KnownManagedDatabaseStatus { - /** Online */ - Online = "Online", - /** Offline */ - Offline = "Offline", - /** Shutdown */ - Shutdown = "Shutdown", - /** Creating */ - Creating = "Creating", - /** Inaccessible */ - Inaccessible = "Inaccessible", - /** Restoring */ - Restoring = "Restoring", - /** Updating */ - Updating = "Updating", - /** Stopping */ - Stopping = "Stopping", - /** Stopped */ - Stopped = "Stopped", - /** Starting */ - Starting = "Starting", - /** DbMoving */ - DbMoving = "DbMoving", - /** DbCopying */ - DbCopying = "DbCopying" +/** Known values of {@link ManagedLedgerDigestUploadsName} that the service accepts. */ +export enum KnownManagedLedgerDigestUploadsName { + /** Current */ + Current = "current" } /** - * Defines values for ManagedDatabaseStatus. \ - * {@link KnownManagedDatabaseStatus} can be used interchangeably with ManagedDatabaseStatus, + * Defines values for ManagedLedgerDigestUploadsName. \ + * {@link KnownManagedLedgerDigestUploadsName} can be used interchangeably with ManagedLedgerDigestUploadsName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Online** \ - * **Offline** \ - * **Shutdown** \ - * **Creating** \ - * **Inaccessible** \ - * **Restoring** \ - * **Updating** \ - * **Stopping** \ - * **Stopped** \ - * **Starting** \ - * **DbMoving** \ - * **DbCopying** + * **current** */ -export type ManagedDatabaseStatus = string; +export type ManagedLedgerDigestUploadsName = string; -/** Known values of {@link CatalogCollationType} that the service accepts. */ -export enum KnownCatalogCollationType { - /** DatabaseDefault */ - DatabaseDefault = "DATABASE_DEFAULT", - /** SQLLatin1GeneralCP1CIAS */ - SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" +/** Known values of {@link SecurityAlertPolicyNameAutoGenerated} that the service accepts. */ +export enum KnownSecurityAlertPolicyNameAutoGenerated { + /** Default */ + Default = "Default" } /** - * Defines values for CatalogCollationType. \ - * {@link KnownCatalogCollationType} can be used interchangeably with CatalogCollationType, + * Defines values for SecurityAlertPolicyNameAutoGenerated. \ + * {@link KnownSecurityAlertPolicyNameAutoGenerated} can be used interchangeably with SecurityAlertPolicyNameAutoGenerated, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **DATABASE_DEFAULT** \ - * **SQL_Latin1_General_CP1_CI_AS** + * **Default** */ -export type CatalogCollationType = string; +export type SecurityAlertPolicyNameAutoGenerated = string; -/** Known values of {@link ManagedDatabaseCreateMode} that the service accepts. */ -export enum KnownManagedDatabaseCreateMode { - /** Default */ - Default = "Default", - /** RestoreExternalBackup */ - RestoreExternalBackup = "RestoreExternalBackup", - /** PointInTimeRestore */ - PointInTimeRestore = "PointInTimeRestore", - /** Recovery */ - Recovery = "Recovery", - /** RestoreLongTermRetentionBackup */ - RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup" +/** Known values of {@link OperationOrigin} that the service accepts. */ +export enum KnownOperationOrigin { + /** User */ + User = "user", + /** System */ + System = "system" } /** - * Defines values for ManagedDatabaseCreateMode. \ - * {@link KnownManagedDatabaseCreateMode} can be used interchangeably with ManagedDatabaseCreateMode, + * Defines values for OperationOrigin. \ + * {@link KnownOperationOrigin} can be used interchangeably with OperationOrigin, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** \ - * **RestoreExternalBackup** \ - * **PointInTimeRestore** \ - * **Recovery** \ - * **RestoreLongTermRetentionBackup** + * **user** \ + * **system** */ -export type ManagedDatabaseCreateMode = string; +export type OperationOrigin = string; -/** Known values of {@link DatabaseIdentityType} that the service accepts. */ -export enum KnownDatabaseIdentityType { - /** None */ - None = "None", - /** UserAssigned */ - UserAssigned = "UserAssigned" +/** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */ +export enum KnownPrivateLinkServiceConnectionStateStatus { + /** Approved */ + Approved = "Approved", + /** Pending */ + Pending = "Pending", + /** Rejected */ + Rejected = "Rejected", + /** Disconnected */ + Disconnected = "Disconnected" } /** - * Defines values for DatabaseIdentityType. \ - * {@link KnownDatabaseIdentityType} can be used interchangeably with DatabaseIdentityType, + * 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 - * **None** \ - * **UserAssigned** + * **Approved** \ + * **Pending** \ + * **Rejected** \ + * **Disconnected** */ -export type DatabaseIdentityType = string; +export type PrivateLinkServiceConnectionStateStatus = string; -/** Known values of {@link CreateMode} that the service accepts. */ -export enum KnownCreateMode { - /** Default */ - Default = "Default", - /** Copy */ - Copy = "Copy", - /** Secondary */ - Secondary = "Secondary", - /** PointInTimeRestore */ - PointInTimeRestore = "PointInTimeRestore", - /** Restore */ - Restore = "Restore", - /** Recovery */ - Recovery = "Recovery", - /** RestoreExternalBackup */ - RestoreExternalBackup = "RestoreExternalBackup", - /** RestoreExternalBackupSecondary */ - RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary", - /** RestoreLongTermRetentionBackup */ - RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup", - /** OnlineSecondary */ - OnlineSecondary = "OnlineSecondary" +/** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ +export enum KnownPrivateLinkServiceConnectionStateActionsRequire { + /** None */ + None = "None" } /** - * Defines values for CreateMode. \ - * {@link KnownCreateMode} can be used interchangeably with CreateMode, + * 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 - * **Default** \ - * **Copy** \ - * **Secondary** \ - * **PointInTimeRestore** \ - * **Restore** \ - * **Recovery** \ - * **RestoreExternalBackup** \ - * **RestoreExternalBackupSecondary** \ - * **RestoreLongTermRetentionBackup** \ - * **OnlineSecondary** + * **None** */ -export type CreateMode = string; +export type PrivateLinkServiceConnectionStateActionsRequire = string; -/** Known values of {@link SampleName} that the service accepts. */ -export enum KnownSampleName { - /** AdventureWorksLT */ - AdventureWorksLT = "AdventureWorksLT", - /** WideWorldImportersStd */ - WideWorldImportersStd = "WideWorldImportersStd", - /** WideWorldImportersFull */ - WideWorldImportersFull = "WideWorldImportersFull" +/** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointProvisioningState { + /** Approving */ + Approving = "Approving", + /** Ready */ + Ready = "Ready", + /** Dropping */ + Dropping = "Dropping", + /** Failed */ + Failed = "Failed", + /** Rejecting */ + Rejecting = "Rejecting" } /** - * Defines values for SampleName. \ - * {@link KnownSampleName} can be used interchangeably with SampleName, + * 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 - * **AdventureWorksLT** \ - * **WideWorldImportersStd** \ - * **WideWorldImportersFull** + * **Approving** \ + * **Ready** \ + * **Dropping** \ + * **Failed** \ + * **Rejecting** */ -export type SampleName = string; +export type PrivateEndpointProvisioningState = string; -/** Known values of {@link DatabaseStatus} that the service accepts. */ -export enum KnownDatabaseStatus { - /** Online */ - Online = "Online", - /** Restoring */ - Restoring = "Restoring", - /** RecoveryPending */ - RecoveryPending = "RecoveryPending", - /** Recovering */ - Recovering = "Recovering", - /** Suspect */ - Suspect = "Suspect", - /** Offline */ - Offline = "Offline", - /** Standby */ - Standby = "Standby", - /** Shutdown */ - Shutdown = "Shutdown", - /** EmergencyMode */ - EmergencyMode = "EmergencyMode", - /** AutoClosed */ - AutoClosed = "AutoClosed", - /** Copying */ - Copying = "Copying", - /** Creating */ - Creating = "Creating", - /** Inaccessible */ - Inaccessible = "Inaccessible", - /** OfflineSecondary */ - OfflineSecondary = "OfflineSecondary", - /** Pausing */ - Pausing = "Pausing", - /** Paused */ - Paused = "Paused", - /** Resuming */ - Resuming = "Resuming", - /** Scaling */ - Scaling = "Scaling", - /** OfflineChangingDwPerformanceTiers */ - OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers", - /** OnlineChangingDwPerformanceTiers */ - OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers", - /** Disabled */ - Disabled = "Disabled", - /** Stopping */ - Stopping = "Stopping", - /** Stopped */ - Stopped = "Stopped", - /** Starting */ - Starting = "Starting" +/** Known values of {@link ReplicationState} that the service accepts. */ +export enum KnownReplicationState { + /** Pending */ + Pending = "PENDING", + /** Seeding */ + Seeding = "SEEDING", + /** CatchUP */ + CatchUP = "CATCH_UP", + /** Suspended */ + Suspended = "SUSPENDED" } /** - * Defines values for DatabaseStatus. \ - * {@link KnownDatabaseStatus} can be used interchangeably with DatabaseStatus, + * 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 - * **Online** \ - * **Restoring** \ - * **RecoveryPending** \ - * **Recovering** \ - * **Suspect** \ - * **Offline** \ - * **Standby** \ - * **Shutdown** \ - * **EmergencyMode** \ - * **AutoClosed** \ - * **Copying** \ - * **Creating** \ - * **Inaccessible** \ - * **OfflineSecondary** \ - * **Pausing** \ - * **Paused** \ - * **Resuming** \ - * **Scaling** \ - * **OfflineChangingDwPerformanceTiers** \ - * **OnlineChangingDwPerformanceTiers** \ - * **Disabled** \ - * **Stopping** \ - * **Stopped** \ - * **Starting** + * **PENDING** \ + * **SEEDING** \ + * **CATCH_UP** \ + * **SUSPENDED** */ -export type DatabaseStatus = string; +export type ReplicationState = string; -/** Known values of {@link DatabaseLicenseType} that the service accepts. */ -export enum KnownDatabaseLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link ReplicationLinkType} that the service accepts. */ +export enum KnownReplicationLinkType { + /** GEO */ + GEO = "GEO", + /** Named */ + Named = "NAMED", + /** Standby */ + Standby = "STANDBY" } /** - * Defines values for DatabaseLicenseType. \ - * {@link KnownDatabaseLicenseType} can be used interchangeably with DatabaseLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **GEO** \ + * **NAMED** \ + * **STANDBY** */ -export type DatabaseLicenseType = string; +export type ReplicationLinkType = string; -/** Known values of {@link DatabaseReadScale} that the service accepts. */ -export enum KnownDatabaseReadScale { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link ServerConfigurationOptionName} that the service accepts. */ +export enum KnownServerConfigurationOptionName { + /** AllowPolybaseExport */ + AllowPolybaseExport = "allowPolybaseExport" } /** - * Defines values for DatabaseReadScale. \ - * {@link KnownDatabaseReadScale} can be used interchangeably with DatabaseReadScale, + * Defines values for ServerConfigurationOptionName. \ + * {@link KnownServerConfigurationOptionName} can be used interchangeably with ServerConfigurationOptionName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **allowPolybaseExport** */ -export type DatabaseReadScale = string; +export type ServerConfigurationOptionName = string; -/** Known values of {@link SecondaryType} that the service accepts. */ -export enum KnownSecondaryType { - /** Geo */ - Geo = "Geo", - /** Named */ - Named = "Named", - /** Standby */ - Standby = "Standby" +/** Known values of {@link ServerConnectionType} that the service accepts. */ +export enum KnownServerConnectionType { + /** Default */ + Default = "Default", + /** Redirect */ + Redirect = "Redirect", + /** Proxy */ + Proxy = "Proxy" } /** - * Defines values for SecondaryType. \ - * {@link KnownSecondaryType} can be used interchangeably with SecondaryType, + * 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 - * **Geo** \ - * **Named** \ - * **Standby** + * **Default** \ + * **Redirect** \ + * **Proxy** */ -export type SecondaryType = string; +export type ServerConnectionType = string; -/** Known values of {@link DatabaseKeyType} that the service accepts. */ -export enum KnownDatabaseKeyType { - /** AzureKeyVault */ - AzureKeyVault = "AzureKeyVault" +/** Known values of {@link ConnectionPolicyName} that the service accepts. */ +export enum KnownConnectionPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for DatabaseKeyType. \ - * {@link KnownDatabaseKeyType} can be used interchangeably with DatabaseKeyType, + * 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 - * **AzureKeyVault** + * **default** */ -export type DatabaseKeyType = string; +export type ConnectionPolicyName = string; -/** Known values of {@link AlwaysEncryptedEnclaveType} that the service accepts. */ -export enum KnownAlwaysEncryptedEnclaveType { +/** Known values of {@link DevOpsAuditingSettingsName} that the service accepts. */ +export enum KnownDevOpsAuditingSettingsName { /** Default */ - Default = "Default", - /** VBS */ - VBS = "VBS" + Default = "Default" } /** - * Defines values for AlwaysEncryptedEnclaveType. \ - * {@link KnownAlwaysEncryptedEnclaveType} can be used interchangeably with AlwaysEncryptedEnclaveType, + * Defines values for DevOpsAuditingSettingsName. \ + * {@link KnownDevOpsAuditingSettingsName} can be used interchangeably with DevOpsAuditingSettingsName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** \ - * **VBS** + * **Default** */ -export type AlwaysEncryptedEnclaveType = string; +export type DevOpsAuditingSettingsName = string; -/** Known values of {@link AvailabilityZoneType} that the service accepts. */ -export enum KnownAvailabilityZoneType { - /** NoPreference */ - NoPreference = "NoPreference", - /** One */ - One = "1", - /** Two */ - Two = "2", - /** Three */ - Three = "3" +/** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ +export enum KnownServerTrustGroupPropertiesTrustScopesItem { + /** GlobalTransactions */ + GlobalTransactions = "GlobalTransactions", + /** ServiceBroker */ + ServiceBroker = "ServiceBroker" } /** - * Defines values for AvailabilityZoneType. \ - * {@link KnownAvailabilityZoneType} can be used interchangeably with AvailabilityZoneType, + * 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 - * **NoPreference** \ - * **1** \ - * **2** \ - * **3** + * **GlobalTransactions** \ + * **ServiceBroker** */ -export type AvailabilityZoneType = string; +export type ServerTrustGroupPropertiesTrustScopesItem = string; -/** Known values of {@link ReplicaType} that the service accepts. */ -export enum KnownReplicaType { - /** Primary */ - Primary = "Primary", - /** ReadableSecondary */ - ReadableSecondary = "ReadableSecondary" +/** Known values of {@link ServerPublicNetworkAccessFlag} that the service accepts. */ +export enum KnownServerPublicNetworkAccessFlag { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", + /** SecuredByPerimeter */ + SecuredByPerimeter = "SecuredByPerimeter" } /** - * Defines values for ReplicaType. \ - * {@link KnownReplicaType} can be used interchangeably with ReplicaType, + * Defines values for ServerPublicNetworkAccessFlag. \ + * {@link KnownServerPublicNetworkAccessFlag} can be used interchangeably with ServerPublicNetworkAccessFlag, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Primary** \ - * **ReadableSecondary** + * **Enabled** \ + * **Disabled** \ + * **SecuredByPerimeter** */ -export type ReplicaType = string; +export type ServerPublicNetworkAccessFlag = string; -/** Known values of {@link ElasticPoolState} that the service accepts. */ -export enum KnownElasticPoolState { - /** Creating */ - Creating = "Creating", - /** Ready */ - Ready = "Ready", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ +export enum KnownServerWorkspaceFeature { + /** Connected */ + Connected = "Connected", + /** Disconnected */ + Disconnected = "Disconnected" } /** - * Defines values for ElasticPoolState. \ - * {@link KnownElasticPoolState} can be used interchangeably with ElasticPoolState, + * 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 - * **Creating** \ - * **Ready** \ - * **Disabled** + * **Connected** \ + * **Disconnected** */ -export type ElasticPoolState = string; +export type ServerWorkspaceFeature = string; -/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ -export enum KnownElasticPoolLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ +export enum KnownServerNetworkAccessFlag { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for ElasticPoolLicenseType. \ - * {@link KnownElasticPoolLicenseType} can be used interchangeably with ElasticPoolLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **Enabled** \ + * **Disabled** */ -export type ElasticPoolLicenseType = string; +export type ServerNetworkAccessFlag = string; -/** Known values of {@link IdentityType} that the service accepts. */ -export enum KnownIdentityType { - /** None */ - None = "None", - /** SystemAssigned */ - SystemAssigned = "SystemAssigned", - /** UserAssigned */ - UserAssigned = "UserAssigned", - /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" +/** Known values of {@link ExternalGovernanceStatus} that the service accepts. */ +export enum KnownExternalGovernanceStatus { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for IdentityType. \ - * {@link KnownIdentityType} can be used interchangeably with IdentityType, + * Defines values for ExternalGovernanceStatus. \ + * {@link KnownExternalGovernanceStatus} can be used interchangeably with ExternalGovernanceStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned,UserAssigned** + * **Enabled** \ + * **Disabled** */ -export type IdentityType = string; +export type ExternalGovernanceStatus = string; -/** Known values of {@link ManagedInstancePropertiesProvisioningState} that the service accepts. */ -export enum KnownManagedInstancePropertiesProvisioningState { - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Updating */ - Updating = "Updating", - /** Unknown */ - Unknown = "Unknown", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Accepted */ - Accepted = "Accepted", - /** Created */ - Created = "Created", - /** Deleted */ - Deleted = "Deleted", - /** Unrecognized */ - Unrecognized = "Unrecognized", - /** Running */ - Running = "Running", - /** Canceled */ - Canceled = "Canceled", - /** NotSpecified */ - NotSpecified = "NotSpecified", - /** Registering */ - Registering = "Registering", - /** TimedOut */ - TimedOut = "TimedOut" +/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ +export enum KnownSqlAgentConfigurationPropertiesState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for ManagedInstancePropertiesProvisioningState. \ - * {@link KnownManagedInstancePropertiesProvisioningState} can be used interchangeably with ManagedInstancePropertiesProvisioningState, + * 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** \ - * **Deleting** \ - * **Updating** \ - * **Unknown** \ - * **Succeeded** \ - * **Failed** \ - * **Accepted** \ - * **Created** \ - * **Deleted** \ - * **Unrecognized** \ - * **Running** \ - * **Canceled** \ - * **NotSpecified** \ - * **Registering** \ - * **TimedOut** + * **Enabled** \ + * **Disabled** */ -export type ManagedInstancePropertiesProvisioningState = string; +export type SqlAgentConfigurationPropertiesState = string; -/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ -export enum KnownManagedServerCreateMode { +/** Known values of {@link StartStopScheduleName} that the service accepts. */ +export enum KnownStartStopScheduleName { /** Default */ - Default = "Default", - /** PointInTimeRestore */ - PointInTimeRestore = "PointInTimeRestore" + Default = "default" } /** - * Defines values for ManagedServerCreateMode. \ - * {@link KnownManagedServerCreateMode} can be used interchangeably with ManagedServerCreateMode, + * Defines values for StartStopScheduleName. \ + * {@link KnownStartStopScheduleName} can be used interchangeably with StartStopScheduleName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** \ - * **PointInTimeRestore** + * **default** */ -export type ManagedServerCreateMode = string; +export type StartStopScheduleName = string; -/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ -export enum KnownManagedInstanceLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link SyncAgentState} that the service accepts. */ +export enum KnownSyncAgentState { + /** Online */ + Online = "Online", + /** Offline */ + Offline = "Offline", + /** NeverConnected */ + NeverConnected = "NeverConnected" } /** - * Defines values for ManagedInstanceLicenseType. \ - * {@link KnownManagedInstanceLicenseType} can be used interchangeably with ManagedInstanceLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **Online** \ + * **Offline** \ + * **NeverConnected** */ -export type ManagedInstanceLicenseType = string; +export type SyncAgentState = string; -/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ -export enum KnownManagedInstanceProxyOverride { - /** Proxy */ - Proxy = "Proxy", - /** Redirect */ - Redirect = "Redirect", - /** Default */ - Default = "Default" +/** Known values of {@link SyncMemberDbType} that the service accepts. */ +export enum KnownSyncMemberDbType { + /** AzureSqlDatabase */ + AzureSqlDatabase = "AzureSqlDatabase", + /** SqlServerDatabase */ + SqlServerDatabase = "SqlServerDatabase" } /** - * Defines values for ManagedInstanceProxyOverride. \ - * {@link KnownManagedInstanceProxyOverride} can be used interchangeably with ManagedInstanceProxyOverride, + * 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 - * **Proxy** \ - * **Redirect** \ - * **Default** + * **AzureSqlDatabase** \ + * **SqlServerDatabase** */ -export type ManagedInstanceProxyOverride = string; +export type SyncMemberDbType = string; -/** Known values of {@link PrincipalType} that the service accepts. */ -export enum KnownPrincipalType { - /** User */ - User = "User", - /** Group */ - Group = "Group", - /** Application */ - Application = "Application" +/** Known values of {@link SyncConflictResolutionPolicy} that the service accepts. */ +export enum KnownSyncConflictResolutionPolicy { + /** HubWin */ + HubWin = "HubWin", + /** MemberWin */ + MemberWin = "MemberWin" } /** - * Defines values for PrincipalType. \ - * {@link KnownPrincipalType} can be used interchangeably with PrincipalType, + * 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 - * **User** \ - * **Group** \ - * **Application** + * **HubWin** \ + * **MemberWin** */ -export type PrincipalType = string; +export type SyncConflictResolutionPolicy = string; -/** Known values of {@link ServicePrincipalType} that the service accepts. */ -export enum KnownServicePrincipalType { - /** None */ - None = "None", - /** SystemAssigned */ - SystemAssigned = "SystemAssigned" +/** Known values of {@link SyncGroupState} that the service accepts. */ +export enum KnownSyncGroupState { + /** NotReady */ + NotReady = "NotReady", + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning", + /** Progressing */ + Progressing = "Progressing", + /** Good */ + Good = "Good" } /** - * Defines values for ServicePrincipalType. \ - * {@link KnownServicePrincipalType} can be used interchangeably with ServicePrincipalType, + * 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 - * **None** \ - * **SystemAssigned** + * **NotReady** \ + * **Error** \ + * **Warning** \ + * **Progressing** \ + * **Good** */ -export type ServicePrincipalType = string; +export type SyncGroupState = string; -/** Known values of {@link AggregationFunctionType} that the service accepts. */ -export enum KnownAggregationFunctionType { - /** Avg */ - Avg = "avg", - /** Min */ - Min = "min", - /** Max */ - Max = "max", - /** Stdev */ - Stdev = "stdev", - /** Sum */ - Sum = "sum" +/** Known values of {@link SyncGroupsType} that the service accepts. */ +export enum KnownSyncGroupsType { + /** All */ + All = "All", + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning", + /** Success */ + Success = "Success" } /** - * Defines values for AggregationFunctionType. \ - * {@link KnownAggregationFunctionType} can be used interchangeably with AggregationFunctionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **avg** \ - * **min** \ - * **max** \ - * **stdev** \ - * **sum** - */ -export type AggregationFunctionType = string; - -/** Known values of {@link MetricType} that the service accepts. */ -export enum KnownMetricType { - /** Cpu */ - Cpu = "cpu", - /** Io */ - Io = "io", - /** LogIo */ - LogIo = "logIo", - /** Duration */ - Duration = "duration", - /** Dtu */ - Dtu = "dtu" -} - -/** - * Defines values for 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 ManagedLedgerDigestUploadsState} that the service accepts. */ -export enum KnownManagedLedgerDigestUploadsState { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" -} - -/** - * Defines values for ManagedLedgerDigestUploadsState. \ - * {@link KnownManagedLedgerDigestUploadsState} can be used interchangeably with ManagedLedgerDigestUploadsState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type ManagedLedgerDigestUploadsState = string; - -/** Known values of {@link ManagedLedgerDigestUploadsName} that the service accepts. */ -export enum KnownManagedLedgerDigestUploadsName { - /** Current */ - Current = "current" -} - -/** - * Defines values for ManagedLedgerDigestUploadsName. \ - * {@link KnownManagedLedgerDigestUploadsName} can be used interchangeably with ManagedLedgerDigestUploadsName, + * 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 - * **current** + * **All** \ + * **Error** \ + * **Warning** \ + * **Success** */ -export type ManagedLedgerDigestUploadsName = string; +export type SyncGroupsType = string; -/** Known values of {@link ServerConfigurationOptionName} that the service accepts. */ -export enum KnownServerConfigurationOptionName { - /** AllowPolybaseExport */ - AllowPolybaseExport = "allowPolybaseExport" +/** Known values of {@link SyncGroupLogType} that the service accepts. */ +export enum KnownSyncGroupLogType { + /** All */ + All = "All", + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning", + /** Success */ + Success = "Success" } /** - * Defines values for ServerConfigurationOptionName. \ - * {@link KnownServerConfigurationOptionName} can be used interchangeably with ServerConfigurationOptionName, + * 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 - * **allowPolybaseExport** + * **All** \ + * **Error** \ + * **Warning** \ + * **Success** */ -export type ServerConfigurationOptionName = string; +export type SyncGroupLogType = string; -/** Known values of {@link ServerPublicNetworkAccessFlag} that the service accepts. */ -export enum KnownServerPublicNetworkAccessFlag { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", - /** SecuredByPerimeter */ - SecuredByPerimeter = "SecuredByPerimeter" +/** Known values of {@link SyncDirection} that the service accepts. */ +export enum KnownSyncDirection { + /** Bidirectional */ + Bidirectional = "Bidirectional", + /** OneWayMemberToHub */ + OneWayMemberToHub = "OneWayMemberToHub", + /** OneWayHubToMember */ + OneWayHubToMember = "OneWayHubToMember" } /** - * Defines values for ServerPublicNetworkAccessFlag. \ - * {@link KnownServerPublicNetworkAccessFlag} can be used interchangeably with ServerPublicNetworkAccessFlag, + * Defines values for SyncDirection. \ + * {@link KnownSyncDirection} can be used interchangeably with SyncDirection, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** \ - * **SecuredByPerimeter** + * **Bidirectional** \ + * **OneWayMemberToHub** \ + * **OneWayHubToMember** */ -export type ServerPublicNetworkAccessFlag = string; +export type SyncDirection = string; -/** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ -export enum KnownServerWorkspaceFeature { - /** Connected */ - Connected = "Connected", - /** Disconnected */ - Disconnected = "Disconnected" +/** Known values of {@link SyncMemberState} that the service accepts. */ +export enum KnownSyncMemberState { + /** SyncInProgress */ + SyncInProgress = "SyncInProgress", + /** SyncSucceeded */ + SyncSucceeded = "SyncSucceeded", + /** SyncFailed */ + SyncFailed = "SyncFailed", + /** DisabledTombstoneCleanup */ + DisabledTombstoneCleanup = "DisabledTombstoneCleanup", + /** DisabledBackupRestore */ + DisabledBackupRestore = "DisabledBackupRestore", + /** SyncSucceededWithWarnings */ + SyncSucceededWithWarnings = "SyncSucceededWithWarnings", + /** SyncCancelling */ + SyncCancelling = "SyncCancelling", + /** SyncCancelled */ + SyncCancelled = "SyncCancelled", + /** UnProvisioned */ + UnProvisioned = "UnProvisioned", + /** Provisioning */ + Provisioning = "Provisioning", + /** Provisioned */ + Provisioned = "Provisioned", + /** ProvisionFailed */ + ProvisionFailed = "ProvisionFailed", + /** DeProvisioning */ + DeProvisioning = "DeProvisioning", + /** DeProvisioned */ + DeProvisioned = "DeProvisioned", + /** DeProvisionFailed */ + DeProvisionFailed = "DeProvisionFailed", + /** Reprovisioning */ + Reprovisioning = "Reprovisioning", + /** ReprovisionFailed */ + ReprovisionFailed = "ReprovisionFailed", + /** UnReprovisioned */ + UnReprovisioned = "UnReprovisioned" } /** - * Defines values for ServerWorkspaceFeature. \ - * {@link KnownServerWorkspaceFeature} can be used interchangeably with ServerWorkspaceFeature, + * 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 - * **Connected** \ - * **Disconnected** + * **SyncInProgress** \ + * **SyncSucceeded** \ + * **SyncFailed** \ + * **DisabledTombstoneCleanup** \ + * **DisabledBackupRestore** \ + * **SyncSucceededWithWarnings** \ + * **SyncCancelling** \ + * **SyncCancelled** \ + * **UnProvisioned** \ + * **Provisioning** \ + * **Provisioned** \ + * **ProvisionFailed** \ + * **DeProvisioning** \ + * **DeProvisioned** \ + * **DeProvisionFailed** \ + * **Reprovisioning** \ + * **ReprovisionFailed** \ + * **UnReprovisioned** */ -export type ServerWorkspaceFeature = string; +export type SyncMemberState = string; -/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ -export enum KnownServerNetworkAccessFlag { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link DNSRefreshOperationStatus} that the service accepts. */ +export enum KnownDNSRefreshOperationStatus { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** InProgress */ + InProgress = "InProgress" } /** - * Defines values for ServerNetworkAccessFlag. \ - * {@link KnownServerNetworkAccessFlag} can be used interchangeably with ServerNetworkAccessFlag, + * Defines values for DNSRefreshOperationStatus. \ + * {@link KnownDNSRefreshOperationStatus} can be used interchangeably with DNSRefreshOperationStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **Succeeded** \ + * **Failed** \ + * **InProgress** */ -export type ServerNetworkAccessFlag = string; +export type DNSRefreshOperationStatus = string; -/** Known values of {@link ExternalGovernanceStatus} that the service accepts. */ -export enum KnownExternalGovernanceStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link VirtualNetworkRuleState} that the service accepts. */ +export enum KnownVirtualNetworkRuleState { + /** Initializing */ + Initializing = "Initializing", + /** InProgress */ + InProgress = "InProgress", + /** Ready */ + Ready = "Ready", + /** Failed */ + Failed = "Failed", + /** Deleting */ + Deleting = "Deleting", + /** Unknown */ + Unknown = "Unknown" } /** - * Defines values for ExternalGovernanceStatus. \ - * {@link KnownExternalGovernanceStatus} can be used interchangeably with ExternalGovernanceStatus, + * 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 - * **Enabled** \ - * **Disabled** + * **Initializing** \ + * **InProgress** \ + * **Ready** \ + * **Failed** \ + * **Deleting** \ + * **Unknown** */ -export type ExternalGovernanceStatus = string; - -/** Known values of {@link StartStopScheduleName} that the service accepts. */ -export enum KnownStartStopScheduleName { - /** Default */ - Default = "default" -} - -/** - * Defines values for StartStopScheduleName. \ - * {@link KnownStartStopScheduleName} can be used interchangeably with StartStopScheduleName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **default** - */ -export type StartStopScheduleName = string; - -/** Known values of {@link ServiceObjectiveName} that the service accepts. */ -export enum KnownServiceObjectiveName { - /** System */ - System = "System", - /** System0 */ - System0 = "System0", - /** System1 */ - System1 = "System1", - /** System2 */ - System2 = "System2", - /** System3 */ - System3 = "System3", - /** System4 */ - System4 = "System4", - /** System2L */ - System2L = "System2L", - /** System3L */ - System3L = "System3L", - /** System4L */ - System4L = "System4L", - /** Free */ - Free = "Free", - /** Basic */ - Basic = "Basic", - /** S0 */ - S0 = "S0", - /** S1 */ - S1 = "S1", - /** S2 */ - S2 = "S2", - /** S3 */ - S3 = "S3", - /** S4 */ - S4 = "S4", - /** S6 */ - S6 = "S6", - /** S7 */ - S7 = "S7", - /** S9 */ - S9 = "S9", - /** S12 */ - S12 = "S12", - /** P1 */ - P1 = "P1", - /** P2 */ - P2 = "P2", - /** P3 */ - P3 = "P3", - /** P4 */ - P4 = "P4", - /** P6 */ - P6 = "P6", - /** P11 */ - P11 = "P11", - /** P15 */ - P15 = "P15", - /** PRS1 */ - PRS1 = "PRS1", - /** PRS2 */ - PRS2 = "PRS2", - /** PRS4 */ - PRS4 = "PRS4", - /** PRS6 */ - PRS6 = "PRS6", - /** DW100 */ - DW100 = "DW100", - /** DW200 */ - DW200 = "DW200", - /** DW300 */ - DW300 = "DW300", - /** DW400 */ - DW400 = "DW400", - /** DW500 */ - DW500 = "DW500", - /** DW600 */ - DW600 = "DW600", - /** DW1000 */ - DW1000 = "DW1000", - /** DW1200 */ - DW1200 = "DW1200", - /** DW1000C */ - DW1000C = "DW1000c", - /** DW1500 */ - DW1500 = "DW1500", - /** DW1500C */ - DW1500C = "DW1500c", - /** DW2000 */ - DW2000 = "DW2000", - /** DW2000C */ - DW2000C = "DW2000c", - /** DW3000 */ - DW3000 = "DW3000", - /** DW2500C */ - DW2500C = "DW2500c", - /** DW3000C */ - DW3000C = "DW3000c", - /** DW6000 */ - DW6000 = "DW6000", - /** DW5000C */ - DW5000C = "DW5000c", - /** DW6000C */ - DW6000C = "DW6000c", - /** DW7500C */ - DW7500C = "DW7500c", - /** DW10000C */ - DW10000C = "DW10000c", - /** DW15000C */ - DW15000C = "DW15000c", - /** DW30000C */ - DW30000C = "DW30000c", - /** DS100 */ - DS100 = "DS100", - /** DS200 */ - DS200 = "DS200", - /** DS300 */ - DS300 = "DS300", - /** DS400 */ - DS400 = "DS400", - /** DS500 */ - DS500 = "DS500", - /** DS600 */ - DS600 = "DS600", - /** DS1000 */ - DS1000 = "DS1000", - /** DS1200 */ - DS1200 = "DS1200", - /** DS1500 */ - DS1500 = "DS1500", - /** DS2000 */ - DS2000 = "DS2000", - /** ElasticPool */ - ElasticPool = "ElasticPool" -} - -/** - * 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; +export type VirtualNetworkRuleState = string; +/** Defines values for BlobAuditingPolicyState. */ +export type BlobAuditingPolicyState = "Enabled" | "Disabled"; /** Defines values for DataMaskingState. */ -export type DataMaskingState = "Disabled" | "Enabled"; +export type DataMaskingState = "Enabled" | "Disabled"; /** Defines values for DataMaskingRuleState. */ -export type DataMaskingRuleState = "Disabled" | "Enabled"; +export type DataMaskingRuleState = "Enabled" | "Disabled"; /** Defines values for DataMaskingFunction. */ export type DataMaskingFunction = | "Default" @@ -11657,8 +11187,8 @@ export type DataMaskingFunction = | "Number" | "SSN" | "Text"; -/** Defines values for GeoBackupPolicyState. */ -export type GeoBackupPolicyState = "Disabled" | "Enabled"; +/** Defines values for AdvancedThreatProtectionState. */ +export type AdvancedThreatProtectionState = "New" | "Enabled" | "Disabled"; /** Defines values for AdvisorStatus. */ export type AdvisorStatus = | "GA" @@ -11697,12 +11227,18 @@ export type AutomaticTuningDisabledReason = | "NotSupported"; /** Defines values for SecurityAlertsPolicyState. */ export type SecurityAlertsPolicyState = "Enabled" | "Disabled"; +/** Defines values for SqlVulnerabilityAssessmentState. */ +export type SqlVulnerabilityAssessmentState = "Enabled" | "Disabled"; /** Defines values for VulnerabilityAssessmentPolicyBaselineName. */ export type VulnerabilityAssessmentPolicyBaselineName = "master" | "default"; -/** Defines values for JobScheduleType. */ -export type JobScheduleType = "Once" | "Recurring"; +/** Defines values for GeoBackupPolicyState. */ +export type GeoBackupPolicyState = "Enabled" | "Disabled"; /** Defines values for JobTargetGroupMembershipType. */ export type JobTargetGroupMembershipType = "Include" | "Exclude"; +/** Defines values for JobScheduleType. */ +export type JobScheduleType = "Once" | "Recurring"; +/** Defines values for LedgerDigestUploadsState. */ +export type LedgerDigestUploadsState = "Enabled" | "Disabled"; /** Defines values for CapabilityStatus. */ export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled"; /** Defines values for SecurityAlertPolicyState. */ @@ -11712,23 +11248,6 @@ export type SecurityEventType = | "Undefined" | "SqlInjectionVulnerability" | "SqlInjectionExploit"; -/** Defines values for TransparentDataEncryptionState. */ -export type TransparentDataEncryptionState = "Enabled" | "Disabled"; -/** Defines values for RestorePointType. */ -export type RestorePointType = "CONTINUOUS" | "DISCRETE"; -/** Defines values for AutomaticTuningServerMode. */ -export type AutomaticTuningServerMode = "Custom" | "Auto" | "Unspecified"; -/** Defines values for AutomaticTuningServerReason. */ -export type AutomaticTuningServerReason = - | "Default" - | "Disabled" - | "AutoConfigured"; -/** Defines values for BlobAuditingPolicyState. */ -export type BlobAuditingPolicyState = "Enabled" | "Disabled"; -/** Defines values for LedgerDigestUploadsState. */ -export type LedgerDigestUploadsState = "Enabled" | "Disabled"; -/** Defines values for SensitivityLabelSource. */ -export type SensitivityLabelSource = "current" | "recommended"; /** Defines values for SensitivityLabelRank. */ export type SensitivityLabelRank = | "None" @@ -11740,10 +11259,10 @@ export type SensitivityLabelRank = export type SensitivityLabelUpdateKind = "set" | "remove"; /** Defines values for RecommendedSensitivityLabelUpdateKind. */ export type RecommendedSensitivityLabelUpdateKind = "enable" | "disable"; -/** Defines values for AdvancedThreatProtectionState. */ -export type AdvancedThreatProtectionState = "New" | "Enabled" | "Disabled"; -/** Defines values for SqlVulnerabilityAssessmentState. */ -export type SqlVulnerabilityAssessmentState = "Enabled" | "Disabled"; +/** Defines values for SensitivityLabelSource. */ +export type SensitivityLabelSource = "current" | "recommended"; +/** Defines values for TransparentDataEncryptionState. */ +export type TransparentDataEncryptionState = "Enabled" | "Disabled"; /** Defines values for ReplicationRole. */ export type ReplicationRole = | "Primary" @@ -11751,71 +11270,751 @@ export type ReplicationRole = | "NonReadableSecondary" | "Source" | "Copy"; +/** Defines values for RestorePointType. */ +export type RestorePointType = "CONTINUOUS" | "DISCRETE"; +/** Defines values for AutomaticTuningServerMode. */ +export type AutomaticTuningServerMode = "Custom" | "Auto" | "Unspecified"; +/** Defines values for AutomaticTuningServerReason. */ +export type AutomaticTuningServerReason = + | "Default" + | "Disabled" + | "AutoConfigured"; /** Defines values for CheckNameAvailabilityReason. */ export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists"; /** Optional parameters. */ -export interface DataMaskingPoliciesCreateOrUpdateOptionalParams +export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; + +/** Optional parameters. */ +export interface BackupShortTermRetentionPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; + +/** Optional parameters. */ +export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; + +/** Optional parameters. */ +export interface BackupShortTermRetentionPoliciesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; + +/** Optional parameters. */ +export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; + +/** Optional parameters. */ +export interface ServerBlobAuditingPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface ServerBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface DatabaseBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; + +/** Optional parameters. */ +export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; + +/** Optional parameters. */ +export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface DataMaskingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; + +/** Optional parameters. */ +export interface DataMaskingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; + +/** Optional parameters. */ +export interface DataMaskingRulesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; + +/** Optional parameters. */ +export interface DataMaskingRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; + +/** Optional parameters. */ +export interface DataMaskingRulesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DataMaskingRulesListByDatabaseNextResponse = DataMaskingRuleListResult; + +/** Optional parameters. */ +export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; + +/** Optional parameters. */ +export interface DataWarehouseUserActivitiesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; + +/** Optional parameters. */ +export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = DatabaseAdvancedThreatProtectionListResult; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseAdvancedThreatProtectionSettingsGetResponse = DatabaseAdvancedThreatProtection; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = DatabaseAdvancedThreatProtection; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = DatabaseAdvancedThreatProtectionListResult; + +/** Optional parameters. */ +export interface DatabaseAdvisorsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseAdvisorsListByDatabaseResponse = Advisor[]; + +/** Optional parameters. */ +export interface DatabaseAdvisorsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseAdvisorsGetResponse = Advisor; + +/** Optional parameters. */ +export interface DatabaseAdvisorsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type DatabaseAdvisorsUpdateResponse = Advisor; + +/** Optional parameters. */ +export interface DatabaseAutomaticTuningGetOptionalParams + 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; + +/** Optional parameters. */ +export interface DatabaseColumnsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Array of Get3ItemsItem */ + schema?: string[]; + /** Array of Get4ItemsItem */ + table?: string[]; + /** Array of Get5ItemsItem */ + column?: string[]; + /** Array of Get6ItemsItem */ + orderBy?: string[]; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; +} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; + +/** Optional parameters. */ +export interface DatabaseColumnsListByTableOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} + +/** Contains response data for the listByTable operation. */ +export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; + +/** Optional parameters. */ +export interface DatabaseColumnsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseColumnsGetResponse = DatabaseColumn; + +/** Optional parameters. */ +export interface DatabaseColumnsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; + +/** Optional parameters. */ +export interface DatabaseColumnsListByTableNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTableNext operation. */ +export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; + +/** Optional parameters. */ +export interface DatabaseEncryptionProtectorsRevalidateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface DatabaseEncryptionProtectorsRevertOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface DatabaseExtensionsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; + +/** Optional parameters. */ +export interface DatabaseExtensionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +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 createOrUpdate operation. */ +export type DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; + +/** Optional parameters. */ +export interface DatabaseExtensionsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; + +/** Optional parameters. */ +export interface DatabaseOperationsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; + +/** Optional parameters. */ +export interface DatabaseOperationsCancelOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatabaseOperationsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; + +/** Optional parameters. */ +export interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseAdvisor operation. */ +export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; + +/** Optional parameters. */ +export interface DatabaseRecommendedActionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseRecommendedActionsGetResponse = RecommendedAction; + +/** Optional parameters. */ +export interface DatabaseRecommendedActionsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type DatabaseRecommendedActionsUpdateResponse = RecommendedAction; + +/** Optional parameters. */ +export interface DatabaseSchemasListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** 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 DatabaseSchemasGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseSchemasGetResponse = DatabaseSchema; + +/** Optional parameters. */ +export interface DatabaseSchemasListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; + +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; + +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; + +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; + +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByBaseline operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByBaselineNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByScan operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByScanNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse = SqlVulnerabilityAssessmentListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse = SqlVulnerabilityAssessmentListResult; + +/** Optional parameters. */ +export interface DatabaseTablesListBySchemaOptionalParams + 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; + +/** Optional parameters. */ +export interface DatabaseTablesListBySchemaNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySchemaNext operation. */ +export type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; + +/** Optional parameters. */ +export interface DatabaseUsagesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; /** Optional parameters. */ -export interface DataMaskingPoliciesGetOptionalParams +export interface DatabaseUsagesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; +export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface DataMaskingRulesCreateOrUpdateOptionalParams +export interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; +export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface DataMaskingRulesListByDatabaseOptionalParams +export interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; +export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface GeoBackupPoliciesCreateOrUpdateOptionalParams +export interface DatabaseVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; +/** Contains response data for the get operation. */ +export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface GeoBackupPoliciesGetOptionalParams +export interface DatabaseVulnerabilityAssessmentScansExportOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; +/** Contains response data for the export operation. */ +export type DatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface GeoBackupPoliciesListByDatabaseOptionalParams +export interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; +export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface DatabasesListMetricsOptionalParams +export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type DatabasesListMetricsResponse = MetricListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DatabasesListMetricDefinitionsOptionalParams +export interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetricDefinitions operation. */ -export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ export interface DatabasesListByServerOptionalParams @@ -11979,38 +12178,28 @@ export interface DatabasesListInaccessibleByServerNextOptionalParams export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; /** Optional parameters. */ -export interface ElasticPoolsListMetricsOptionalParams +export interface DeletedServersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type ElasticPoolsListMetricsResponse = MetricListResult; +/** Contains response data for the list operation. */ +export type DeletedServersListResponse = DeletedServerListResult; /** Optional parameters. */ -export interface ElasticPoolsListMetricDefinitionsOptionalParams +export interface DeletedServersListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetricDefinitions operation. */ -export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult; - -/** Optional parameters. */ -export interface ElasticPoolsListByServerOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; -} - -/** Contains response data for the listByServer operation. */ -export type ElasticPoolsListByServerResponse = ElasticPoolListResult; +/** Contains response data for the listByLocation operation. */ +export type DeletedServersListByLocationResponse = DeletedServerListResult; /** Optional parameters. */ -export interface ElasticPoolsGetOptionalParams +export interface DeletedServersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ElasticPoolsGetResponse = ElasticPool; +export type DeletedServersGetResponse = DeletedServer; /** Optional parameters. */ -export interface ElasticPoolsCreateOrUpdateOptionalParams +export interface DeletedServersRecoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12018,59 +12207,39 @@ export interface ElasticPoolsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ElasticPoolsCreateOrUpdateResponse = ElasticPool; - -/** 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 recover operation. */ +export type DeletedServersRecoverResponse = DeletedServer; /** 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; -} - -/** Contains response data for the update operation. */ -export type ElasticPoolsUpdateResponse = ElasticPool; +export interface DeletedServersListNextOptionalParams + extends coreClient.OperationOptions {} -/** 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; -} +/** Contains response data for the listNext operation. */ +export type DeletedServersListNextResponse = DeletedServerListResult; /** Optional parameters. */ -export interface ElasticPoolsListByServerNextOptionalParams +export interface DeletedServersListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; +/** Contains response data for the listByLocationNext operation. */ +export type DeletedServersListByLocationNextResponse = DeletedServerListResult; /** Optional parameters. */ -export interface ServerCommunicationLinksDeleteOptionalParams +export interface DistributedAvailabilityGroupsListByInstanceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByInstance operation. */ +export type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; + /** Optional parameters. */ -export interface ServerCommunicationLinksGetOptionalParams +export interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerCommunicationLinksGetResponse = ServerCommunicationLink; +export type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface ServerCommunicationLinksCreateOrUpdateOptionalParams +export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12079,286 +12248,211 @@ export interface ServerCommunicationLinksCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; - -/** Optional parameters. */ -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 ServiceObjectivesGetResponse = ServiceObjective; - -/** Optional parameters. */ -export interface ServiceObjectivesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; - -/** Optional parameters. */ -export interface ElasticPoolActivitiesListByElasticPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; - -/** Optional parameters. */ -export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; - -/** Optional parameters. */ -export interface ServerUsagesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerUsagesListByServerResponse = ServerUsageListResult; - -/** Optional parameters. */ -export interface DatabaseAdvisorsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseAdvisorsListByDatabaseResponse = Advisor[]; - -/** Optional parameters. */ -export interface DatabaseAdvisorsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DatabaseAdvisorsGetResponse = Advisor; - -/** Optional parameters. */ -export interface DatabaseAdvisorsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type DatabaseAdvisorsUpdateResponse = Advisor; - -/** Optional parameters. */ -export interface DatabaseAutomaticTuningGetOptionalParams - 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 DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface DatabaseColumnsListByDatabaseOptionalParams +export interface DistributedAvailabilityGroupsDeleteOptionalParams 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; - /** Optional parameters. */ -export interface DatabaseColumnsListByTableOptionalParams +export interface DistributedAvailabilityGroupsUpdateOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} - -/** Contains response data for the listByTable operation. */ -export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; - -/** Optional parameters. */ -export interface DatabaseColumnsGetOptionalParams - extends coreClient.OperationOptions {} + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type DatabaseColumnsGetResponse = DatabaseColumn; +/** Contains response data for the update operation. */ +export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface DatabaseColumnsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface DistributedAvailabilityGroupsSetRoleOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Contains response data for the setRole operation. */ +export type DistributedAvailabilityGroupsSetRoleResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface DatabaseColumnsListByTableNextOptionalParams +export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTableNext operation. */ -export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; /** Optional parameters. */ -export interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams +export interface ElasticPoolOperationsListByElasticPoolOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseAdvisor operation. */ -export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; +/** Contains response data for the listByElasticPool operation. */ +export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; /** Optional parameters. */ -export interface DatabaseRecommendedActionsGetOptionalParams +export interface ElasticPoolOperationsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseRecommendedActionsGetResponse = RecommendedAction; - /** Optional parameters. */ -export interface DatabaseRecommendedActionsUpdateOptionalParams +export interface ElasticPoolOperationsListByElasticPoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseRecommendedActionsUpdateResponse = RecommendedAction; +/** Contains response data for the listByElasticPoolNext operation. */ +export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; /** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseOptionalParams +export interface ElasticPoolsListByServerOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** The number of elements in the collection to skip. */ + skip?: number; } -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; - -/** Optional parameters. */ -export interface DatabaseSchemasGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DatabaseSchemasGetResponse = DatabaseSchema; - -/** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; +/** Contains response data for the listByServer operation. */ +export type ElasticPoolsListByServerResponse = ElasticPoolListResult; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesGetOptionalParams +export interface ElasticPoolsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; +export type ElasticPoolsGetResponse = ElasticPool; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +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 DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; +export type ElasticPoolsCreateOrUpdateResponse = ElasticPool; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; +export interface ElasticPoolsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface ElasticPoolsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; +/** Contains response data for the update operation. */ +export type ElasticPoolsUpdateResponse = ElasticPool; /** Optional parameters. */ -export interface DatabaseTablesListBySchemaOptionalParams +export interface ElasticPoolsFailoverOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listBySchema operation. */ -export type DatabaseTablesListBySchemaResponse = DatabaseTableListResult; - /** Optional parameters. */ -export interface DatabaseTablesGetOptionalParams +export interface ElasticPoolsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseTablesGetResponse = DatabaseTable; +/** Contains response data for the listByServerNext operation. */ +export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; /** Optional parameters. */ -export interface DatabaseTablesListBySchemaNextOptionalParams +export interface EncryptionProtectorsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySchemaNext operation. */ -export type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; +/** Contains response data for the listByServer operation. */ +export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams +export interface EncryptionProtectorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type EncryptionProtectorsGetResponse = EncryptionProtector; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams - 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 DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +export interface EncryptionProtectorsRevalidateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface EncryptionProtectorsListByServerNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult; + /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsGetOptionalParams +export interface EndpointCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +/** Contains response data for the listByInstance operation. */ +export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface EndpointCertificatesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; +/** Contains response data for the get operation. */ +export type EndpointCertificatesGetResponse = EndpointCertificate; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsDeleteOptionalParams +export interface EndpointCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByInstanceNext operation. */ +export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; + /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams +export interface FailoverGroupsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the listByServer operation. */ +export type FailoverGroupsListByServerResponse = FailoverGroupListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams +export interface FailoverGroupsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the get operation. */ +export type FailoverGroupsGetResponse = FailoverGroup; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams +export interface FailoverGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12366,183 +12460,188 @@ export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup; -/** Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; +/** 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 DatabaseVulnerabilityAssessmentScansGetOptionalParams - extends coreClient.OperationOptions {} +export interface FailoverGroupsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; +/** Contains response data for the update operation. */ +export type FailoverGroupsUpdateResponse = FailoverGroup; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansExportOptionalParams - extends coreClient.OperationOptions {} +export interface FailoverGroupsFailoverOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the export operation. */ -export type DatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; +/** Contains response data for the failover operation. */ +export type FailoverGroupsFailoverResponse = FailoverGroup; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams - 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 listByDatabaseNext operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the forceFailoverAllowDataLoss operation. */ +export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesGetOptionalParams - extends coreClient.OperationOptions {} +export interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; +/** Contains response data for the tryPlannedBeforeForcedFailover operation. */ +export type FailoverGroupsTryPlannedBeforeForcedFailoverResponse = FailoverGroup; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams +export interface FailoverGroupsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; - +/** Contains response data for the listByServerNext operation. */ +export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; + /** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams +export interface FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; +/** Contains response data for the listByServer operation. */ +export type FirewallRulesListByServerResponse = FirewallRuleListResult; /** Optional parameters. */ -export interface DeletedServersListOptionalParams +export interface FirewallRulesReplaceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DeletedServersListResponse = DeletedServerListResult; +/** Contains response data for the replace operation. */ +export type FirewallRulesReplaceResponse = FirewallRule; /** Optional parameters. */ -export interface DeletedServersGetOptionalParams +export interface FirewallRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DeletedServersGetResponse = DeletedServer; +export type FirewallRulesGetResponse = FirewallRule; /** Optional parameters. */ -export interface DeletedServersListByLocationOptionalParams +export interface FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type DeletedServersListByLocationResponse = DeletedServerListResult; +/** Contains response data for the createOrUpdate operation. */ +export type FirewallRulesCreateOrUpdateResponse = FirewallRule; /** Optional parameters. */ -export interface DeletedServersRecoverOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the recover operation. */ -export type DeletedServersRecoverResponse = DeletedServer; +export interface FirewallRulesDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DeletedServersListNextOptionalParams +export interface FirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type DeletedServersListNextResponse = DeletedServerListResult; +/** Contains response data for the listByServerNext operation. */ +export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; /** Optional parameters. */ -export interface DeletedServersListByLocationNextOptionalParams +export interface GeoBackupPoliciesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type DeletedServersListByLocationNextResponse = DeletedServerListResult; +/** Contains response data for the list operation. */ +export type GeoBackupPoliciesListResponse = GeoBackupPolicyListResult; /** Optional parameters. */ -export interface ElasticPoolOperationsCancelOptionalParams +export interface GeoBackupPoliciesGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; + /** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolOptionalParams +export interface GeoBackupPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; +/** Contains response data for the createOrUpdate operation. */ +export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; /** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolNextOptionalParams +export interface GeoBackupPoliciesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPoolNext operation. */ -export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; +/** Contains response data for the listNext operation. */ +export type GeoBackupPoliciesListNextResponse = GeoBackupPolicyListResult; /** Optional parameters. */ -export interface EncryptionProtectorsListByServerOptionalParams +export interface IPv6FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult; +export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface EncryptionProtectorsGetOptionalParams +export interface IPv6FirewallRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type EncryptionProtectorsGetResponse = EncryptionProtector; +export type IPv6FirewallRulesGetResponse = IPv6FirewallRule; /** Optional parameters. */ -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; -} +export interface IPv6FirewallRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector; +export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; /** Optional parameters. */ -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; -} +export interface IPv6FirewallRulesDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface EncryptionProtectorsListByServerNextOptionalParams +export interface IPv6FirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult; +export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface FailoverGroupsGetOptionalParams +export interface InstanceFailoverGroupsListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type FailoverGroupsGetResponse = FailoverGroup; +/** Contains response data for the listByLocation operation. */ +export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; /** 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 InstanceFailoverGroupsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup; +/** Contains response data for the get operation. */ +export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface FailoverGroupsDeleteOptionalParams +export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12550,8 +12649,11 @@ export interface FailoverGroupsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; + /** Optional parameters. */ -export interface FailoverGroupsUpdateOptionalParams +export interface InstanceFailoverGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12559,18 +12661,8 @@ export interface FailoverGroupsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type FailoverGroupsUpdateResponse = FailoverGroup; - -/** Optional parameters. */ -export interface FailoverGroupsListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type FailoverGroupsListByServerResponse = FailoverGroupListResult; - /** Optional parameters. */ -export interface FailoverGroupsFailoverOptionalParams +export interface InstanceFailoverGroupsFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12579,10 +12671,10 @@ export interface FailoverGroupsFailoverOptionalParams } /** Contains response data for the failover operation. */ -export type FailoverGroupsFailoverResponse = FailoverGroup; +export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams +export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12591,53 +12683,28 @@ export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams } /** Contains response data for the forceFailoverAllowDataLoss operation. */ -export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; - -/** Optional parameters. */ -export interface FailoverGroupsListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; - -/** Optional parameters. */ -export interface FirewallRulesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type FirewallRulesGetResponse = FirewallRule; - -/** Optional parameters. */ -export interface FirewallRulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type FirewallRulesCreateOrUpdateResponse = FirewallRule; - -/** Optional parameters. */ -export interface FirewallRulesDeleteOptionalParams - extends coreClient.OperationOptions {} +export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface FirewallRulesListByServerOptionalParams +export interface InstanceFailoverGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type FirewallRulesListByServerResponse = FirewallRuleListResult; +/** Contains response data for the listByLocationNext operation. */ +export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; /** Optional parameters. */ -export interface FirewallRulesReplaceOptionalParams +export interface InstancePoolsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the replace operation. */ -export type FirewallRulesReplaceResponse = FirewallRule; +/** Contains response data for the list operation. */ +export type InstancePoolsListResponse = InstancePoolListResult; /** Optional parameters. */ -export interface FirewallRulesListByServerNextOptionalParams +export interface InstancePoolsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; /** Optional parameters. */ export interface InstancePoolsGetOptionalParams @@ -12680,18 +12747,11 @@ export interface InstancePoolsUpdateOptionalParams export type InstancePoolsUpdateResponse = InstancePool; /** Optional parameters. */ -export interface InstancePoolsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; - -/** Optional parameters. */ -export interface InstancePoolsListOptionalParams +export interface InstancePoolsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type InstancePoolsListResponse = InstancePoolListResult; +/** Contains response data for the listNext operation. */ +export type InstancePoolsListNextResponse = InstancePoolListResult; /** Optional parameters. */ export interface InstancePoolsListByResourceGroupNextOptionalParams @@ -12700,13 +12760,6 @@ export interface InstancePoolsListByResourceGroupNextOptionalParams /** Contains response data for the listByResourceGroupNext operation. */ export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; -/** Optional parameters. */ -export interface InstancePoolsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type InstancePoolsListNextResponse = InstancePoolListResult; - /** Optional parameters. */ export interface JobAgentsListByServerOptionalParams extends coreClient.OperationOptions {} @@ -12815,22 +12868,6 @@ export interface JobExecutionsListByAgentOptionalParams /** Contains response data for the listByAgent operation. */ export type JobExecutionsListByAgentResponse = JobExecutionListResult; -/** Optional parameters. */ -export interface JobExecutionsCancelOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface JobExecutionsCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the create operation. */ -export type JobExecutionsCreateResponse = JobExecution; - /** Optional parameters. */ export interface JobExecutionsListByJobOptionalParams extends coreClient.OperationOptions { @@ -12873,48 +12910,34 @@ export interface JobExecutionsCreateOrUpdateOptionalParams export type JobExecutionsCreateOrUpdateResponse = JobExecution; /** Optional parameters. */ -export interface JobExecutionsListByAgentNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAgentNext operation. */ -export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; - -/** Optional parameters. */ -export interface JobExecutionsListByJobNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByJobNext operation. */ -export type JobExecutionsListByJobNextResponse = JobExecutionListResult; - -/** Optional parameters. */ -export interface JobsListByAgentOptionalParams +export interface JobExecutionsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgent operation. */ -export type JobsListByAgentResponse = JobListResult; - /** Optional parameters. */ -export interface JobsGetOptionalParams extends coreClient.OperationOptions {} +export interface JobExecutionsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type JobsGetResponse = Job; +/** Contains response data for the create operation. */ +export type JobExecutionsCreateResponse = JobExecution; /** Optional parameters. */ -export interface JobsCreateOrUpdateOptionalParams +export interface JobExecutionsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type JobsCreateOrUpdateResponse = Job; - -/** Optional parameters. */ -export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} - +/** Contains response data for the listByAgentNext operation. */ +export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; + /** Optional parameters. */ -export interface JobsListByAgentNextOptionalParams +export interface JobExecutionsListByJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobsListByAgentNextResponse = JobListResult; +/** Contains response data for the listByJobNext operation. */ +export type JobExecutionsListByJobNextResponse = JobExecutionListResult; /** Optional parameters. */ export interface JobStepExecutionsListByJobExecutionOptionalParams @@ -12952,20 +12975,6 @@ export interface JobStepExecutionsListByJobExecutionNextOptionalParams /** Contains response data for the listByJobExecutionNext operation. */ export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult; -/** Optional parameters. */ -export interface JobStepsListByVersionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByVersion operation. */ -export type JobStepsListByVersionResponse = JobStepListResult; - -/** Optional parameters. */ -export interface JobStepsGetByVersionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getByVersion operation. */ -export type JobStepsGetByVersionResponse = JobStep; - /** Optional parameters. */ export interface JobStepsListByJobOptionalParams extends coreClient.OperationOptions {} @@ -12992,11 +13001,18 @@ export interface JobStepsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JobStepsListByVersionNextOptionalParams +export interface JobStepsListByVersionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByVersionNext operation. */ -export type JobStepsListByVersionNextResponse = JobStepListResult; +/** Contains response data for the listByVersion operation. */ +export type JobStepsListByVersionResponse = JobStepListResult; + +/** Optional parameters. */ +export interface JobStepsGetByVersionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByVersion operation. */ +export type JobStepsGetByVersionResponse = JobStep; /** Optional parameters. */ export interface JobStepsListByJobNextOptionalParams @@ -13006,7 +13022,14 @@ export interface JobStepsListByJobNextOptionalParams export type JobStepsListByJobNextResponse = JobStepListResult; /** Optional parameters. */ -export interface JobTargetExecutionsListByJobExecutionOptionalParams +export interface JobStepsListByVersionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByVersionNext operation. */ +export type JobStepsListByVersionNextResponse = JobStepListResult; + +/** Optional parameters. */ +export interface JobTargetExecutionsListByStepOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; @@ -13024,11 +13047,18 @@ export interface JobTargetExecutionsListByJobExecutionOptionalParams top?: number; } -/** Contains response data for the listByJobExecution operation. */ -export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; +/** Contains response data for the listByStep operation. */ +export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; /** Optional parameters. */ -export interface JobTargetExecutionsListByStepOptionalParams +export interface JobTargetExecutionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type JobTargetExecutionsGetResponse = JobExecution; + +/** Optional parameters. */ +export interface JobTargetExecutionsListByJobExecutionOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; @@ -13046,15 +13076,15 @@ export interface JobTargetExecutionsListByStepOptionalParams top?: number; } -/** Contains response data for the listByStep operation. */ -export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; +/** Contains response data for the listByJobExecution operation. */ +export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; /** Optional parameters. */ -export interface JobTargetExecutionsGetOptionalParams +export interface JobTargetExecutionsListByStepNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JobTargetExecutionsGetResponse = JobExecution; +/** Contains response data for the listByStepNext operation. */ +export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; /** Optional parameters. */ export interface JobTargetExecutionsListByJobExecutionNextOptionalParams @@ -13063,428 +13093,286 @@ export interface JobTargetExecutionsListByJobExecutionNextOptionalParams /** Contains response data for the listByJobExecutionNext operation. */ export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; -/** Optional parameters. */ -export interface JobTargetExecutionsListByStepNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByStepNext operation. */ -export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; - /** Optional parameters. */ export interface JobTargetGroupsListByAgentOptionalParams extends coreClient.OperationOptions {} /** 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 JobTargetGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; - -/** Optional parameters. */ -export interface JobTargetGroupsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface JobTargetGroupsListByAgentNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAgentNext operation. */ -export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; - -/** Optional parameters. */ -export interface JobVersionsListByJobOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByJob operation. */ -export type JobVersionsListByJobResponse = JobVersionListResult; - -/** Optional parameters. */ -export interface JobVersionsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type JobVersionsGetResponse = JobVersion; - -/** Optional parameters. */ -export interface JobVersionsListByJobNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByJobNext operation. */ -export type JobVersionsListByJobNextResponse = JobVersionListResult; - -/** Optional parameters. */ -export interface CapabilitiesListByLocationOptionalParams - extends coreClient.OperationOptions { - /** If specified, restricts the response to only include the selected item. */ - include?: CapabilityGroup; -} - -/** Contains response data for the listByLocation operation. */ -export type CapabilitiesListByLocationResponse = LocationCapabilities; - -/** Optional parameters. */ -export interface LongTermRetentionPoliciesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; - -/** Optional parameters. */ -export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; - -/** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface MaintenanceWindowOptionsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; - -/** Optional parameters. */ -export interface MaintenanceWindowsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type MaintenanceWindowsGetResponse = MaintenanceWindows; - -/** Optional parameters. */ -export interface MaintenanceWindowsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; - -/** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; - -/** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; - -/** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Array of Get3ItemsItem */ - schema?: string[]; - /** Array of Get4ItemsItem */ - table?: string[]; - /** Array of Get5ItemsItem */ - column?: string[]; - /** Array of Get6ItemsItem */ - orderBy?: string[]; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; -} - -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} - -/** Contains response data for the listByTable operation. */ -export type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult; +export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; /** Optional parameters. */ -export interface ManagedDatabaseColumnsGetOptionalParams +export interface JobTargetGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; +export type JobTargetGroupsGetResponse = JobTargetGroup; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams +export interface JobTargetGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Contains response data for the createOrUpdate operation. */ +export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableNextOptionalParams +export interface JobTargetGroupsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTableNext operation. */ -export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; - /** Optional parameters. */ -export interface ManagedDatabaseQueriesGetOptionalParams +export interface JobTargetGroupsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; +/** Contains response data for the listByAgentNext operation. */ +export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; /** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryOptionalParams - 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; -} +export interface JobVersionsListByJobOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByQuery operation. */ -export type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics; +/** Contains response data for the listByJob operation. */ +export type JobVersionsListByJobResponse = JobVersionListResult; /** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryNextOptionalParams +export interface JobVersionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByQueryNext operation. */ -export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; +/** Contains response data for the get operation. */ +export type JobVersionsGetResponse = JobVersion; /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface JobVersionsListByJobNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +/** Contains response data for the listByJobNext operation. */ +export type JobVersionsListByJobNextResponse = JobVersionListResult; /** Optional parameters. */ -export interface ManagedDatabaseSchemasGetOptionalParams +export interface JobsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; +/** Contains response data for the listByAgent operation. */ +export type JobsListByAgentResponse = JobListResult; /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface JobsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; +/** Contains response data for the get operation. */ +export type JobsGetResponse = Job; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams +export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; +/** Contains response data for the createOrUpdate operation. */ +export type JobsCreateOrUpdateResponse = Job; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface JobsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; +/** Contains response data for the listByAgentNext operation. */ +export type JobsListByAgentNextResponse = JobListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams +export interface LedgerDigestUploadsListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; +export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams +export interface LedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; +/** Contains response data for the get operation. */ +export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams +export interface LedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** The number of elements in the collection to skip. */ - skip?: number; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; - /** The number of elements to return from the collection. */ - top?: number; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; - -/** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; +/** Contains response data for the createOrUpdate operation. */ +export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaOptionalParams +export interface LedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listBySchema operation. */ -export type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult; +/** Contains response data for the disable operation. */ +export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedDatabaseTablesGetOptionalParams +export interface LedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseTablesGetResponse = DatabaseTable; +/** Contains response data for the listByDatabaseNext operation. */ +export type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaNextOptionalParams - extends coreClient.OperationOptions {} +export interface CapabilitiesListByLocationOptionalParams + extends coreClient.OperationOptions { + /** If specified, restricts the response to only include the selected item. */ + include?: CapabilityGroup; +} -/** Contains response data for the listBySchemaNext operation. */ -export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; +/** Contains response data for the listByLocation operation. */ +export type CapabilitiesListByLocationResponse = LocationCapabilities; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByLocationOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the get operation. */ -export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByServerOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; +/** Contains response data for the listByServer operation. */ +export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} /** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; +export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams +export interface LongTermRetentionBackupsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; +/** Contains response data for the get operation. */ +export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Optional parameters. */ +export interface LongTermRetentionBackupsCopyOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the copy operation. */ +export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the update operation. */ +export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} + +/** Contains response data for the listByResourceGroupLocation operation. */ +export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupServerOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +/** Contains response data for the listByResourceGroupServer operation. */ +export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; +/** Contains response data for the listByResourceGroupDatabase operation. */ +export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams +export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the getByResourceGroup operation. */ +export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; +/** Optional parameters. */ +export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the copyByResourceGroup operation. */ +export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams +export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13492,85 +13380,84 @@ export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptional resumeFrom?: string; } +/** Contains response data for the updateByResourceGroup operation. */ +export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; + /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams +export interface LongTermRetentionBackupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the export operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; +/** Contains response data for the listByLocationNext operation. */ +export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams +export interface LongTermRetentionBackupsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByServerNext operation. */ +export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams +export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByResourceGroupLocationNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; +/** Contains response data for the listByResourceGroupServerNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsGetOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; +/** Contains response data for the listByResourceGroupDatabaseNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsDeleteOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } -/** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; +export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13578,34 +13465,51 @@ export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptional resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; +/** Optional parameters. */ +export interface LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} + +/** Contains response data for the listByInstance operation. */ +export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams extends coreClient.OperationOptions { - /** Delay to wait 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 LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; + /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; +/** Contains response data for the listByResourceGroupDatabase operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams +export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; +/** Contains response data for the getByResourceGroup operation. */ +export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13614,92 +13518,75 @@ export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams } /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams - 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 listByInstance operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; +/** Contains response data for the listByResourceGroupInstance operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; +/** Contains response data for the listByLocationNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; +export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; +/** Contains response data for the listByResourceGroupLocationNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; +/** Contains response data for the listByResourceGroupDatabaseNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedInstanceKeysDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the listByResourceGroupInstanceNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceNextOptionalParams +export interface LongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams +export interface LongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; +export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13708,56 +13595,49 @@ export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalP } /** 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; +export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; +export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams +export interface MaintenanceWindowOptionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; +/** Contains response data for the get operation. */ +export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; /** Optional parameters. */ -export interface ManagedInstanceOperationsGetOptionalParams +export interface MaintenanceWindowsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; +export type MaintenanceWindowsGetResponse = MaintenanceWindows; /** Optional parameters. */ -export interface ManagedInstanceOperationsCancelOptionalParams +export interface MaintenanceWindowsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; +export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13766,10 +13646,10 @@ export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptional } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; +export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13777,354 +13657,412 @@ export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; + /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = ManagedDatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse = ManagedDatabaseAdvancedThreatProtection; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesGetOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedDatabaseAdvancedThreatProtection; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = ManagedDatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ManagedInstanceTdeCertificatesCreateOptionalParams +export interface ManagedDatabaseColumnsListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Array of Get3ItemsItem */ + schema?: string[]; + /** Array of Get4ItemsItem */ + table?: string[]; + /** Array of Get5ItemsItem */ + column?: string[]; + /** Array of Get6ItemsItem */ + orderBy?: string[]; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; } +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; + /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams +export interface ManagedDatabaseColumnsListByTableOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} + +/** Contains response data for the listByTable operation. */ +export type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseColumnsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; +export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams +export interface ManagedDatabaseColumnsListByTableNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByTableNext operation. */ +export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; + /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams +export interface ManagedDatabaseMoveOperationsListByLocationOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** Whether or not to only get the latest operation for each database. Has higher priority than $filter. */ + onlyLatestPerDatabase?: boolean; +} + +/** Contains response data for the listByLocation operation. */ +export type ManagedDatabaseMoveOperationsListByLocationResponse = ManagedDatabaseMoveOperationListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseMoveOperationsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseMoveOperationsGetResponse = ManagedDatabaseMoveOperationResult; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams +export interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; +/** Contains response data for the listByLocationNext operation. */ +export type ManagedDatabaseMoveOperationsListByLocationNextResponse = ManagedDatabaseMoveOperationListResult; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams +export interface ManagedDatabaseQueriesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; +export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ManagedDatabaseQueriesListByQueryOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Start time for observed period. */ + startTime?: string; + /** End time for observed period. */ + endTime?: string; + /** The time step to be used to summarize the metric values. */ + interval?: QueryTimeGrainType; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; +/** Contains response data for the listByQuery operation. */ +export type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams +export interface ManagedDatabaseQueriesListByQueryNextOptionalParams + extends coreClient.OperationOptions {} + +/** 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 ManagedDatabaseSchemasListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the update operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams +export interface ManagedDatabaseSchemasGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRestorableDroppedDatabase operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams +export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesGetOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; +export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; + +/** Optional parameters. */ +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** The number of elements to return from the collection. */ + top?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; + +/** Optional parameters. */ +export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; + +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + skipToken?: string; + count?: boolean; +} + +/** Contains response data for the listCurrentByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + skipToken?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; +} -/** Contains response data for the listByInstance operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; +/** Contains response data for the listRecommendedByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface OperationsListNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; - /** Optional parameters. */ -export interface PrivateEndpointConnectionsGetOptionalParams +export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; - /** Optional parameters. */ -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteOptionalParams +export interface ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsListByServerNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult; +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface PrivateLinkResourcesListByServerOptionalParams +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface PrivateLinkResourcesGetOptionalParams +export interface ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface PrivateLinkResourcesListByServerNextOptionalParams +export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; - /** Optional parameters. */ -export interface RecoverableManagedDatabasesListByInstanceOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseTablesListBySchemaOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByInstance operation. */ -export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; +/** Contains response data for the listBySchema operation. */ +export type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface RecoverableManagedDatabasesGetOptionalParams +export interface ManagedDatabaseTablesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; +export type ManagedDatabaseTablesGetResponse = DatabaseTable; /** Optional parameters. */ -export interface RecoverableManagedDatabasesListByInstanceNextOptionalParams +export interface ManagedDatabaseTablesListBySchemaNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; +/** Contains response data for the listBySchemaNext operation. */ +export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface RestorePointsListByDatabaseOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type RestorePointsListByDatabaseResponse = RestorePointListResult; - -/** Optional parameters. */ -export interface RestorePointsCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the create operation. */ -export type RestorePointsCreateResponse = RestorePoint; +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface RestorePointsGetOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RestorePointsGetResponse = RestorePoint; +export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; /** Optional parameters. */ -export interface RestorePointsDeleteOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; + /** Optional parameters. */ -export interface RestorePointsListByDatabaseNextOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; - -/** Optional parameters. */ -export interface ServerAdvisorsListByServerOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} - -/** Contains response data for the listByServer operation. */ -export type ServerAdvisorsListByServerResponse = Advisor[]; +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface ServerAdvisorsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerAdvisorsGetResponse = Advisor; +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated; /** Optional parameters. */ -export interface ServerAdvisorsUpdateOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ServerAdvisorsUpdateResponse = Advisor; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated; /** Optional parameters. */ -export interface ServerAutomaticTuningGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; - /** Optional parameters. */ -export interface ServerAutomaticTuningUpdateOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface ServerAzureADAdministratorsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; +export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; +/** Contains response data for the export operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ -export interface ServerAzureADAdministratorsDeleteOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14133,77 +14071,81 @@ export interface ServerAzureADAdministratorsDeleteOptionalParams } /** Optional parameters. */ -export interface ServerAzureADAdministratorsListByServerOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface ServerAzureADAdministratorsListByServerNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; +export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; +export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams +export interface ManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerOptionalParams +export interface ManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabasesGetResponse = ManagedDatabase; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabasesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; + +/** Optional parameters. */ +export interface ManagedDatabasesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams +export interface ManagedDatabasesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14211,25 +14153,11 @@ export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; - -/** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; - -/** Optional parameters. */ -export interface ServerDnsAliasesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ServerDnsAliasesGetResponse = ServerDnsAlias; +/** Contains response data for the update operation. */ +export type ManagedDatabasesUpdateResponse = ManagedDatabase; /** Optional parameters. */ -export interface ServerDnsAliasesCreateOrUpdateOptionalParams +export interface ManagedDatabasesCancelMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14237,11 +14165,8 @@ export interface ServerDnsAliasesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; - /** Optional parameters. */ -export interface ServerDnsAliasesDeleteOptionalParams +export interface ManagedDatabasesCompleteMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14250,14 +14175,16 @@ export interface ServerDnsAliasesDeleteOptionalParams } /** Optional parameters. */ -export interface ServerDnsAliasesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; +export interface ManagedDatabasesCompleteRestoreOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ServerDnsAliasesAcquireOptionalParams +export interface ManagedDatabasesStartMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14265,32 +14192,43 @@ export interface ServerDnsAliasesAcquireOptionalParams resumeFrom?: string; } -/** Contains response data for the acquire operation. */ -export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; +/** Optional parameters. */ +export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listInaccessibleByInstance operation. */ +export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface ServerDnsAliasesListByServerNextOptionalParams +export interface ManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface ServerKeysListByServerOptionalParams +export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerKeysListByServerResponse = ServerKeyListResult; +/** Contains response data for the listInaccessibleByInstanceNext operation. */ +export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface ServerKeysGetOptionalParams +export interface ManagedInstanceAdministratorsListByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; + +/** Optional parameters. */ +export interface ManagedInstanceAdministratorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerKeysGetResponse = ServerKey; +export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface ServerKeysCreateOrUpdateOptionalParams +export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14299,10 +14237,10 @@ export interface ServerKeysCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerKeysCreateOrUpdateResponse = ServerKey; +export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface ServerKeysDeleteOptionalParams +export interface ManagedInstanceAdministratorsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14311,35 +14249,28 @@ export interface ServerKeysDeleteOptionalParams } /** Optional parameters. */ -export interface ServerKeysListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ServerKeysListByServerNextResponse = ServerKeyListResult; - -/** Optional parameters. */ -export interface ServerOperationsListByServerOptionalParams +export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerOperationsListByServerResponse = ServerOperationListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; /** Optional parameters. */ -export interface ServerOperationsListByServerNextOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerOperationsListByServerNextResponse = ServerOperationListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse = ManagedInstanceAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesGetOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; +export type ManagedInstanceAdvancedThreatProtectionSettingsGetResponse = ManagedInstanceAdvancedThreatProtection; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14348,31 +14279,31 @@ export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; +export type ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedInstanceAdvancedThreatProtection; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ServerTrustGroupsGetOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerTrustGroupsGetResponse = ServerTrustGroup; +export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ServerTrustGroupsCreateOrUpdateOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14381,10 +14312,10 @@ export interface ServerTrustGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; +export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ServerTrustGroupsDeleteOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14393,109 +14324,148 @@ export interface ServerTrustGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface ServerTrustGroupsListByLocationOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceOptionalParams +export interface ManagedInstanceDtcsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstanceDtcsListByManagedInstanceResponse = ManagedInstanceDtcListResult; /** Optional parameters. */ -export interface ServerTrustGroupsListByLocationNextOptionalParams +export interface ManagedInstanceDtcsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceDtcsGetResponse = ManagedInstanceDtc; /** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceNextOptionalParams +export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceDtcsCreateOrUpdateResponse = ManagedInstanceDtc; + +/** Optional parameters. */ +export interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstanceDtcsListByManagedInstanceNextResponse = ManagedInstanceDtcListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsGetOptionalParams +export interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface ManagedInstanceEncryptionProtectorsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; + +/** Optional parameters. */ +export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + /** Contains response data for the createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; +export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerOptionalParams +export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstanceKeysListByInstanceOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByServerNext operation. */ -export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; /** Optional parameters. */ -export interface SqlAgentGetOptionalParams +export interface ManagedInstanceKeysGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlAgentGetResponse = SqlAgentConfiguration; +export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; /** Optional parameters. */ -export interface SqlAgentCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstanceKeysCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; +export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; +export interface ManagedInstanceKeysDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface SubscriptionUsagesGetOptionalParams +export interface ManagedInstanceKeysListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SubscriptionUsagesGetResponse = SubscriptionUsage; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationNextOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface SyncAgentsGetOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SyncAgentsGetResponse = SyncAgent; +export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; /** Optional parameters. */ -export interface SyncAgentsCreateOrUpdateOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14504,10 +14474,10 @@ export interface SyncAgentsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SyncAgentsCreateOrUpdateResponse = SyncAgent; +export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; /** Optional parameters. */ -export interface SyncAgentsDeleteOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14515,50 +14485,57 @@ export interface SyncAgentsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type ManagedInstanceLongTermRetentionPoliciesDeleteResponse = ManagedInstanceLongTermRetentionPolicy; + /** Optional parameters. */ -export interface SyncAgentsListByServerOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type SyncAgentsListByServerResponse = SyncAgentListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface SyncAgentsGenerateKeyOptionalParams +export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateKey operation. */ -export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; /** Optional parameters. */ -export interface SyncAgentsListLinkedDatabasesOptionalParams +export interface ManagedInstanceOperationsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLinkedDatabases operation. */ -export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; /** Optional parameters. */ -export interface SyncAgentsListByServerNextOptionalParams +export interface ManagedInstanceOperationsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type SyncAgentsListByServerNextResponse = SyncAgentListResult; +/** Optional parameters. */ +export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; /** Optional parameters. */ -export interface SyncAgentsListLinkedDatabasesNextOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLinkedDatabasesNext operation. */ -export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface SyncGroupsListSyncDatabaseIdsOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSyncDatabaseIds operation. */ -export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; +/** Contains response data for the get operation. */ +export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface SyncGroupsRefreshHubSchemaOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14566,52 +14543,48 @@ export interface SyncGroupsRefreshHubSchemaOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface SyncGroupsListHubSchemasOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listHubSchemas operation. */ -export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface SyncGroupsListLogsOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { - /** The continuation token for this operation. */ - continuationToken?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listLogs operation. */ -export type SyncGroupsListLogsResponse = SyncGroupLogListResult; - /** Optional parameters. */ -export interface SyncGroupsCancelSyncOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; + /** Optional parameters. */ -export interface SyncGroupsTriggerSyncOptionalParams +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; + /** Optional parameters. */ -export interface SyncGroupsGetOptionalParams +export interface ManagedInstancePrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SyncGroupsGetResponse = SyncGroup; +export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; /** Optional parameters. */ -export interface SyncGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SyncGroupsCreateOrUpdateResponse = SyncGroup; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; /** Optional parameters. */ -export interface SyncGroupsDeleteOptionalParams +export interface ManagedInstanceTdeCertificatesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14620,61 +14593,79 @@ export interface SyncGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface SyncGroupsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type SyncGroupsUpdateResponse = SyncGroup; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface SyncGroupsListByDatabaseOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSyncDatabaseIdsNext operation. */ -export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface SyncGroupsListHubSchemasNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listHubSchemasNext operation. */ -export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; - /** Optional parameters. */ -export interface SyncGroupsListLogsNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLogsNext operation. */ -export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface SyncGroupsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; +/** Contains response data for the list operation. */ +export type ManagedInstancesListResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface SyncMembersGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListByInstancePoolOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByInstancePool operation. */ +export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; + +/** Optional parameters. */ +export interface ManagedInstancesListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByResourceGroup operation. */ +export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; + +/** Optional parameters. */ +export interface ManagedInstancesGetOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} /** Contains response data for the get operation. */ -export type SyncMembersGetResponse = SyncMember; +export type ManagedInstancesGetResponse = ManagedInstance; /** Optional parameters. */ -export interface SyncMembersCreateOrUpdateOptionalParams +export interface ManagedInstancesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14683,10 +14674,10 @@ export interface SyncMembersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SyncMembersCreateOrUpdateResponse = SyncMember; +export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance; /** Optional parameters. */ -export interface SyncMembersDeleteOptionalParams +export interface ManagedInstancesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14695,7 +14686,7 @@ export interface SyncMembersDeleteOptionalParams } /** Optional parameters. */ -export interface SyncMembersUpdateOptionalParams +export interface ManagedInstancesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14704,25 +14695,13 @@ export interface SyncMembersUpdateOptionalParams } /** Contains response data for the update operation. */ -export type SyncMembersUpdateResponse = SyncMember; - -/** Optional parameters. */ -export interface SyncMembersListBySyncGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySyncGroup operation. */ -export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; - -/** Optional parameters. */ -export interface SyncMembersListMemberSchemasOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listMemberSchemas operation. */ -export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; +export type ManagedInstancesUpdateResponse = ManagedInstance; /** Optional parameters. */ -export interface SyncMembersRefreshMemberSchemaOptionalParams +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. */ @@ -14730,21 +14709,26 @@ export interface SyncMembersRefreshMemberSchemaOptionalParams } /** Optional parameters. */ -export interface SyncMembersListBySyncGroupNextOptionalParams +export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySyncGroupNext operation. */ -export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; +/** Contains response data for the listOutboundNetworkDependenciesByManagedInstance operation. */ +export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse = OutboundEnvironmentEndpointCollection; /** Optional parameters. */ -export interface SyncMembersListMemberSchemasNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesStartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listMemberSchemasNext operation. */ -export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the start operation. */ +export type ManagedInstancesStartResponse = ManagedInstance; /** Optional parameters. */ -export interface TdeCertificatesCreateOptionalParams +export interface ManagedInstancesStopOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14752,78 +14736,82 @@ export interface TdeCertificatesCreateOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface TimeZonesListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type TimeZonesListByLocationResponse = TimeZoneListResult; +/** Contains response data for the stop operation. */ +export type ManagedInstancesStopResponse = ManagedInstance; /** Optional parameters. */ -export interface TimeZonesGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListByManagedInstanceOptionalParams + extends coreClient.OperationOptions { + /** Start time for observed period. */ + startTime?: string; + /** End time for observed period. */ + endTime?: string; + /** The time step to be used to summarize the metric values. Default value is PT1H */ + interval?: QueryTimeGrainType; + /** How many 'top queries' to return. Default is 5. */ + numberOfQueries?: number; + /** Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified. */ + databases?: string; + /** Aggregation function to be used, default value is 'sum' */ + aggregationFunction?: AggregationFunctionType; + /** Metric to be used for ranking top queries. Default is 'cpu' */ + observationMetric?: MetricType; +} -/** Contains response data for the get operation. */ -export type TimeZonesGetResponse = TimeZone; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; /** Optional parameters. */ -export interface TimeZonesListByLocationNextOptionalParams +export interface ManagedInstancesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type TimeZonesListByLocationNextResponse = TimeZoneListResult; +/** Contains response data for the listNext operation. */ +export type ManagedInstancesListNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesGetOptionalParams +export interface ManagedInstancesListByInstancePoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type VirtualNetworkRulesGetResponse = VirtualNetworkRule; +/** Contains response data for the listByInstancePoolNext operation. */ +export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedInstancesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listOutboundNetworkDependenciesByManagedInstanceNext operation. */ +export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse = OutboundEnvironmentEndpointCollection; /** Optional parameters. */ -export interface VirtualNetworkRulesListByServerOptionalParams +export interface ManagedInstancesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesListByServerNextOptionalParams +export interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedLedgerDigestUploadsListByDatabaseResponse = ManagedLedgerDigestUploadsListResult; /** Optional parameters. */ -export interface WorkloadClassifiersGetOptionalParams +export interface ManagedLedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkloadClassifiersGetResponse = WorkloadClassifier; +export type ManagedLedgerDigestUploadsGetResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ -export interface WorkloadClassifiersCreateOrUpdateOptionalParams +export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14832,10 +14820,10 @@ export interface WorkloadClassifiersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; +export type ManagedLedgerDigestUploadsCreateOrUpdateResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ -export interface WorkloadClassifiersDeleteOptionalParams +export interface ManagedLedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14843,29 +14831,32 @@ export interface WorkloadClassifiersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the disable operation. */ +export type ManagedLedgerDigestUploadsDisableResponse = ManagedLedgerDigestUploads; + /** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupOptionalParams +export interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByWorkloadGroup operation. */ -export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedLedgerDigestUploadsListByDatabaseNextResponse = ManagedLedgerDigestUploadsListResult; /** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByWorkloadGroupNext operation. */ -export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; +/** Contains response data for the listByRestorableDroppedDatabase operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface WorkloadGroupsGetOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkloadGroupsGetResponse = WorkloadGroup; +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface WorkloadGroupsCreateOrUpdateOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14874,10 +14865,10 @@ export interface WorkloadGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface WorkloadGroupsDeleteOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14885,29 +14876,32 @@ export interface WorkloadGroupsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; + /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; +/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseNextOptionalParams +export interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesGetOptionalParams +export interface ManagedServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; +export type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14916,10 +14910,10 @@ export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; +export type ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesUpdateOptionalParams +export interface ManagedServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14927,29 +14921,8 @@ export interface BackupShortTermRetentionPoliciesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; - -/** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface DatabaseExtensionsGetOptionalParams - extends coreClient.OperationOptions {} - /** Optional parameters. */ -export interface DatabaseExtensionsCreateOrUpdateOptionalParams +export interface ManagedServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14957,64 +14930,32 @@ export interface DatabaseExtensionsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; - -/** Optional parameters. */ -export interface DatabaseExtensionsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; - -/** Optional parameters. */ -export interface DatabaseExtensionsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; - -/** Optional parameters. */ -export interface DatabaseOperationsCancelOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; - -/** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; +/** Contains response data for the acquire operation. */ +export type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface DatabaseUsagesListByDatabaseOptionalParams +export interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ -export interface DatabaseUsagesListByDatabaseNextOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface LedgerDigestUploadsGetOptionalParams +export interface ManagedServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; +export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface LedgerDigestUploadsCreateOrUpdateOptionalParams +export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15023,43 +14964,31 @@ export interface LedgerDigestUploadsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; +export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface LedgerDigestUploadsListByDatabaseOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; - -/** Optional parameters. */ -export interface LedgerDigestUploadsDisableOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the disable operation. */ -export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface LedgerDigestUploadsListByDatabaseNextOptionalParams +export interface NetworkSecurityPerimeterConfigurationsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; +/** Contains response data for the listByServer operation. */ +export type NetworkSecurityPerimeterConfigurationsListByServerResponse = NetworkSecurityPerimeterConfigurationListResult; /** Optional parameters. */ -export interface OutboundFirewallRulesGetOptionalParams +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type OutboundFirewallRulesGetResponse = OutboundFirewallRule; +export type NetworkSecurityPerimeterConfigurationsGetResponse = NetworkSecurityPerimeterConfiguration; /** Optional parameters. */ -export interface OutboundFirewallRulesCreateOrUpdateOptionalParams +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15067,63 +14996,46 @@ export interface OutboundFirewallRulesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; - -/** Optional parameters. */ -export interface OutboundFirewallRulesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the reconcile operation. */ +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = NetworkSecurityPerimeterConfiguration; /** Optional parameters. */ -export interface OutboundFirewallRulesListByServerOptionalParams +export interface NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; +/** Contains response data for the listByServerNext operation. */ +export type NetworkSecurityPerimeterConfigurationsListByServerNextResponse = NetworkSecurityPerimeterConfigurationListResult; /** Optional parameters. */ -export interface OutboundFirewallRulesListByServerNextOptionalParams +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface UsagesListByInstancePoolOptionalParams - extends coreClient.OperationOptions { - /** Optional request parameter to include managed instance usages within the instance pool. */ - expandChildren?: boolean; -} +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePool operation. */ -export type UsagesListByInstancePoolResponse = UsageListResult; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; /** Optional parameters. */ -export interface UsagesListByInstancePoolNextOptionalParams +export interface OutboundFirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePoolNext operation. */ -export type UsagesListByInstancePoolNextResponse = UsageListResult; +/** Contains response data for the listByServer operation. */ +export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsCopyOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface OutboundFirewallRulesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the copy operation. */ -export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the get operation. */ +export type OutboundFirewallRulesGetResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface LongTermRetentionBackupsUpdateOptionalParams +export interface OutboundFirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15131,18 +15043,11 @@ export interface LongTermRetentionBackupsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; - -/** Optional parameters. */ -export interface LongTermRetentionBackupsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; +/** Contains response data for the createOrUpdate operation. */ +export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface LongTermRetentionBackupsDeleteOptionalParams +export interface OutboundFirewallRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15151,43 +15056,28 @@ export interface LongTermRetentionBackupsDeleteOptionalParams } /** Optional parameters. */ -export interface LongTermRetentionBackupsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface OutboundFirewallRulesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByLocationOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface PrivateEndpointConnectionsListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByServerOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface PrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15195,11 +15085,11 @@ export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams resumeFrom?: string; } -/** Contains response data for the copyByResourceGroup operation. */ -export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15207,112 +15097,97 @@ export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams resumeFrom?: string; } -/** Contains response data for the updateByResourceGroup operation. */ -export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; - /** Optional parameters. */ -export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams +export interface PrivateEndpointConnectionsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; +/** Contains response data for the listByServerNext operation. */ +export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface PrivateLinkResourcesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface PrivateLinkResourcesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabase operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type PrivateLinkResourcesGetResponse = PrivateLinkResource; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface PrivateLinkResourcesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupServerOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface RecoverableDatabasesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupServer operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface RecoverableDatabasesGetOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type RecoverableDatabasesGetResponse = RecoverableDatabase; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByLocationNextOptionalParams +export interface RecoverableDatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type RecoverableDatabasesListByServerNextResponse = RecoverableDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByServerNextOptionalParams +export interface RecoverableManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByInstance operation. */ +export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams +export interface RecoverableManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams +export interface RecoverableManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams +export interface ReplicationLinksListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupServerNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByDatabase operation. */ +export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams +export interface ReplicationLinksGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; +export type ReplicationLinksGetResponse = ReplicationLink; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams +export interface ReplicationLinksDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15321,50 +15196,7 @@ export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams } /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams +export interface ReplicationLinksFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15372,83 +15204,67 @@ export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOpt resumeFrom?: string; } -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByResourceGroupDatabase operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByResourceGroupInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the failover operation. */ +export type ReplicationLinksFailoverResponse = ReplicationLink; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams +export interface ReplicationLinksFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the failoverAllowDataLoss operation. */ +export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams +export interface ReplicationLinksListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams +export interface ReplicationLinksListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams +export interface ReplicationLinksListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams +export interface RestorableDroppedDatabasesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams - extends coreClient.OperationOptions {} +export interface RestorableDroppedDatabasesGetOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByResourceGroupInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams +export interface RestorableDroppedDatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ export interface RestorableDroppedManagedDatabasesListByInstanceOptionalParams @@ -15472,14 +15288,14 @@ export interface RestorableDroppedManagedDatabasesListByInstanceNextOptionalPara export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; /** Optional parameters. */ -export interface ServerConnectionPoliciesGetOptionalParams +export interface RestorePointsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; +/** Contains response data for the listByDatabase operation. */ +export type RestorePointsListByDatabaseResponse = RestorePointListResult; /** Optional parameters. */ -export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams +export interface RestorePointsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15487,334 +15303,321 @@ export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; - -/** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; +/** Contains response data for the create operation. */ +export type RestorePointsCreateResponse = RestorePoint; /** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerNextOptionalParams +export interface RestorePointsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; +/** Contains response data for the get operation. */ +export type RestorePointsGetResponse = RestorePoint; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsListByInstanceOptionalParams +export interface RestorePointsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; - /** Optional parameters. */ -export interface DistributedAvailabilityGroupsGetOptionalParams +export interface RestorePointsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; +/** Contains response data for the listByDatabaseNext operation. */ +export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams +export interface SensitivityLabelsListCurrentByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + skipToken?: string; + count?: boolean; } -/** Contains response data for the createOrUpdate operation. */ -export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; +/** Contains response data for the listCurrentByDatabase operation. */ +export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DistributedAvailabilityGroupsUpdateOptionalParams +export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + skipToken?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; } -/** Contains response data for the update operation. */ -export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; - -/** Optional parameters. */ -export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstanceNext operation. */ -export type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; - -/** Optional parameters. */ -export interface ServerTrustCertificatesListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; +/** Contains response data for the listRecommendedByDatabase operation. */ +export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ServerTrustCertificatesGetOptionalParams +export interface SensitivityLabelsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; +export type SensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface ServerTrustCertificatesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SensitivityLabelsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; - -/** Optional parameters. */ -export interface ServerTrustCertificatesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface ServerTrustCertificatesListByInstanceNextOptionalParams +export interface SensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; - /** Optional parameters. */ -export interface IPv6FirewallRulesListByServerOptionalParams +export interface SensitivityLabelsDisableRecommendationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; - /** Optional parameters. */ -export interface IPv6FirewallRulesGetOptionalParams +export interface SensitivityLabelsEnableRecommendationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type IPv6FirewallRulesGetResponse = IPv6FirewallRule; - /** Optional parameters. */ -export interface IPv6FirewallRulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SensitivityLabelsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; +/** Contains response data for the listByDatabase operation. */ +export type SensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface IPv6FirewallRulesDeleteOptionalParams +export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; + /** Optional parameters. */ -export interface IPv6FirewallRulesListByServerNextOptionalParams +export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface EndpointCertificatesListByInstanceOptionalParams +export interface SensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type SensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface EndpointCertificatesGetOptionalParams +export interface RecommendedSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type EndpointCertificatesGetResponse = EndpointCertificate; - /** Optional parameters. */ -export interface EndpointCertificatesListByInstanceNextOptionalParams +export interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAdvancedThreatProtectionSettingsListByServerResponse = LogicalServerAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsGetOptionalParams +export interface ServerAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; +export type ServerAdvancedThreatProtectionSettingsGetResponse = ServerAdvancedThreatProtection; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; - -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams - extends coreClient.OperationOptions {} +export type ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ServerAdvancedThreatProtection; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams +export interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type ServerAdvancedThreatProtectionSettingsListByServerNextResponse = LogicalServerAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams +export interface ServerAdvisorsListByServerOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; + /** The child resources to include in the response. */ + expand?: string; } -/** Contains response data for the listCurrentByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAdvisorsListByServerResponse = Advisor[]; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams +export interface ServerAdvisorsGetOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** Specifies whether to include disabled recommendations or not. */ - includeDisabledRecommendations?: boolean; -} - -/** Contains response data for the listRecommendedByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the get operation. */ +export type ServerAdvisorsGetResponse = Advisor; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams +export interface ServerAdvisorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the update operation. */ +export type ServerAdvisorsUpdateResponse = Advisor; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams +export interface ServerAutomaticTuningGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listRecommendedByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the get operation. */ +export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; /** Optional parameters. */ -export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams +export interface ServerAutomaticTuningUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; + /** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; -} +export interface ServerAzureADAdministratorsListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabase operation. */ -export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; /** Optional parameters. */ -export interface SensitivityLabelsUpdateOptionalParams +export interface ServerAzureADAdministratorsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; + /** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams +export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** Specifies whether to include disabled recommendations or not. */ - includeDisabledRecommendations?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listRecommendedByDatabase operation. */ -export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; /** Optional parameters. */ -export interface SensitivityLabelsEnableRecommendationOptionalParams +export interface ServerAzureADAdministratorsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ServerAzureADAdministratorsListByServerNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; + /** Optional parameters. */ -export interface SensitivityLabelsDisableRecommendationOptionalParams +export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServer operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; + /** Optional parameters. */ -export interface SensitivityLabelsGetOptionalParams +export interface ServerAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SensitivityLabelsGetResponse = SensitivityLabel; +export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface SensitivityLabelsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; +export type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface SensitivityLabelsDeleteOptionalParams +export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; + /** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams +export interface ServerConfigurationOptionsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ServerConfigurationOptionsListByManagedInstanceResponse = ServerConfigurationOptionListResult; /** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams +export interface ServerConfigurationOptionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listRecommendedByDatabaseNext operation. */ -export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the get operation. */ +export type ServerConfigurationOptionsGetResponse = ServerConfigurationOption; /** Optional parameters. */ -export interface RecommendedSensitivityLabelsUpdateOptionalParams +export interface ServerConfigurationOptionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ServerConfigurationOptionsCreateOrUpdateResponse = ServerConfigurationOption; + +/** Optional parameters. */ +export interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ServerConfigurationOptionsListByManagedInstanceNextResponse = ServerConfigurationOptionListResult; + /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerOptionalParams +export interface ServerConnectionPoliciesListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; +export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesGetOptionalParams +export interface ServerConnectionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; +export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15823,87 +15626,118 @@ export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; +export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams +export interface ServerConnectionPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; +export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams +export interface ServerDevOpsAuditSettingsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByServer operation. */ +export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesGetOptionalParams +export interface ServerDevOpsAuditSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; +export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; +export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams +export interface ServerDnsAliasesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByServer operation. */ +export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams +export interface ServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; +export type ServerDnsAliasesGetResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ServerDnsAliasesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; +export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface ServerDnsAliasesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ServerDnsAliasesAcquireOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the acquire operation. */ +export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; + +/** Optional parameters. */ +export interface ServerDnsAliasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams +export interface ServerKeysListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; +export type ServerKeysListByServerResponse = ServerKeyListResult; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams +export interface ServerKeysGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; +export type ServerKeysGetResponse = ServerKey; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface ServerKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15912,59 +15746,54 @@ export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; - -/** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; +export type ServerKeysCreateOrUpdateResponse = ServerKey; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = DatabaseAdvancedThreatProtectionListResult; +export interface ServerKeysDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams +export interface ServerKeysListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseAdvancedThreatProtectionSettingsGetResponse = DatabaseAdvancedThreatProtection; +/** Contains response data for the listByServerNext operation. */ +export type ServerKeysListByServerNextResponse = ServerKeyListResult; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams +export interface ServerOperationsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = DatabaseAdvancedThreatProtection; +/** Contains response data for the listByServer operation. */ +export type ServerOperationsListByServerResponse = ServerOperationListResult; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams +export interface ServerOperationsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = DatabaseAdvancedThreatProtectionListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerOperationsListByServerNextResponse = ServerOperationListResult; /** Optional parameters. */ -export interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams +export interface ServerSecurityAlertPoliciesListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ServerAdvancedThreatProtectionSettingsListByServerResponse = LogicalServerAdvancedThreatProtectionListResult; +export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ServerAdvancedThreatProtectionSettingsGetOptionalParams +export interface ServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerAdvancedThreatProtectionSettingsGetResponse = ServerAdvancedThreatProtection; +export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams +export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15973,31 +15802,31 @@ export interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalPar } /** Contains response data for the createOrUpdate operation. */ -export type ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ServerAdvancedThreatProtection; +export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams +export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ServerAdvancedThreatProtectionSettingsListByServerNextResponse = LogicalServerAdvancedThreatProtectionListResult; +export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams +export interface ServerTrustCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; +/** Contains response data for the listByInstance operation. */ +export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ -export interface ManagedServerDnsAliasesGetOptionalParams +export interface ServerTrustCertificatesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; +export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; /** Optional parameters. */ -export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams +export interface ServerTrustCertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16006,19 +15835,10 @@ export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; - -/** Optional parameters. */ -export interface ManagedServerDnsAliasesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; /** Optional parameters. */ -export interface ManagedServerDnsAliasesAcquireOptionalParams +export interface ServerTrustCertificatesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16026,46 +15846,29 @@ export interface ManagedServerDnsAliasesAcquireOptionalParams resumeFrom?: string; } -/** Contains response data for the acquire operation. */ -export type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; - /** Optional parameters. */ -export interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams +export interface ServerTrustCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams +export interface ServerTrustGroupsListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; +/** Contains response data for the listByLocation operation. */ +export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams +export interface ServerTrustGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; +export type ServerTrustGroupsGetResponse = ServerTrustGroup; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams +export interface ServerTrustGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16073,145 +15876,122 @@ export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalPar resumeFrom?: string; } -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByBaseline operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - /** Contains response data for the createOrUpdate operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByBaselineNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; +export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByScan operation. */ -export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; +export interface ServerTrustGroupsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams +export interface ServerTrustGroupsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; +/** Contains response data for the listByInstance operation. */ +export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams +export interface ServerTrustGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByScanNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; +/** Contains response data for the listByLocationNext operation. */ +export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams +export interface ServerTrustGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ -export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams +export interface ServerUsagesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; +/** Contains response data for the listByServer operation. */ +export type ServerUsagesListByServerResponse = ServerUsageListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams +export interface ServerUsagesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerUsagesListByServerNextResponse = ServerUsageListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams +export interface ServerVulnerabilityAssessmentsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse = SqlVulnerabilityAssessmentListResult; +/** Contains response data for the listByServer operation. */ +export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams +export interface ServerVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; +export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams +export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse = SqlVulnerabilityAssessmentListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams +export interface ServerVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = ManagedDatabaseAdvancedThreatProtectionListResult; - /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams +export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse = ManagedDatabaseAdvancedThreatProtection; +/** Contains response data for the listByServerNext operation. */ +export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams +export interface ServersCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedDatabaseAdvancedThreatProtection; +/** Contains response data for the checkNameAvailability operation. */ +export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface ServersListOptionalParams extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = ManagedDatabaseAdvancedThreatProtectionListResult; +/** Contains response data for the list operation. */ +export type ServersListResponse = ServerListResult; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams - extends coreClient.OperationOptions {} +export interface ServersListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse = ManagedInstanceAdvancedThreatProtectionListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type ServersListByResourceGroupResponse = ServerListResult; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ServersGetOptionalParams extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} /** Contains response data for the get operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsGetResponse = ManagedInstanceAdvancedThreatProtection; +export type ServersGetResponse = Server; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams +export interface ServersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16220,31 +16000,19 @@ export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOp } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedInstanceAdvancedThreatProtection; - -/** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult; - -/** Optional parameters. */ -export interface ReplicationLinksListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; +export type ServersCreateOrUpdateResponse = Server; /** Optional parameters. */ -export interface ReplicationLinksGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ReplicationLinksGetResponse = ReplicationLink; +export interface ServersDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ReplicationLinksDeleteOptionalParams +export interface ServersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16252,8 +16020,11 @@ export interface ReplicationLinksDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type ServersUpdateResponse = Server; + /** Optional parameters. */ -export interface ReplicationLinksFailoverOptionalParams +export interface ServersImportDatabaseOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16261,11 +16032,11 @@ export interface ReplicationLinksFailoverOptionalParams resumeFrom?: string; } -/** Contains response data for the failover operation. */ -export type ReplicationLinksFailoverResponse = ReplicationLink; +/** Contains response data for the importDatabase operation. */ +export type ServersImportDatabaseResponse = ImportExportOperationResult; /** Optional parameters. */ -export interface ReplicationLinksFailoverAllowDataLossOptionalParams +export interface ServersRefreshStatusOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16273,29 +16044,36 @@ export interface ReplicationLinksFailoverAllowDataLossOptionalParams resumeFrom?: string; } -/** Contains response data for the failoverAllowDataLoss operation. */ -export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink; +/** Contains response data for the refreshStatus operation. */ +export type ServersRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResult; /** Optional parameters. */ -export interface ReplicationLinksListByServerOptionalParams +export interface ServersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; +/** Contains response data for the listNext operation. */ +export type ServersListNextResponse = ServerListResult; /** Optional parameters. */ -export interface ReplicationLinksListByDatabaseNextOptionalParams +export interface ServersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ServersListByResourceGroupNextResponse = ServerListResult; /** Optional parameters. */ -export interface ReplicationLinksListByServerNextOptionalParams +export interface SqlAgentGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; +/** Contains response data for the get operation. */ +export type SqlAgentGetResponse = SqlAgentConfiguration; + +/** Optional parameters. */ +export interface SqlAgentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; /** Optional parameters. */ export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams @@ -16441,286 +16219,88 @@ export interface SqlVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedDatabaseMoveOperationsListByLocationOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** Whether or not to only get the latest operation for each database. Has higher priority than $filter. */ - onlyLatestPerDatabase?: boolean; -} - -/** Contains response data for the listByLocation operation. */ -export type ManagedDatabaseMoveOperationsListByLocationResponse = ManagedDatabaseMoveOperationListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseMoveOperationsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedDatabaseMoveOperationsGetResponse = ManagedDatabaseMoveOperationResult; - -/** Optional parameters. */ -export interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type ManagedDatabaseMoveOperationsListByLocationNextResponse = ManagedDatabaseMoveOperationListResult; - -/** Optional parameters. */ -export interface ManagedInstanceDtcsListByManagedInstanceOptionalParams +export interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstanceDtcsListByManagedInstanceResponse = ManagedInstanceDtcListResult; +/** Contains response data for the listByInstance operation. */ +export type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopManagedInstanceScheduleListResult; /** Optional parameters. */ -export interface ManagedInstanceDtcsGetOptionalParams +export interface StartStopManagedInstanceSchedulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceDtcsGetResponse = ManagedInstanceDtc; - -/** Optional parameters. */ -export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceDtcsCreateOrUpdateResponse = ManagedInstanceDtc; - -/** Optional parameters. */ -export interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstanceDtcsListByManagedInstanceNextResponse = ManagedInstanceDtcListResult; - -/** Optional parameters. */ -export interface SynapseLinkWorkspacesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type SynapseLinkWorkspacesListByDatabaseResponse = SynapseLinkWorkspaceListResult; - -/** Optional parameters. */ -export interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type SynapseLinkWorkspacesListByDatabaseNextResponse = SynapseLinkWorkspaceListResult; - -/** Optional parameters. */ -export interface VirtualClustersListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type VirtualClustersListResponse = VirtualClusterListResult; - -/** Optional parameters. */ -export interface VirtualClustersListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; +export type StartStopManagedInstanceSchedulesGetResponse = StartStopManagedInstanceSchedule; /** Optional parameters. */ -export interface VirtualClustersGetOptionalParams +export interface StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type VirtualClustersGetResponse = VirtualCluster; - -/** Optional parameters. */ -export interface VirtualClustersDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface VirtualClustersUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type VirtualClustersUpdateResponse = VirtualCluster; - -/** Optional parameters. */ -export interface VirtualClustersUpdateDnsServersOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the updateDnsServers operation. */ -export type VirtualClustersUpdateDnsServersResponse = UpdateVirtualClusterDnsServersOperation; +/** Contains response data for the createOrUpdate operation. */ +export type StartStopManagedInstanceSchedulesCreateOrUpdateResponse = StartStopManagedInstanceSchedule; /** Optional parameters. */ -export interface VirtualClustersListNextOptionalParams +export interface StartStopManagedInstanceSchedulesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type VirtualClustersListNextResponse = VirtualClusterListResult; - /** Optional parameters. */ -export interface VirtualClustersListByResourceGroupNextOptionalParams +export interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type StartStopManagedInstanceSchedulesListByInstanceNextResponse = StartStopManagedInstanceScheduleListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationOptionalParams +export interface SubscriptionUsagesListByLocationOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ -export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; +export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsGetOptionalParams +export interface SubscriptionUsagesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; - -/** Optional parameters. */ -export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; - -/** Optional parameters. */ -export interface InstanceFailoverGroupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface InstanceFailoverGroupsFailoverOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the failover operation. */ -export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; - -/** Optional parameters. */ -export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the forceFailoverAllowDataLoss operation. */ -export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; +export type SubscriptionUsagesGetResponse = SubscriptionUsage; /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationNextOptionalParams +export interface SubscriptionUsagesListByLocationNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ -export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseRestoreDetailsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; - -/** Optional parameters. */ -export interface ManagedDatabasesListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; +export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; /** Optional parameters. */ -export interface ManagedDatabasesGetOptionalParams +export interface SynapseLinkWorkspacesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabasesGetResponse = ManagedDatabase; - -/** Optional parameters. */ -export interface ManagedDatabasesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; +/** Contains response data for the listByDatabase operation. */ +export type SynapseLinkWorkspacesListByDatabaseResponse = SynapseLinkWorkspaceListResult; /** Optional parameters. */ -export interface ManagedDatabasesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type SynapseLinkWorkspacesListByDatabaseNextResponse = SynapseLinkWorkspaceListResult; /** Optional parameters. */ -export interface ManagedDatabasesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SyncAgentsListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ManagedDatabasesUpdateResponse = ManagedDatabase; +/** Contains response data for the listByServer operation. */ +export type SyncAgentsListByServerResponse = SyncAgentListResult; /** Optional parameters. */ -export interface ManagedDatabasesCancelMoveOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SyncAgentsGetOptionalParams + extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedDatabasesCompleteMoveOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the get operation. */ +export type SyncAgentsGetResponse = SyncAgent; /** Optional parameters. */ -export interface ManagedDatabasesCompleteRestoreOptionalParams +export interface SyncAgentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16728,8 +16308,11 @@ export interface ManagedDatabasesCompleteRestoreOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type SyncAgentsCreateOrUpdateResponse = SyncAgent; + /** Optional parameters. */ -export interface ManagedDatabasesStartMoveOptionalParams +export interface SyncAgentsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16738,86 +16321,56 @@ export interface ManagedDatabasesStartMoveOptionalParams } /** Optional parameters. */ -export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams +export interface SyncAgentsGenerateKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByInstance operation. */ -export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; +/** Contains response data for the generateKey operation. */ +export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; /** Optional parameters. */ -export interface ManagedDatabasesListByInstanceNextOptionalParams +export interface SyncAgentsListLinkedDatabasesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; +/** Contains response data for the listLinkedDatabases operation. */ +export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; /** Optional parameters. */ -export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams +export interface SyncAgentsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByInstanceNext operation. */ -export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; - -/** Optional parameters. */ -export interface DatabaseEncryptionProtectorsRevalidateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface DatabaseEncryptionProtectorsRevertOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the listByServerNext operation. */ +export type SyncAgentsListByServerNextResponse = SyncAgentListResult; /** Optional parameters. */ -export interface ManagedInstancesListOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface SyncAgentsListLinkedDatabasesNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ManagedInstancesListResponse = ManagedInstanceListResult; +/** Contains response data for the listLinkedDatabasesNext operation. */ +export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; /** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface SyncGroupsListSyncDatabaseIdsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePool operation. */ -export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; +/** Contains response data for the listSyncDatabaseIds operation. */ +export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; /** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface SyncGroupsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; +/** Contains response data for the listByDatabase operation. */ +export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; /** Optional parameters. */ -export interface ManagedInstancesGetOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface SyncGroupsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancesGetResponse = ManagedInstance; +export type SyncGroupsGetResponse = SyncGroup; /** Optional parameters. */ -export interface ManagedInstancesCreateOrUpdateOptionalParams +export interface SyncGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16826,10 +16379,10 @@ export interface ManagedInstancesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance; +export type SyncGroupsCreateOrUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface ManagedInstancesDeleteOptionalParams +export interface SyncGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16838,7 +16391,7 @@ export interface ManagedInstancesDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstancesUpdateOptionalParams +export interface SyncGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16847,37 +16400,31 @@ export interface ManagedInstancesUpdateOptionalParams } /** Contains response data for the update operation. */ -export type ManagedInstancesUpdateResponse = ManagedInstance; +export type SyncGroupsUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface ManagedInstancesFailoverOptionalParams - extends coreClient.OperationOptions { - /** The type of replica to be failed over. */ - replicaType?: ReplicaType; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SyncGroupsCancelSyncOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams +export interface SyncGroupsListHubSchemasOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listOutboundNetworkDependenciesByManagedInstance operation. */ -export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse = OutboundEnvironmentEndpointCollection; +/** Contains response data for the listHubSchemas operation. */ +export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ManagedInstancesStartOptionalParams +export interface SyncGroupsListLogsOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The continuation token for this operation. */ + continuationToken?: string; } +/** Contains response data for the listLogs operation. */ +export type SyncGroupsListLogsResponse = SyncGroupLogListResult; + /** Optional parameters. */ -export interface ManagedInstancesStopOptionalParams +export interface SyncGroupsRefreshHubSchemaOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16886,78 +16433,53 @@ export interface ManagedInstancesStopOptionalParams } /** Optional parameters. */ -export interface ManagedInstancesListByManagedInstanceOptionalParams - extends coreClient.OperationOptions { - /** Start time for observed period. */ - startTime?: string; - /** End time for observed period. */ - endTime?: string; - /** The time step to be used to summarize the metric values. Default value is PT1H */ - interval?: QueryTimeGrainType; - /** How many 'top queries' to return. Default is 5. */ - numberOfQueries?: number; - /** Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified. */ - databases?: string; - /** Aggregation function to be used, default value is 'sum' */ - aggregationFunction?: AggregationFunctionType; - /** Metric to be used for ranking top queries. Default is 'cpu' */ - observationMetric?: MetricType; -} - -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; - -/** Optional parameters. */ -export interface ManagedInstancesListNextOptionalParams +export interface SyncGroupsTriggerSyncOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ManagedInstancesListNextResponse = ManagedInstanceListResult; - /** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolNextOptionalParams +export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePoolNext operation. */ -export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; +/** Contains response data for the listSyncDatabaseIdsNext operation. */ +export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; /** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupNextOptionalParams +export interface SyncGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; /** Optional parameters. */ -export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams +export interface SyncGroupsListHubSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listOutboundNetworkDependenciesByManagedInstanceNext operation. */ -export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse = OutboundEnvironmentEndpointCollection; +/** Contains response data for the listHubSchemasNext operation. */ +export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ManagedInstancesListByManagedInstanceNextOptionalParams +export interface SyncGroupsListLogsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; +/** Contains response data for the listLogsNext operation. */ +export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams +export interface SyncMembersListBySyncGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedLedgerDigestUploadsListByDatabaseResponse = ManagedLedgerDigestUploadsListResult; +/** Contains response data for the listBySyncGroup operation. */ +export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsGetOptionalParams +export interface SyncMembersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedLedgerDigestUploadsGetResponse = ManagedLedgerDigestUploads; +export type SyncMembersGetResponse = SyncMember; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams +export interface SyncMembersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16966,10 +16488,31 @@ export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedLedgerDigestUploadsCreateOrUpdateResponse = ManagedLedgerDigestUploads; +export type SyncMembersCreateOrUpdateResponse = SyncMember; + +/** Optional parameters. */ +export interface SyncMembersDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface SyncMembersUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type SyncMembersUpdateResponse = SyncMember; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsDisableOptionalParams +export interface SyncMembersRefreshMemberSchemaOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16977,84 +16520,73 @@ export interface ManagedLedgerDigestUploadsDisableOptionalParams resumeFrom?: string; } -/** Contains response data for the disable operation. */ -export type ManagedLedgerDigestUploadsDisableResponse = ManagedLedgerDigestUploads; +/** Optional parameters. */ +export interface SyncMembersListMemberSchemasOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listMemberSchemas operation. */ +export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams +export interface SyncMembersListBySyncGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedLedgerDigestUploadsListByDatabaseNextResponse = ManagedLedgerDigestUploadsListResult; +/** Contains response data for the listBySyncGroupNext operation. */ +export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; /** Optional parameters. */ -export interface RecoverableDatabasesListByServerOptionalParams +export interface SyncMembersListMemberSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; +/** Contains response data for the listMemberSchemasNext operation. */ +export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface RecoverableDatabasesGetOptionalParams +export interface TdeCertificatesCreateOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the get operation. */ -export type RecoverableDatabasesGetResponse = RecoverableDatabase; - /** Optional parameters. */ -export interface RecoverableDatabasesListByServerNextOptionalParams +export interface TimeZonesListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type RecoverableDatabasesListByServerNextResponse = RecoverableDatabaseListResult; +/** Contains response data for the listByLocation operation. */ +export type TimeZonesListByLocationResponse = TimeZoneListResult; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerOptionalParams +export interface TimeZonesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; - -/** Optional parameters. */ -export interface RestorableDroppedDatabasesGetOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} - /** Contains response data for the get operation. */ -export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; +export type TimeZonesGetResponse = TimeZone; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerNextOptionalParams +export interface TimeZonesListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; +/** Contains response data for the listByLocationNext operation. */ +export type TimeZonesListByLocationNextResponse = TimeZoneListResult; /** Optional parameters. */ -export interface ServerConfigurationOptionsListByManagedInstanceOptionalParams +export interface TransparentDataEncryptionsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ServerConfigurationOptionsListByManagedInstanceResponse = ServerConfigurationOptionListResult; +/** Contains response data for the listByDatabase operation. */ +export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface ServerConfigurationOptionsGetOptionalParams +export interface TransparentDataEncryptionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerConfigurationOptionsGetResponse = ServerConfigurationOption; +export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface ServerConfigurationOptionsCreateOrUpdateOptionalParams +export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17063,52 +16595,55 @@ export interface ServerConfigurationOptionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerConfigurationOptionsCreateOrUpdateResponse = ServerConfigurationOption; +export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams +export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ServerConfigurationOptionsListByManagedInstanceNextResponse = ServerConfigurationOptionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface ServersCheckNameAvailabilityOptionalParams +export interface UsagesListByInstancePoolOptionalParams + extends coreClient.OperationOptions { + /** Optional request parameter to include managed instance usages within the instance pool. */ + expandChildren?: boolean; +} + +/** Contains response data for the listByInstancePool operation. */ +export type UsagesListByInstancePoolResponse = UsageListResult; + +/** Optional parameters. */ +export interface UsagesListByInstancePoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkNameAvailability operation. */ -export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; +/** Contains response data for the listByInstancePoolNext operation. */ +export type UsagesListByInstancePoolNextResponse = UsageListResult; /** Optional parameters. */ -export interface ServersListOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface VirtualClustersListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ServersListResponse = ServerListResult; +export type VirtualClustersListResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServersListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface VirtualClustersListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type ServersListByResourceGroupResponse = ServerListResult; +export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServersGetOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface VirtualClustersGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServersGetResponse = Server; +export type VirtualClustersGetResponse = VirtualCluster; /** Optional parameters. */ -export interface ServersCreateOrUpdateOptionalParams +export interface VirtualClustersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17116,11 +16651,8 @@ export interface ServersCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServersCreateOrUpdateResponse = Server; - /** Optional parameters. */ -export interface ServersDeleteOptionalParams +export interface VirtualClustersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17128,8 +16660,11 @@ export interface ServersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type VirtualClustersUpdateResponse = VirtualCluster; + /** Optional parameters. */ -export interface ServersUpdateOptionalParams +export interface VirtualClustersUpdateDnsServersOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17137,11 +16672,39 @@ export interface ServersUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ServersUpdateResponse = Server; +/** Contains response data for the updateDnsServers operation. */ +export type VirtualClustersUpdateDnsServersResponse = UpdateVirtualClusterDnsServersOperation; /** Optional parameters. */ -export interface ServersImportDatabaseOptionalParams +export interface VirtualClustersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type VirtualClustersListNextResponse = VirtualClusterListResult; + +/** Optional parameters. */ +export interface VirtualClustersListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; + +/** Optional parameters. */ +export interface VirtualNetworkRulesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; + +/** Optional parameters. */ +export interface VirtualNetworkRulesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type VirtualNetworkRulesGetResponse = VirtualNetworkRule; + +/** Optional parameters. */ +export interface VirtualNetworkRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17149,11 +16712,11 @@ export interface ServersImportDatabaseOptionalParams resumeFrom?: string; } -/** Contains response data for the importDatabase operation. */ -export type ServersImportDatabaseResponse = ImportExportOperationResult; +/** Contains response data for the createOrUpdate operation. */ +export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; /** Optional parameters. */ -export interface ServersRefreshStatusOptionalParams +export interface VirtualNetworkRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17161,71 +16724,71 @@ export interface ServersRefreshStatusOptionalParams resumeFrom?: string; } -/** Contains response data for the refreshStatus operation. */ -export type ServersRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResult; - -/** Optional parameters. */ -export interface ServersListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ServersListNextResponse = ServerListResult; - /** Optional parameters. */ -export interface ServersListByResourceGroupNextOptionalParams +export interface VirtualNetworkRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ServersListByResourceGroupNextResponse = ServerListResult; +/** Contains response data for the listByServerNext operation. */ +export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams +export interface WorkloadClassifiersListByWorkloadGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopManagedInstanceScheduleListResult; +/** Contains response data for the listByWorkloadGroup operation. */ +export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesGetOptionalParams +export interface WorkloadClassifiersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type StartStopManagedInstanceSchedulesGetResponse = StartStopManagedInstanceSchedule; +export type WorkloadClassifiersGetResponse = WorkloadClassifier; /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadClassifiersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type StartStopManagedInstanceSchedulesCreateOrUpdateResponse = StartStopManagedInstanceSchedule; +export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadClassifiersDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams +export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type StartStopManagedInstanceSchedulesListByInstanceNextResponse = StartStopManagedInstanceScheduleListResult; +/** Contains response data for the listByWorkloadGroupNext operation. */ +export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseOptionalParams +export interface WorkloadGroupsListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; +export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsGetOptionalParams +export interface WorkloadGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; +export type WorkloadGroupsGetResponse = WorkloadGroup; /** Optional parameters. */ -export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams +export interface WorkloadGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17234,20 +16797,31 @@ export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; +export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams +export interface WorkloadGroupsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface WorkloadGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; +export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; /** Optional parameters. */ export interface SqlManagementClientOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; + /** Api Version */ + apiVersion?: string; /** Overrides client endpoint. */ endpoint?: string; } diff --git a/sdk/sql/arm-sql/src/models/mappers.ts b/sdk/sql/arm-sql/src/models/mappers.ts index 49fe7ed3686f..4a0a0bb9b5b4 100644 --- a/sdk/sql/arm-sql/src/models/mappers.ts +++ b/sdk/sql/arm-sql/src/models/mappers.ts @@ -8,6 +8,35 @@ import * as coreClient from "@azure/core-client"; +export const BackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BackupShortTermRetentionPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackupShortTermRetentionPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -38,141 +67,142 @@ export const Resource: coreClient.CompositeMapper = { } }; -export const DataMaskingRuleListResult: coreClient.CompositeMapper = { +export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingRuleListResult", + className: "ServerBlobAuditingPolicyListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DataMaskingRule" + className: "ServerBlobAuditingPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const GeoBackupPolicyListResult: coreClient.CompositeMapper = { +export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GeoBackupPolicyListResult", + className: "DatabaseBlobAuditingPolicyListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GeoBackupPolicy" + className: "DatabaseBlobAuditingPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const MetricListResult: coreClient.CompositeMapper = { +export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricListResult", + className: "ExtendedDatabaseBlobAuditingPolicyListResult", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Metric" + className: "ExtendedDatabaseBlobAuditingPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const Metric: coreClient.CompositeMapper = { +export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Metric", + className: "ExtendedServerBlobAuditingPolicyListResult", modelProperties: { - startTime: { - serializedName: "startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - timeGrain: { - serializedName: "timeGrain", - readOnly: true, - type: { - name: "String" - } - }, - unit: { - serializedName: "unit", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "Composite", - className: "MetricName" - } - }, - metricValues: { - serializedName: "metricValues", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricValue" + className: "ExtendedServerBlobAuditingPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const MetricName: coreClient.CompositeMapper = { +export const DataMaskingRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricName", + className: "DataMaskingRuleListResult", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataMaskingRule" + } + } } }, - localizedValue: { - serializedName: "localizedValue", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -182,368 +212,158 @@ export const MetricName: coreClient.CompositeMapper = { } }; -export const MetricValue: coreClient.CompositeMapper = { +export const DataWarehouseUserActivitiesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricValue", + className: "DataWarehouseUserActivitiesListResult", modelProperties: { - count: { - serializedName: "count", - readOnly: true, - type: { - name: "Number" - } - }, - average: { - serializedName: "average", - readOnly: true, - type: { - name: "Number" - } - }, - maximum: { - serializedName: "maximum", - readOnly: true, - type: { - name: "Number" - } - }, - minimum: { - serializedName: "minimum", - readOnly: true, - type: { - name: "Number" - } - }, - timestamp: { - serializedName: "timestamp", + value: { + serializedName: "value", readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataWarehouseUserActivities" + } + } } }, - total: { - serializedName: "total", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const MetricDefinitionListResult: coreClient.CompositeMapper = { +export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDefinitionListResult", + className: "DatabaseAdvancedThreatProtectionListResult", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricDefinition" + className: "DatabaseAdvancedThreatProtection" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const MetricDefinition: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDefinition", + className: "SystemData", modelProperties: { - name: { - serializedName: "name", + createdBy: { + serializedName: "createdBy", type: { - name: "Composite", - className: "MetricName" + name: "String" } }, - primaryAggregationType: { - serializedName: "primaryAggregationType", - readOnly: true, + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - resourceUri: { - serializedName: "resourceUri", - readOnly: true, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } }, - metricAvailabilities: { - serializedName: "metricAvailabilities", - readOnly: true, + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricAvailability" - } - } + name: "DateTime" } } } } }; -export const MetricAvailability: coreClient.CompositeMapper = { +export const RecommendedActionStateInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricAvailability", + className: "RecommendedActionStateInfo", modelProperties: { - retention: { - serializedName: "retention", - readOnly: true, + currentValue: { + serializedName: "currentValue", + required: true, type: { name: "String" } }, - timeGrain: { - serializedName: "timeGrain", + actionInitiatedBy: { + serializedName: "actionInitiatedBy", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["User", "System"] + } + }, + lastModified: { + serializedName: "lastModified", + readOnly: true, + type: { + name: "DateTime" } } } } }; -export const ServerCommunicationLinkListResult: coreClient.CompositeMapper = { +export const RecommendedActionImplementationInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerCommunicationLinkListResult", + className: "RecommendedActionImplementationInfo", modelProperties: { - value: { - serializedName: "value", + method: { + serializedName: "method", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerCommunicationLink" - } - } - } - } - } - } -}; - -export const ServiceObjectiveListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceObjectiveListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceObjective" - } - } - } - } - } - } -}; - -export const ElasticPoolActivityListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPoolActivityListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolActivity" - } - } - } - } - } - } -}; - -export const ElasticPoolDatabaseActivityListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPoolDatabaseActivityListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolDatabaseActivity" - } - } - } - } - } - } -}; - -export const ServerUsageListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerUsageListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerUsage" - } - } - } - } - } - } -}; - -export const ServerUsage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerUsage", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - resourceName: { - serializedName: "resourceName", - readOnly: true, - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - readOnly: true, - type: { - name: "String" - } - }, - currentValue: { - serializedName: "currentValue", - readOnly: true, - type: { - name: "Number" - } - }, - limit: { - serializedName: "limit", - readOnly: true, - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", - readOnly: true, - type: { - name: "String" - } - }, - nextResetTime: { - serializedName: "nextResetTime", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const RecommendedActionStateInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedActionStateInfo", - modelProperties: { - currentValue: { - serializedName: "currentValue", - required: true, - type: { - name: "String" - } - }, - actionInitiatedBy: { - serializedName: "actionInitiatedBy", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["User", "System"] - } - }, - lastModified: { - serializedName: "lastModified", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const RecommendedActionImplementationInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedActionImplementationInfo", - modelProperties: { - method: { - serializedName: "method", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["TSql", "AzurePowerShell"] - } - }, - script: { - serializedName: "script", - readOnly: true, - type: { - name: "String" + name: "Enum", + allowedValues: ["TSql", "AzurePowerShell"] + } + }, + script: { + serializedName: "script", + readOnly: true, + type: { + name: "String" } } } @@ -738,10 +558,10 @@ export const DatabaseColumnListResult: coreClient.CompositeMapper = { } }; -export const DatabaseSchemaListResult: coreClient.CompositeMapper = { +export const ImportExportExtensionsOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSchemaListResult", + className: "ImportExportExtensionsOperationListResult", modelProperties: { value: { serializedName: "value", @@ -751,7 +571,7 @@ export const DatabaseSchemaListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DatabaseSchema" + className: "ImportExportExtensionsOperationResult" } } } @@ -767,55 +587,61 @@ export const DatabaseSchemaListResult: coreClient.CompositeMapper = { } }; -export const SystemData: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionRequestStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "PrivateEndpointConnectionRequestStatus", modelProperties: { - createdBy: { - serializedName: "createdBy", + privateLinkServiceId: { + serializedName: "privateLinkServiceId", + readOnly: true, type: { name: "String" } }, - createdByType: { - serializedName: "createdByType", + privateEndpointConnectionName: { + serializedName: "privateEndpointConnectionName", + readOnly: true, type: { name: "String" } }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + } + } + } +}; + +export const NetworkIsolationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkIsolationSettings", + modelProperties: { + storageAccountResourceId: { + serializedName: "storageAccountResourceId", type: { name: "String" } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + sqlServerResourceId: { + serializedName: "sqlServerResourceId", type: { - name: "DateTime" + name: "String" } } } } }; -export const DatabaseSecurityAlertListResult: coreClient.CompositeMapper = { +export const DatabaseOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSecurityAlertListResult", + className: "DatabaseOperationListResult", modelProperties: { value: { serializedName: "value", @@ -825,7 +651,7 @@ export const DatabaseSecurityAlertListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DatabaseSecurityAlertPolicy" + className: "DatabaseOperation" } } } @@ -841,93 +667,63 @@ export const DatabaseSecurityAlertListResult: coreClient.CompositeMapper = { } }; -export const DatabaseTableListResult: coreClient.CompositeMapper = { +export const PhaseDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseTableListResult", + className: "PhaseDetails", modelProperties: { - value: { - serializedName: "value", + phase: { + serializedName: "phase", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseTable" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + phaseInformation: { + serializedName: "phaseInformation", readOnly: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const DatabaseVulnerabilityAssessmentRuleBaselineItem: coreClient.CompositeMapper = { +export const DatabaseSchemaListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem", + className: "DatabaseSchemaListResult", modelProperties: { - result: { - serializedName: "result", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DatabaseSchema" } } } - } - } - } -}; - -export const VulnerabilityAssessmentRecurringScansProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties", - modelProperties: { - isEnabled: { - serializedName: "isEnabled", - type: { - name: "Boolean" - } - }, - emailSubscriptionAdmins: { - defaultValue: true, - serializedName: "emailSubscriptionAdmins", - type: { - name: "Boolean" - } }, - emails: { - serializedName: "emails", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const DatabaseVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { +export const DatabaseSecurityAlertListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentListResult", + className: "DatabaseSecurityAlertListResult", modelProperties: { value: { serializedName: "value", @@ -937,7 +733,7 @@ export const DatabaseVulnerabilityAssessmentListResult: coreClient.CompositeMapp element: { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessment" + className: "DatabaseSecurityAlertPolicy" } } } @@ -953,10 +749,10 @@ export const DatabaseVulnerabilityAssessmentListResult: coreClient.CompositeMapp } }; -export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecordListResult", + className: "DatabaseSqlVulnerabilityAssessmentBaselineSetListResult", modelProperties: { value: { serializedName: "value", @@ -966,7 +762,7 @@ export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMa element: { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecord" + className: "DatabaseSqlVulnerabilityAssessmentBaselineSet" } } } @@ -982,20 +778,26 @@ export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMa } }; -export const VulnerabilityAssessmentScanError: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentScanError", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult", modelProperties: { - code: { - serializedName: "code", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline" + } + } } }, - message: { - serializedName: "message", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -1005,10 +807,10 @@ export const VulnerabilityAssessmentScanError: coreClient.CompositeMapper = { } }; -export const DataWarehouseUserActivitiesListResult: coreClient.CompositeMapper = { +export const SQLVulnerabilityAssessmentScanListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataWarehouseUserActivitiesListResult", + className: "SQLVulnerabilityAssessmentScanListResult", modelProperties: { value: { serializedName: "value", @@ -1018,7 +820,7 @@ export const DataWarehouseUserActivitiesListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "DataWarehouseUserActivities" + className: "SqlVulnerabilityAssessmentScanResults" } } } @@ -1034,26 +836,39 @@ export const DataWarehouseUserActivitiesListResult: coreClient.CompositeMapper = } }; -export const DeletedServerListResult: coreClient.CompositeMapper = { +export const Remediation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeletedServerListResult", + className: "Remediation", modelProperties: { - value: { - serializedName: "value", + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + }, + scripts: { + serializedName: "scripts", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DeletedServer" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + automated: { + serializedName: "automated", + readOnly: true, + type: { + name: "Boolean" + } + }, + portalLink: { + serializedName: "portalLink", readOnly: true, type: { name: "String" @@ -1063,164 +878,166 @@ export const DeletedServerListResult: coreClient.CompositeMapper = { } }; -export const ElasticPoolOperationListResult: coreClient.CompositeMapper = { +export const BaselineAdjustedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolOperationListResult", + className: "BaselineAdjustedResult", modelProperties: { - value: { - serializedName: "value", + baseline: { + serializedName: "baseline", + type: { + name: "Composite", + className: "Baseline" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + }, + resultsNotInBaseline: { + serializedName: "resultsNotInBaseline", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ElasticPoolOperation" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } }, - nextLink: { - serializedName: "nextLink", + resultsOnlyInBaseline: { + serializedName: "resultsOnlyInBaseline", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const EncryptionProtectorListResult: coreClient.CompositeMapper = { +export const Baseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtectorListResult", + className: "Baseline", modelProperties: { - value: { - serializedName: "value", + expectedResults: { + serializedName: "expectedResults", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "EncryptionProtector" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } }, - nextLink: { - serializedName: "nextLink", + updatedTime: { + serializedName: "updatedTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { +export const VaRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupReadWriteEndpoint", + className: "VaRule", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - required: true, + ruleId: { + serializedName: "ruleId", + readOnly: true, type: { name: "String" } }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", + severity: { + serializedName: "severity", + readOnly: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", + }, + category: { + serializedName: "category", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PartnerInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartnerInfo", - modelProperties: { - id: { - serializedName: "id", - required: true, + }, + ruleType: { + serializedName: "ruleType", + readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", + title: { + serializedName: "title", readOnly: true, type: { name: "String" } }, - replicationRole: { - serializedName: "replicationRole", + description: { + serializedName: "description", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const FailoverGroupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", + rationale: { + serializedName: "rationale", + readOnly: true, type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" + name: "String" } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + queryCheck: { + serializedName: "queryCheck", type: { name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" + className: "QueryCheck" } }, - databases: { - serializedName: "properties.databases", + benchmarkReferences: { + serializedName: "benchmarkReferences", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "BenchmarkReference" } } } @@ -1229,55 +1046,65 @@ export const FailoverGroupUpdate: coreClient.CompositeMapper = { } }; -export const FailoverGroupListResult: coreClient.CompositeMapper = { +export const QueryCheck: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupListResult", + className: "QueryCheck", modelProperties: { - value: { - serializedName: "value", + query: { + serializedName: "query", + readOnly: true, + type: { + name: "String" + } + }, + expectedResult: { + serializedName: "expectedResult", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "FailoverGroup" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } }, - nextLink: { - serializedName: "nextLink", + columnNames: { + serializedName: "columnNames", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ResourceWithWritableName: coreClient.CompositeMapper = { +export const BenchmarkReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceWithWritableName", + className: "BenchmarkReference", modelProperties: { - id: { - serializedName: "id", + benchmark: { + serializedName: "benchmark", readOnly: true, type: { name: "String" } }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", + reference: { + serializedName: "reference", readOnly: true, type: { name: "String" @@ -1287,10 +1114,10 @@ export const ResourceWithWritableName: coreClient.CompositeMapper = { } }; -export const FirewallRuleListResult: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirewallRuleListResult", + className: "SqlVulnerabilityAssessmentScanRecordListResult", modelProperties: { value: { serializedName: "value", @@ -1300,7 +1127,7 @@ export const FirewallRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "FirewallRule" + className: "SqlVulnerabilityAssessmentScanRecord" } } } @@ -1316,87 +1143,33 @@ export const FirewallRuleListResult: coreClient.CompositeMapper = { } }; -export const FirewallRuleList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FirewallRuleList", - modelProperties: { - values: { - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FirewallRule" - } - } - } - } - } - } -}; - -export const Sku: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "SqlVulnerabilityAssessmentScanError", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", - type: { - name: "String" - } - }, - size: { - serializedName: "size", + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - family: { - serializedName: "family", + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } - }, - capacity: { - serializedName: "capacity", - type: { - name: "Number" - } - } - } - } -}; - -export const InstancePoolUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InstancePoolUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } } } } }; -export const InstancePoolListResult: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolListResult", + className: "SqlVulnerabilityAssessmentListResult", modelProperties: { value: { serializedName: "value", @@ -1406,7 +1179,7 @@ export const InstancePoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstancePool" + className: "SqlVulnerabilityAssessment" } } } @@ -1422,10 +1195,10 @@ export const InstancePoolListResult: coreClient.CompositeMapper = { } }; -export const JobAgentListResult: coreClient.CompositeMapper = { +export const DatabaseTableListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobAgentListResult", + className: "DatabaseTableListResult", modelProperties: { value: { serializedName: "value", @@ -1435,7 +1208,7 @@ export const JobAgentListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobAgent" + className: "DatabaseTable" } } } @@ -1451,26 +1224,10 @@ export const JobAgentListResult: coreClient.CompositeMapper = { } }; -export const JobAgentUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobAgentUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const JobCredentialListResult: coreClient.CompositeMapper = { +export const DatabaseUsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobCredentialListResult", + className: "DatabaseUsageListResult", modelProperties: { value: { serializedName: "value", @@ -1480,7 +1237,7 @@ export const JobCredentialListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobCredential" + className: "DatabaseUsage" } } } @@ -1496,10 +1253,31 @@ export const JobCredentialListResult: coreClient.CompositeMapper = { } }; -export const JobExecutionListResult: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentRuleBaselineItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobExecutionListResult", + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem", + modelProperties: { + result: { + serializedName: "result", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanRecordListResult", modelProperties: { value: { serializedName: "value", @@ -1509,7 +1287,7 @@ export const JobExecutionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobExecution" + className: "VulnerabilityAssessmentScanRecord" } } } @@ -1525,27 +1303,20 @@ export const JobExecutionListResult: coreClient.CompositeMapper = { } }; -export const JobExecutionTarget: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentScanError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobExecutionTarget", + className: "VulnerabilityAssessmentScanError", modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - serverName: { - serializedName: "serverName", + code: { + serializedName: "code", readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "databaseName", + message: { + serializedName: "message", readOnly: true, type: { name: "String" @@ -1555,10 +1326,10 @@ export const JobExecutionTarget: coreClient.CompositeMapper = { } }; -export const JobListResult: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobListResult", + className: "DatabaseVulnerabilityAssessmentListResult", modelProperties: { value: { serializedName: "value", @@ -1568,7 +1339,7 @@ export const JobListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Job" + className: "DatabaseVulnerabilityAssessment" } } } @@ -1584,53 +1355,43 @@ export const JobListResult: coreClient.CompositeMapper = { } }; -export const JobSchedule: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentRecurringScansProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobSchedule", + className: "VulnerabilityAssessmentRecurringScansProperties", modelProperties: { - startTime: { - defaultValue: "0001-01-01T00:00:00+00:00", - serializedName: "startTime", + isEnabled: { + serializedName: "isEnabled", type: { - name: "DateTime" + name: "Boolean" } }, - endTime: { - defaultValue: "9999-12-31T11:59:59+00:00", - serializedName: "endTime", - type: { - name: "DateTime" - } - }, - type: { - defaultValue: "Once", - serializedName: "type", - type: { - name: "Enum", - allowedValues: ["Once", "Recurring"] - } - }, - enabled: { - serializedName: "enabled", + emailSubscriptionAdmins: { + defaultValue: true, + serializedName: "emailSubscriptionAdmins", type: { name: "Boolean" } }, - interval: { - serializedName: "interval", + emails: { + serializedName: "emails", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const JobStepListResult: coreClient.CompositeMapper = { +export const DatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStepListResult", + className: "DatabaseListResult", modelProperties: { value: { serializedName: "value", @@ -1640,7 +1401,7 @@ export const JobStepListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobStep" + className: "Database" } } } @@ -1656,163 +1417,128 @@ export const JobStepListResult: coreClient.CompositeMapper = { } }; -export const JobStepAction: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStepAction", + className: "Sku", modelProperties: { - type: { - defaultValue: "TSql", - serializedName: "type", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - source: { - defaultValue: "Inline", - serializedName: "source", + tier: { + serializedName: "tier", type: { name: "String" } }, - value: { - serializedName: "value", - required: true, + size: { + serializedName: "size", + type: { + name: "String" + } + }, + family: { + serializedName: "family", type: { name: "String" } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } } } } }; -export const JobStepOutput: coreClient.CompositeMapper = { +export const DatabaseIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStepOutput", + className: "DatabaseIdentity", modelProperties: { type: { - defaultValue: "SqlDatabase", serializedName: "type", type: { name: "String" } }, - subscriptionId: { - serializedName: "subscriptionId", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { name: "Uuid" } }, - resourceGroupName: { - serializedName: "resourceGroupName", - type: { - name: "String" - } - }, - serverName: { - serializedName: "serverName", - required: true, - type: { - name: "String" - } - }, - databaseName: { - serializedName: "databaseName", - required: true, - type: { - name: "String" - } - }, - schemaName: { - defaultValue: "dbo", - serializedName: "schemaName", - type: { - name: "String" - } - }, - tableName: { - serializedName: "tableName", - required: true, - type: { - name: "String" - } - }, - credential: { - serializedName: "credential", - required: true, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Composite", className: "DatabaseUserIdentity" } + } } } } } }; -export const JobStepExecutionOptions: coreClient.CompositeMapper = { +export const DatabaseUserIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStepExecutionOptions", + className: "DatabaseUserIdentity", modelProperties: { - timeoutSeconds: { - defaultValue: 43200, - serializedName: "timeoutSeconds", - type: { - name: "Number" - } - }, - retryAttempts: { - defaultValue: 10, - serializedName: "retryAttempts", - type: { - name: "Number" - } - }, - initialRetryIntervalSeconds: { - defaultValue: 1, - serializedName: "initialRetryIntervalSeconds", - type: { - name: "Number" - } - }, - maximumRetryIntervalSeconds: { - defaultValue: 120, - serializedName: "maximumRetryIntervalSeconds", + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - retryIntervalBackoffMultiplier: { - defaultValue: 2, - serializedName: "retryIntervalBackoffMultiplier", + clientId: { + serializedName: "clientId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } } } } }; -export const JobTargetGroupListResult: coreClient.CompositeMapper = { +export const DatabaseKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobTargetGroupListResult", + className: "DatabaseKey", modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobTargetGroup" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + thumbprint: { + serializedName: "thumbprint", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + subregion: { + serializedName: "subregion", readOnly: true, type: { name: "String" @@ -1822,491 +1548,431 @@ export const JobTargetGroupListResult: coreClient.CompositeMapper = { } }; -export const JobTarget: coreClient.CompositeMapper = { +export const DatabaseUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobTarget", + className: "DatabaseUpdate", modelProperties: { - membershipType: { - defaultValue: "Include", - serializedName: "membershipType", + sku: { + serializedName: "sku", type: { - name: "Enum", - allowedValues: ["Include", "Exclude"] + name: "Composite", + className: "Sku" } }, - type: { - serializedName: "type", - required: true, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "DatabaseIdentity" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + createMode: { + serializedName: "properties.createMode", type: { name: "String" } }, - serverName: { - serializedName: "serverName", + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - databaseName: { - serializedName: "databaseName", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + type: { + name: "Number" + } + }, + sampleName: { + serializedName: "properties.sampleName", type: { name: "String" } }, - elasticPoolName: { - serializedName: "elasticPoolName", + elasticPoolId: { + serializedName: "properties.elasticPoolId", type: { name: "String" } }, - shardMapName: { - serializedName: "shardMapName", + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { name: "String" } }, - refreshCredential: { - serializedName: "refreshCredential", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const JobVersionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobVersionListResult", - modelProperties: { - value: { - serializedName: "value", + }, + databaseId: { + serializedName: "properties.databaseId", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobVersion" - } - } + name: "Uuid" } }, - nextLink: { - serializedName: "nextLink", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const LocationCapabilities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LocationCapabilities", - modelProperties: { - name: { - serializedName: "name", + }, + currentServiceObjectiveName: { + serializedName: "properties.currentServiceObjectiveName", readOnly: true, type: { name: "String" } }, - supportedServerVersions: { - serializedName: "supportedServerVersions", + requestedServiceObjectiveName: { + serializedName: "properties.requestedServiceObjectiveName", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVersionCapability" - } - } + name: "String" } }, - supportedManagedInstanceVersions: { - serializedName: "supportedManagedInstanceVersions", + defaultSecondaryLocation: { + serializedName: "properties.defaultSecondaryLocation", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceVersionCapability" - } - } + name: "String" } }, - status: { - serializedName: "status", + failoverGroupId: { + serializedName: "properties.failoverGroupId", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } - } - } - } -}; - -export const ServerVersionCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerVersionCapability", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + }, + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "String" + name: "DateTime" } }, - supportedEditions: { - serializedName: "supportedEditions", - readOnly: true, + sourceDatabaseDeletionDate: { + serializedName: "properties.sourceDatabaseDeletionDate", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EditionCapability" - } - } + name: "DateTime" } }, - supportedElasticPoolEditions: { - serializedName: "supportedElasticPoolEditions", - readOnly: true, + recoveryServicesRecoveryPointId: { + serializedName: "properties.recoveryServicesRecoveryPointId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolEditionCapability" - } - } + name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { name: "String" } - } - } - } -}; - -export const EditionCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EditionCapability", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { name: "String" } }, - supportedServiceLevelObjectives: { - serializedName: "supportedServiceLevelObjectives", - readOnly: true, + catalogCollation: { + serializedName: "properties.catalogCollation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceObjectiveCapability" - } - } + name: "String" } }, zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, + serializedName: "properties.zoneRedundant", type: { name: "Boolean" } }, - readScale: { - serializedName: "readScale", + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Composite", - className: "ReadScaleCapability" + name: "String" } }, - supportedStorageCapabilities: { - serializedName: "supportedStorageCapabilities", + maxLogSizeBytes: { + serializedName: "properties.maxLogSizeBytes", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StorageCapability" - } - } + name: "Number" } }, - status: { - serializedName: "status", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "DateTime" } }, - reason: { - serializedName: "reason", + readScale: { + serializedName: "properties.readScale", type: { name: "String" } - } - } - } -}; - -export const ServiceObjectiveCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceObjectiveCapability", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "Uuid" - } }, - name: { - serializedName: "name", - readOnly: true, + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", type: { - name: "String" + name: "Number" } }, - supportedMaxSizes: { - serializedName: "supportedMaxSizes", - readOnly: true, + secondaryType: { + serializedName: "properties.secondaryType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } + name: "String" } }, - performanceLevel: { - serializedName: "performanceLevel", + currentSku: { + serializedName: "properties.currentSku", type: { name: "Composite", - className: "PerformanceLevelCapability" + className: "Sku" } }, - sku: { - serializedName: "sku", + autoPauseDelay: { + serializedName: "properties.autoPauseDelay", type: { - name: "Composite", - className: "Sku" + name: "Number" } }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", + currentBackupStorageRedundancy: { + serializedName: "properties.currentBackupStorageRedundancy", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } + name: "String" } }, - includedMaxSize: { - serializedName: "includedMaxSize", + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, + minCapacity: { + serializedName: "properties.minCapacity", type: { - name: "Boolean" + name: "Number" } }, - supportedAutoPauseDelay: { - serializedName: "supportedAutoPauseDelay", + pausedDate: { + serializedName: "properties.pausedDate", + readOnly: true, type: { - name: "Composite", - className: "AutoPauseDelayTimeRange" + name: "DateTime" } }, - supportedMinCapacities: { - serializedName: "supportedMinCapacities", + resumedDate: { + serializedName: "properties.resumedDate", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MinCapacityCapability" - } - } + name: "DateTime" } }, - computeModel: { - serializedName: "computeModel", - readOnly: true, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } }, - supportedMaintenanceConfigurations: { - serializedName: "supportedMaintenanceConfigurations", - readOnly: true, + isLedgerOn: { + serializedName: "properties.isLedgerOn", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceConfigurationCapability" - } - } + name: "Boolean" } }, - status: { - serializedName: "status", + isInfraEncryptionEnabled: { + serializedName: "properties.isInfraEncryptionEnabled", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "Boolean" } }, - reason: { - serializedName: "reason", + federatedClientId: { + serializedName: "properties.federatedClientId", + type: { + name: "Uuid" + } + }, + keys: { + serializedName: "properties.keys", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "DatabaseKey" } } + } + }, + encryptionProtector: { + serializedName: "properties.encryptionProtector", + type: { + name: "String" + } + }, + preferredEnclaveType: { + serializedName: "properties.preferredEnclaveType", type: { name: "String" } + }, + manualCutover: { + serializedName: "properties.manualCutover", + type: { + name: "Boolean" + } + }, + performCutover: { + serializedName: "properties.performCutover", + type: { + name: "Boolean" + } } } } }; -export const MaxSizeRangeCapability: coreClient.CompositeMapper = { +export const ExportDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaxSizeRangeCapability", + className: "ExportDatabaseDefinition", modelProperties: { - minValue: { - serializedName: "minValue", + storageKeyType: { + serializedName: "storageKeyType", + required: true, type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - maxValue: { - serializedName: "maxValue", + storageKey: { + serializedName: "storageKey", + required: true, type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - scaleSize: { - serializedName: "scaleSize", + storageUri: { + serializedName: "storageUri", + required: true, type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - logSize: { - serializedName: "logSize", + administratorLogin: { + serializedName: "administratorLogin", + required: true, type: { - name: "Composite", - className: "LogSizeCapability" + name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + administratorLoginPassword: { + serializedName: "administratorLoginPassword", + required: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + authenticationType: { + serializedName: "authenticationType", type: { name: "String" } + }, + networkIsolation: { + serializedName: "networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" + } } } } }; -export const MaxSizeCapability: coreClient.CompositeMapper = { +export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaxSizeCapability", + className: "ImportExistingDatabaseDefinition", modelProperties: { - limit: { - serializedName: "limit", - readOnly: true, + storageKeyType: { + serializedName: "storageKeyType", + required: true, type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + storageKey: { + serializedName: "storageKey", + required: true, + type: { + name: "String" + } + }, + storageUri: { + serializedName: "storageUri", + required: true, + type: { + name: "String" + } + }, + administratorLogin: { + serializedName: "administratorLogin", + required: true, + type: { + name: "String" + } + }, + administratorLoginPassword: { + serializedName: "administratorLoginPassword", + required: true, + type: { + name: "String" + } + }, + authenticationType: { + serializedName: "authenticationType", type: { name: "String" } + }, + networkIsolation: { + serializedName: "networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" + } } } } }; -export const LogSizeCapability: coreClient.CompositeMapper = { +export const ResourceMoveDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogSizeCapability", + className: "ResourceMoveDefinition", modelProperties: { - limit: { - serializedName: "limit", - readOnly: true, - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", - readOnly: true, + id: { + serializedName: "id", + required: true, type: { name: "String" } @@ -2315,20 +1981,26 @@ export const LogSizeCapability: coreClient.CompositeMapper = { } }; -export const PerformanceLevelCapability: coreClient.CompositeMapper = { +export const DeletedServerListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PerformanceLevelCapability", + className: "DeletedServerListResult", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeletedServer" + } + } } }, - unit: { - serializedName: "unit", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -2338,28 +2010,27 @@ export const PerformanceLevelCapability: coreClient.CompositeMapper = { } }; -export const LicenseTypeCapability: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LicenseTypeCapability", + className: "DistributedAvailabilityGroupsListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DistributedAvailabilityGroup" + } + } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2368,79 +2039,50 @@ export const LicenseTypeCapability: coreClient.CompositeMapper = { } }; -export const AutoPauseDelayTimeRange: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroupSetRole: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoPauseDelayTimeRange", + className: "DistributedAvailabilityGroupSetRole", modelProperties: { - minValue: { - serializedName: "minValue", - readOnly: true, - type: { - name: "Number" - } - }, - maxValue: { - serializedName: "maxValue", - readOnly: true, - type: { - name: "Number" - } - }, - stepSize: { - serializedName: "stepSize", - readOnly: true, - type: { - name: "Number" - } - }, - default: { - serializedName: "default", - readOnly: true, - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", - readOnly: true, + instanceRole: { + serializedName: "instanceRole", + required: true, type: { name: "String" } }, - doNotPauseValue: { - serializedName: "doNotPauseValue", - readOnly: true, + roleChangeType: { + serializedName: "roleChangeType", + required: true, type: { - name: "Number" + name: "String" } } } } }; -export const MinCapacityCapability: coreClient.CompositeMapper = { +export const ElasticPoolOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MinCapacityCapability", + className: "ElasticPoolOperationListResult", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ElasticPoolOperation" + } + } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2449,35 +2091,27 @@ export const MinCapacityCapability: coreClient.CompositeMapper = { } }; -export const MaintenanceConfigurationCapability: coreClient.CompositeMapper = { +export const ElasticPoolListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceConfigurationCapability", + className: "ElasticPoolListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - zoneRedundant: { - serializedName: "zoneRedundant", + value: { + serializedName: "value", readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ElasticPool" + } + } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2486,58 +2120,97 @@ export const MaintenanceConfigurationCapability: coreClient.CompositeMapper = { } }; -export const ReadScaleCapability: coreClient.CompositeMapper = { +export const ElasticPoolPerDatabaseSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReadScaleCapability", + className: "ElasticPoolPerDatabaseSettings", modelProperties: { - maxNumberOfReplicas: { - serializedName: "maxNumberOfReplicas", - readOnly: true, + minCapacity: { + serializedName: "minCapacity", type: { name: "Number" } }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", + maxCapacity: { + serializedName: "maxCapacity", type: { - name: "String" + name: "Number" } } } } }; -export const StorageCapability: coreClient.CompositeMapper = { +export const ElasticPoolUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageCapability", + className: "ElasticPoolUpdate", modelProperties: { - storageAccountType: { - serializedName: "storageAccountType", - readOnly: true, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + type: { + name: "Number" + } + }, + minCapacity: { + serializedName: "properties.minCapacity", + type: { + name: "Number" + } + }, + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", + type: { + name: "Composite", + className: "ElasticPoolPerDatabaseSettings" + } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", + type: { + name: "Number" + } + }, + preferredEnclaveType: { + serializedName: "properties.preferredEnclaveType", + type: { + name: "String" + } + }, + availabilityZone: { + serializedName: "properties.availabilityZone", type: { name: "String" } @@ -2546,48 +2219,27 @@ export const StorageCapability: coreClient.CompositeMapper = { } }; -export const ElasticPoolEditionCapability: coreClient.CompositeMapper = { +export const EncryptionProtectorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolEditionCapability", + className: "EncryptionProtectorListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - supportedElasticPoolPerformanceLevels: { - serializedName: "supportedElasticPoolPerformanceLevels", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ElasticPoolPerformanceLevelCapability" + className: "EncryptionProtector" } } } }, - zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, - type: { - name: "Boolean" - } - }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2596,121 +2248,123 @@ export const ElasticPoolEditionCapability: coreClient.CompositeMapper = { } }; -export const ElasticPoolPerformanceLevelCapability: coreClient.CompositeMapper = { +export const EndpointCertificateListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerformanceLevelCapability", + className: "EndpointCertificateListResult", modelProperties: { - performanceLevel: { - serializedName: "performanceLevel", - type: { - name: "Composite", - className: "PerformanceLevelCapability" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "LicenseTypeCapability" + className: "EndpointCertificate" } } } }, - maxDatabaseCount: { - serializedName: "maxDatabaseCount", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" - } - }, - includedMaxSize: { - serializedName: "includedMaxSize", - type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } - }, - supportedMaxSizes: { - serializedName: "supportedMaxSizes", + } + } + } +}; + +export const FailoverGroupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroupListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MaxSizeRangeCapability" + className: "FailoverGroup" } } } }, - supportedPerDatabaseMaxSizes: { - serializedName: "supportedPerDatabaseMaxSizes", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } + name: "String" } - }, - supportedPerDatabaseMaxPerformanceLevels: { - serializedName: "supportedPerDatabaseMaxPerformanceLevels", - readOnly: true, + } + } + } +}; + +export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroupReadWriteEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability" - } - } + name: "String" } }, - zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", type: { - name: "Boolean" + name: "Number" } - }, - supportedMaintenanceConfigurations: { - serializedName: "supportedMaintenanceConfigurations", - readOnly: true, + } + } + } +}; + +export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceConfigurationCapability" - } - } + name: "String" + } + } + } + } +}; + +export const PartnerInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartnerInfo", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" } }, - status: { - serializedName: "status", + location: { + serializedName: "location", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + replicationRole: { + serializedName: "replicationRole", + readOnly: true, type: { name: "String" } @@ -2719,48 +2373,68 @@ export const ElasticPoolPerformanceLevelCapability: coreClient.CompositeMapper = } }; -export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: coreClient.CompositeMapper = { +export const FailoverGroupUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", + className: "FailoverGroupUpdate", modelProperties: { - limit: { - serializedName: "limit", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - unit: { - serializedName: "unit", - readOnly: true, + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { - name: "String" + name: "Composite", + className: "FailoverGroupReadWriteEndpoint" } }, - supportedPerDatabaseMinPerformanceLevels: { - serializedName: "supportedPerDatabaseMinPerformanceLevels", - readOnly: true, + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", + type: { + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" + } + }, + databases: { + serializedName: "properties.databases", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability" + name: "String" } } } - }, - status: { - serializedName: "status", + } + } + } +}; + +export const FirewallRuleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FirewallRuleListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FirewallRule" + } + } } }, - reason: { - serializedName: "reason", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -2769,35 +2443,27 @@ export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: coreClient.Com } }; -export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: coreClient.CompositeMapper = { +export const ResourceWithWritableName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", + className: "ResourceWithWritableName", modelProperties: { - limit: { - serializedName: "limit", + id: { + serializedName: "id", readOnly: true, type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - status: { - serializedName: "status", + type: { + serializedName: "type", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2806,54 +2472,48 @@ export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: coreClient.Com } }; -export const ManagedInstanceVersionCapability: coreClient.CompositeMapper = { +export const FirewallRuleList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVersionCapability", + className: "FirewallRuleList", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - supportedEditions: { - serializedName: "supportedEditions", - readOnly: true, + values: { + serializedName: "values", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceEditionCapability" + className: "FirewallRule" } } } - }, - supportedInstancePoolEditions: { - serializedName: "supportedInstancePoolEditions", + } + } + } +}; + +export const GeoBackupPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GeoBackupPolicyListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstancePoolEditionCapability" + className: "GeoBackupPolicy" } } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2862,61 +2522,93 @@ export const ManagedInstanceVersionCapability: coreClient.CompositeMapper = { } }; -export const ManagedInstanceEditionCapability: coreClient.CompositeMapper = { +export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEditionCapability", + className: "IPv6FirewallRuleListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - supportedFamilies: { - serializedName: "supportedFamilies", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceFamilyCapability" + className: "IPv6FirewallRule" } } } }, - supportedStorageCapabilities: { - serializedName: "supportedStorageCapabilities", + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceFailoverGroupListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageCapability" + className: "InstanceFailoverGroup" } } } }, - zoneRedundant: { - serializedName: "zoneRedundant", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - status: { - serializedName: "status", - readOnly: true, + } + } + } +}; + +export const InstanceFailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceFailoverGroupReadWriteEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", + required: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", + type: { + name: "Number" + } + } + } + } +}; + +export const InstanceFailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceFailoverGroupReadOnlyEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", type: { name: "String" } @@ -2925,61 +2617,70 @@ export const ManagedInstanceEditionCapability: coreClient.CompositeMapper = { } }; -export const ManagedInstanceFamilyCapability: coreClient.CompositeMapper = { +export const PartnerRegionInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceFamilyCapability", + className: "PartnerRegionInfo", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - sku: { - serializedName: "sku", + replicationRole: { + serializedName: "replicationRole", readOnly: true, type: { name: "String" } - }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", - readOnly: true, + } + } + } +}; + +export const ManagedInstancePairInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePairInfo", + modelProperties: { + primaryManagedInstanceId: { + serializedName: "primaryManagedInstanceId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } + name: "String" } }, - supportedVcoresValues: { - serializedName: "supportedVcoresValues", + partnerManagedInstanceId: { + serializedName: "partnerManagedInstanceId", + type: { + name: "String" + } + } + } + } +}; + +export const InstancePoolListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstancePoolListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceVcoresCapability" + className: "InstancePool" } } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2988,82 +2689,88 @@ export const ManagedInstanceFamilyCapability: coreClient.CompositeMapper = { } }; -export const ManagedInstanceVcoresCapability: coreClient.CompositeMapper = { +export const InstancePoolUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVcoresCapability", + className: "InstancePoolUpdate", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } - }, + } + } + } +}; + +export const JobAgentListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobAgentListResult", + modelProperties: { value: { serializedName: "value", readOnly: true, - type: { - name: "Number" - } - }, - includedMaxSize: { - serializedName: "includedMaxSize", - type: { - name: "Composite", - className: "MaxSizeCapability" - } - }, - supportedStorageSizes: { - serializedName: "supportedStorageSizes", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MaxSizeRangeCapability" + className: "JobAgent" } } } }, - instancePoolSupported: { - serializedName: "instancePoolSupported", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - standaloneSupported: { - serializedName: "standaloneSupported", - readOnly: true, + } + } + } +}; + +export const JobAgentUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobAgentUpdate", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - supportedMaintenanceConfigurations: { - serializedName: "supportedMaintenanceConfigurations", + } + } + } +}; + +export const JobCredentialListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobCredentialListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceMaintenanceConfigurationCapability" + className: "JobCredential" } } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -3072,28 +2779,27 @@ export const ManagedInstanceVcoresCapability: coreClient.CompositeMapper = { } }; -export const ManagedInstanceMaintenanceConfigurationCapability: coreClient.CompositeMapper = { +export const JobExecutionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceMaintenanceConfigurationCapability", + className: "JobExecutionListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobExecution" + } + } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -3102,41 +2808,28 @@ export const ManagedInstanceMaintenanceConfigurationCapability: coreClient.Compo } }; -export const InstancePoolEditionCapability: coreClient.CompositeMapper = { +export const JobExecutionTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolEditionCapability", + className: "JobExecutionTarget", modelProperties: { - name: { - serializedName: "name", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - supportedFamilies: { - serializedName: "supportedFamilies", + serverName: { + serializedName: "serverName", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstancePoolFamilyCapability" - } - } + name: "String" } }, - status: { - serializedName: "status", + databaseName: { + serializedName: "databaseName", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -3145,54 +2838,57 @@ export const InstancePoolEditionCapability: coreClient.CompositeMapper = { } }; -export const InstancePoolFamilyCapability: coreClient.CompositeMapper = { +export const JobStepListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolFamilyCapability", + className: "JobStepListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "LicenseTypeCapability" + className: "JobStep" } } } }, - supportedVcoresValues: { - serializedName: "supportedVcoresValues", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstancePoolVcoresCapability" - } - } + name: "String" + } + } + } + } +}; + +export const JobStepAction: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobStepAction", + modelProperties: { + type: { + defaultValue: "TSql", + serializedName: "type", + type: { + name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + source: { + defaultValue: "Inline", + serializedName: "source", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + value: { + serializedName: "value", + required: true, type: { name: "String" } @@ -3201,71 +2897,61 @@ export const InstancePoolFamilyCapability: coreClient.CompositeMapper = { } }; -export const InstancePoolVcoresCapability: coreClient.CompositeMapper = { +export const JobStepOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolVcoresCapability", + className: "JobStepOutput", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + type: { + defaultValue: "SqlDatabase", + serializedName: "type", type: { name: "String" } }, - value: { - serializedName: "value", - readOnly: true, + subscriptionId: { + serializedName: "subscriptionId", type: { - name: "Number" + name: "Uuid" } }, - storageLimit: { - serializedName: "storageLimit", + resourceGroupName: { + serializedName: "resourceGroupName", type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + serverName: { + serializedName: "serverName", + required: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + databaseName: { + serializedName: "databaseName", + required: true, type: { name: "String" } - } - } - } -}; - -export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LongTermRetentionPolicyListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + }, + schemaName: { + defaultValue: "dbo", + serializedName: "schemaName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LongTermRetentionPolicy" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + tableName: { + serializedName: "tableName", + required: true, + type: { + name: "String" + } + }, + credential: { + serializedName: "credential", + required: true, type: { name: "String" } @@ -3274,66 +2960,54 @@ export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { } }; -export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { +export const JobStepExecutionOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindowTimeRange", + className: "JobStepExecutionOptions", modelProperties: { - dayOfWeek: { - serializedName: "dayOfWeek", + timeoutSeconds: { + defaultValue: 43200, + serializedName: "timeoutSeconds", type: { - name: "String" + name: "Number" } }, - startTime: { - serializedName: "startTime", + retryAttempts: { + defaultValue: 10, + serializedName: "retryAttempts", type: { - name: "String" + name: "Number" } }, - duration: { - serializedName: "duration", + initialRetryIntervalSeconds: { + defaultValue: 1, + serializedName: "initialRetryIntervalSeconds", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedBackupShortTermRetentionPolicyListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + }, + maximumRetryIntervalSeconds: { + defaultValue: 120, + serializedName: "maximumRetryIntervalSeconds", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + retryIntervalBackoffMultiplier: { + defaultValue: 2, + serializedName: "retryIntervalBackoffMultiplier", type: { - name: "String" + name: "Number" } } } } }; -export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { +export const JobTargetGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceQueryStatistics", + className: "JobTargetGroupListResult", modelProperties: { value: { serializedName: "value", @@ -3343,7 +3017,7 @@ export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryStatistics" + className: "JobTargetGroup" } } } @@ -3359,173 +3033,64 @@ export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { } }; -export const QueryStatisticsProperties: coreClient.CompositeMapper = { +export const JobTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStatisticsProperties", + className: "JobTarget", modelProperties: { - databaseName: { - serializedName: "databaseName", - readOnly: true, - type: { - name: "String" - } - }, - queryId: { - serializedName: "queryId", - readOnly: true, - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - readOnly: true, + membershipType: { + defaultValue: "Include", + serializedName: "membershipType", type: { - name: "String" + name: "Enum", + allowedValues: ["Include", "Exclude"] } }, - endTime: { - serializedName: "endTime", - readOnly: true, + type: { + serializedName: "type", + required: true, type: { name: "String" } }, - intervals: { - serializedName: "intervals", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QueryMetricInterval" - } - } - } - } - } - } -}; - -export const QueryMetricInterval: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QueryMetricInterval", - modelProperties: { - intervalStartTime: { - serializedName: "intervalStartTime", - readOnly: true, + serverName: { + serializedName: "serverName", type: { name: "String" } }, - intervalType: { - serializedName: "intervalType", - readOnly: true, + databaseName: { + serializedName: "databaseName", type: { name: "String" } }, - executionCount: { - serializedName: "executionCount", - readOnly: true, - type: { - name: "Number" - } - }, - metrics: { - serializedName: "metrics", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QueryMetricProperties" - } - } - } - } - } - } -}; - -export const QueryMetricProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QueryMetricProperties", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + elasticPoolName: { + serializedName: "elasticPoolName", type: { name: "String" } }, - displayName: { - serializedName: "displayName", - readOnly: true, + shardMapName: { + serializedName: "shardMapName", type: { name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + refreshCredential: { + serializedName: "refreshCredential", type: { name: "String" } - }, - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Number" - } - }, - min: { - serializedName: "min", - readOnly: true, - type: { - name: "Number" - } - }, - max: { - serializedName: "max", - readOnly: true, - type: { - name: "Number" - } - }, - avg: { - serializedName: "avg", - readOnly: true, - type: { - name: "Number" - } - }, - sum: { - serializedName: "sum", - readOnly: true, - type: { - name: "Number" - } - }, - stdev: { - serializedName: "stdev", - readOnly: true, - type: { - name: "Number" - } } } } }; -export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeMapper = { +export const JobVersionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicyListResult", + className: "JobVersionListResult", modelProperties: { value: { serializedName: "value", @@ -3535,7 +3100,7 @@ export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy" + className: "JobVersion" } } } @@ -3551,10 +3116,10 @@ export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeM } }; -export const SecurityEventCollection: coreClient.CompositeMapper = { +export const JobListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEventCollection", + className: "JobListResult", modelProperties: { value: { serializedName: "value", @@ -3564,7 +3129,7 @@ export const SecurityEventCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityEvent" + className: "Job" } } } @@ -3580,56 +3145,41 @@ export const SecurityEventCollection: coreClient.CompositeMapper = { } }; -export const SecurityEventSqlInjectionAdditionalProperties: coreClient.CompositeMapper = { +export const JobSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEventSqlInjectionAdditionalProperties", + className: "JobSchedule", modelProperties: { - threatId: { - serializedName: "threatId", - readOnly: true, - type: { - name: "String" - } - }, - statement: { - serializedName: "statement", - readOnly: true, - type: { - name: "String" - } - }, - statementHighlightOffset: { - serializedName: "statementHighlightOffset", - readOnly: true, + startTime: { + defaultValue: "0001-01-01T16:00:00-08:00", + serializedName: "startTime", type: { - name: "Number" + name: "DateTime" } }, - statementHighlightLength: { - serializedName: "statementHighlightLength", - readOnly: true, + endTime: { + defaultValue: "9999-12-31T03:59:59-08:00", + serializedName: "endTime", type: { - name: "Number" + name: "DateTime" } }, - errorCode: { - serializedName: "errorCode", - readOnly: true, + type: { + defaultValue: "Once", + serializedName: "type", type: { - name: "Number" + name: "Enum", + allowedValues: ["Once", "Recurring"] } }, - errorSeverity: { - serializedName: "errorSeverity", - readOnly: true, + enabled: { + serializedName: "enabled", type: { - name: "Number" + name: "Boolean" } }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, + interval: { + serializedName: "interval", type: { name: "String" } @@ -3638,10 +3188,10 @@ export const SecurityEventSqlInjectionAdditionalProperties: coreClient.Composite } }; -export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMapper = { +export const LedgerDigestUploadsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedTransparentDataEncryptionListResult", + className: "LedgerDigestUploadsListResult", modelProperties: { value: { serializedName: "value", @@ -3651,7 +3201,7 @@ export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ManagedTransparentDataEncryption" + className: "LedgerDigestUploads" } } } @@ -3667,56 +3217,54 @@ export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMap } }; -export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper = { +export const LocationCapabilities: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdministratorListResult", + className: "LocationCapabilities", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedServerVersions: { + serializedName: "supportedServerVersions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceAdministrator" + className: "ServerVersionCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthListResult", - modelProperties: { - value: { - serializedName: "value", + supportedManagedInstanceVersions: { + serializedName: "supportedManagedInstanceVersions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthentication" + className: "ManagedInstanceVersionCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -3725,56 +3273,54 @@ export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMappe } }; -export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeMapper = { +export const ServerVersionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtectorListResult", + className: "ServerVersionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedEditions: { + serializedName: "supportedEditions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector" + className: "EditionCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceKeyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceKeyListResult", - modelProperties: { - value: { - serializedName: "value", + supportedElasticPoolEditions: { + serializedName: "supportedElasticPoolEditions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceKey" + className: "ElasticPoolEditionCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -3783,308 +3329,213 @@ export const ManagedInstanceKeyListResult: coreClient.CompositeMapper = { } }; -export const ManagedInstanceLongTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const EditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicyListResult", + className: "EditionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedServiceLevelObjectives: { + serializedName: "supportedServiceLevelObjectives", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicy" + className: "ServiceObjectiveCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const ManagedInstanceOperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceOperationListResult", - modelProperties: { - value: { - serializedName: "value", + }, + readScale: { + serializedName: "readScale", + type: { + name: "Composite", + className: "ReadScaleCapability" + } + }, + supportedStorageCapabilities: { + serializedName: "supportedStorageCapabilities", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceOperation" + className: "StorageCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zonePinning: { + serializedName: "zonePinning", readOnly: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const ManagedInstanceOperationParametersPair: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceOperationParametersPair", - modelProperties: { - currentParameters: { - serializedName: "currentParameters", + }, + status: { + serializedName: "status", + readOnly: true, type: { - name: "Composite", - className: "UpsertManagedServerOperationParameters" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - requestedParameters: { - serializedName: "requestedParameters", + reason: { + serializedName: "reason", type: { - name: "Composite", - className: "UpsertManagedServerOperationParameters" + name: "String" } } } } }; -export const UpsertManagedServerOperationParameters: coreClient.CompositeMapper = { +export const ServiceObjectiveCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpsertManagedServerOperationParameters", + className: "ServiceObjectiveCapability", modelProperties: { - family: { - serializedName: "family", + id: { + serializedName: "id", + readOnly: true, type: { - name: "String" + name: "Uuid" } }, - tier: { - serializedName: "tier", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - vCores: { - serializedName: "vCores", + supportedMaxSizes: { + serializedName: "supportedMaxSizes", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaxSizeRangeCapability" + } + } } }, - storageSizeInGB: { - serializedName: "storageSizeInGB", - type: { - name: "Number" - } - } - } - } -}; - -export const ManagedInstanceOperationSteps: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceOperationSteps", - modelProperties: { - totalSteps: { - serializedName: "totalSteps", - readOnly: true, + performanceLevel: { + serializedName: "performanceLevel", type: { - name: "String" + name: "Composite", + className: "PerformanceLevelCapability" } }, - currentStep: { - serializedName: "currentStep", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "Number" + name: "Composite", + className: "Sku" } }, - stepsList: { - serializedName: "stepsList", + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "UpsertManagedServerOperationStep" + className: "LicenseTypeCapability" } } } - } - } - } -}; - -export const UpsertManagedServerOperationStep: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpsertManagedServerOperationStep", - modelProperties: { - order: { - serializedName: "order", - type: { - name: "Number" - } }, - name: { - serializedName: "name", + includedMaxSize: { + serializedName: "includedMaxSize", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } }, - status: { - serializedName: "status", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstancePrivateEndpointConnectionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionProperties", - modelProperties: { - privateEndpoint: { - serializedName: "privateEndpoint", + zoneRedundant: { + serializedName: "zoneRedundant", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointProperty" + name: "Boolean" } }, - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", + supportedAutoPauseDelay: { + serializedName: "supportedAutoPauseDelay", type: { name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" + className: "AutoPauseDelayTimeRange" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstancePrivateEndpointProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointProperty", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstancePrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty", - modelProperties: { - status: { - serializedName: "status", - required: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - required: true, - type: { - name: "String" - } - }, - actionsRequired: { - serializedName: "actionsRequired", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstancePrivateEndpointConnectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionListResult", - modelProperties: { - value: { - serializedName: "value", + supportedMinCapacities: { + serializedName: "supportedMinCapacities", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstancePrivateEndpointConnection" + className: "MinCapacityCapability" } } } }, - nextLink: { - serializedName: "nextLink", + computeModel: { + serializedName: "computeModel", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedInstancePrivateLinkListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMaintenanceConfigurations: { + serializedName: "supportedMaintenanceConfigurations", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstancePrivateLink" + className: "MaintenanceConfigurationCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zonePinning: { + serializedName: "zonePinning", + readOnly: true, + type: { + name: "Boolean" + } + }, + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4093,54 +3544,71 @@ export const ManagedInstancePrivateLinkListResult: coreClient.CompositeMapper = } }; -export const ManagedInstancePrivateLinkProperties: coreClient.CompositeMapper = { +export const MaxSizeRangeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePrivateLinkProperties", + className: "MaxSizeRangeCapability", modelProperties: { - groupId: { - serializedName: "groupId", - readOnly: true, + minValue: { + serializedName: "minValue", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } }, - requiredMembers: { - serializedName: "requiredMembers", + maxValue: { + serializedName: "maxValue", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + scaleSize: { + serializedName: "scaleSize", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + logSize: { + serializedName: "logSize", + type: { + name: "Composite", + className: "LogSizeCapability" + } + }, + status: { + serializedName: "status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" } } } } }; -export const ManagedInstanceVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { +export const MaxSizeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessmentListResult", + className: "MaxSizeCapability", modelProperties: { - value: { - serializedName: "value", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" @@ -4150,26 +3618,20 @@ export const ManagedInstanceVulnerabilityAssessmentListResult: coreClient.Compos } }; -export const ManagedServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { +export const LogSizeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicyListResult", + className: "LogSizeCapability", modelProperties: { - value: { - serializedName: "value", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedServerSecurityAlertPolicy" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" @@ -4179,26 +3641,20 @@ export const ManagedServerSecurityAlertPolicyListResult: coreClient.CompositeMap } }; -export const OperationListResult: coreClient.CompositeMapper = { +export const PerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "PerformanceLevelCapability", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" @@ -4208,10 +3664,10 @@ export const OperationListResult: coreClient.CompositeMapper = { } }; -export const Operation: coreClient.CompositeMapper = { +export const LicenseTypeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "LicenseTypeCapability", modelProperties: { name: { serializedName: "name", @@ -4220,108 +3676,97 @@ export const Operation: coreClient.CompositeMapper = { name: "String" } }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - }, - origin: { - serializedName: "origin", + status: { + serializedName: "status", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - properties: { - serializedName: "properties", - readOnly: true, + reason: { + serializedName: "reason", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const AutoPauseDelayTimeRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "AutoPauseDelayTimeRange", modelProperties: { - provider: { - serializedName: "provider", + minValue: { + serializedName: "minValue", readOnly: true, type: { - name: "String" + name: "Number" } }, - resource: { - serializedName: "resource", + maxValue: { + serializedName: "maxValue", readOnly: true, type: { - name: "String" + name: "Number" } }, - operation: { - serializedName: "operation", + stepSize: { + serializedName: "stepSize", readOnly: true, type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "description", + default: { + serializedName: "default", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const PrivateEndpointProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointProperty", - modelProperties: { - id: { - serializedName: "id", + }, + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } + }, + doNotPauseValue: { + serializedName: "doNotPauseValue", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { +export const MinCapacityCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty", + className: "MinCapacityCapability", modelProperties: { - status: { - serializedName: "status", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "description", - required: true, + status: { + serializedName: "status", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - actionsRequired: { - serializedName: "actionsRequired", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4330,27 +3775,35 @@ export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapp } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const MaintenanceConfigurationCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "MaintenanceConfigurationCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + zoneRedundant: { + serializedName: "zoneRedundant", + readOnly: true, + type: { + name: "Boolean" + } + }, + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4359,27 +3812,28 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { } }; -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { +export const ReadScaleCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "ReadScaleCapability", modelProperties: { - value: { - serializedName: "value", + maxNumberOfReplicas: { + serializedName: "maxNumberOfReplicas", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkResource" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4388,112 +3842,85 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; -export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { +export const StorageCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceProperties", + className: "StorageCapability", modelProperties: { - groupId: { - serializedName: "groupId", + storageAccountType: { + serializedName: "storageAccountType", readOnly: true, type: { name: "String" } }, - requiredMembers: { - serializedName: "requiredMembers", + status: { + serializedName: "status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - requiredZoneNames: { - serializedName: "requiredZoneNames", - readOnly: true, + reason: { + serializedName: "reason", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const RecoverableManagedDatabaseListResult: coreClient.CompositeMapper = { +export const ElasticPoolEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableManagedDatabaseListResult", + className: "ElasticPoolEditionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedElasticPoolPerformanceLevels: { + serializedName: "supportedElasticPoolPerformanceLevels", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecoverableManagedDatabase" + className: "ElasticPoolPerformanceLevelCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const RestorePointListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointListResult", - modelProperties: { - value: { - serializedName: "value", + }, + zonePinning: { + serializedName: "zonePinning", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorePoint" - } - } + name: "Boolean" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } - } - } - } -}; - -export const CreateDatabaseRestorePointDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CreateDatabaseRestorePointDefinition", - modelProperties: { - restorePointLabel: { - serializedName: "restorePointLabel", - required: true, + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4502,169 +3929,121 @@ export const CreateDatabaseRestorePointDefinition: coreClient.CompositeMapper = } }; -export const AutomaticTuningServerOptions: coreClient.CompositeMapper = { +export const ElasticPoolPerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomaticTuningServerOptions", + className: "ElasticPoolPerformanceLevelCapability", modelProperties: { - desiredState: { - serializedName: "desiredState", + performanceLevel: { + serializedName: "performanceLevel", type: { - name: "Enum", - allowedValues: ["Off", "On", "Default"] + name: "Composite", + className: "PerformanceLevelCapability" } }, - actualState: { - serializedName: "actualState", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "Enum", - allowedValues: ["Off", "On"] + name: "Composite", + className: "Sku" } }, - reasonCode: { - serializedName: "reasonCode", + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LicenseTypeCapability" + } + } } }, - reasonDesc: { - serializedName: "reasonDesc", + maxDatabaseCount: { + serializedName: "maxDatabaseCount", readOnly: true, type: { - name: "Enum", - allowedValues: ["Default", "Disabled", "AutoConfigured"] + name: "Number" } - } - } - } -}; - -export const AdministratorListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdministratorListResult", - modelProperties: { - value: { - serializedName: "value", + }, + includedMaxSize: { + serializedName: "includedMaxSize", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + supportedMaxSizes: { + serializedName: "supportedMaxSizes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerAzureADAdministrator" + className: "MaxSizeRangeCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const AzureADOnlyAuthListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureADOnlyAuthListResult", - modelProperties: { - value: { - serializedName: "value", + supportedPerDatabaseMaxSizes: { + serializedName: "supportedPerDatabaseMaxSizes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerAzureADOnlyAuthentication" + className: "MaxSizeRangeCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServerDevOpsAuditSettingsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerDevOpsAuditSettingsListResult", - modelProperties: { - value: { - serializedName: "value", + supportedPerDatabaseMaxPerformanceLevels: { + serializedName: "supportedPerDatabaseMaxPerformanceLevels", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerDevOpsAuditingSettings" + className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const ServerDnsAliasListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerDnsAliasListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMaintenanceConfigurations: { + serializedName: "supportedMaintenanceConfigurations", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerDnsAlias" + className: "MaintenanceConfigurationCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } - } - } - } -}; - -export const ServerDnsAliasAcquisition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerDnsAliasAcquisition", - modelProperties: { - oldServerDnsAliasId: { - serializedName: "oldServerDnsAliasId", - required: true, + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4673,56 +4052,48 @@ export const ServerDnsAliasAcquisition: coreClient.CompositeMapper = { } }; -export const ServerKeyListResult: coreClient.CompositeMapper = { +export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerKeyListResult", + className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", modelProperties: { - value: { - serializedName: "value", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerKey" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ServerOperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerOperationListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedPerDatabaseMinPerformanceLevels: { + serializedName: "supportedPerDatabaseMinPerformanceLevels", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerOperation" + className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4731,43 +4102,35 @@ export const ServerOperationListResult: coreClient.CompositeMapper = { } }; -export const LogicalServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { +export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicalServerSecurityAlertPolicyListResult", + className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", modelProperties: { - value: { - serializedName: "value", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerSecurityAlertPolicy" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ServerInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerInfo", - modelProperties: { - serverId: { - serializedName: "serverId", - required: true, + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4776,56 +4139,54 @@ export const ServerInfo: coreClient.CompositeMapper = { } }; -export const ServerTrustGroupListResult: coreClient.CompositeMapper = { +export const ManagedInstanceVersionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustGroupListResult", + className: "ManagedInstanceVersionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedEditions: { + serializedName: "supportedEditions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerTrustGroup" + className: "ManagedInstanceEditionCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessmentListResult", - modelProperties: { - value: { - serializedName: "value", + supportedInstancePoolEditions: { + serializedName: "supportedInstancePoolEditions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerVulnerabilityAssessment" + className: "InstancePoolEditionCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4834,56 +4195,61 @@ export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper } }; -export const SubscriptionUsageListResult: coreClient.CompositeMapper = { +export const ManagedInstanceEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubscriptionUsageListResult", + className: "ManagedInstanceEditionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedFamilies: { + serializedName: "supportedFamilies", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubscriptionUsage" + className: "ManagedInstanceFamilyCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SyncAgentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncAgentListResult", - modelProperties: { - value: { - serializedName: "value", + supportedStorageCapabilities: { + serializedName: "supportedStorageCapabilities", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncAgent" + className: "StorageCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zoneRedundant: { + serializedName: "zoneRedundant", + readOnly: true, + type: { + name: "Boolean" + } + }, + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4892,72 +4258,61 @@ export const SyncAgentListResult: coreClient.CompositeMapper = { } }; -export const SyncAgentKeyProperties: coreClient.CompositeMapper = { +export const ManagedInstanceFamilyCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgentKeyProperties", + className: "ManagedInstanceFamilyCapability", modelProperties: { - syncAgentKey: { - serializedName: "syncAgentKey", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SyncAgentLinkedDatabaseListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncAgentLinkedDatabaseListResult", - modelProperties: { - value: { - serializedName: "value", + }, + sku: { + serializedName: "sku", + readOnly: true, + type: { + name: "String" + } + }, + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncAgentLinkedDatabase" + className: "LicenseTypeCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SyncDatabaseIdListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncDatabaseIdListResult", - modelProperties: { - value: { - serializedName: "value", + supportedVcoresValues: { + serializedName: "supportedVcoresValues", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncDatabaseIdProperties" + className: "ManagedInstanceVcoresCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4966,112 +4321,95 @@ export const SyncDatabaseIdListResult: coreClient.CompositeMapper = { } }; -export const SyncDatabaseIdProperties: coreClient.CompositeMapper = { +export const ManagedInstanceVcoresCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncDatabaseIdProperties", + className: "ManagedInstanceVcoresCapability", modelProperties: { - id: { - serializedName: "id", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SyncFullSchemaPropertiesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncFullSchemaPropertiesListResult", - modelProperties: { + }, value: { serializedName: "value", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncFullSchemaProperties" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + includedMaxSize: { + serializedName: "includedMaxSize", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } - } - } - } -}; - -export const SyncFullSchemaProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncFullSchemaProperties", - modelProperties: { - tables: { - serializedName: "tables", + }, + supportedStorageSizes: { + serializedName: "supportedStorageSizes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncFullSchemaTable" + className: "MaxSizeRangeCapability" } } } }, - lastUpdateTime: { - serializedName: "lastUpdateTime", + instancePoolSupported: { + serializedName: "instancePoolSupported", readOnly: true, type: { - name: "DateTime" + name: "Boolean" } - } - } - } -}; - -export const SyncFullSchemaTable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncFullSchemaTable", - modelProperties: { - columns: { - serializedName: "columns", + }, + standaloneSupported: { + serializedName: "standaloneSupported", + readOnly: true, + type: { + name: "Boolean" + } + }, + supportedMaintenanceConfigurations: { + serializedName: "supportedMaintenanceConfigurations", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncFullSchemaTableColumn" + className: "ManagedInstanceMaintenanceConfigurationCapability" } } } }, - errorId: { - serializedName: "errorId", + status: { + serializedName: "status", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - hasError: { - serializedName: "hasError", - readOnly: true, + reason: { + serializedName: "reason", type: { - name: "Boolean" + name: "String" } - }, + } + } + } +}; + +export const ManagedInstanceMaintenanceConfigurationCapability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceMaintenanceConfigurationCapability", + modelProperties: { name: { serializedName: "name", readOnly: true, @@ -5079,9 +4417,16 @@ export const SyncFullSchemaTable: coreClient.CompositeMapper = { name: "String" } }, - quotedName: { - serializedName: "quotedName", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5090,46 +4435,110 @@ export const SyncFullSchemaTable: coreClient.CompositeMapper = { } }; -export const SyncFullSchemaTableColumn: coreClient.CompositeMapper = { +export const InstancePoolEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncFullSchemaTableColumn", + className: "InstancePoolEditionCapability", modelProperties: { - dataSize: { - serializedName: "dataSize", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - dataType: { - serializedName: "dataType", + supportedFamilies: { + serializedName: "supportedFamilies", readOnly: true, type: { - name: "String" - } - }, - errorId: { - serializedName: "errorId", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstancePoolFamilyCapability" + } + } + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" + } + } + } + } +}; + +export const InstancePoolFamilyCapability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstancePoolFamilyCapability", + modelProperties: { + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - hasError: { - serializedName: "hasError", + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LicenseTypeCapability" + } + } } }, - isPrimaryKey: { - serializedName: "isPrimaryKey", + supportedVcoresValues: { + serializedName: "supportedVcoresValues", readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstancePoolVcoresCapability" + } + } + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, + reason: { + serializedName: "reason", + type: { + name: "String" + } + } + } + } +}; + +export const InstancePoolVcoresCapability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstancePoolVcoresCapability", + modelProperties: { name: { serializedName: "name", readOnly: true, @@ -5137,9 +4546,30 @@ export const SyncFullSchemaTableColumn: coreClient.CompositeMapper = { name: "String" } }, - quotedName: { - serializedName: "quotedName", + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Number" + } + }, + storageLimit: { + serializedName: "storageLimit", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5148,10 +4578,10 @@ export const SyncFullSchemaTableColumn: coreClient.CompositeMapper = { } }; -export const SyncGroupLogListResult: coreClient.CompositeMapper = { +export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupLogListResult", + className: "LongTermRetentionBackupListResult", modelProperties: { value: { serializedName: "value", @@ -5161,7 +4591,7 @@ export const SyncGroupLogListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncGroupLogProperties" + className: "LongTermRetentionBackup" } } } @@ -5177,49 +4607,43 @@ export const SyncGroupLogListResult: coreClient.CompositeMapper = { } }; -export const SyncGroupLogProperties: coreClient.CompositeMapper = { +export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupLogProperties", + className: "CopyLongTermRetentionBackupParameters", modelProperties: { - timestamp: { - serializedName: "timestamp", - readOnly: true, + targetSubscriptionId: { + serializedName: "properties.targetSubscriptionId", type: { - name: "DateTime" + name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + targetResourceGroup: { + serializedName: "properties.targetResourceGroup", type: { name: "String" } }, - source: { - serializedName: "source", - readOnly: true, + targetServerResourceId: { + serializedName: "properties.targetServerResourceId", type: { name: "String" } }, - details: { - serializedName: "details", - readOnly: true, + targetServerFullyQualifiedDomainName: { + serializedName: "properties.targetServerFullyQualifiedDomainName", type: { name: "String" } }, - tracingId: { - serializedName: "tracingId", - readOnly: true, + targetDatabaseName: { + serializedName: "properties.targetDatabaseName", type: { - name: "Uuid" + name: "String" } }, - operationStatus: { - serializedName: "operationStatus", - readOnly: true, + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", type: { name: "String" } @@ -5228,25 +4652,42 @@ export const SyncGroupLogProperties: coreClient.CompositeMapper = { } }; -export const SyncGroupSchema: coreClient.CompositeMapper = { +export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupSchema", + className: "UpdateLongTermRetentionBackupParameters", modelProperties: { - tables: { - serializedName: "tables", + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceLongTermRetentionBackupListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncGroupSchemaTable" + className: "ManagedInstanceLongTermRetentionBackup" } } } }, - masterSyncMemberName: { - serializedName: "masterSyncMemberName", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -5255,25 +4696,27 @@ export const SyncGroupSchema: coreClient.CompositeMapper = { } }; -export const SyncGroupSchemaTable: coreClient.CompositeMapper = { +export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupSchemaTable", + className: "LongTermRetentionPolicyListResult", modelProperties: { - columns: { - serializedName: "columns", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncGroupSchemaTableColumn" + className: "LongTermRetentionPolicy" } } } }, - quotedName: { - serializedName: "quotedName", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -5282,25 +4725,25 @@ export const SyncGroupSchemaTable: coreClient.CompositeMapper = { } }; -export const SyncGroupSchemaTableColumn: coreClient.CompositeMapper = { +export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupSchemaTableColumn", + className: "MaintenanceWindowTimeRange", modelProperties: { - quotedName: { - serializedName: "quotedName", + dayOfWeek: { + serializedName: "dayOfWeek", type: { name: "String" } }, - dataSize: { - serializedName: "dataSize", + startTime: { + serializedName: "startTime", type: { name: "String" } }, - dataType: { - serializedName: "dataType", + duration: { + serializedName: "duration", type: { name: "String" } @@ -5309,10 +4752,10 @@ export const SyncGroupSchemaTableColumn: coreClient.CompositeMapper = { } }; -export const SyncGroupListResult: coreClient.CompositeMapper = { +export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupListResult", + className: "ManagedBackupShortTermRetentionPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -5322,7 +4765,7 @@ export const SyncGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncGroup" + className: "ManagedBackupShortTermRetentionPolicy" } } } @@ -5338,10 +4781,10 @@ export const SyncGroupListResult: coreClient.CompositeMapper = { } }; -export const SyncMemberListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncMemberListResult", + className: "ManagedDatabaseAdvancedThreatProtectionListResult", modelProperties: { value: { serializedName: "value", @@ -5351,7 +4794,7 @@ export const SyncMemberListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncMember" + className: "ManagedDatabaseAdvancedThreatProtection" } } } @@ -5367,10 +4810,10 @@ export const SyncMemberListResult: coreClient.CompositeMapper = { } }; -export const TimeZoneListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeZoneListResult", + className: "ManagedDatabaseMoveOperationListResult", modelProperties: { value: { serializedName: "value", @@ -5380,7 +4823,7 @@ export const TimeZoneListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TimeZone" + className: "ManagedDatabaseMoveOperationResult" } } } @@ -5396,10 +4839,10 @@ export const TimeZoneListResult: coreClient.CompositeMapper = { } }; -export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { +export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkRuleListResult", + className: "ManagedInstanceQueryStatistics", modelProperties: { value: { serializedName: "value", @@ -5409,7 +4852,7 @@ export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualNetworkRule" + className: "QueryStatistics" } } } @@ -5425,200 +4868,227 @@ export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { } }; -export const WorkloadClassifierListResult: coreClient.CompositeMapper = { +export const QueryStatisticsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadClassifierListResult", + className: "QueryStatisticsProperties", modelProperties: { - value: { - serializedName: "value", + databaseName: { + serializedName: "databaseName", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkloadClassifier" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + queryId: { + serializedName: "queryId", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const WorkloadGroupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkloadGroupListResult", - modelProperties: { - value: { - serializedName: "value", + }, + startTime: { + serializedName: "startTime", + readOnly: true, + type: { + name: "String" + } + }, + endTime: { + serializedName: "endTime", readOnly: true, + type: { + name: "String" + } + }, + intervals: { + serializedName: "intervals", type: { name: "Sequence", element: { type: { name: "Composite", - className: "WorkloadGroup" + className: "QueryMetricInterval" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const BackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const QueryMetricInterval: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupShortTermRetentionPolicyListResult", + className: "QueryMetricInterval", modelProperties: { - value: { - serializedName: "value", + intervalStartTime: { + serializedName: "intervalStartTime", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BackupShortTermRetentionPolicy" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + intervalType: { + serializedName: "intervalType", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ImportExportExtensionsOperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImportExportExtensionsOperationListResult", - modelProperties: { - value: { - serializedName: "value", + }, + executionCount: { + serializedName: "executionCount", readOnly: true, + type: { + name: "Number" + } + }, + metrics: { + serializedName: "metrics", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ImportExportExtensionsOperationResult" + className: "QueryMetricProperties" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const DatabaseOperationListResult: coreClient.CompositeMapper = { +export const QueryMetricProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseOperationListResult", + className: "QueryMetricProperties", modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, value: { serializedName: "value", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseOperation" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + min: { + serializedName: "min", readOnly: true, type: { - name: "String" + name: "Number" + } + }, + max: { + serializedName: "max", + readOnly: true, + type: { + name: "Number" + } + }, + avg: { + serializedName: "avg", + readOnly: true, + type: { + name: "Number" + } + }, + sum: { + serializedName: "sum", + readOnly: true, + type: { + name: "Number" + } + }, + stdev: { + serializedName: "stdev", + readOnly: true, + type: { + name: "Number" } } } } }; -export const DatabaseUsageListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsBackupSetProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUsageListResult", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties", modelProperties: { - value: { - serializedName: "value", + status: { + serializedName: "status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseUsage" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + firstStripeName: { + serializedName: "firstStripeName", readOnly: true, type: { name: "String" } + }, + numberOfStripes: { + serializedName: "numberOfStripes", + readOnly: true, + type: { + name: "Number" + } + }, + backupSizeMB: { + serializedName: "backupSizeMB", + readOnly: true, + type: { + name: "Number" + } + }, + restoreStartedTimestampUtc: { + serializedName: "restoreStartedTimestampUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + restoreFinishedTimestampUtc: { + serializedName: "restoreFinishedTimestampUtc", + readOnly: true, + type: { + name: "DateTime" + } } } } }; -export const LedgerDigestUploadsListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsUnrestorableFileProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LedgerDigestUploadsListResult", + className: "ManagedDatabaseRestoreDetailsUnrestorableFileProperties", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LedgerDigestUploads" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + name: { + serializedName: "name", readOnly: true, type: { name: "String" @@ -5628,10 +5098,10 @@ export const LedgerDigestUploadsListResult: coreClient.CompositeMapper = { } }; -export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundFirewallRuleListResult", + className: "ManagedDatabaseSecurityAlertPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -5641,7 +5111,7 @@ export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OutboundFirewallRule" + className: "ManagedDatabaseSecurityAlertPolicy" } } } @@ -5657,10 +5127,10 @@ export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { } }; -export const UsageListResult: coreClient.CompositeMapper = { +export const SecurityEventCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageListResult", + className: "SecurityEventCollection", modelProperties: { value: { serializedName: "value", @@ -5670,7 +5140,7 @@ export const UsageListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Usage" + className: "SecurityEvent" } } } @@ -5686,137 +5156,56 @@ export const UsageListResult: coreClient.CompositeMapper = { } }; -export const Usage: coreClient.CompositeMapper = { +export const SecurityEventSqlInjectionAdditionalProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "SecurityEventSqlInjectionAdditionalProperties", modelProperties: { - id: { - serializedName: "id", + threatId: { + serializedName: "threatId", readOnly: true, type: { name: "String" } }, - name: { - serializedName: "name", - type: { - name: "Composite", - className: "Name" - } - }, - type: { - serializedName: "type", + statement: { + serializedName: "statement", readOnly: true, type: { name: "String" } }, - unit: { - serializedName: "unit", + statementHighlightOffset: { + serializedName: "statementHighlightOffset", readOnly: true, type: { - name: "String" + name: "Number" } }, - currentValue: { - serializedName: "currentValue", + statementHighlightLength: { + serializedName: "statementHighlightLength", readOnly: true, type: { name: "Number" } }, - limit: { - serializedName: "limit", + errorCode: { + serializedName: "errorCode", readOnly: true, type: { name: "Number" } }, - requestedLimit: { - serializedName: "requestedLimit", + errorSeverity: { + serializedName: "errorSeverity", readOnly: true, type: { name: "Number" } - } - } - } -}; - -export const Name: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Name", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "String" - } - }, - localizedValue: { - serializedName: "localizedValue", - type: { - name: "String" - } - } - } - } -}; - -export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CopyLongTermRetentionBackupParameters", - modelProperties: { - targetSubscriptionId: { - serializedName: "properties.targetSubscriptionId", - type: { - name: "String" - } - }, - targetResourceGroup: { - serializedName: "properties.targetResourceGroup", - type: { - name: "String" - } - }, - targetServerResourceId: { - serializedName: "properties.targetServerResourceId", - type: { - name: "String" - } - }, - targetServerFullyQualifiedDomainName: { - serializedName: "properties.targetServerFullyQualifiedDomainName", - type: { - name: "String" - } }, - targetDatabaseName: { - serializedName: "properties.targetDatabaseName", - type: { - name: "String" - } - }, - targetBackupStorageRedundancy: { - serializedName: "properties.targetBackupStorageRedundancy", - type: { - name: "String" - } - } - } - } -}; - -export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateLongTermRetentionBackupParameters", - modelProperties: { - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + errorMessage: { + serializedName: "errorMessage", + readOnly: true, type: { name: "String" } @@ -5825,10 +5214,10 @@ export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper } }; -export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { +export const SensitivityLabelListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackupListResult", + className: "SensitivityLabelListResult", modelProperties: { value: { serializedName: "value", @@ -5838,7 +5227,7 @@ export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LongTermRetentionBackup" + className: "SensitivityLabel" } } } @@ -5854,68 +5243,52 @@ export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { } }; -export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.CompositeMapper = { +export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackupListResult", + className: "SensitivityLabelUpdateList", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + operations: { + serializedName: "operations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackup" + className: "SensitivityLabelUpdate" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const RestorableDroppedManagedDatabaseListResult: coreClient.CompositeMapper = { +export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedManagedDatabaseListResult", + className: "RecommendedSensitivityLabelUpdateList", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + operations: { + serializedName: "operations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RestorableDroppedManagedDatabase" + className: "RecommendedSensitivityLabelUpdate" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { +export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConnectionPolicyListResult", + className: "ManagedTransparentDataEncryptionListResult", modelProperties: { value: { serializedName: "value", @@ -5925,7 +5298,7 @@ export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerConnectionPolicy" + className: "ManagedTransparentDataEncryption" } } } @@ -5941,10 +5314,10 @@ export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { } }; -export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DistributedAvailabilityGroupsListResult", + className: "ManagedDatabaseListResult", modelProperties: { value: { serializedName: "value", @@ -5954,7 +5327,7 @@ export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "DistributedAvailabilityGroup" + className: "ManagedDatabase" } } } @@ -5970,185 +5343,206 @@ export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper } }; -export const ServerTrustCertificatesListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustCertificatesListResult", + className: "ManagedDatabaseUpdate", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerTrustCertificate" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + collation: { + serializedName: "properties.collation", type: { name: "String" } - } - } - } -}; - -export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IPv6FirewallRuleListResult", - modelProperties: { - value: { - serializedName: "value", + }, + status: { + serializedName: "properties.status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IPv6FirewallRule" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const EndpointCertificateListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EndpointCertificateListResult", - modelProperties: { - value: { - serializedName: "value", + }, + earliestRestorePoint: { + serializedName: "properties.earliestRestorePoint", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EndpointCertificate" - } - } + name: "DateTime" } }, - nextLink: { - serializedName: "nextLink", + restorePointInTime: { + serializedName: "properties.restorePointInTime", + type: { + name: "DateTime" + } + }, + defaultSecondaryLocation: { + serializedName: "properties.defaultSecondaryLocation", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SensitivityLabelListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SensitivityLabelListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + }, + catalogCollation: { + serializedName: "properties.catalogCollation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SensitivityLabel" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + createMode: { + serializedName: "properties.createMode", + type: { + name: "String" + } + }, + storageContainerUri: { + serializedName: "properties.storageContainerUri", + type: { + name: "String" + } + }, + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", + type: { + name: "String" + } + }, + crossSubscriptionSourceDatabaseId: { + serializedName: "properties.crossSubscriptionSourceDatabaseId", + type: { + name: "String" + } + }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", + type: { + name: "String" + } + }, + crossSubscriptionRestorableDroppedDatabaseId: { + serializedName: + "properties.crossSubscriptionRestorableDroppedDatabaseId", + type: { + name: "String" + } + }, + storageContainerIdentity: { + serializedName: "properties.storageContainerIdentity", + type: { + name: "String" + } + }, + storageContainerSasToken: { + serializedName: "properties.storageContainerSasToken", + type: { + name: "String" + } + }, + failoverGroupId: { + serializedName: "properties.failoverGroupId", readOnly: true, type: { name: "String" } + }, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", + type: { + name: "String" + } + }, + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", + type: { + name: "String" + } + }, + autoCompleteRestore: { + serializedName: "properties.autoCompleteRestore", + type: { + name: "Boolean" + } + }, + lastBackupName: { + serializedName: "properties.lastBackupName", + type: { + name: "String" + } + }, + crossSubscriptionTargetManagedInstanceId: { + serializedName: "properties.crossSubscriptionTargetManagedInstanceId", + type: { + name: "String" + } + }, + isLedgerOn: { + serializedName: "properties.isLedgerOn", + type: { + name: "Boolean" + } } } } }; -export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabelUpdateList", + className: "ManagedDatabaseMoveDefinition", modelProperties: { - operations: { - serializedName: "operations", + destinationManagedDatabaseId: { + serializedName: "destinationManagedDatabaseId", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SensitivityLabelUpdate" - } - } + name: "String" } } } } }; -export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = { +export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedSensitivityLabelUpdateList", + className: "CompleteDatabaseRestoreDefinition", modelProperties: { - operations: { - serializedName: "operations", + lastBackupName: { + serializedName: "lastBackupName", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedSensitivityLabelUpdate" - } - } + name: "String" } } } } }; -export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseStartMoveDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerBlobAuditingPolicyListResult", + className: "ManagedDatabaseStartMoveDefinition", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + destinationManagedDatabaseId: { + serializedName: "destinationManagedDatabaseId", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerBlobAuditingPolicy" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + operationMode: { + serializedName: "operationMode", type: { name: "String" } @@ -6157,10 +5551,10 @@ export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { } }; -export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicyListResult", + className: "ManagedInstanceAdministratorListResult", modelProperties: { value: { serializedName: "value", @@ -6170,7 +5564,7 @@ export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicy" + className: "ManagedInstanceAdministrator" } } } @@ -6186,10 +5580,10 @@ export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = } }; -export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicyListResult", + className: "ManagedInstanceAdvancedThreatProtectionListResult", modelProperties: { value: { serializedName: "value", @@ -6199,7 +5593,7 @@ export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy" + className: "ManagedInstanceAdvancedThreatProtection" } } } @@ -6215,10 +5609,10 @@ export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeM } }; -export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicyListResult", + className: "ManagedInstanceAzureADOnlyAuthListResult", modelProperties: { value: { serializedName: "value", @@ -6228,7 +5622,7 @@ export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy" + className: "ManagedInstanceAzureADOnlyAuthentication" } } } @@ -6244,10 +5638,10 @@ export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMap } }; -export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const ManagedInstanceDtcListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseAdvancedThreatProtectionListResult", + className: "ManagedInstanceDtcListResult", modelProperties: { value: { serializedName: "value", @@ -6257,7 +5651,7 @@ export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "DatabaseAdvancedThreatProtection" + className: "ManagedInstanceDtc" } } } @@ -6273,10 +5667,77 @@ export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMap } }; -export const LogicalServerAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const ManagedInstanceDtcSecuritySettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicalServerAdvancedThreatProtectionListResult", + className: "ManagedInstanceDtcSecuritySettings", + modelProperties: { + transactionManagerCommunicationSettings: { + serializedName: "transactionManagerCommunicationSettings", + type: { + name: "Composite", + className: "ManagedInstanceDtcTransactionManagerCommunicationSettings" + } + }, + xaTransactionsEnabled: { + serializedName: "xaTransactionsEnabled", + type: { + name: "Boolean" + } + }, + snaLu6Point2TransactionsEnabled: { + serializedName: "snaLu6point2TransactionsEnabled", + type: { + name: "Boolean" + } + }, + xaTransactionsDefaultTimeout: { + serializedName: "xaTransactionsDefaultTimeout", + type: { + name: "Number" + } + }, + xaTransactionsMaximumTimeout: { + serializedName: "xaTransactionsMaximumTimeout", + type: { + name: "Number" + } + } + } + } +}; + +export const ManagedInstanceDtcTransactionManagerCommunicationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceDtcTransactionManagerCommunicationSettings", + modelProperties: { + allowInboundEnabled: { + serializedName: "allowInboundEnabled", + type: { + name: "Boolean" + } + }, + allowOutboundEnabled: { + serializedName: "allowOutboundEnabled", + type: { + name: "Boolean" + } + }, + authentication: { + serializedName: "authentication", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceEncryptionProtectorListResult", modelProperties: { value: { serializedName: "value", @@ -6286,7 +5747,7 @@ export const LogicalServerAdvancedThreatProtectionListResult: coreClient.Composi element: { type: { name: "Composite", - className: "ServerAdvancedThreatProtection" + className: "ManagedInstanceEncryptionProtector" } } } @@ -6302,10 +5763,10 @@ export const LogicalServerAdvancedThreatProtectionListResult: coreClient.Composi } }; -export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { +export const ManagedInstanceKeyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAliasListResult", + className: "ManagedInstanceKeyListResult", modelProperties: { value: { serializedName: "value", @@ -6315,7 +5776,7 @@ export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedServerDnsAlias" + className: "ManagedInstanceKey" } } } @@ -6331,42 +5792,10 @@ export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { } }; -export const ManagedServerDnsAliasCreation: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAliasCreation", - modelProperties: { - createDnsRecord: { - defaultValue: true, - serializedName: "createDnsRecord", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedServerDnsAliasAcquisition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedServerDnsAliasAcquisition", - modelProperties: { - oldManagedServerDnsAliasResourceId: { - serializedName: "oldManagedServerDnsAliasResourceId", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentBaselineSetListResult", + className: "ManagedInstanceLongTermRetentionPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -6376,7 +5805,7 @@ export const DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient element: { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentBaselineSet" + className: "ManagedInstanceLongTermRetentionPolicy" } } } @@ -6392,10 +5821,10 @@ export const DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient } }; -export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClient.CompositeMapper = { +export const ManagedInstanceOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult", + className: "ManagedInstanceOperationListResult", modelProperties: { value: { serializedName: "value", @@ -6405,7 +5834,7 @@ export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClien element: { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline" + className: "ManagedInstanceOperation" } } } @@ -6421,126 +5850,91 @@ export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClien } }; -export const SQLVulnerabilityAssessmentScanListResult: coreClient.CompositeMapper = { +export const ManagedInstanceOperationParametersPair: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SQLVulnerabilityAssessmentScanListResult", + className: "ManagedInstanceOperationParametersPair", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + currentParameters: { + serializedName: "currentParameters", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlVulnerabilityAssessmentScanResults" - } - } + name: "Composite", + className: "UpsertManagedServerOperationParameters" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + requestedParameters: { + serializedName: "requestedParameters", type: { - name: "String" + name: "Composite", + className: "UpsertManagedServerOperationParameters" } } } } }; -export const Remediation: coreClient.CompositeMapper = { +export const UpsertManagedServerOperationParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Remediation", + className: "UpsertManagedServerOperationParameters", modelProperties: { - description: { - serializedName: "description", - readOnly: true, + family: { + serializedName: "family", type: { name: "String" } }, - scripts: { - serializedName: "scripts", - readOnly: true, + tier: { + serializedName: "tier", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - automated: { - serializedName: "automated", - readOnly: true, + vCores: { + serializedName: "vCores", type: { - name: "Boolean" + name: "Number" } }, - portalLink: { - serializedName: "portalLink", - readOnly: true, + storageSizeInGB: { + serializedName: "storageSizeInGB", type: { - name: "String" + name: "Number" } } } } }; -export const BaselineAdjustedResult: coreClient.CompositeMapper = { +export const ManagedInstanceOperationSteps: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BaselineAdjustedResult", + className: "ManagedInstanceOperationSteps", modelProperties: { - baseline: { - serializedName: "baseline", - type: { - name: "Composite", - className: "Baseline" - } - }, - status: { - serializedName: "status", + totalSteps: { + serializedName: "totalSteps", readOnly: true, type: { name: "String" } }, - resultsNotInBaseline: { - serializedName: "resultsNotInBaseline", + currentStep: { + serializedName: "currentStep", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "Number" } }, - resultsOnlyInBaseline: { - serializedName: "resultsOnlyInBaseline", + stepsList: { + serializedName: "stepsList", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: + "UpsertManagedServerOperationStepWithEstimatesAndDuration" } } } @@ -6549,176 +5943,146 @@ export const BaselineAdjustedResult: coreClient.CompositeMapper = { } }; -export const Baseline: coreClient.CompositeMapper = { +export const UpsertManagedServerOperationStepWithEstimatesAndDuration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Baseline", + className: "UpsertManagedServerOperationStepWithEstimatesAndDuration", modelProperties: { - expectedResults: { - serializedName: "expectedResults", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - }, - updatedTime: { - serializedName: "updatedTime", - readOnly: true, + stepStartTime: { + serializedName: "stepStartTime", type: { name: "DateTime" } - } - } - } -}; - -export const VaRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VaRule", - modelProperties: { - ruleId: { - serializedName: "ruleId", - readOnly: true, - type: { - name: "String" - } }, - severity: { - serializedName: "severity", - readOnly: true, - type: { - name: "String" - } - }, - category: { - serializedName: "category", - readOnly: true, + stepEndTime: { + serializedName: "stepEndTime", type: { - name: "String" + name: "DateTime" } }, - ruleType: { - serializedName: "ruleType", - readOnly: true, + timeElapsed: { + serializedName: "timeElapsed", type: { name: "String" } }, - title: { - serializedName: "title", - readOnly: true, + order: { + serializedName: "order", type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "description", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - rationale: { - serializedName: "rationale", - readOnly: true, + status: { + serializedName: "status", type: { name: "String" } - }, - queryCheck: { - serializedName: "queryCheck", - type: { - name: "Composite", - className: "QueryCheck" - } - }, - benchmarkReferences: { - serializedName: "benchmarkReferences", + } + } + } +}; + +export const ManagedInstancePrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "BenchmarkReference" + className: "ManagedInstancePrivateEndpointConnection" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const QueryCheck: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointConnectionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryCheck", + className: "ManagedInstancePrivateEndpointConnectionProperties", modelProperties: { - query: { - serializedName: "query", - readOnly: true, + privateEndpoint: { + serializedName: "privateEndpoint", type: { - name: "String" + name: "Composite", + className: "ManagedInstancePrivateEndpointProperty" } }, - expectedResult: { - serializedName: "expectedResult", - readOnly: true, + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "Composite", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" } }, - columnNames: { - serializedName: "columnNames", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const BenchmarkReference: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BenchmarkReference", + className: "ManagedInstancePrivateEndpointProperty", modelProperties: { - benchmark: { - serializedName: "benchmark", - readOnly: true, + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedInstancePrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + serializedName: "status", + required: true, type: { name: "String" } }, - reference: { - serializedName: "reference", + description: { + serializedName: "description", + required: true, + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", readOnly: true, type: { name: "String" @@ -6728,10 +6092,10 @@ export const BenchmarkReference: coreClient.CompositeMapper = { } }; -export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { +export const ManagedInstancePrivateLinkListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanRecordListResult", + className: "ManagedInstancePrivateLinkListResult", modelProperties: { value: { serializedName: "value", @@ -6741,7 +6105,7 @@ export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.Composit element: { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanRecord" + className: "ManagedInstancePrivateLink" } } } @@ -6757,62 +6121,50 @@ export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.Composit } }; -export const SqlVulnerabilityAssessmentScanError: coreClient.CompositeMapper = { +export const ManagedInstancePrivateLinkProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanError", + className: "ManagedInstancePrivateLinkProperties", modelProperties: { - code: { - serializedName: "code", + groupId: { + serializedName: "groupId", readOnly: true, type: { name: "String" } }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlVulnerabilityAssessmentListResult", - modelProperties: { - value: { - serializedName: "value", + requiredMembers: { + serializedName: "requiredMembers", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SqlVulnerabilityAssessment" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + requiredZoneNames: { + serializedName: "requiredZoneNames", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const ManagedInstanceVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseAdvancedThreatProtectionListResult", + className: "ManagedInstanceVulnerabilityAssessmentListResult", modelProperties: { value: { serializedName: "value", @@ -6822,7 +6174,7 @@ export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.Compo element: { type: { name: "Composite", - className: "ManagedDatabaseAdvancedThreatProtection" + className: "ManagedInstanceVulnerabilityAssessment" } } } @@ -6838,10 +6190,10 @@ export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.Compo } }; -export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const ManagedInstanceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdvancedThreatProtectionListResult", + className: "ManagedInstanceListResult", modelProperties: { value: { serializedName: "value", @@ -6851,7 +6203,7 @@ export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.Compo element: { type: { name: "Composite", - className: "ManagedInstanceAdvancedThreatProtection" + className: "ManagedInstance" } } } @@ -6867,202 +6219,161 @@ export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.Compo } }; -export const ReplicationLinkListResult: coreClient.CompositeMapper = { +export const ResourceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationLinkListResult", + className: "ResourceIdentity", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReplicationLink" - } - } + name: "Dictionary", + value: { type: { name: "Composite", className: "UserIdentity" } } } }, - nextLink: { - serializedName: "nextLink", + principalId: { + serializedName: "principalId", readOnly: true, + type: { + name: "Uuid" + } + }, + type: { + serializedName: "type", type: { name: "String" } + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "Uuid" + } } } } }; -export const ManagedDatabaseMoveOperationListResult: coreClient.CompositeMapper = { +export const UserIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseMoveOperationListResult", + className: "UserIdentity", modelProperties: { - value: { - serializedName: "value", + principalId: { + serializedName: "principalId", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseMoveOperationResult" - } - } + name: "Uuid" } }, - nextLink: { - serializedName: "nextLink", + clientId: { + serializedName: "clientId", readOnly: true, type: { - name: "String" + name: "Uuid" } } } } }; -export const ManagedInstanceDtcListResult: coreClient.CompositeMapper = { +export const ManagedInstancePecProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceDtcListResult", + className: "ManagedInstancePecProperty", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceDtc" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ManagedInstancePrivateEndpointConnectionProperties" } } } } }; -export const ManagedInstanceDtcSecuritySettings: coreClient.CompositeMapper = { +export const ManagedInstanceExternalAdministrator: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceDtcSecuritySettings", + className: "ManagedInstanceExternalAdministrator", modelProperties: { - transactionManagerCommunicationSettings: { - serializedName: "transactionManagerCommunicationSettings", + administratorType: { + serializedName: "administratorType", type: { - name: "Composite", - className: "ManagedInstanceDtcTransactionManagerCommunicationSettings" + name: "String" } }, - xaTransactionsEnabled: { - serializedName: "xaTransactionsEnabled", + principalType: { + serializedName: "principalType", type: { - name: "Boolean" + name: "String" } }, - snaLu6Point2TransactionsEnabled: { - serializedName: "snaLu6point2TransactionsEnabled", + login: { + serializedName: "login", type: { - name: "Boolean" + name: "String" } }, - xaTransactionsDefaultTimeout: { - serializedName: "xaTransactionsDefaultTimeout", + sid: { + serializedName: "sid", type: { - name: "Number" + name: "Uuid" } }, - xaTransactionsMaximumTimeout: { - serializedName: "xaTransactionsMaximumTimeout", + tenantId: { + serializedName: "tenantId", type: { - name: "Number" + name: "Uuid" + } + }, + azureADOnlyAuthentication: { + serializedName: "azureADOnlyAuthentication", + type: { + name: "Boolean" } } } } }; -export const ManagedInstanceDtcTransactionManagerCommunicationSettings: coreClient.CompositeMapper = { +export const ServicePrincipal: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceDtcTransactionManagerCommunicationSettings", + className: "ServicePrincipal", modelProperties: { - allowInboundEnabled: { - serializedName: "allowInboundEnabled", - type: { - name: "Boolean" - } - }, - allowOutboundEnabled: { - serializedName: "allowOutboundEnabled", - type: { - name: "Boolean" - } - }, - authentication: { - serializedName: "authentication", - type: { - name: "String" - } - } - } - } -}; - -export const SynapseLinkWorkspaceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SynapseLinkWorkspaceListResult", - modelProperties: { - value: { - serializedName: "value", + principalId: { + serializedName: "principalId", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SynapseLinkWorkspace" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + clientId: { + serializedName: "clientId", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SynapseLinkWorkspaceInfoProperties", - modelProperties: { - workspaceId: { - serializedName: "workspaceId", + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { name: "String" } }, - linkConnectionName: { - serializedName: "linkConnectionName", + type: { + serializedName: "type", type: { name: "String" } @@ -7071,40 +6382,25 @@ export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { } }; -export const VirtualClusterListResult: coreClient.CompositeMapper = { +export const ManagedInstanceUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualClusterListResult", + className: "ManagedInstanceUpdate", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualCluster" - } - } + name: "Composite", + className: "Sku" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "ResourceIdentity" } - } - } - } -}; - -export const VirtualClusterUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualClusterUpdate", - modelProperties: { + }, tags: { serializedName: "tags", type: { @@ -7112,380 +6408,197 @@ export const VirtualClusterUpdate: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - subnetId: { - serializedName: "properties.subnetId", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - version: { - serializedName: "properties.version", + managedInstanceCreateMode: { + serializedName: "properties.managedInstanceCreateMode", type: { name: "String" } }, - childResources: { - serializedName: "properties.childResources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InstanceFailoverGroupListResult", - modelProperties: { - value: { - serializedName: "value", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceFailoverGroup" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + administratorLogin: { + serializedName: "properties.administratorLogin", type: { name: "String" } - } - } - } -}; - -export const InstanceFailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - required: true, + }, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { name: "String" } }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", + subnetId: { + serializedName: "properties.subnetId", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const InstanceFailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", + }, + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PartnerRegionInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartnerRegionInfo", - modelProperties: { - location: { - serializedName: "location", + }, + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - replicationRole: { - serializedName: "replicationRole", - readOnly: true, + vCores: { + serializedName: "properties.vCores", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const ManagedInstancePairInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePairInfo", - modelProperties: { - primaryManagedInstanceId: { - serializedName: "primaryManagedInstanceId", + }, + storageSizeInGB: { + serializedName: "properties.storageSizeInGB", type: { - name: "String" + name: "Number" } }, - partnerManagedInstanceId: { - serializedName: "partnerManagedInstanceId", + collation: { + serializedName: "properties.collation", type: { name: "String" } - } - } - } -}; - -export const ManagedDatabaseRestoreDetailsBackupSetProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties", - modelProperties: { - status: { - serializedName: "status", + }, + dnsZone: { + serializedName: "properties.dnsZone", readOnly: true, type: { name: "String" } }, - firstStripeName: { - serializedName: "firstStripeName", - readOnly: true, + dnsZonePartner: { + serializedName: "properties.dnsZonePartner", type: { name: "String" } }, - numberOfStripes: { - serializedName: "numberOfStripes", - readOnly: true, + publicDataEndpointEnabled: { + serializedName: "properties.publicDataEndpointEnabled", type: { - name: "Number" + name: "Boolean" } }, - backupSizeMB: { - serializedName: "backupSizeMB", - readOnly: true, - type: { - name: "Number" - } - }, - restoreStartedTimestampUtc: { - serializedName: "restoreStartedTimestampUtc", - readOnly: true, - type: { - name: "DateTime" - } - }, - restoreFinishedTimestampUtc: { - serializedName: "restoreFinishedTimestampUtc", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const ManagedDatabaseRestoreDetailsUnrestorableFileProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsUnrestorableFileProperties", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedDatabaseListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDatabaseListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabase" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedDatabaseUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDatabaseUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - collation: { - serializedName: "properties.collation", - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", - readOnly: true, + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - earliestRestorePoint: { - serializedName: "properties.earliestRestorePoint", - readOnly: true, - type: { - name: "DateTime" - } - }, restorePointInTime: { serializedName: "properties.restorePointInTime", type: { name: "DateTime" } }, - defaultSecondaryLocation: { - serializedName: "properties.defaultSecondaryLocation", - readOnly: true, - type: { - name: "String" - } - }, - catalogCollation: { - serializedName: "properties.catalogCollation", - type: { - name: "String" - } - }, - createMode: { - serializedName: "properties.createMode", + proxyOverride: { + serializedName: "properties.proxyOverride", type: { name: "String" } }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", + timezoneId: { + serializedName: "properties.timezoneId", type: { name: "String" } }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + instancePoolId: { + serializedName: "properties.instancePoolId", type: { name: "String" } }, - crossSubscriptionSourceDatabaseId: { - serializedName: "properties.crossSubscriptionSourceDatabaseId", + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstancePecProperty" + } + } } }, - crossSubscriptionRestorableDroppedDatabaseId: { - serializedName: - "properties.crossSubscriptionRestorableDroppedDatabaseId", + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", type: { name: "String" } }, - storageContainerIdentity: { - serializedName: "properties.storageContainerIdentity", + currentBackupStorageRedundancy: { + serializedName: "properties.currentBackupStorageRedundancy", + readOnly: true, type: { name: "String" } }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { name: "String" } }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", - readOnly: true, + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "String" + name: "Boolean" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", type: { name: "String" } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + keyId: { + serializedName: "properties.keyId", type: { name: "String" } }, - autoCompleteRestore: { - serializedName: "properties.autoCompleteRestore", + administrators: { + serializedName: "properties.administrators", type: { - name: "Boolean" + name: "Composite", + className: "ManagedInstanceExternalAdministrator" } }, - lastBackupName: { - serializedName: "properties.lastBackupName", + servicePrincipal: { + serializedName: "properties.servicePrincipal", type: { - name: "String" + name: "Composite", + className: "ServicePrincipal" } }, - crossSubscriptionTargetManagedInstanceId: { - serializedName: "properties.crossSubscriptionTargetManagedInstanceId", + virtualClusterId: { + serializedName: "properties.virtualClusterId", + readOnly: true, type: { name: "String" } @@ -7494,30 +6607,27 @@ export const ManagedDatabaseUpdate: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseMoveDefinition: coreClient.CompositeMapper = { +export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseMoveDefinition", + className: "OutboundEnvironmentEndpointCollection", modelProperties: { - destinationManagedDatabaseId: { - serializedName: "destinationManagedDatabaseId", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint" + } + } } - } - } - } -}; - -export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CompleteDatabaseRestoreDefinition", - modelProperties: { - lastBackupName: { - serializedName: "lastBackupName", - required: true, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -7526,42 +6636,94 @@ export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseStartMoveDefinition: coreClient.CompositeMapper = { +export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseStartMoveDefinition", + className: "OutboundEnvironmentEndpoint", modelProperties: { - destinationManagedDatabaseId: { - serializedName: "destinationManagedDatabaseId", - required: true, + category: { + serializedName: "category", + readOnly: true, type: { name: "String" } }, - operationMode: { - serializedName: "operationMode", + endpoints: { + serializedName: "endpoints", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointDependency" + } + } } } } } }; -export const DatabaseListResult: coreClient.CompositeMapper = { +export const EndpointDependency: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseListResult", + className: "EndpointDependency", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + domainName: { + serializedName: "domainName", + readOnly: true, + type: { + name: "String" + } + }, + endpointDetails: { + serializedName: "endpointDetails", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Database" + className: "EndpointDetail" + } + } + } + } + } + } +}; + +export const EndpointDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointDetail", + modelProperties: { + port: { + serializedName: "port", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const TopQueriesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TopQueriesListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopQueries" } } } @@ -7577,30 +6739,62 @@ export const DatabaseListResult: coreClient.CompositeMapper = { } }; -export const DatabaseIdentity: coreClient.CompositeMapper = { +export const TopQueries: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseIdentity", + className: "TopQueries", modelProperties: { - type: { - serializedName: "type", + numberOfQueries: { + serializedName: "numberOfQueries", + readOnly: true, + type: { + name: "Number" + } + }, + aggregationFunction: { + serializedName: "aggregationFunction", + readOnly: true, type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + observationMetric: { + serializedName: "observationMetric", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + intervalType: { + serializedName: "intervalType", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "DatabaseUserIdentity" } + name: "String" + } + }, + startTime: { + serializedName: "startTime", + readOnly: true, + type: { + name: "String" + } + }, + endTime: { + serializedName: "endTime", + readOnly: true, + type: { + name: "String" + } + }, + queries: { + serializedName: "queries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryStatisticsProperties" + } } } } @@ -7608,58 +6802,88 @@ export const DatabaseIdentity: coreClient.CompositeMapper = { } }; -export const DatabaseUserIdentity: coreClient.CompositeMapper = { +export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUserIdentity", + className: "ManagedLedgerDigestUploadsListResult", modelProperties: { - principalId: { - serializedName: "principalId", + value: { + serializedName: "value", readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedLedgerDigestUploads" + } + } } }, - clientId: { - serializedName: "clientId", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Uuid" + name: "String" } } } } }; -export const DatabaseKey: coreClient.CompositeMapper = { +export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseKey", + className: "ManagedServerDnsAliasListResult", modelProperties: { - type: { - serializedName: "type", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedServerDnsAlias" + } + } } }, - thumbprint: { - serializedName: "thumbprint", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - creationDate: { - serializedName: "creationDate", - readOnly: true, + } + } + } +}; + +export const ManagedServerDnsAliasCreation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerDnsAliasCreation", + modelProperties: { + createDnsRecord: { + defaultValue: true, + serializedName: "createDnsRecord", type: { - name: "DateTime" + name: "Boolean" } - }, - subregion: { - serializedName: "subregion", - readOnly: true, + } + } + } +}; + +export const ManagedServerDnsAliasAcquisition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerDnsAliasAcquisition", + modelProperties: { + oldManagedServerDnsAliasResourceId: { + serializedName: "oldManagedServerDnsAliasResourceId", + required: true, type: { name: "String" } @@ -7668,379 +6892,597 @@ export const DatabaseKey: coreClient.CompositeMapper = { } }; -export const DatabaseUpdate: coreClient.CompositeMapper = { +export const ManagedServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUpdate", + className: "ManagedServerSecurityAlertPolicyListResult", modelProperties: { - sku: { - serializedName: "sku", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedServerSecurityAlertPolicy" + } + } } }, - identity: { - serializedName: "identity", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Composite", - className: "DatabaseIdentity" + name: "String" } - }, - tags: { - serializedName: "tags", + } + } + } +}; + +export const NetworkSecurityPerimeterConfigurationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration" + } + } } }, - createMode: { - serializedName: "properties.createMode", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - collation: { - serializedName: "properties.collation", + } + } + } +}; + +export const NSPConfigPerimeter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigPerimeter", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + perimeterGuid: { + serializedName: "perimeterGuid", type: { - name: "Number" + name: "String" } }, - sampleName: { - serializedName: "properties.sampleName", + location: { + serializedName: "location", type: { name: "String" } - }, - elasticPoolId: { - serializedName: "properties.elasticPoolId", + } + } + } +}; + +export const NSPConfigAssociation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigAssociation", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + accessMode: { + serializedName: "accessMode", type: { name: "String" } - }, - status: { - serializedName: "properties.status", - readOnly: true, + } + } + } +}; + +export const NSPConfigProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigProfile", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - databaseId: { - serializedName: "properties.databaseId", - readOnly: true, + accessRulesVersion: { + serializedName: "accessRulesVersion", type: { - name: "Uuid" + name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + accessRules: { + serializedName: "accessRules", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPConfigAccessRule" + } + } } - }, - currentServiceObjectiveName: { - serializedName: "properties.currentServiceObjectiveName", - readOnly: true, + } + } + } +}; + +export const NSPConfigAccessRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigAccessRule", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - requestedServiceObjectiveName: { - serializedName: "properties.requestedServiceObjectiveName", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "NSPConfigAccessRuleProperties" } - }, - defaultSecondaryLocation: { - serializedName: "properties.defaultSecondaryLocation", - readOnly: true, + } + } + } +}; + +export const NSPConfigAccessRuleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigAccessRuleProperties", + modelProperties: { + direction: { + serializedName: "direction", type: { name: "String" } }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", - readOnly: true, + addressPrefixes: { + serializedName: "addressPrefixes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + fullyQualifiedDomainNames: { + serializedName: "fullyQualifiedDomainNames", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - sourceDatabaseDeletionDate: { - serializedName: "properties.sourceDatabaseDeletionDate", + subscriptions: { + serializedName: "subscriptions", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - recoveryServicesRecoveryPointId: { - serializedName: "properties.recoveryServicesRecoveryPointId", + networkSecurityPerimeters: { + serializedName: "networkSecurityPerimeters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPConfigNetworkSecurityPerimeterRule" + } + } } - }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + } + } + } +}; + +export const NSPConfigNetworkSecurityPerimeterRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigNetworkSecurityPerimeterRule", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + perimeterGuid: { + serializedName: "perimeterGuid", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + location: { + serializedName: "location", type: { name: "String" } - }, - catalogCollation: { - serializedName: "properties.catalogCollation", + } + } + } +}; + +export const NSPProvisioningIssue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPProvisioningIssue", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + properties: { + serializedName: "properties", type: { - name: "Boolean" + name: "Composite", + className: "NSPProvisioningIssueProperties" } - }, - licenseType: { - serializedName: "properties.licenseType", + } + } + } +}; + +export const NSPProvisioningIssueProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPProvisioningIssueProperties", + modelProperties: { + issueType: { + serializedName: "issueType", type: { name: "String" } }, - maxLogSizeBytes: { - serializedName: "properties.maxLogSizeBytes", - readOnly: true, + severity: { + serializedName: "severity", type: { - name: "Number" + name: "String" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", - readOnly: true, + description: { + serializedName: "description", type: { - name: "DateTime" + name: "String" } }, - readScale: { - serializedName: "properties.readScale", + suggestedResourceIds: { + serializedName: "suggestedResourceIds", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - highAvailabilityReplicaCount: { - serializedName: "properties.highAvailabilityReplicaCount", + suggestedAccessRules: { + serializedName: "suggestedAccessRules", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } } }, - secondaryType: { - serializedName: "properties.secondaryType", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - currentSku: { - serializedName: "properties.currentSku", + } + } + } +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "String" } }, - autoPauseDelay: { - serializedName: "properties.autoPauseDelay", + display: { + serializedName: "display", type: { - name: "Number" + name: "Composite", + className: "OperationDisplay" } }, - currentBackupStorageRedundancy: { - serializedName: "properties.currentBackupStorageRedundancy", + origin: { + serializedName: "origin", readOnly: true, type: { name: "String" } }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + properties: { + serializedName: "properties", + readOnly: true, type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } - }, - minCapacity: { - serializedName: "properties.minCapacity", + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + readOnly: true, type: { - name: "Number" + name: "String" } }, - pausedDate: { - serializedName: "properties.pausedDate", + resource: { + serializedName: "resource", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - resumedDate: { - serializedName: "properties.resumedDate", + operation: { + serializedName: "operation", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + description: { + serializedName: "description", + readOnly: true, type: { name: "String" } - }, - isLedgerOn: { - serializedName: "properties.isLedgerOn", + } + } + } +}; + +export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundFirewallRuleListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundFirewallRule" + } + } } }, - isInfraEncryptionEnabled: { - serializedName: "properties.isInfraEncryptionEnabled", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - federatedClientId: { - serializedName: "properties.federatedClientId", + } + } + } +}; + +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } }, - keys: { - serializedName: "properties.keys", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } + name: "String" } - }, - encryptionProtector: { - serializedName: "properties.encryptionProtector", + } + } + } +}; + +export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + modelProperties: { + privateEndpoint: { + serializedName: "privateEndpoint", type: { - name: "String" + name: "Composite", + className: "PrivateEndpointProperty" } }, - preferredEnclaveType: { - serializedName: "properties.preferredEnclaveType", + groupIds: { + serializedName: "groupIds", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - manualCutover: { - serializedName: "properties.manualCutover", + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", type: { - name: "Boolean" + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" } }, - performCutover: { - serializedName: "properties.performCutover", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ExportDatabaseDefinition: coreClient.CompositeMapper = { +export const PrivateEndpointProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExportDatabaseDefinition", + className: "PrivateEndpointProperty", modelProperties: { - storageKeyType: { - serializedName: "storageKeyType", - required: true, - type: { - name: "String" - } - }, - storageKey: { - serializedName: "storageKey", - required: true, - type: { - name: "String" - } - }, - storageUri: { - serializedName: "storageUri", - required: true, + id: { + serializedName: "id", type: { name: "String" } - }, - administratorLogin: { - serializedName: "administratorLogin", + } + } + } +}; + +export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + serializedName: "status", required: true, type: { name: "String" } }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", + description: { + serializedName: "description", required: true, type: { name: "String" } }, - authenticationType: { - serializedName: "authenticationType", + actionsRequired: { + serializedName: "actionsRequired", + readOnly: true, type: { name: "String" } - }, - networkIsolation: { - serializedName: "networkIsolation", - type: { - name: "Composite", - className: "NetworkIsolationSettings" - } } } } }; -export const NetworkIsolationSettings: coreClient.CompositeMapper = { +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkIsolationSettings", + className: "PrivateLinkResourceListResult", modelProperties: { - storageAccountResourceId: { - serializedName: "storageAccountResourceId", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } }, - sqlServerResourceId: { - serializedName: "sqlServerResourceId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -8049,101 +7491,125 @@ export const NetworkIsolationSettings: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionRequestStatus: coreClient.CompositeMapper = { +export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionRequestStatus", + className: "PrivateLinkResourceProperties", modelProperties: { - privateLinkServiceId: { - serializedName: "privateLinkServiceId", + groupId: { + serializedName: "groupId", readOnly: true, type: { name: "String" } }, - privateEndpointConnectionName: { - serializedName: "privateEndpointConnectionName", + requiredMembers: { + serializedName: "requiredMembers", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - status: { - serializedName: "status", + requiredZoneNames: { + serializedName: "requiredZoneNames", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { +export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExistingDatabaseDefinition", + className: "RecoverableDatabaseListResult", modelProperties: { - storageKeyType: { - serializedName: "storageKeyType", - required: true, - type: { - name: "String" - } - }, - storageKey: { - serializedName: "storageKey", - required: true, - type: { - name: "String" - } - }, - storageUri: { - serializedName: "storageUri", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoverableDatabase" + } + } } }, - administratorLogin: { - serializedName: "administratorLogin", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - required: true, + } + } + } +}; + +export const RecoverableManagedDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecoverableManagedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoverableManagedDatabase" + } + } } }, - authenticationType: { - serializedName: "authenticationType", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - networkIsolation: { - serializedName: "networkIsolation", - type: { - name: "Composite", - className: "NetworkIsolationSettings" - } } } } }; -export const ResourceMoveDefinition: coreClient.CompositeMapper = { +export const ReplicationLinkListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceMoveDefinition", + className: "ReplicationLinkListResult", modelProperties: { - id: { - serializedName: "id", - required: true, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicationLink" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -8152,10 +7618,10 @@ export const ResourceMoveDefinition: coreClient.CompositeMapper = { } }; -export const ElasticPoolListResult: coreClient.CompositeMapper = { +export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolListResult", + className: "RestorableDroppedDatabaseListResult", modelProperties: { value: { serializedName: "value", @@ -8165,7 +7631,7 @@ export const ElasticPoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ElasticPool" + className: "RestorableDroppedDatabase" } } } @@ -8181,91 +7647,84 @@ export const ElasticPoolListResult: coreClient.CompositeMapper = { } }; -export const ElasticPoolPerDatabaseSettings: coreClient.CompositeMapper = { +export const RestorableDroppedManagedDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseSettings", + className: "RestorableDroppedManagedDatabaseListResult", modelProperties: { - minCapacity: { - serializedName: "minCapacity", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabase" + } + } } }, - maxCapacity: { - serializedName: "maxCapacity", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const ElasticPoolUpdate: coreClient.CompositeMapper = { +export const RestorePointListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolUpdate", + className: "RestorePointListResult", modelProperties: { - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", - type: { - name: "Number" - } - }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" - } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorePoint" + } + } } }, - licenseType: { - serializedName: "properties.licenseType", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + } + } + } +}; + +export const CreateDatabaseRestorePointDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CreateDatabaseRestorePointDefinition", + modelProperties: { + restorePointLabel: { + serializedName: "restorePointLabel", + required: true, type: { name: "String" } - }, - highAvailabilityReplicaCount: { - serializedName: "properties.highAvailabilityReplicaCount", - type: { - name: "Number" - } } } } }; -export const ManagedInstanceListResult: coreClient.CompositeMapper = { +export const LogicalServerAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceListResult", + className: "LogicalServerAdvancedThreatProtectionListResult", modelProperties: { value: { serializedName: "value", @@ -8275,7 +7734,7 @@ export const ManagedInstanceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedInstance" + className: "ServerAdvancedThreatProtection" } } } @@ -8291,161 +7750,182 @@ export const ManagedInstanceListResult: coreClient.CompositeMapper = { } }; -export const ResourceIdentity: coreClient.CompositeMapper = { +export const AutomaticTuningServerOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceIdentity", + className: "AutomaticTuningServerOptions", modelProperties: { - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + desiredState: { + serializedName: "desiredState", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "UserIdentity" } } + name: "Enum", + allowedValues: ["Off", "On", "Default"] } }, - principalId: { - serializedName: "principalId", + actualState: { + serializedName: "actualState", readOnly: true, type: { - name: "Uuid" + name: "Enum", + allowedValues: ["Off", "On"] } }, - type: { - serializedName: "type", + reasonCode: { + serializedName: "reasonCode", + readOnly: true, type: { - name: "String" + name: "Number" } }, - tenantId: { - serializedName: "tenantId", + reasonDesc: { + serializedName: "reasonDesc", readOnly: true, type: { - name: "Uuid" + name: "Enum", + allowedValues: ["Default", "Disabled", "AutoConfigured"] } } } } }; -export const UserIdentity: coreClient.CompositeMapper = { +export const AdministratorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserIdentity", + className: "AdministratorListResult", modelProperties: { - principalId: { - serializedName: "principalId", + value: { + serializedName: "value", readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerAzureADAdministrator" + } + } } }, - clientId: { - serializedName: "clientId", - readOnly: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Uuid" + name: "String" } } } } }; -export const ManagedInstancePecProperty: coreClient.CompositeMapper = { +export const AzureADOnlyAuthListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePecProperty", + className: "AzureADOnlyAuthListResult", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerAzureADOnlyAuthentication" + } + } } }, - properties: { - serializedName: "properties", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionProperties" + name: "String" } } } } }; -export const ManagedInstanceExternalAdministrator: coreClient.CompositeMapper = { +export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceExternalAdministrator", + className: "ServerConfigurationOptionListResult", modelProperties: { - administratorType: { - serializedName: "administratorType", - type: { - name: "String" - } - }, - principalType: { - serializedName: "principalType", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerConfigurationOption" + } + } } }, - login: { - serializedName: "login", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - sid: { - serializedName: "sid", - type: { - name: "Uuid" - } - }, - tenantId: { - serializedName: "tenantId", - type: { - name: "Uuid" - } - }, - azureADOnlyAuthentication: { - serializedName: "azureADOnlyAuthentication", - type: { - name: "Boolean" - } } } } }; -export const ServicePrincipal: coreClient.CompositeMapper = { +export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipal", + className: "ServerConnectionPolicyListResult", modelProperties: { - principalId: { - serializedName: "principalId", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerConnectionPolicy" + } + } } }, - clientId: { - serializedName: "clientId", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - tenantId: { - serializedName: "tenantId", + } + } + } +}; + +export const ServerDevOpsAuditSettingsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerDevOpsAuditSettingsListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerDevOpsAuditingSettings" + } + } } }, - type: { - serializedName: "type", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -8454,228 +7934,171 @@ export const ServicePrincipal: coreClient.CompositeMapper = { } }; -export const ManagedInstanceUpdate: coreClient.CompositeMapper = { +export const ServerDnsAliasListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceUpdate", + className: "ServerDnsAliasListResult", modelProperties: { - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ResourceIdentity" - } - }, - tags: { - serializedName: "tags", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerDnsAlias" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - managedInstanceCreateMode: { - serializedName: "properties.managedInstanceCreateMode", + } + } + } +}; + +export const ServerDnsAliasAcquisition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerDnsAliasAcquisition", + modelProperties: { + oldServerDnsAliasId: { + serializedName: "oldServerDnsAliasId", + required: true, type: { name: "String" } - }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", + } + } + } +}; + +export const ServerKeyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerKeyListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerKey" + } + } } }, - administratorLogin: { - serializedName: "properties.administratorLogin", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", + } + } + } +}; + +export const ServerOperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerOperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerOperation" + } + } } }, - subnetId: { - serializedName: "properties.subnetId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const LogicalServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogicalServerSecurityAlertPolicyListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerSecurityAlertPolicy" + } + } } }, - licenseType: { - serializedName: "properties.licenseType", - type: { - name: "String" - } - }, - vCores: { - serializedName: "properties.vCores", - type: { - name: "Number" - } - }, - storageSizeInGB: { - serializedName: "properties.storageSizeInGB", - type: { - name: "Number" - } - }, - collation: { - serializedName: "properties.collation", - type: { - name: "String" - } - }, - dnsZone: { - serializedName: "properties.dnsZone", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - dnsZonePartner: { - serializedName: "properties.dnsZonePartner", - type: { - name: "String" - } - }, - publicDataEndpointEnabled: { - serializedName: "properties.publicDataEndpointEnabled", - type: { - name: "Boolean" - } - }, - sourceManagedInstanceId: { - serializedName: "properties.sourceManagedInstanceId", - type: { - name: "String" - } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", - type: { - name: "DateTime" - } - }, - proxyOverride: { - serializedName: "properties.proxyOverride", - type: { - name: "String" - } - }, - timezoneId: { - serializedName: "properties.timezoneId", - type: { - name: "String" - } - }, - instancePoolId: { - serializedName: "properties.instancePoolId", - type: { - name: "String" - } - }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", - type: { - name: "String" - } - }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", + } + } + } +}; + +export const ServerTrustCertificatesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerTrustCertificatesListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstancePecProperty" + className: "ServerTrustCertificate" } } } }, - minimalTlsVersion: { - serializedName: "properties.minimalTlsVersion", - type: { - name: "String" - } - }, - currentBackupStorageRedundancy: { - serializedName: "properties.currentBackupStorageRedundancy", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", - type: { - name: "String" - } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", - type: { - name: "Boolean" - } - }, - primaryUserAssignedIdentityId: { - serializedName: "properties.primaryUserAssignedIdentityId", - type: { - name: "String" - } - }, - keyId: { - serializedName: "properties.keyId", - type: { - name: "String" - } - }, - administrators: { - serializedName: "properties.administrators", - type: { - name: "Composite", - className: "ManagedInstanceExternalAdministrator" - } - }, - servicePrincipal: { - serializedName: "properties.servicePrincipal", - type: { - name: "Composite", - className: "ServicePrincipal" - } } } } }; -export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { +export const ServerTrustGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundEnvironmentEndpointCollection", + className: "ServerTrustGroupListResult", modelProperties: { value: { serializedName: "value", @@ -8685,7 +8108,7 @@ export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "OutboundEnvironmentEndpoint" + className: "ServerTrustGroup" } } } @@ -8701,84 +8124,55 @@ export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = } }; -export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { +export const ServerInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundEnvironmentEndpoint", + className: "ServerInfo", modelProperties: { - category: { - serializedName: "category", - readOnly: true, + serverId: { + serializedName: "serverId", + required: true, type: { name: "String" } - }, - endpoints: { - serializedName: "endpoints", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EndpointDependency" - } - } - } } } } }; -export const EndpointDependency: coreClient.CompositeMapper = { +export const ServerUsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointDependency", + className: "ServerUsageListResult", modelProperties: { - domainName: { - serializedName: "domainName", - readOnly: true, - type: { - name: "String" - } - }, - endpointDetails: { - serializedName: "endpointDetails", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "EndpointDetail" + className: "ServerUsage" } } } - } - } - } -}; - -export const EndpointDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EndpointDetail", - modelProperties: { - port: { - serializedName: "port", + }, + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const TopQueriesListResult: coreClient.CompositeMapper = { +export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopQueriesListResult", + className: "ServerVulnerabilityAssessmentListResult", modelProperties: { value: { serializedName: "value", @@ -8788,7 +8182,7 @@ export const TopQueriesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TopQueries" + className: "ServerVulnerabilityAssessment" } } } @@ -8804,234 +8198,55 @@ export const TopQueriesListResult: coreClient.CompositeMapper = { } }; -export const TopQueries: coreClient.CompositeMapper = { +export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopQueries", + className: "CheckNameAvailabilityRequest", modelProperties: { - numberOfQueries: { - serializedName: "numberOfQueries", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { - name: "Number" + name: "String" } }, - aggregationFunction: { - serializedName: "aggregationFunction", - readOnly: true, + type: { + defaultValue: "Microsoft.Sql/servers", + isConstant: true, + serializedName: "type", type: { name: "String" } - }, - observationMetric: { - serializedName: "observationMetric", + } + } + } +}; + +export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CheckNameAvailabilityResponse", + modelProperties: { + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - intervalType: { - serializedName: "intervalType", + available: { + serializedName: "available", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - startTime: { - serializedName: "startTime", + reason: { + serializedName: "reason", readOnly: true, type: { - name: "String" - } - }, - endTime: { - serializedName: "endTime", - readOnly: true, - type: { - name: "String" - } - }, - queries: { - serializedName: "queries", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QueryStatisticsProperties" - } - } - } - } - } - } -}; - -export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedLedgerDigestUploadsListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedLedgerDigestUploads" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecoverableDatabaseListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecoverableDatabase" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorableDroppedDatabaseListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableDroppedDatabase" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerConfigurationOptionListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerConfigurationOption" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CheckNameAvailabilityRequest", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - type: { - defaultValue: "Microsoft.Sql/servers", - isConstant: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CheckNameAvailabilityResponse", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - available: { - serializedName: "available", - readOnly: true, - type: { - name: "Boolean" - } - }, - reason: { - serializedName: "reason", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Invalid", "AlreadyExists"] + name: "Enum", + allowedValues: ["Invalid", "AlreadyExists"] } }, message: { @@ -9097,48 +8312,6 @@ export const ServerPrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionProperties", - modelProperties: { - privateEndpoint: { - serializedName: "privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpointProperty" - } - }, - groupIds: { - serializedName: "groupIds", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const ServerExternalAdministrator: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9456,10 +8629,10 @@ export const ScheduleItem: coreClient.CompositeMapper = { } }; -export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.CompositeMapper = { +export const SubscriptionUsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicalDatabaseTransparentDataEncryptionListResult", + className: "SubscriptionUsageListResult", modelProperties: { value: { serializedName: "value", @@ -9469,7 +8642,7 @@ export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.Comp element: { type: { name: "Composite", - className: "LogicalDatabaseTransparentDataEncryption" + className: "SubscriptionUsage" } } } @@ -9485,181 +8658,250 @@ export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.Comp } }; -export const SloUsageMetric: coreClient.CompositeMapper = { +export const SynapseLinkWorkspaceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SloUsageMetric", + className: "SynapseLinkWorkspaceListResult", modelProperties: { - serviceLevelObjective: { - serializedName: "serviceLevelObjective", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SynapseLinkWorkspace" + } + } } }, - serviceLevelObjectiveId: { - serializedName: "serviceLevelObjectiveId", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Uuid" - } - }, - inRangeTimeRatio: { - serializedName: "inRangeTimeRatio", - readOnly: true, - type: { - name: "Number" + name: "String" } } } } }; -export const OperationImpact: coreClient.CompositeMapper = { +export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationImpact", + className: "SynapseLinkWorkspaceInfoProperties", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + workspaceId: { + serializedName: "workspaceId", type: { name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + linkConnectionName: { + serializedName: "linkConnectionName", type: { name: "String" } - }, - changeValueAbsolute: { - serializedName: "changeValueAbsolute", + } + } + } +}; + +export const SyncAgentListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncAgentListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncAgent" + } + } } }, - changeValueRelative: { - serializedName: "changeValueRelative", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const SecurityEventsFilterParameters: coreClient.CompositeMapper = { +export const SyncAgentKeyProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEventsFilterParameters", + className: "SyncAgentKeyProperties", modelProperties: { - eventTime: { - serializedName: "eventTime", - type: { - name: "DateTime" - } - }, - showServerRecords: { - serializedName: "showServerRecords", + syncAgentKey: { + serializedName: "syncAgentKey", + readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ProxyResource: coreClient.CompositeMapper = { +export const SyncAgentLinkedDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyResource", + className: "SyncAgentLinkedDatabaseListResult", modelProperties: { - ...Resource.type.modelProperties + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncAgentLinkedDatabase" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const TrackedResource: coreClient.CompositeMapper = { +export const SyncDatabaseIdListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrackedResource", + className: "SyncDatabaseIdListResult", modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncDatabaseIdProperties" + } + } } }, - tags: { - serializedName: "tags", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const ProxyResourceWithWritableName: coreClient.CompositeMapper = { +export const SyncDatabaseIdProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyResourceWithWritableName", + className: "SyncDatabaseIdProperties", modelProperties: { - ...ResourceWithWritableName.type.modelProperties + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const DataMaskingPolicy: coreClient.CompositeMapper = { +export const SyncGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingPolicy", + className: "SyncGroupListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroup" + } + } } }, - kind: { - serializedName: "kind", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - dataMaskingState: { - serializedName: "properties.dataMaskingState", + } + } + } +}; + +export const SyncGroupSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncGroupSchema", + modelProperties: { + tables: { + serializedName: "tables", type: { - name: "Enum", - allowedValues: ["Disabled", "Enabled"] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupSchemaTable" + } + } } }, - exemptPrincipals: { - serializedName: "properties.exemptPrincipals", + masterSyncMemberName: { + serializedName: "masterSyncMemberName", type: { name: "String" } - }, - applicationPrincipals: { - serializedName: "properties.applicationPrincipals", - readOnly: true, + } + } + } +}; + +export const SyncGroupSchemaTable: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncGroupSchemaTable", + modelProperties: { + columns: { + serializedName: "columns", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupSchemaTableColumn" + } + } } }, - maskingLevel: { - serializedName: "properties.maskingLevel", - readOnly: true, + quotedName: { + serializedName: "quotedName", type: { name: "String" } @@ -9668,1133 +8910,710 @@ export const DataMaskingPolicy: coreClient.CompositeMapper = { } }; -export const DataMaskingRule: coreClient.CompositeMapper = { +export const SyncGroupSchemaTableColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingRule", + className: "SyncGroupSchemaTableColumn", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + quotedName: { + serializedName: "quotedName", type: { name: "String" } }, - kind: { - serializedName: "kind", - readOnly: true, + dataSize: { + serializedName: "dataSize", type: { name: "String" } }, - idPropertiesId: { - serializedName: "properties.id", - readOnly: true, + dataType: { + serializedName: "dataType", type: { name: "String" } - }, - aliasName: { - serializedName: "properties.aliasName", + } + } + } +}; + +export const SyncFullSchemaPropertiesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncFullSchemaPropertiesListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncFullSchemaProperties" + } + } } }, - ruleState: { - serializedName: "properties.ruleState", + nextLink: { + serializedName: "nextLink", + readOnly: true, 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" + name: "String" } } } } }; -export const ServerCommunicationLink: coreClient.CompositeMapper = { +export const SyncFullSchemaProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerCommunicationLink", + className: "SyncFullSchemaProperties", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, - kind: { - serializedName: "kind", + tables: { + serializedName: "tables", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncFullSchemaTable" + } + } } }, - state: { - serializedName: "properties.state", + lastUpdateTime: { + serializedName: "lastUpdateTime", readOnly: true, type: { - name: "String" - } - }, - partnerServer: { - serializedName: "properties.partnerServer", - type: { - name: "String" + name: "DateTime" } } } } }; -export const ServiceObjective: coreClient.CompositeMapper = { +export const SyncFullSchemaTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceObjective", + className: "SyncFullSchemaTable", modelProperties: { - ...ProxyResource.type.modelProperties, - serviceObjectiveName: { - serializedName: "properties.serviceObjectiveName", - readOnly: true, - type: { - name: "String" - } - }, - isDefault: { - serializedName: "properties.isDefault", - readOnly: true, - type: { - name: "Boolean" - } - }, - isSystem: { - serializedName: "properties.isSystem", + columns: { + serializedName: "columns", readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncFullSchemaTableColumn" + } + } } }, - description: { - serializedName: "properties.description", + errorId: { + serializedName: "errorId", readOnly: true, type: { name: "String" } }, - enabled: { - serializedName: "properties.enabled", + hasError: { + serializedName: "hasError", readOnly: true, type: { name: "Boolean" } - } - } - } -}; - -export const ElasticPoolActivity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPoolActivity", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, - type: { - name: "Number" - } - }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, - type: { - name: "String" - } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, - type: { - name: "Number" - } - }, - operation: { - serializedName: "properties.operation", - readOnly: true, - type: { - name: "String" - } - }, - operationId: { - serializedName: "properties.operationId", - readOnly: true, - type: { - name: "Uuid" - } - }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, - type: { - name: "Number" - } - }, - requestedDatabaseDtuMax: { - serializedName: "properties.requestedDatabaseDtuMax", - readOnly: true, - type: { - name: "Number" - } - }, - requestedDatabaseDtuMin: { - serializedName: "properties.requestedDatabaseDtuMin", - readOnly: true, - type: { - name: "Number" - } - }, - requestedDtu: { - serializedName: "properties.requestedDtu", - readOnly: true, - type: { - name: "Number" - } - }, - requestedElasticPoolName: { - serializedName: "properties.requestedElasticPoolName", - readOnly: true, - type: { - name: "String" - } - }, - requestedStorageLimitInGB: { - serializedName: "properties.requestedStorageLimitInGB", - readOnly: true, - type: { - name: "Number" - } - }, - elasticPoolName: { - serializedName: "properties.elasticPoolName", - readOnly: true, - type: { - name: "String" - } - }, - serverName: { - serializedName: "properties.serverName", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", - readOnly: true, - type: { - name: "String" - } - }, - requestedStorageLimitInMB: { - serializedName: "properties.requestedStorageLimitInMB", - readOnly: true, - type: { - name: "Number" - } - }, - requestedDatabaseDtuGuarantee: { - serializedName: "properties.requestedDatabaseDtuGuarantee", - readOnly: true, - type: { - name: "Number" - } - }, - requestedDatabaseDtuCap: { - serializedName: "properties.requestedDatabaseDtuCap", - readOnly: true, - type: { - name: "Number" - } - }, - requestedDtuGuarantee: { - serializedName: "properties.requestedDtuGuarantee", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; - -export const ElasticPoolDatabaseActivity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPoolDatabaseActivity", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, - type: { - name: "String" - } - }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, - type: { - name: "Number" - } - }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, - type: { - name: "String" - } - }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, - type: { - name: "Number" - } - }, - operation: { - serializedName: "properties.operation", - readOnly: true, - type: { - name: "String" - } - }, - operationId: { - serializedName: "properties.operationId", - readOnly: true, - type: { - name: "Uuid" - } - }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, - type: { - name: "Number" - } - }, - requestedElasticPoolName: { - serializedName: "properties.requestedElasticPoolName", - readOnly: true, - type: { - name: "String" - } - }, - currentElasticPoolName: { - serializedName: "properties.currentElasticPoolName", - readOnly: true, - type: { - name: "String" - } - }, - currentServiceObjective: { - serializedName: "properties.currentServiceObjective", - readOnly: true, - type: { - name: "String" - } - }, - requestedServiceObjective: { - serializedName: "properties.requestedServiceObjective", - readOnly: true, - type: { - name: "String" - } - }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, - type: { - name: "String" - } - }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const RecommendedAction: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedAction", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, - recommendationReason: { - serializedName: "properties.recommendationReason", - readOnly: true, - type: { - name: "String" - } - }, - validSince: { - serializedName: "properties.validSince", - readOnly: true, - type: { - name: "DateTime" - } - }, - lastRefresh: { - serializedName: "properties.lastRefresh", - readOnly: true, - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Composite", - className: "RecommendedActionStateInfo" - } - }, - isExecutableAction: { - serializedName: "properties.isExecutableAction", - readOnly: true, - type: { - name: "Boolean" - } - }, - isRevertableAction: { - serializedName: "properties.isRevertableAction", - readOnly: true, - type: { - name: "Boolean" - } - }, - isArchivedAction: { - serializedName: "properties.isArchivedAction", - readOnly: true, - type: { - name: "Boolean" - } - }, - executeActionStartTime: { - serializedName: "properties.executeActionStartTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - executeActionDuration: { - serializedName: "properties.executeActionDuration", - readOnly: true, - type: { - name: "String" - } - }, - revertActionStartTime: { - serializedName: "properties.revertActionStartTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - revertActionDuration: { - serializedName: "properties.revertActionDuration", - readOnly: true, - 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, - type: { - name: "Enum", - allowedValues: ["User", "System"] - } - }, - revertActionInitiatedTime: { - serializedName: "properties.revertActionInitiatedTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - score: { - serializedName: "properties.score", - readOnly: true, - type: { - name: "Number" - } - }, - implementationDetails: { - serializedName: "properties.implementationDetails", - type: { - name: "Composite", - className: "RecommendedActionImplementationInfo" - } - }, - errorDetails: { - serializedName: "properties.errorDetails", - type: { - name: "Composite", - className: "RecommendedActionErrorInfo" - } - }, - estimatedImpact: { - serializedName: "properties.estimatedImpact", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedActionImpactRecord" - } - } - } - }, - observedImpact: { - serializedName: "properties.observedImpact", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedActionImpactRecord" - } - } - } - }, - timeSeries: { - serializedName: "properties.timeSeries", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedActionMetricInfo" - } - } - } - }, - linkedObjects: { - serializedName: "properties.linkedObjects", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - details: { - serializedName: "properties.details", + quotedName: { + serializedName: "quotedName", readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } } } } }; -export const Advisor: coreClient.CompositeMapper = { +export const SyncFullSchemaTableColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Advisor", + className: "SyncFullSchemaTableColumn", modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + dataSize: { + serializedName: "dataSize", readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", + dataType: { + serializedName: "dataType", readOnly: true, type: { name: "String" } }, - advisorStatus: { - serializedName: "properties.advisorStatus", + errorId: { + serializedName: "errorId", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "GA", - "PublicPreview", - "LimitedPublicPreview", - "PrivatePreview" - ] + name: "String" } }, - autoExecuteStatus: { - serializedName: "properties.autoExecuteStatus", + hasError: { + serializedName: "hasError", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled", "Default"] + name: "Boolean" } }, - autoExecuteStatusInheritedFrom: { - serializedName: "properties.autoExecuteStatusInheritedFrom", + isPrimaryKey: { + serializedName: "isPrimaryKey", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "Default", - "Subscription", - "Server", - "ElasticPool", - "Database" - ] + name: "Boolean" } }, - recommendationsStatus: { - serializedName: "properties.recommendationsStatus", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - lastChecked: { - serializedName: "properties.lastChecked", + quotedName: { + serializedName: "quotedName", readOnly: true, type: { - name: "DateTime" + name: "String" } - }, - recommendedActions: { - serializedName: "properties.recommendedActions", + } + } + } +}; + +export const SyncGroupLogListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncGroupLogListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecommendedAction" + className: "SyncGroupLogProperties" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const DatabaseAutomaticTuning: coreClient.CompositeMapper = { +export const SyncGroupLogProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseAutomaticTuning", + className: "SyncGroupLogProperties", modelProperties: { - ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", + timestamp: { + serializedName: "timestamp", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] + name: "DateTime" } }, - actualState: { - serializedName: "properties.actualState", + type: { + serializedName: "type", readOnly: true, type: { - name: "Enum", - allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] + name: "String" } }, - options: { - serializedName: "properties.options", + source: { + serializedName: "source", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "AutomaticTuningOptions" } - } + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "String" + } + }, + tracingId: { + serializedName: "tracingId", + readOnly: true, + type: { + name: "Uuid" + } + }, + operationStatus: { + serializedName: "operationStatus", + readOnly: true, + type: { + name: "String" } } } } }; -export const DatabaseColumn: coreClient.CompositeMapper = { +export const SyncMemberListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseColumn", + className: "SyncMemberListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - columnType: { - serializedName: "properties.columnType", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncMember" + } + } } }, - temporalType: { - serializedName: "properties.temporalType", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - memoryOptimized: { - serializedName: "properties.memoryOptimized", + } + } + } +}; + +export const TimeZoneListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TimeZoneListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimeZone" + } + } } }, - isComputed: { - serializedName: "properties.isComputed", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const DatabaseSchema: coreClient.CompositeMapper = { +export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSchema", + className: "LogicalDatabaseTransparentDataEncryptionListResult", modelProperties: { - ...ProxyResource.type.modelProperties + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogicalDatabaseTransparentDataEncryption" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { +export const UsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSecurityAlertPolicy", + className: "UsageListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } } }, - state: { - serializedName: "properties.state", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + } + } + } +}; + +export const Usage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Usage", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "Name" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + currentValue: { + serializedName: "currentValue", + readOnly: true, type: { - name: "String" + name: "Number" } }, - retentionDays: { - serializedName: "properties.retentionDays", + limit: { + serializedName: "limit", + readOnly: true, type: { name: "Number" } }, - creationTime: { - serializedName: "properties.creationTime", + requestedLimit: { + serializedName: "requestedLimit", readOnly: true, type: { - name: "DateTime" + name: "Number" } } } } }; -export const DatabaseTable: coreClient.CompositeMapper = { +export const Name: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseTable", + className: "Name", modelProperties: { - ...ProxyResource.type.modelProperties, - temporalType: { - serializedName: "properties.temporalType", + value: { + serializedName: "value", type: { name: "String" } }, - memoryOptimized: { - serializedName: "properties.memoryOptimized", + localizedValue: { + serializedName: "localizedValue", type: { - name: "Boolean" + name: "String" } } } } }; -export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { +export const VirtualClusterListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaseline", + className: "VirtualClusterListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - baselineResults: { - serializedName: "properties.baselineResults", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" + className: "VirtualCluster" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { +export const VirtualClusterUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessment", + className: "VirtualClusterUpdate", modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + subnetId: { + serializedName: "properties.subnetId", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + version: { + serializedName: "properties.version", type: { name: "String" } }, - recurringScans: { - serializedName: "properties.recurringScans", + childResources: { + serializedName: "properties.childResources", + readOnly: true, type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { +export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecord", + className: "VirtualNetworkRuleListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - scanId: { - serializedName: "properties.scanId", - readOnly: true, - type: { - name: "String" - } - }, - triggerType: { - serializedName: "properties.triggerType", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkRule" + } + } } }, - state: { - serializedName: "properties.state", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - startTime: { - serializedName: "properties.startTime", + } + } + } +}; + +export const WorkloadClassifierListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadClassifierListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadClassifier" + } + } } }, - endTime: { - serializedName: "properties.endTime", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "DateTime" + name: "String" } - }, - errors: { - serializedName: "properties.errors", + } + } + } +}; + +export const WorkloadGroupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadGroupListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VulnerabilityAssessmentScanError" + className: "WorkloadGroup" } } } }, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } + } + } + } +}; + +export const SecurityEventsFilterParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityEventsFilterParameters", + modelProperties: { + eventTime: { + serializedName: "eventTime", + type: { + name: "DateTime" + } }, - numberOfFailedSecurityChecks: { - serializedName: "properties.numberOfFailedSecurityChecks", - readOnly: true, + showServerRecords: { + serializedName: "showServerRecords", type: { - name: "Number" + name: "Boolean" } } } } }; -export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentScansExport", + className: "ProxyResource", modelProperties: { - ...ProxyResource.type.modelProperties, - exportedReportLocation: { - serializedName: "properties.exportedReportLocation", - readOnly: true, + ...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 DataWarehouseUserActivities: coreClient.CompositeMapper = { +export const ProxyResourceWithWritableName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResourceWithWritableName", + modelProperties: { + ...ResourceWithWritableName.type.modelProperties + } + } +}; + +export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataWarehouseUserActivities", + className: "BackupShortTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - activeQueriesCount: { - serializedName: "properties.activeQueriesCount", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + diffBackupIntervalInHours: { + serializedName: "properties.diffBackupIntervalInHours", type: { name: "Number" } @@ -10803,928 +9622,897 @@ export const DataWarehouseUserActivities: coreClient.CompositeMapper = { } }; -export const DeletedServer: coreClient.CompositeMapper = { +export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeletedServer", + className: "ServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - version: { - serializedName: "properties.version", - readOnly: true, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { - name: "String" + name: "Boolean" } }, - deletionTime: { - serializedName: "properties.deletionTime", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "DateTime" + name: "Number" } }, - originalId: { - serializedName: "properties.originalId", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const ElasticPoolOperation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPoolOperation", - modelProperties: { - ...ProxyResource.type.modelProperties, - elasticPoolName: { - serializedName: "properties.elasticPoolName", - readOnly: true, + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - operation: { - serializedName: "properties.operation", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "String" + name: "Boolean" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" + } + } + } + } +}; + +export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseBlobAuditingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - errorDescription: { - serializedName: "properties.errorDescription", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", + type: { + name: "Boolean" + } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } + }, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { name: "Number" } }, - isUserError: { - serializedName: "properties.isUserError", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { name: "Boolean" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - description: { - serializedName: "properties.description", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Boolean" + name: "String" + } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" } } } } }; -export const EncryptionProtector: coreClient.CompositeMapper = { +export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtector", + className: "ExtendedDatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + predicateExpression: { + serializedName: "properties.predicateExpression", type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - subregion: { - serializedName: "properties.subregion", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "String" + name: "Boolean" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - uri: { - serializedName: "properties.uri", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", + type: { + name: "Number" + } + }, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", + type: { + name: "Boolean" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", 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 FailoverGroup: coreClient.CompositeMapper = { +export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroup", + className: "ExtendedServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", + type: { + name: "Boolean" + } + }, + predicateExpression: { + serializedName: "properties.predicateExpression", type: { name: "String" } }, - tags: { - serializedName: "tags", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" + name: "Boolean" } }, - replicationRole: { - serializedName: "properties.replicationRole", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - replicationState: { - serializedName: "properties.replicationState", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - partnerServers: { - serializedName: "properties.partnerServers", + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerInfo" - } - } + name: "Boolean" } }, - databases: { - serializedName: "properties.databases", + state: { + serializedName: "properties.state", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } - } - } - } -}; - -export const JobCredential: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobCredential", - modelProperties: { - ...ProxyResource.type.modelProperties, - username: { - serializedName: "properties.username", + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - password: { - serializedName: "properties.password", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" + } } } } }; -export const JobExecution: coreClient.CompositeMapper = { +export const DataMaskingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobExecution", + className: "DataMaskingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - jobVersion: { - serializedName: "properties.jobVersion", + location: { + serializedName: "location", readOnly: true, type: { - name: "Number" + name: "String" } }, - stepName: { - serializedName: "properties.stepName", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - stepId: { - serializedName: "properties.stepId", - readOnly: true, + dataMaskingState: { + serializedName: "properties.dataMaskingState", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - jobExecutionId: { - serializedName: "properties.jobExecutionId", - readOnly: true, + exemptPrincipals: { + serializedName: "properties.exemptPrincipals", type: { - name: "Uuid" + name: "String" } }, - lifecycle: { - serializedName: "properties.lifecycle", + applicationPrincipals: { + serializedName: "properties.applicationPrincipals", readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + maskingLevel: { + serializedName: "properties.maskingLevel", readOnly: true, type: { name: "String" } - }, - createTime: { - serializedName: "properties.createTime", + } + } + } +}; + +export const DataMaskingRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataMaskingRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - startTime: { - serializedName: "properties.startTime", + kind: { + serializedName: "kind", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "properties.endTime", + idPropertiesId: { + serializedName: "properties.id", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - currentAttempts: { - serializedName: "properties.currentAttempts", + ruleState: { + serializedName: "properties.ruleState", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - currentAttemptStartTime: { - serializedName: "properties.currentAttemptStartTime", - readOnly: true, + schemaName: { + serializedName: "properties.schemaName", type: { - name: "DateTime" + name: "String" } }, - lastMessage: { - serializedName: "properties.lastMessage", - readOnly: true, + tableName: { + serializedName: "properties.tableName", type: { name: "String" } }, - target: { - serializedName: "properties.target", - type: { - name: "Composite", - className: "JobExecutionTarget" - } - } - } - } -}; - -export const Job: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Job", - modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - defaultValue: "", - serializedName: "properties.description", + columnName: { + serializedName: "properties.columnName", type: { name: "String" } }, - version: { - serializedName: "properties.version", - readOnly: true, + aliasName: { + serializedName: "properties.aliasName", type: { - name: "Number" + name: "String" } }, - schedule: { - serializedName: "properties.schedule", - type: { - name: "Composite", - className: "JobSchedule" - } - } - } - } -}; - -export const JobStep: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobStep", - modelProperties: { - ...ProxyResource.type.modelProperties, - stepId: { - serializedName: "properties.stepId", + maskingFunction: { + serializedName: "properties.maskingFunction", type: { - name: "Number" + name: "Enum", + allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"] } }, - targetGroup: { - serializedName: "properties.targetGroup", + numberFrom: { + serializedName: "properties.numberFrom", type: { name: "String" } }, - credential: { - serializedName: "properties.credential", + numberTo: { + serializedName: "properties.numberTo", type: { name: "String" } }, - action: { - serializedName: "properties.action", + prefixSize: { + serializedName: "properties.prefixSize", type: { - name: "Composite", - className: "JobStepAction" + name: "String" } }, - output: { - serializedName: "properties.output", + suffixSize: { + serializedName: "properties.suffixSize", type: { - name: "Composite", - className: "JobStepOutput" + name: "String" } }, - executionOptions: { - serializedName: "properties.executionOptions", + replacementString: { + serializedName: "properties.replacementString", type: { - name: "Composite", - className: "JobStepExecutionOptions" + name: "String" } } } } }; -export const JobTargetGroup: coreClient.CompositeMapper = { +export const DataWarehouseUserActivities: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobTargetGroup", + className: "DataWarehouseUserActivities", modelProperties: { ...ProxyResource.type.modelProperties, - members: { - serializedName: "properties.members", + activeQueriesCount: { + serializedName: "properties.activeQueriesCount", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobTarget" - } - } + name: "Number" } } } } }; -export const JobVersion: coreClient.CompositeMapper = { +export const DatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobVersion", + className: "DatabaseAdvancedThreatProtection", modelProperties: { - ...ProxyResource.type.modelProperties + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] + } + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, + type: { + name: "DateTime" + } + } } } }; -export const LongTermRetentionPolicy: coreClient.CompositeMapper = { +export const RecommendedAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionPolicy", + className: "RecommendedAction", modelProperties: { ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", + kind: { + serializedName: "kind", + readOnly: true, type: { name: "String" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + recommendationReason: { + serializedName: "properties.recommendationReason", + readOnly: true, type: { name: "String" } }, - weekOfYear: { - serializedName: "properties.weekOfYear", + validSince: { + serializedName: "properties.validSince", + readOnly: true, type: { - name: "Number" + name: "DateTime" } - } - } - } -}; - -export const MaintenanceWindowOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MaintenanceWindowOptions", - modelProperties: { - ...ProxyResource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", + }, + lastRefresh: { + serializedName: "properties.lastRefresh", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - maintenanceWindowCycles: { - serializedName: "properties.maintenanceWindowCycles", + state: { + serializedName: "properties.state", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } + name: "Composite", + className: "RecommendedActionStateInfo" } }, - minDurationInMinutes: { - serializedName: "properties.minDurationInMinutes", + isExecutableAction: { + serializedName: "properties.isExecutableAction", + readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - defaultDurationInMinutes: { - serializedName: "properties.defaultDurationInMinutes", + isRevertableAction: { + serializedName: "properties.isRevertableAction", + readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - minCycles: { - serializedName: "properties.minCycles", + isArchivedAction: { + serializedName: "properties.isArchivedAction", + readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - timeGranularityInMinutes: { - serializedName: "properties.timeGranularityInMinutes", + executeActionStartTime: { + serializedName: "properties.executeActionStartTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - allowMultipleMaintenanceWindowsPerCycle: { - serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + executeActionDuration: { + serializedName: "properties.executeActionDuration", + readOnly: true, type: { - name: "Boolean" + name: "TimeSpan" } - } - } - } -}; - -export const MaintenanceWindows: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MaintenanceWindows", - modelProperties: { - ...ProxyResource.type.modelProperties, - timeRanges: { - serializedName: "properties.timeRanges", + }, + revertActionStartTime: { + serializedName: "properties.revertActionStartTime", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } + name: "DateTime" } - } - } - } -}; - -export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + }, + revertActionDuration: { + serializedName: "properties.revertActionDuration", + readOnly: true, type: { - name: "Number" + name: "TimeSpan" } - } - } - } -}; - -export const ManagedInstanceQuery: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceQuery", - modelProperties: { - ...ProxyResource.type.modelProperties, - queryText: { - serializedName: "properties.queryText", + }, + executeActionInitiatedBy: { + serializedName: "properties.executeActionInitiatedBy", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["User", "System"] } - } - } - } -}; - -export const QueryStatistics: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QueryStatistics", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", + }, + executeActionInitiatedTime: { + serializedName: "properties.executeActionInitiatedTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + revertActionInitiatedBy: { + serializedName: "properties.revertActionInitiatedBy", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["User", "System"] + } + }, + revertActionInitiatedTime: { + serializedName: "properties.revertActionInitiatedTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - queryId: { - serializedName: "properties.queryId", + score: { + serializedName: "properties.score", readOnly: true, type: { - name: "String" + name: "Number" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + implementationDetails: { + serializedName: "properties.implementationDetails", type: { - name: "String" + name: "Composite", + className: "RecommendedActionImplementationInfo" } }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, + errorDetails: { + serializedName: "properties.errorDetails", type: { - name: "String" + name: "Composite", + className: "RecommendedActionErrorInfo" } }, - intervals: { - serializedName: "properties.intervals", + estimatedImpact: { + serializedName: "properties.estimatedImpact", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "QueryMetricInterval" + className: "RecommendedActionImpactRecord" } } } - } - } - } -}; - -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", + observedImpact: { + serializedName: "properties.observedImpact", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "RecommendedActionImpactRecord" } } } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + timeSeries: { + serializedName: "properties.timeSeries", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "RecommendedActionMetricInfo" } } } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", - type: { - name: "Boolean" - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", + linkedObjects: { + serializedName: "properties.linkedObjects", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - creationTime: { - serializedName: "properties.creationTime", + details: { + serializedName: "properties.details", readOnly: true, type: { - name: "DateTime" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const SecurityEvent: coreClient.CompositeMapper = { +export const Advisor: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEvent", + className: "Advisor", modelProperties: { ...ProxyResource.type.modelProperties, - eventTime: { - serializedName: "properties.eventTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - securityEventType: { - serializedName: "properties.securityEventType", + kind: { + serializedName: "kind", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "Undefined", - "SqlInjectionVulnerability", - "SqlInjectionExploit" - ] + name: "String" } }, - subscription: { - serializedName: "properties.subscription", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - server: { - serializedName: "properties.server", + advisorStatus: { + serializedName: "properties.advisorStatus", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: [ + "GA", + "PublicPreview", + "LimitedPublicPreview", + "PrivatePreview" + ] } }, - database: { - serializedName: "properties.database", - readOnly: true, + autoExecuteStatus: { + serializedName: "properties.autoExecuteStatus", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled", "Default"] } }, - clientIp: { - serializedName: "properties.clientIp", + autoExecuteStatusInheritedFrom: { + serializedName: "properties.autoExecuteStatusInheritedFrom", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: [ + "Default", + "Subscription", + "Server", + "ElasticPool", + "Database" + ] } }, - applicationName: { - serializedName: "properties.applicationName", + recommendationsStatus: { + serializedName: "properties.recommendationsStatus", readOnly: true, type: { name: "String" } }, - principalName: { - serializedName: "properties.principalName", + lastChecked: { + serializedName: "properties.lastChecked", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - securityEventSqlInjectionAdditionalProperties: { - serializedName: - "properties.securityEventSqlInjectionAdditionalProperties", + recommendedActions: { + serializedName: "properties.recommendedActions", + readOnly: true, type: { - name: "Composite", - className: "SecurityEventSqlInjectionAdditionalProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedAction" + } + } } } } } }; -export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { +export const DatabaseAutomaticTuning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedTransparentDataEncryption", + className: "DatabaseAutomaticTuning", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + desiredState: { + serializedName: "properties.desiredState", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] + allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] + } + }, + actualState: { + serializedName: "properties.actualState", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "AutomaticTuningOptions" } + } } } } } }; -export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { +export const DatabaseColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdministrator", + className: "DatabaseColumn", modelProperties: { ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", + columnType: { + serializedName: "properties.columnType", type: { name: "String" } }, - login: { - serializedName: "properties.login", + temporalType: { + serializedName: "properties.temporalType", type: { name: "String" } }, - sid: { - serializedName: "properties.sid", - type: { - name: "Uuid" - } - }, - tenantId: { - serializedName: "properties.tenantId", + memoryOptimized: { + serializedName: "properties.memoryOptimized", type: { - name: "Uuid" - } - } - } - } -}; - -export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthentication", - modelProperties: { - ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + name: "Boolean" + } + }, + isComputed: { + serializedName: "properties.isComputed", type: { name: "Boolean" } @@ -11733,147 +10521,177 @@ export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMappe } }; -export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { +export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector", + className: "ImportExportExtensionsOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + requestId: { + serializedName: "properties.requestId", + readOnly: true, + type: { + name: "Uuid" + } + }, + requestType: { + serializedName: "properties.requestType", readOnly: true, type: { name: "String" } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + readOnly: true, type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { name: "String" } }, - uri: { - serializedName: "properties.uri", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + queuedTime: { + serializedName: "properties.queuedTime", + readOnly: true, + type: { + name: "String" + } + }, + blobUri: { + serializedName: "properties.blobUri", + readOnly: true, + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestStatus" + } + } } } } } }; -export const ManagedInstanceKey: coreClient.CompositeMapper = { +export const DatabaseExtensions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceKey", + className: "DatabaseExtensions", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + operationMode: { + serializedName: "properties.operationMode", type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + storageKeyType: { + serializedName: "properties.storageKeyType", type: { name: "String" } }, - uri: { - serializedName: "properties.uri", + storageKey: { + serializedName: "properties.storageKey", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", - readOnly: true, + storageUri: { + serializedName: "properties.storageUri", type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + administratorLogin: { + serializedName: "properties.administratorLogin", type: { - name: "DateTime" + name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", - readOnly: true, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const ManagedInstanceLongTermRetentionPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", + }, + authenticationType: { + serializedName: "properties.authenticationType", type: { name: "String" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + databaseEdition: { + serializedName: "properties.databaseEdition", type: { name: "String" } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + serviceObjectiveName: { + serializedName: "properties.serviceObjectiveName", type: { name: "String" } }, - weekOfYear: { - serializedName: "properties.weekOfYear", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { - name: "Number" + name: "String" + } + }, + networkIsolation: { + serializedName: "properties.networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" } } } } }; -export const ManagedInstanceOperation: coreClient.CompositeMapper = { +export const DatabaseOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceOperation", + className: "DatabaseOperation", modelProperties: { ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" @@ -11900,6 +10718,13 @@ export const ManagedInstanceOperation: coreClient.CompositeMapper = { name: "Number" } }, + serverName: { + serializedName: "properties.serverName", + readOnly: true, + type: { + name: "String" + } + }, startTime: { serializedName: "properties.startTime", readOnly: true, @@ -11963,133 +10788,337 @@ export const ManagedInstanceOperation: coreClient.CompositeMapper = { name: "Boolean" } }, - operationParameters: { - serializedName: "properties.operationParameters", + operationPhaseDetails: { + serializedName: "properties.operationPhaseDetails", + type: { + name: "Composite", + className: "PhaseDetails" + } + } + } + } +}; + +export const DatabaseSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSchema", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] + } + }, + disabledAlerts: { + serializedName: "properties.disabledAlerts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAddresses: { + serializedName: "properties.emailAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", + type: { + name: "Boolean" + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const DatabaseSqlVulnerabilityAssessmentBaselineSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSqlVulnerabilityAssessmentBaselineSet", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "ManagedInstanceOperationParametersPair" + className: "SystemData" } }, - operationSteps: { - serializedName: "properties.operationSteps", + results: { + serializedName: "properties.results", type: { - name: "Composite", - className: "ManagedInstanceOperationSteps" + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { type: { name: "String" } } + } + } + } + } } } } } }; -export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePrivateEndpointConnection", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput", modelProperties: { ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "ManagedInstancePrivateEndpointProperty" + className: "SystemData" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + latestScan: { + serializedName: "properties.latestScan", type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" + name: "Boolean" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + results: { + serializedName: "properties.results", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { type: { name: "String" } } + } + } + } + } } } } } }; -export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePrivateLink", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline", modelProperties: { ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "ManagedInstancePrivateLinkProperties" + className: "SystemData" + } + }, + results: { + serializedName: "properties.results", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const TdeCertificate: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TdeCertificate", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineInput", modelProperties: { ...ProxyResource.type.modelProperties, - privateBlob: { - serializedName: "properties.privateBlob", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - certPassword: { - serializedName: "properties.certPassword", + latestScan: { + serializedName: "properties.latestScan", type: { - name: "String" + name: "Boolean" + } + }, + results: { + serializedName: "properties.results", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanResults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment", + className: "SqlVulnerabilityAssessmentScanResults", modelProperties: { ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + ruleId: { + serializedName: "properties.ruleId", + readOnly: true, type: { name: "String" } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, type: { name: "String" } }, - recurringScans: { - serializedName: "properties.recurringScans", + isTrimmed: { + serializedName: "properties.isTrimmed", + readOnly: true, + type: { + name: "Boolean" + } + }, + queryResults: { + serializedName: "properties.queryResults", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + }, + remediation: { + serializedName: "properties.remediation", type: { name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + className: "Remediation" + } + }, + baselineAdjustedResult: { + serializedName: "properties.baselineAdjustedResult", + type: { + name: "Composite", + className: "BaselineAdjustedResult" + } + }, + ruleMetadata: { + serializedName: "properties.ruleMetadata", + type: { + name: "Composite", + className: "VaRule" } } } } }; -export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicy", + className: "SqlVulnerabilityAssessmentScanRecord", modelProperties: { ...ProxyResource.type.modelProperties, systemData: { @@ -12099,172 +11128,210 @@ export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { className: "SystemData" } }, + scanId: { + serializedName: "properties.scanId", + readOnly: true, + type: { + name: "String" + } + }, + triggerType: { + serializedName: "properties.triggerType", + readOnly: true, + type: { + name: "String" + } + }, state: { serializedName: "properties.state", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "DateTime" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + endTime: { + serializedName: "properties.endTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + errors: { + serializedName: "properties.errors", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SqlVulnerabilityAssessmentScanError" } } } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + server: { + serializedName: "properties.server", + readOnly: true, + type: { + name: "String" + } + }, + database: { + serializedName: "properties.database", + readOnly: true, + type: { + name: "String" + } + }, + sqlVersion: { + serializedName: "properties.sqlVersion", + readOnly: true, + type: { + name: "String" + } + }, + highSeverityFailedRulesCount: { + serializedName: "properties.highSeverityFailedRulesCount", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + mediumSeverityFailedRulesCount: { + serializedName: "properties.mediumSeverityFailedRulesCount", + readOnly: true, type: { - name: "String" + name: "Number" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + lowSeverityFailedRulesCount: { + serializedName: "properties.lowSeverityFailedRulesCount", + readOnly: true, type: { - name: "String" + name: "Number" } }, - retentionDays: { - serializedName: "properties.retentionDays", + totalPassedRulesCount: { + serializedName: "properties.totalPassedRulesCount", + readOnly: true, type: { name: "Number" } }, - creationTime: { - serializedName: "properties.creationTime", + totalFailedRulesCount: { + serializedName: "properties.totalFailedRulesCount", readOnly: true, type: { - name: "DateTime" + name: "Number" } - } - } - } -}; - -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + }, + totalRulesCount: { + serializedName: "properties.totalRulesCount", + readOnly: true, type: { - name: "Composite", - className: "PrivateEndpointProperty" + name: "Number" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + isBaselineApplied: { + serializedName: "properties.isBaselineApplied", + readOnly: true, type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" + name: "Boolean" } }, - provisioningState: { - serializedName: "properties.provisioningState", + lastScanTime: { + serializedName: "properties.lastScanTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "SqlVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "PrivateLinkResourceProperties" + className: "SystemData" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const RecoverableManagedDatabase: coreClient.CompositeMapper = { +export const DatabaseTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableManagedDatabase", + className: "DatabaseTable", modelProperties: { ...ProxyResource.type.modelProperties, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", - readOnly: true, + temporalType: { + serializedName: "properties.temporalType", type: { name: "String" } + }, + memoryOptimized: { + serializedName: "properties.memoryOptimized", + type: { + name: "Boolean" + } } } } }; -export const RestorePoint: coreClient.CompositeMapper = { +export const DatabaseUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePoint", + className: "DatabaseUsage", 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" @@ -12274,35 +11341,20 @@ export const RestorePoint: coreClient.CompositeMapper = { } }; -export const ServerAutomaticTuning: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAutomaticTuning", + className: "DatabaseVulnerabilityAssessmentRuleBaseline", modelProperties: { ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", - type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] - } - }, - actualState: { - serializedName: "properties.actualState", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] - } - }, - options: { - serializedName: "properties.options", + baselineResults: { + serializedName: "properties.baselineResults", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "Composite", - className: "AutomaticTuningServerOptions" + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" } } } @@ -12311,125 +11363,245 @@ export const ServerAutomaticTuning: coreClient.CompositeMapper = { } }; -export const ServerAzureADAdministrator: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAzureADAdministrator", + className: "VulnerabilityAssessmentScanRecord", modelProperties: { ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", + scanId: { + serializedName: "properties.scanId", + readOnly: true, type: { name: "String" } }, - login: { - serializedName: "properties.login", + triggerType: { + serializedName: "properties.triggerType", + readOnly: true, type: { name: "String" } }, - sid: { - serializedName: "properties.sid", + state: { + serializedName: "properties.state", + readOnly: true, type: { - name: "Uuid" + name: "String" } }, - tenantId: { - serializedName: "properties.tenantId", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Uuid" + name: "DateTime" } }, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { - name: "Boolean" + name: "DateTime" + } + }, + errors: { + serializedName: "properties.errors", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanError" + } + } + } + }, + storageContainerPath: { + serializedName: "properties.storageContainerPath", + readOnly: true, + type: { + name: "String" + } + }, + numberOfFailedSecurityChecks: { + serializedName: "properties.numberOfFailedSecurityChecks", + readOnly: true, + type: { + name: "Number" } } } } }; -export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAzureADOnlyAuthentication", + className: "DatabaseVulnerabilityAssessmentScansExport", modelProperties: { ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + exportedReportLocation: { + serializedName: "properties.exportedReportLocation", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", + type: { + name: "String" + } + }, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Boolean" + name: "String" + } + }, + recurringScans: { + serializedName: "properties.recurringScans", + type: { + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { +export const ImportExportOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDevOpsAuditingSettings", + className: "ImportExportOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + requestId: { + serializedName: "properties.requestId", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "Uuid" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + requestType: { + serializedName: "properties.requestType", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + queuedTime: { + serializedName: "properties.queuedTime", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - state: { - serializedName: "properties.state", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + blobUri: { + serializedName: "properties.blobUri", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Uuid" + name: "String" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestStatus" + } + } } } } } }; -export const ServerDnsAlias: coreClient.CompositeMapper = { +export const DeletedServer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDnsAlias", + className: "DeletedServer", modelProperties: { ...ProxyResource.type.modelProperties, - azureDnsRecord: { - serializedName: "properties.azureDnsRecord", + version: { + serializedName: "properties.version", + readOnly: true, + type: { + name: "String" + } + }, + deletionTime: { + serializedName: "properties.deletionTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + originalId: { + serializedName: "properties.originalId", + readOnly: true, + type: { + name: "String" + } + }, + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", readOnly: true, type: { name: "String" @@ -12439,76 +11611,101 @@ export const ServerDnsAlias: coreClient.CompositeMapper = { } }; -export const ServerKey: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerKey", + className: "DistributedAvailabilityGroup", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + targetDatabase: { + serializedName: "properties.targetDatabase", type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + sourceEndpoint: { + serializedName: "properties.sourceEndpoint", type: { name: "String" } }, - subregion: { - serializedName: "properties.subregion", - readOnly: true, + primaryAvailabilityGroupName: { + serializedName: "properties.primaryAvailabilityGroupName", type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + secondaryAvailabilityGroupName: { + serializedName: "properties.secondaryAvailabilityGroupName", type: { name: "String" } }, - uri: { - serializedName: "properties.uri", + replicationMode: { + serializedName: "properties.replicationMode", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", + distributedAvailabilityGroupId: { + serializedName: "properties.distributedAvailabilityGroupId", + readOnly: true, + type: { + name: "Uuid" + } + }, + sourceReplicaId: { + serializedName: "properties.sourceReplicaId", + readOnly: true, + type: { + name: "Uuid" + } + }, + targetReplicaId: { + serializedName: "properties.targetReplicaId", + readOnly: true, + type: { + name: "Uuid" + } + }, + linkState: { + serializedName: "properties.linkState", readOnly: true, type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", + lastHardenedLsn: { + serializedName: "properties.lastHardenedLsn", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + instanceRole: { + serializedName: "properties.instanceRole", readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ServerOperation: coreClient.CompositeMapper = { +export const ElasticPoolOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerOperation", + className: "ElasticPoolOperation", modelProperties: { ...ProxyResource.type.modelProperties, + elasticPoolName: { + serializedName: "properties.elasticPoolName", + readOnly: true, + type: { + name: "String" + } + }, operation: { serializedName: "properties.operation", readOnly: true, @@ -12551,51 +11748,114 @@ export const ServerOperation: coreClient.CompositeMapper = { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, + type: { + name: "Number" + } + }, + errorDescription: { + serializedName: "properties.errorDescription", + 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", + readOnly: true, + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", + readOnly: true, + type: { + name: "String" + } + }, + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const EncryptionProtector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionProtector", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", readOnly: true, type: { - name: "Number" + name: "String" } }, - errorDescription: { - serializedName: "properties.errorDescription", + subregion: { + serializedName: "properties.subregion", readOnly: true, type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + serverKeyName: { + serializedName: "properties.serverKeyName", type: { - name: "Number" + name: "String" } }, - isUserError: { - serializedName: "properties.isUserError", - readOnly: true, + serverKeyType: { + serializedName: "properties.serverKeyType", type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", + uri: { + serializedName: "properties.uri", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - description: { - serializedName: "properties.description", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", type: { name: "Boolean" } @@ -12604,39 +11864,84 @@ export const ServerOperation: coreClient.CompositeMapper = { } }; -export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { +export const EndpointCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerSecurityAlertPolicy", + className: "EndpointCertificate", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + publicBlob: { + serializedName: "properties.publicBlob", + type: { + name: "String" + } + } + } + } +}; + +export const FailoverGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { name: "Composite", - className: "SystemData" + className: "FailoverGroupReadWriteEndpoint" } }, - state: { - serializedName: "properties.state", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + replicationRole: { + serializedName: "properties.replicationRole", + readOnly: true, + type: { + name: "String" + } + }, + replicationState: { + serializedName: "properties.replicationState", + readOnly: true, + type: { + name: "String" + } + }, + partnerServers: { + serializedName: "properties.partnerServers", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "PartnerInfo" } } } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + databases: { + serializedName: "properties.databases", type: { name: "Sequence", element: { @@ -12645,67 +11950,109 @@ export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { } } } - }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", - type: { - name: "Boolean" - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + } + } + } +}; + +export const GeoBackupPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GeoBackupPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + kind: { + serializedName: "kind", + readOnly: true, type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - creationTime: { - serializedName: "properties.creationTime", + storageType: { + serializedName: "properties.storageType", readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const ServerTrustGroup: coreClient.CompositeMapper = { +export const InstanceFailoverGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustGroup", + className: "InstanceFailoverGroup", modelProperties: { ...ProxyResource.type.modelProperties, - groupMembers: { - serializedName: "properties.groupMembers", + secondaryType: { + serializedName: "properties.secondaryType", + type: { + name: "String" + } + }, + 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" + } + }, + replicationState: { + serializedName: "properties.replicationState", + readOnly: true, + type: { + name: "String" + } + }, + partnerRegions: { + serializedName: "properties.partnerRegions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerInfo" + className: "PartnerRegionInfo" } } } }, - trustScopes: { - serializedName: "properties.trustScopes", + managedInstancePairs: { + serializedName: "properties.managedInstancePairs", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ManagedInstancePairInfo" } } } @@ -12714,290 +12061,321 @@ export const ServerTrustGroup: coreClient.CompositeMapper = { } }; -export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { +export const JobCredential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerVulnerabilityAssessment", + className: "JobCredential", modelProperties: { ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + username: { + serializedName: "properties.username", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + password: { + serializedName: "properties.password", type: { name: "String" } - }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } } } } }; -export const SqlAgentConfiguration: coreClient.CompositeMapper = { +export const JobExecution: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlAgentConfiguration", + className: "JobExecution", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + jobVersion: { + serializedName: "properties.jobVersion", + readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const SubscriptionUsage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SubscriptionUsage", - modelProperties: { - ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", + }, + stepName: { + serializedName: "properties.stepName", readOnly: true, type: { name: "String" } }, - currentValue: { - serializedName: "properties.currentValue", + stepId: { + serializedName: "properties.stepId", readOnly: true, type: { name: "Number" } }, - limit: { - serializedName: "properties.limit", + jobExecutionId: { + serializedName: "properties.jobExecutionId", readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - unit: { - serializedName: "properties.unit", + lifecycle: { + serializedName: "properties.lifecycle", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SyncAgent: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncAgent", - modelProperties: { - ...ProxyResource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + createTime: { + serializedName: "properties.createTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - lastAliveTime: { - serializedName: "properties.lastAliveTime", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { name: "DateTime" } }, - state: { - serializedName: "properties.state", + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - isUpToDate: { - serializedName: "properties.isUpToDate", - readOnly: true, + currentAttempts: { + serializedName: "properties.currentAttempts", type: { - name: "Boolean" + name: "Number" } }, - expiryTime: { - serializedName: "properties.expiryTime", + currentAttemptStartTime: { + serializedName: "properties.currentAttemptStartTime", readOnly: true, type: { name: "DateTime" } }, - version: { - serializedName: "properties.version", + lastMessage: { + serializedName: "properties.lastMessage", readOnly: true, type: { name: "String" } + }, + target: { + serializedName: "properties.target", + type: { + name: "Composite", + className: "JobExecutionTarget" + } } } } }; -export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { +export const JobStep: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgentLinkedDatabase", + className: "JobStep", modelProperties: { ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", - readOnly: true, + stepId: { + serializedName: "properties.stepId", type: { - name: "String" + name: "Number" } }, - databaseId: { - serializedName: "properties.databaseId", - readOnly: true, + targetGroup: { + serializedName: "properties.targetGroup", type: { name: "String" } }, - description: { - serializedName: "properties.description", - readOnly: true, + credential: { + serializedName: "properties.credential", type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + action: { + serializedName: "properties.action", type: { - name: "String" + name: "Composite", + className: "JobStepAction" } }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + output: { + serializedName: "properties.output", type: { - name: "String" + name: "Composite", + className: "JobStepOutput" } }, - userName: { - serializedName: "properties.userName", - readOnly: true, + executionOptions: { + serializedName: "properties.executionOptions", type: { - name: "String" + name: "Composite", + className: "JobStepExecutionOptions" } } } } }; -export const SyncGroup: coreClient.CompositeMapper = { +export const JobTargetGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroup", + className: "JobTargetGroup", modelProperties: { ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", + members: { + serializedName: "properties.members", type: { - name: "Composite", - className: "Sku" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobTarget" + } + } } - }, - interval: { - serializedName: "properties.interval", + } + } + } +}; + +export const JobVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobVersion", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const Job: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Job", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + defaultValue: "", + serializedName: "properties.description", type: { - name: "Number" + name: "String" } }, - lastSyncTime: { - serializedName: "properties.lastSyncTime", + version: { + serializedName: "properties.version", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - conflictResolutionPolicy: { - serializedName: "properties.conflictResolutionPolicy", + schedule: { + serializedName: "properties.schedule", type: { - name: "String" + name: "Composite", + className: "JobSchedule" } - }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + } + } + } +}; + +export const LedgerDigestUploads: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LedgerDigestUploads", + modelProperties: { + ...ProxyResource.type.modelProperties, + digestStorageEndpoint: { + serializedName: "properties.digestStorageEndpoint", type: { name: "String" } }, - hubDatabaseUserName: { - serializedName: "properties.hubDatabaseUserName", + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] + } + } + } + } +}; + +export const LongTermRetentionBackup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LongTermRetentionBackup", + modelProperties: { + ...ProxyResource.type.modelProperties, + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { name: "String" } }, - hubDatabasePassword: { - serializedName: "properties.hubDatabasePassword", + serverCreateTime: { + serializedName: "properties.serverCreateTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - syncState: { - serializedName: "properties.syncState", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - schema: { - serializedName: "properties.schema", + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", + readOnly: true, type: { - name: "Composite", - className: "SyncGroupSchema" + name: "DateTime" } }, - enableConflictLogging: { - serializedName: "properties.enableConflictLogging", + backupTime: { + serializedName: "properties.backupTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - conflictLoggingRetentionInDays: { - serializedName: "properties.conflictLoggingRetentionInDays", + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", - readOnly: true, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { name: "String" } @@ -13006,81 +12384,56 @@ export const SyncGroup: coreClient.CompositeMapper = { } }; -export const SyncMember: coreClient.CompositeMapper = { +export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncMember", + className: "LongTermRetentionBackupOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", - type: { - name: "String" - } - }, - syncAgentId: { - serializedName: "properties.syncAgentId", - type: { - name: "String" - } - }, - sqlServerDatabaseId: { - serializedName: "properties.sqlServerDatabaseId", + requestId: { + serializedName: "properties.requestId", + readOnly: true, type: { name: "Uuid" } }, - syncMemberAzureDatabaseResourceId: { - serializedName: "properties.syncMemberAzureDatabaseResourceId", - type: { - name: "String" - } - }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", - type: { - name: "Boolean" - } - }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", + operationType: { + serializedName: "properties.operationType", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", - type: { - name: "String" - } - }, - databaseName: { - serializedName: "properties.databaseName", + fromBackupResourceId: { + serializedName: "properties.fromBackupResourceId", + readOnly: true, type: { name: "String" } }, - userName: { - serializedName: "properties.userName", + toBackupResourceId: { + serializedName: "properties.toBackupResourceId", + readOnly: true, type: { name: "String" } }, - password: { - serializedName: "properties.password", + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", + readOnly: true, type: { name: "String" } }, - syncDirection: { - serializedName: "properties.syncDirection", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String" } }, - syncState: { - serializedName: "properties.syncState", + message: { + serializedName: "properties.message", readOnly: true, type: { name: "String" @@ -13090,50 +12443,56 @@ export const SyncMember: coreClient.CompositeMapper = { } }; -export const TimeZone: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeZone", + className: "ManagedInstanceLongTermRetentionBackup", modelProperties: { ...ProxyResource.type.modelProperties, - timeZoneId: { - serializedName: "properties.timeZoneId", + managedInstanceName: { + serializedName: "properties.managedInstanceName", readOnly: true, type: { name: "String" } }, - displayName: { - serializedName: "properties.displayName", + managedInstanceCreateTime: { + serializedName: "properties.managedInstanceCreateTime", readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const VirtualNetworkRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkRule", - modelProperties: { - ...ProxyResource.type.modelProperties, - virtualNetworkSubnetId: { - serializedName: "properties.virtualNetworkSubnetId", + }, + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { name: "String" } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "properties.ignoreMissingVnetServiceEndpoint", + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - state: { - serializedName: "properties.state", + backupTime: { + serializedName: "properties.backupTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", readOnly: true, type: { name: "String" @@ -13143,112 +12502,128 @@ export const VirtualNetworkRule: coreClient.CompositeMapper = { } }; -export const WorkloadClassifier: coreClient.CompositeMapper = { +export const LongTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadClassifier", + className: "LongTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - memberName: { - serializedName: "properties.memberName", - type: { - name: "String" - } - }, - label: { - serializedName: "properties.label", - type: { - name: "String" - } - }, - context: { - serializedName: "properties.context", + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { name: "String" } }, - endTime: { - serializedName: "properties.endTime", + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } }, - importance: { - serializedName: "properties.importance", + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "String" + name: "Number" } } } } }; -export const WorkloadGroup: coreClient.CompositeMapper = { +export const MaintenanceWindowOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadGroup", + className: "MaintenanceWindowOptions", modelProperties: { ...ProxyResource.type.modelProperties, - minResourcePercent: { - serializedName: "properties.minResourcePercent", + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "Number" + name: "Boolean" } }, - maxResourcePercent: { - serializedName: "properties.maxResourcePercent", + maintenanceWindowCycles: { + serializedName: "properties.maintenanceWindowCycles", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceWindowTimeRange" + } + } } }, - minResourcePercentPerRequest: { - serializedName: "properties.minResourcePercentPerRequest", + minDurationInMinutes: { + serializedName: "properties.minDurationInMinutes", type: { name: "Number" } }, - maxResourcePercentPerRequest: { - serializedName: "properties.maxResourcePercentPerRequest", + defaultDurationInMinutes: { + serializedName: "properties.defaultDurationInMinutes", type: { name: "Number" } }, - importance: { - serializedName: "properties.importance", + minCycles: { + serializedName: "properties.minCycles", type: { - name: "String" + name: "Number" } }, - queryExecutionTimeout: { - serializedName: "properties.queryExecutionTimeout", + timeGranularityInMinutes: { + serializedName: "properties.timeGranularityInMinutes", type: { name: "Number" } + }, + allowMultipleMaintenanceWindowsPerCycle: { + serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + type: { + name: "Boolean" + } } } } }; -export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { +export const MaintenanceWindows: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupShortTermRetentionPolicy", + className: "MaintenanceWindows", modelProperties: { ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + timeRanges: { + serializedName: "properties.timeRanges", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceWindowTimeRange" + } + } } - }, - diffBackupIntervalInHours: { - serializedName: "properties.diffBackupIntervalInHours", + } + } + } +}; + +export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedBackupShortTermRetentionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } @@ -13257,152 +12632,125 @@ export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { } }; -export const DatabaseExtensions: coreClient.CompositeMapper = { +export const ManagedDatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseExtensions", + className: "ManagedDatabaseAdvancedThreatProtection", modelProperties: { ...ProxyResource.type.modelProperties, - operationMode: { - serializedName: "properties.operationMode", - type: { - name: "String" - } - }, - storageKeyType: { - serializedName: "properties.storageKeyType", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - storageKey: { - serializedName: "properties.storageKey", + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - storageUri: { - serializedName: "properties.storageUri", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExportExtensionsOperationResult", + className: "ManagedDatabaseMoveOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", - readOnly: true, - type: { - name: "Uuid" - } - }, - requestType: { - serializedName: "properties.requestType", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - databaseName: { - serializedName: "properties.databaseName", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + operationMode: { + serializedName: "properties.operationMode", readOnly: true, type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseOperation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseOperation", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", + sourceManagedInstanceName: { + serializedName: "properties.sourceManagedInstanceName", readOnly: true, type: { name: "String" } }, - operation: { - serializedName: "properties.operation", + targetManagedInstanceName: { + serializedName: "properties.targetManagedInstanceName", readOnly: true, type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", readOnly: true, type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", + targetManagedInstanceId: { + serializedName: "properties.targetManagedInstanceId", readOnly: true, type: { - name: "Number" + name: "String" } }, - serverName: { - serializedName: "properties.serverName", + sourceDatabaseName: { + serializedName: "properties.sourceDatabaseName", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + targetDatabaseName: { + serializedName: "properties.targetDatabaseName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", + isCancellable: { + serializedName: "properties.isCancellable", readOnly: true, type: { - name: "String" + name: "Boolean" } }, errorCode: { @@ -13432,439 +12780,409 @@ export const DatabaseOperation: coreClient.CompositeMapper = { type: { name: "Boolean" } - }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - description: { - serializedName: "properties.description", - readOnly: true, + } + } + } +}; + +export const ManagedInstanceQuery: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceQuery", + modelProperties: { + ...ProxyResource.type.modelProperties, + queryText: { + serializedName: "properties.queryText", type: { name: "String" } - }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, - type: { - name: "Boolean" - } } } } }; -export const DatabaseUsage: coreClient.CompositeMapper = { +export const QueryStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUsage", + className: "QueryStatistics", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - currentValue: { - serializedName: "properties.currentValue", + queryId: { + serializedName: "properties.queryId", readOnly: true, type: { - name: "Number" + name: "String" } }, - limit: { - serializedName: "properties.limit", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "properties.unit", + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const LedgerDigestUploads: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LedgerDigestUploads", - modelProperties: { - ...ProxyResource.type.modelProperties, - digestStorageEndpoint: { - serializedName: "properties.digestStorageEndpoint", - type: { - name: "String" - } }, - state: { - serializedName: "properties.state", - readOnly: true, + intervals: { + serializedName: "properties.intervals", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryMetricInterval" + } + } } } } } }; -export const OutboundFirewallRule: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundFirewallRule", + className: "ManagedDatabaseRestoreDetailsResult", modelProperties: { ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", + typePropertiesType: { + serializedName: "properties.type", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LongTermRetentionBackupOperationResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", + }, + status: { + serializedName: "properties.status", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - operationType: { - serializedName: "properties.operationType", + blockReason: { + serializedName: "properties.blockReason", readOnly: true, type: { name: "String" } }, - fromBackupResourceId: { - serializedName: "properties.fromBackupResourceId", + lastUploadedFileName: { + serializedName: "properties.lastUploadedFileName", readOnly: true, type: { name: "String" } }, - toBackupResourceId: { - serializedName: "properties.toBackupResourceId", + lastUploadedFileTime: { + serializedName: "properties.lastUploadedFileTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - targetBackupStorageRedundancy: { - serializedName: "properties.targetBackupStorageRedundancy", + lastRestoredFileName: { + serializedName: "properties.lastRestoredFileName", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + lastRestoredFileTime: { + serializedName: "properties.lastRestoredFileTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - message: { - serializedName: "properties.message", + percentCompleted: { + serializedName: "properties.percentCompleted", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const LongTermRetentionBackup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LongTermRetentionBackup", - modelProperties: { - ...ProxyResource.type.modelProperties, - serverName: { - serializedName: "properties.serverName", + }, + currentRestoredSizeMB: { + serializedName: "properties.currentRestoredSizeMB", readOnly: true, type: { - name: "String" + name: "Number" } }, - serverCreateTime: { - serializedName: "properties.serverCreateTime", + currentRestorePlanSizeMB: { + serializedName: "properties.currentRestorePlanSizeMB", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - databaseName: { - serializedName: "properties.databaseName", + currentBackupType: { + serializedName: "properties.currentBackupType", readOnly: true, type: { name: "String" } }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", + currentRestoringFileName: { + serializedName: "properties.currentRestoringFileName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - backupTime: { - serializedName: "properties.backupTime", + numberOfFilesDetected: { + serializedName: "properties.numberOfFilesDetected", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", + numberOfFilesQueued: { + serializedName: "properties.numberOfFilesQueued", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + numberOfFilesSkipped: { + serializedName: "properties.numberOfFilesSkipped", readOnly: true, type: { - name: "String" + name: "Number" } }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceLongTermRetentionBackup", - modelProperties: { - ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", + numberOfFilesRestoring: { + serializedName: "properties.numberOfFilesRestoring", readOnly: true, type: { - name: "String" + name: "Number" } }, - managedInstanceCreateTime: { - serializedName: "properties.managedInstanceCreateTime", + numberOfFilesRestored: { + serializedName: "properties.numberOfFilesRestored", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - databaseName: { - serializedName: "properties.databaseName", + numberOfFilesUnrestorable: { + serializedName: "properties.numberOfFilesUnrestorable", readOnly: true, type: { - name: "String" + name: "Number" } }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", + fullBackupSets: { + serializedName: "properties.fullBackupSets", readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } } }, - backupTime: { - serializedName: "properties.backupTime", + diffBackupSets: { + serializedName: "properties.diffBackupSets", readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", + logBackupSets: { + serializedName: "properties.logBackupSets", readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + unrestorableFiles: { + serializedName: "properties.unrestorableFiles", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "ManagedDatabaseRestoreDetailsUnrestorableFileProperties" + } + } } } } } }; -export const ServerConnectionPolicy: coreClient.CompositeMapper = { +export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConnectionPolicy", + className: "ManagedDatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - kind: { - serializedName: "kind", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - connectionType: { - serializedName: "properties.connectionType", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const DistributedAvailabilityGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DistributedAvailabilityGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - targetDatabase: { - serializedName: "properties.targetDatabase", + }, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "String" + name: "Boolean" } }, - sourceEndpoint: { - serializedName: "properties.sourceEndpoint", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - primaryAvailabilityGroupName: { - serializedName: "properties.primaryAvailabilityGroupName", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - secondaryAvailabilityGroupName: { - serializedName: "properties.secondaryAvailabilityGroupName", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - replicationMode: { - serializedName: "properties.replicationMode", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } - }, - distributedAvailabilityGroupId: { - serializedName: "properties.distributedAvailabilityGroupId", + } + } + } +}; + +export const SecurityEvent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityEvent", + modelProperties: { + ...ProxyResource.type.modelProperties, + eventTime: { + serializedName: "properties.eventTime", readOnly: true, type: { - name: "Uuid" + name: "DateTime" } }, - sourceReplicaId: { - serializedName: "properties.sourceReplicaId", + securityEventType: { + serializedName: "properties.securityEventType", readOnly: true, type: { - name: "Uuid" + name: "Enum", + allowedValues: [ + "Undefined", + "SqlInjectionVulnerability", + "SqlInjectionExploit" + ] } }, - targetReplicaId: { - serializedName: "properties.targetReplicaId", + subscription: { + serializedName: "properties.subscription", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - linkState: { - serializedName: "properties.linkState", + server: { + serializedName: "properties.server", readOnly: true, type: { name: "String" } }, - lastHardenedLsn: { - serializedName: "properties.lastHardenedLsn", + database: { + serializedName: "properties.database", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ServerTrustCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerTrustCertificate", - modelProperties: { - ...ProxyResource.type.modelProperties, - publicBlob: { - serializedName: "properties.publicBlob", + }, + clientIp: { + serializedName: "properties.clientIp", + readOnly: true, type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", + applicationName: { + serializedName: "properties.applicationName", readOnly: true, type: { name: "String" } }, - certificateName: { - serializedName: "properties.certificateName", + principalName: { + serializedName: "properties.principalName", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const EndpointCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EndpointCertificate", - modelProperties: { - ...ProxyResource.type.modelProperties, - publicBlob: { - serializedName: "properties.publicBlob", + }, + securityEventSqlInjectionAdditionalProperties: { + serializedName: + "properties.securityEventSqlInjectionAdditionalProperties", type: { - name: "String" + name: "Composite", + className: "SecurityEventSqlInjectionAdditionalProperties" } } } @@ -14024,109 +13342,147 @@ export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { } }; -export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { +export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerBlobAuditingPolicy", + className: "ManagedTransparentDataEncryption", modelProperties: { ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", - type: { - name: "Boolean" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + } + } + } +}; + +export const DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated", + modelProperties: { + ...ProxyResource.type.modelProperties, + baselineResults: { + serializedName: "properties.baselineResults", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" } } } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + } + } + } +}; + +export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceAdministrator", + modelProperties: { + ...ProxyResource.type.modelProperties, + administratorType: { + serializedName: "properties.administratorType", type: { - name: "Boolean" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + login: { + serializedName: "properties.login", type: { - name: "Boolean" + name: "String" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + sid: { + serializedName: "properties.sid", type: { - name: "Number" + name: "Uuid" } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + tenantId: { + serializedName: "properties.tenantId", type: { - name: "Boolean" + name: "Uuid" + } + } + } + } +}; + +export const ManagedInstanceAdvancedThreatProtection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceAdvancedThreatProtection", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" } }, state: { serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" + allowedValues: ["New", "Enabled", "Disabled"] } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } - }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + } + } + } +}; + +export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceAzureADOnlyAuthentication", + modelProperties: { + ...ProxyResource.type.modelProperties, + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", type: { - name: "Uuid" + name: "Boolean" } } } } }; -export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const ManagedInstanceDtc: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicy", + className: "ManagedInstanceDtc", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + dtcEnabled: { + serializedName: "properties.dtcEnabled", type: { - name: "String" + name: "Boolean" } }, - retentionDays: { - serializedName: "properties.retentionDays", + securitySettings: { + serializedName: "properties.securitySettings", type: { - name: "Number" + name: "Composite", + className: "ManagedInstanceDtcSecuritySettings" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + externalDnsSuffixSearchList: { + serializedName: "properties.externalDnsSuffixSearchList", type: { name: "Sequence", element: { @@ -14136,465 +13492,428 @@ export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { } } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + dtcHostNameDnsSuffix: { + serializedName: "properties.dtcHostNameDnsSuffix", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + } + } + } +}; + +export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceEncryptionProtector", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Number" + name: "String" } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + serverKeyName: { + serializedName: "properties.serverKeyName", type: { - name: "Boolean" + name: "String" } }, - state: { - serializedName: "properties.state", + serverKeyType: { + serializedName: "properties.serverKeyType", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + uri: { + serializedName: "properties.uri", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + thumbprint: { + serializedName: "properties.thumbprint", + readOnly: true, type: { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", type: { - name: "Uuid" + name: "Boolean" } } } } }; -export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const ManagedInstanceKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy", + className: "ManagedInstanceKey", 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", + serverKeyType: { + serializedName: "properties.serverKeyType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + uri: { + serializedName: "properties.uri", type: { - name: "Boolean" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + thumbprint: { + serializedName: "properties.thumbprint", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + readOnly: true, type: { name: "Boolean" } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const ManagedInstanceLongTermRetentionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceLongTermRetentionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "Uuid" + name: "Number" } } } } }; -export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { +export const ManagedInstanceOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy", + className: "ManagedInstanceOperation", modelProperties: { ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", + managedInstanceName: { + serializedName: "properties.managedInstanceName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - predicateExpression: { - serializedName: "properties.predicateExpression", + operation: { + serializedName: "properties.operation", + readOnly: true, type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, type: { - name: "Number" + name: "String" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + state: { + serializedName: "properties.state", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { name: "Number" } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + errorDescription: { + serializedName: "properties.errorDescription", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - state: { - serializedName: "properties.state", + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "Number" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + description: { + serializedName: "properties.description", + readOnly: true, type: { - name: "Uuid" + name: "String" } - } - } - } -}; - -export const DatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseAdvancedThreatProtection", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + }, + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "Boolean" } }, - state: { - serializedName: "properties.state", + operationParameters: { + serializedName: "properties.operationParameters", type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "Composite", + className: "ManagedInstanceOperationParametersPair" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + operationSteps: { + serializedName: "properties.operationSteps", type: { - name: "DateTime" + name: "Composite", + className: "ManagedInstanceOperationSteps" } } } } }; -export const ServerAdvancedThreatProtection: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAdvancedThreatProtection", + className: "ManagedInstancePrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "SystemData" + className: "ManagedInstancePrivateEndpointProperty" } }, - state: { - serializedName: "properties.state", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "Composite", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" } }, - creationTime: { - serializedName: "properties.creationTime", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const ManagedServerDnsAlias: coreClient.CompositeMapper = { +export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAlias", + className: "ManagedInstancePrivateLink", modelProperties: { ...ProxyResource.type.modelProperties, - azureDnsRecord: { - serializedName: "properties.azureDnsRecord", - readOnly: true, - type: { - name: "String" - } - }, - publicAzureDnsRecord: { - serializedName: "properties.publicAzureDnsRecord", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ManagedInstancePrivateLinkProperties" } } } } }; -export const DatabaseSqlVulnerabilityAssessmentBaselineSet: coreClient.CompositeMapper = { +export const TdeCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentBaselineSet", + className: "TdeCertificate", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + privateBlob: { + serializedName: "properties.privateBlob", type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - results: { - serializedName: "properties.results", + certPassword: { + serializedName: "properties.certPassword", type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { type: { name: "String" } } - } - } - } - } + name: "String" } } } } }; -export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput: coreClient.CompositeMapper = { +export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput", + className: "ManagedInstanceVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - latestScan: { - serializedName: "properties.latestScan", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { - name: "Boolean" + name: "String" } }, - results: { - serializedName: "properties.results", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { type: { name: "String" } } - } - } - } - } + name: "String" + } + }, + recurringScans: { + serializedName: "properties.recurringScans", + type: { + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const DatabaseSqlVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { +export const ManagedLedgerDigestUploads: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline", + className: "ManagedLedgerDigestUploads", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + digestStorageEndpoint: { + serializedName: "properties.digestStorageEndpoint", type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - results: { - serializedName: "properties.results", + state: { + serializedName: "properties.state", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } } } } }; -export const DatabaseSqlVulnerabilityAssessmentRuleBaselineInput: coreClient.CompositeMapper = { +export const ManagedServerDnsAlias: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineInput", + className: "ManagedServerDnsAlias", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - latestScan: { - serializedName: "properties.latestScan", + azureDnsRecord: { + serializedName: "properties.azureDnsRecord", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - results: { - serializedName: "properties.results", + publicAzureDnsRecord: { + serializedName: "properties.publicAzureDnsRecord", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } } } } }; -export const SqlVulnerabilityAssessmentScanResults: coreClient.CompositeMapper = { +export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanResults", + className: "ManagedServerSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, systemData: { @@ -14604,291 +13923,252 @@ export const SqlVulnerabilityAssessmentScanResults: coreClient.CompositeMapper = className: "SystemData" } }, - ruleId: { - serializedName: "properties.ruleId", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - status: { - serializedName: "properties.status", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - isTrimmed: { - serializedName: "properties.isTrimmed", - readOnly: true, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { name: "Boolean" } }, - queryResults: { - serializedName: "properties.queryResults", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } }, - remediation: { - serializedName: "properties.remediation", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Composite", - className: "Remediation" + name: "String" } }, - baselineAdjustedResult: { - serializedName: "properties.baselineAdjustedResult", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Composite", - className: "BaselineAdjustedResult" + name: "Number" } }, - ruleMetadata: { - serializedName: "properties.ruleMetadata", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "Composite", - className: "VaRule" + name: "DateTime" } } } } }; -export const SqlVulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { +export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanRecord", + className: "NetworkSecurityPerimeterConfiguration", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - scanId: { - serializedName: "properties.scanId", - readOnly: true, - type: { - name: "String" - } - }, - triggerType: { - serializedName: "properties.triggerType", - readOnly: true, + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + networkSecurityPerimeter: { + serializedName: "properties.networkSecurityPerimeter", type: { - name: "String" + name: "Composite", + className: "NSPConfigPerimeter" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + resourceAssociation: { + serializedName: "properties.resourceAssociation", type: { - name: "DateTime" + name: "Composite", + className: "NSPConfigAssociation" } }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, + profile: { + serializedName: "properties.profile", type: { - name: "DateTime" + name: "Composite", + className: "NSPConfigProfile" } }, - errors: { - serializedName: "properties.errors", - readOnly: true, + provisioningIssues: { + serializedName: "properties.provisioningIssues", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanError" + className: "NSPProvisioningIssue" } } } - }, - server: { - serializedName: "properties.server", - readOnly: true, - type: { - name: "String" - } - }, - database: { - serializedName: "properties.database", - readOnly: true, - type: { - name: "String" - } - }, - sqlVersion: { - serializedName: "properties.sqlVersion", - readOnly: true, - type: { - name: "String" - } - }, - highSeverityFailedRulesCount: { - serializedName: "properties.highSeverityFailedRulesCount", - readOnly: true, - type: { - name: "Number" - } - }, - mediumSeverityFailedRulesCount: { - serializedName: "properties.mediumSeverityFailedRulesCount", - readOnly: true, - type: { - name: "Number" - } - }, - lowSeverityFailedRulesCount: { - serializedName: "properties.lowSeverityFailedRulesCount", + } + } + } +}; + +export const OutboundFirewallRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundFirewallRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Number" + name: "String" } - }, - totalPassedRulesCount: { - serializedName: "properties.totalPassedRulesCount", - readOnly: true, + } + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...ProxyResource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "Number" + name: "Composite", + className: "PrivateEndpointProperty" } }, - totalFailedRulesCount: { - serializedName: "properties.totalFailedRulesCount", + groupIds: { + serializedName: "properties.groupIds", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - totalRulesCount: { - serializedName: "properties.totalRulesCount", - readOnly: true, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "Number" + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" } }, - isBaselineApplied: { - serializedName: "properties.isBaselineApplied", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const SqlVulnerabilityAssessment: coreClient.CompositeMapper = { +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessment", + className: "PrivateLinkResource", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "SystemData" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + className: "PrivateLinkResourceProperties" } } } } }; -export const ManagedDatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { +export const RecoverableDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseAdvancedThreatProtection", + className: "RecoverableDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + edition: { + serializedName: "properties.edition", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - state: { - serializedName: "properties.state", + serviceLevelObjective: { + serializedName: "properties.serviceLevelObjective", + readOnly: true, type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "String" } }, - creationTime: { - serializedName: "properties.creationTime", + elasticPoolName: { + serializedName: "properties.elasticPoolName", + readOnly: true, + type: { + name: "String" + } + }, + lastAvailableBackupDate: { + serializedName: "properties.lastAvailableBackupDate", readOnly: true, type: { name: "DateTime" } + }, + keys: { + serializedName: "properties.keys", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "DatabaseKey" } } + } } } } }; -export const ManagedInstanceAdvancedThreatProtection: coreClient.CompositeMapper = { +export const RecoverableManagedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdvancedThreatProtection", + className: "RecoverableManagedDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] - } - }, - creationTime: { - serializedName: "properties.creationTime", + lastAvailableBackupDate: { + serializedName: "properties.lastAvailableBackupDate", readOnly: true, type: { - name: "DateTime" + name: "String" } } } @@ -14915,6 +14195,13 @@ export const ReplicationLink: coreClient.CompositeMapper = { name: "String" } }, + partnerDatabaseId: { + serializedName: "properties.partnerDatabaseId", + readOnly: true, + type: { + name: "String" + } + }, partnerLocation: { serializedName: "properties.partnerLocation", readOnly: true, @@ -14956,37 +14243,162 @@ export const ReplicationLink: coreClient.CompositeMapper = { type: { name: "String" } - }, - startTime: { - serializedName: "properties.startTime", + }, + startTime: { + serializedName: "properties.startTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, + type: { + name: "Number" + } + }, + replicationState: { + serializedName: "properties.replicationState", + readOnly: true, + type: { + name: "String" + } + }, + isTerminationAllowed: { + serializedName: "properties.isTerminationAllowed", + readOnly: true, + type: { + name: "Boolean" + } + }, + linkType: { + serializedName: "properties.linkType", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RestorableDroppedDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableDroppedDatabase", + modelProperties: { + ...ProxyResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, + type: { + name: "String" + } + }, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + readOnly: true, + type: { + name: "Number" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + deletionDate: { + serializedName: "properties.deletionDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", + readOnly: true, + type: { + name: "String" + } + }, + keys: { + serializedName: "properties.keys", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "DatabaseKey" } } + } + } + } + } +}; + +export const RestorePoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorePoint", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", + restorePointType: { + serializedName: "properties.restorePointType", readOnly: true, type: { - name: "Number" + name: "Enum", + allowedValues: ["CONTINUOUS", "DISCRETE"] } }, - replicationState: { - serializedName: "properties.replicationState", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - isTerminationAllowed: { - serializedName: "properties.isTerminationAllowed", + restorePointCreationDate: { + serializedName: "properties.restorePointCreationDate", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - linkType: { - serializedName: "properties.linkType", + restorePointLabel: { + serializedName: "properties.restorePointLabel", readOnly: true, type: { name: "String" @@ -14996,476 +14408,637 @@ export const ReplicationLink: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseMoveOperationResult: coreClient.CompositeMapper = { +export const ServerAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseMoveOperationResult", + className: "ServerAdvancedThreatProtection", modelProperties: { ...ProxyResource.type.modelProperties, - operation: { - serializedName: "properties.operation", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - startTime: { - serializedName: "properties.startTime", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { name: "DateTime" } - }, - state: { - serializedName: "properties.state", - readOnly: true, + } + } + } +}; + +export const ServerAutomaticTuning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerAutomaticTuning", + modelProperties: { + ...ProxyResource.type.modelProperties, + desiredState: { + serializedName: "properties.desiredState", type: { - name: "String" + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] } }, - operationMode: { - serializedName: "properties.operationMode", + actualState: { + serializedName: "properties.actualState", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] } }, - sourceManagedInstanceName: { - serializedName: "properties.sourceManagedInstanceName", - readOnly: true, + options: { + serializedName: "properties.options", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AutomaticTuningServerOptions" + } + } } - }, - targetManagedInstanceName: { - serializedName: "properties.targetManagedInstanceName", - readOnly: true, + } + } + } +}; + +export const ServerAzureADAdministrator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerAzureADAdministrator", + modelProperties: { + ...ProxyResource.type.modelProperties, + administratorType: { + serializedName: "properties.administratorType", type: { name: "String" } }, - sourceManagedInstanceId: { - serializedName: "properties.sourceManagedInstanceId", - readOnly: true, + login: { + serializedName: "properties.login", type: { name: "String" } }, - targetManagedInstanceId: { - serializedName: "properties.targetManagedInstanceId", - readOnly: true, + sid: { + serializedName: "properties.sid", type: { - name: "String" + name: "Uuid" } }, - sourceDatabaseName: { - serializedName: "properties.sourceDatabaseName", - readOnly: true, + tenantId: { + serializedName: "properties.tenantId", type: { - name: "String" + name: "Uuid" } }, - targetDatabaseName: { - serializedName: "properties.targetDatabaseName", + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", readOnly: true, type: { - name: "String" + name: "Boolean" } - }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, + } + } + } +}; + +export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerAzureADOnlyAuthentication", + modelProperties: { + ...ProxyResource.type.modelProperties, + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", type: { name: "Boolean" } - }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + } + } + } +}; + +export const ServerConfigurationOption: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerConfigurationOption", + modelProperties: { + ...ProxyResource.type.modelProperties, + serverConfigurationOptionValue: { + serializedName: "properties.serverConfigurationOptionValue", type: { name: "Number" } }, - errorDescription: { - serializedName: "properties.errorDescription", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } - }, - errorSeverity: { - serializedName: "properties.errorSeverity", + } + } + } +}; + +export const ServerConnectionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerConnectionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", readOnly: true, type: { - name: "Number" + name: "String" } }, - isUserError: { - serializedName: "properties.isUserError", + kind: { + serializedName: "kind", readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + connectionType: { + serializedName: "properties.connectionType", + type: { + name: "String" } } } } }; -export const ManagedInstanceDtc: coreClient.CompositeMapper = { +export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceDtc", + className: "ServerDevOpsAuditingSettings", modelProperties: { ...ProxyResource.type.modelProperties, - dtcEnabled: { - serializedName: "properties.dtcEnabled", + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { name: "Boolean" } }, - securitySettings: { - serializedName: "properties.securitySettings", + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "Composite", - className: "ManagedInstanceDtcSecuritySettings" + name: "Boolean" } }, - externalDnsSuffixSearchList: { - serializedName: "properties.externalDnsSuffixSearchList", + state: { + serializedName: "properties.state", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: ["Enabled", "Disabled"] + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" } }, - dtcHostNameDnsSuffix: { - serializedName: "properties.dtcHostNameDnsSuffix", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } } } } }; -export const SynapseLinkWorkspace: coreClient.CompositeMapper = { +export const ServerDnsAlias: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseLinkWorkspace", + className: "ServerDnsAlias", modelProperties: { ...ProxyResource.type.modelProperties, - workspaces: { - serializedName: "properties.workspaces", + azureDnsRecord: { + serializedName: "properties.azureDnsRecord", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SynapseLinkWorkspaceInfoProperties" - } - } + name: "String" } } } } }; -export const UpdateVirtualClusterDnsServersOperation: coreClient.CompositeMapper = { +export const ServerKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateVirtualClusterDnsServersOperation", + className: "ServerKey", modelProperties: { ...ProxyResource.type.modelProperties, - status: { - serializedName: "properties.status", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const InstanceFailoverGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InstanceFailoverGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - secondaryType: { - serializedName: "properties.secondaryType", + }, + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", + subregion: { + serializedName: "properties.subregion", + readOnly: true, type: { - name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint" + name: "String" } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + serverKeyType: { + serializedName: "properties.serverKeyType", type: { - name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint" + name: "String" } }, - replicationRole: { - serializedName: "properties.replicationRole", - readOnly: true, + uri: { + serializedName: "properties.uri", type: { name: "String" } }, - replicationState: { - serializedName: "properties.replicationState", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - partnerRegions: { - serializedName: "properties.partnerRegions", + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerRegionInfo" - } - } + name: "DateTime" } }, - managedInstancePairs: { - serializedName: "properties.managedInstancePairs", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstancePairInfo" - } - } + name: "Boolean" } } } } }; -export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { +export const ServerOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsResult", + className: "ServerOperation", modelProperties: { ...ProxyResource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { name: "String" } }, - blockReason: { - serializedName: "properties.blockReason", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { - name: "String" + name: "Number" } }, - lastUploadedFileName: { - serializedName: "properties.lastUploadedFileName", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - lastUploadedFileTime: { - serializedName: "properties.lastUploadedFileTime", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { name: "DateTime" } }, - lastRestoredFileName: { - serializedName: "properties.lastRestoredFileName", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - lastRestoredFileTime: { - serializedName: "properties.lastRestoredFileTime", + errorCode: { + serializedName: "properties.errorCode", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - percentCompleted: { - serializedName: "properties.percentCompleted", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { - name: "Number" + name: "String" } }, - currentRestoredSizeMB: { - serializedName: "properties.currentRestoredSizeMB", + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, type: { name: "Number" } }, - currentRestorePlanSizeMB: { - serializedName: "properties.currentRestorePlanSizeMB", + isUserError: { + serializedName: "properties.isUserError", readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - currentBackupType: { - serializedName: "properties.currentBackupType", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - currentRestoringFileName: { - serializedName: "properties.currentRestoringFileName", + description: { + serializedName: "properties.description", readOnly: true, type: { name: "String" } }, - numberOfFilesDetected: { - serializedName: "properties.numberOfFilesDetected", + isCancellable: { + serializedName: "properties.isCancellable", readOnly: true, type: { - name: "Number" + name: "Boolean" + } + } + } + } +}; + +export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" } }, - numberOfFilesQueued: { - serializedName: "properties.numberOfFilesQueued", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - numberOfFilesSkipped: { - serializedName: "properties.numberOfFilesSkipped", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAddresses: { + serializedName: "properties.emailAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", + type: { + name: "Boolean" + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - numberOfFilesRestoring: { - serializedName: "properties.numberOfFilesRestoring", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "Number" + name: "DateTime" + } + } + } + } +}; + +export const ServerTrustCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerTrustCertificate", + modelProperties: { + ...ProxyResource.type.modelProperties, + publicBlob: { + serializedName: "properties.publicBlob", + type: { + name: "String" } }, - numberOfFilesRestored: { - serializedName: "properties.numberOfFilesRestored", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { - name: "Number" + name: "String" } }, - numberOfFilesUnrestorable: { - serializedName: "properties.numberOfFilesUnrestorable", + certificateName: { + serializedName: "properties.certificateName", readOnly: true, type: { - name: "Number" + name: "String" } - }, - fullBackupSets: { - serializedName: "properties.fullBackupSets", - readOnly: true, + } + } + } +}; + +export const ServerTrustGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerTrustGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + groupMembers: { + serializedName: "properties.groupMembers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + className: "ServerInfo" } } } }, - diffBackupSets: { - serializedName: "properties.diffBackupSets", - readOnly: true, + trustScopes: { + serializedName: "properties.trustScopes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + name: "String" } } } + } + } + } +}; + +export const ServerUsage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerUsage", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + readOnly: true, + type: { + name: "String" + } }, - logBackupSets: { - serializedName: "properties.logBackupSets", + currentValue: { + serializedName: "properties.currentValue", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties" - } - } + name: "Number" } }, - unrestorableFiles: { - serializedName: "properties.unrestorableFiles", + limit: { + serializedName: "properties.limit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: - "ManagedDatabaseRestoreDetailsUnrestorableFileProperties" - } - } + name: "Number" + } + }, + unit: { + serializedName: "properties.unit", + readOnly: true, + type: { + name: "String" } } } } }; -export const ImportExportOperationResult: coreClient.CompositeMapper = { +export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExportOperationResult", + className: "ServerVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", + type: { + name: "String" + } + }, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + recurringScans: { + serializedName: "properties.recurringScans", + type: { + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" + } + } + } + } +}; + +export const RefreshExternalGovernanceStatusOperationResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RefreshExternalGovernanceStatusOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, requestId: { @@ -15489,79 +15062,95 @@ export const ImportExportOperationResult: coreClient.CompositeMapper = { name: "String" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - blobUri: { - serializedName: "properties.blobUri", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { name: "String" } - }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + } + } + } +}; + +export const SqlAgentConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlAgentConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + serializedName: "properties.state", type: { name: "String" } + } + } + } +}; + +export const StartStopManagedInstanceSchedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StartStopManagedInstanceSchedule", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } }, - status: { - serializedName: "properties.status", - readOnly: true, + description: { + defaultValue: "", + serializedName: "properties.description", type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + timeZoneId: { + defaultValue: "UTC", + serializedName: "properties.timeZoneId", type: { name: "String" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + scheduleList: { + serializedName: "properties.scheduleList", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateEndpointConnectionRequestStatus" + className: "ScheduleItem" } } } - } - } - } -}; - -export const ManagedLedgerDigestUploads: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedLedgerDigestUploads", - modelProperties: { - ...ProxyResource.type.modelProperties, - digestStorageEndpoint: { - serializedName: "properties.digestStorageEndpoint", + }, + nextRunAction: { + serializedName: "properties.nextRunAction", + readOnly: true, type: { name: "String" } }, - state: { - serializedName: "properties.state", + nextExecutionTime: { + serializedName: "properties.nextExecutionTime", readOnly: true, type: { name: "String" @@ -15571,175 +15160,146 @@ export const ManagedLedgerDigestUploads: coreClient.CompositeMapper = { } }; -export const RecoverableDatabase: coreClient.CompositeMapper = { +export const SubscriptionUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableDatabase", + className: "SubscriptionUsage", modelProperties: { ...ProxyResource.type.modelProperties, - edition: { - serializedName: "properties.edition", + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { name: "String" } }, - serviceLevelObjective: { - serializedName: "properties.serviceLevelObjective", + currentValue: { + serializedName: "properties.currentValue", readOnly: true, type: { - name: "String" + name: "Number" } }, - elasticPoolName: { - serializedName: "properties.elasticPoolName", + limit: { + serializedName: "properties.limit", readOnly: true, type: { - name: "String" + name: "Number" } }, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", + unit: { + serializedName: "properties.unit", readOnly: true, type: { - name: "DateTime" + name: "String" } - }, - keys: { - serializedName: "properties.keys", + } + } + } +}; + +export const SynapseLinkWorkspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SynapseLinkWorkspace", + modelProperties: { + ...ProxyResource.type.modelProperties, + workspaces: { + serializedName: "properties.workspaces", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SynapseLinkWorkspaceInfoProperties" + } + } } } } } }; -export const RestorableDroppedDatabase: coreClient.CompositeMapper = { +export const SyncAgent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedDatabase", + className: "SyncAgent", modelProperties: { ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - location: { - serializedName: "location", + namePropertiesName: { + serializedName: "properties.name", + readOnly: true, type: { name: "String" } }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + lastAliveTime: { + serializedName: "properties.lastAliveTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - creationDate: { - serializedName: "properties.creationDate", + state: { + serializedName: "properties.state", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - deletionDate: { - serializedName: "properties.deletionDate", + isUpToDate: { + serializedName: "properties.isUpToDate", readOnly: true, type: { - name: "DateTime" + name: "Boolean" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", + expiryTime: { + serializedName: "properties.expiryTime", readOnly: true, type: { name: "DateTime" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + version: { + serializedName: "properties.version", readOnly: true, type: { name: "String" } - }, - keys: { - serializedName: "properties.keys", - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } - } } } } }; -export const ServerConfigurationOption: coreClient.CompositeMapper = { +export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConfigurationOption", + className: "SyncAgentLinkedDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - serverConfigurationOptionValue: { - serializedName: "properties.serverConfigurationOptionValue", - type: { - name: "Number" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", + databaseType: { + serializedName: "properties.databaseType", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const RefreshExternalGovernanceStatusOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RefreshExternalGovernanceStatusOperationResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", - readOnly: true, - type: { - name: "Uuid" - } }, - requestType: { - serializedName: "properties.requestType", + databaseId: { + serializedName: "properties.databaseId", readOnly: true, type: { name: "String" } }, - queuedTime: { - serializedName: "properties.queuedTime", + description: { + serializedName: "properties.description", readOnly: true, type: { name: "String" @@ -15752,15 +15312,15 @@ export const RefreshExternalGovernanceStatusOperationResult: coreClient.Composit name: "String" } }, - status: { - serializedName: "properties.status", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", + userName: { + serializedName: "properties.userName", readOnly: true, type: { name: "String" @@ -15770,54 +15330,90 @@ export const RefreshExternalGovernanceStatusOperationResult: coreClient.Composit } }; -export const StartStopManagedInstanceSchedule: coreClient.CompositeMapper = { +export const SyncGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StartStopManagedInstanceSchedule", + className: "SyncGroup", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "SystemData" + className: "Sku" } }, - description: { - defaultValue: "", - serializedName: "properties.description", + interval: { + serializedName: "properties.interval", + type: { + name: "Number" + } + }, + lastSyncTime: { + serializedName: "properties.lastSyncTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + conflictResolutionPolicy: { + serializedName: "properties.conflictResolutionPolicy", type: { name: "String" } }, - timeZoneId: { - defaultValue: "UTC", - serializedName: "properties.timeZoneId", + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - scheduleList: { - serializedName: "properties.scheduleList", + hubDatabaseUserName: { + serializedName: "properties.hubDatabaseUserName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScheduleItem" - } - } + name: "String" } }, - nextRunAction: { - serializedName: "properties.nextRunAction", + hubDatabasePassword: { + serializedName: "properties.hubDatabasePassword", + type: { + name: "String" + } + }, + syncState: { + serializedName: "properties.syncState", readOnly: true, type: { name: "String" } }, - nextExecutionTime: { - serializedName: "properties.nextExecutionTime", + schema: { + serializedName: "properties.schema", + type: { + name: "Composite", + className: "SyncGroupSchema" + } + }, + enableConflictLogging: { + serializedName: "properties.enableConflictLogging", + type: { + name: "Boolean" + } + }, + conflictLoggingRetentionInDays: { + serializedName: "properties.conflictLoggingRetentionInDays", + type: { + name: "Number" + } + }, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", + type: { + name: "Boolean" + } + }, + privateEndpointName: { + serializedName: "properties.privateEndpointName", readOnly: true, type: { name: "String" @@ -15827,79 +15423,81 @@ export const StartStopManagedInstanceSchedule: coreClient.CompositeMapper = { } }; -export const LogicalDatabaseTransparentDataEncryption: coreClient.CompositeMapper = { +export const SyncMember: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicalDatabaseTransparentDataEncryption", + className: "SyncMember", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + databaseType: { + serializedName: "properties.databaseType", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } - } - } - } -}; - -export const InstancePool: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InstancePool", - modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + }, + syncAgentId: { + serializedName: "properties.syncAgentId", + type: { + name: "String" + } + }, + sqlServerDatabaseId: { + serializedName: "properties.sqlServerDatabaseId", + type: { + name: "Uuid" + } + }, + syncMemberAzureDatabaseResourceId: { + serializedName: "properties.syncMemberAzureDatabaseResourceId", + type: { + name: "String" + } + }, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", + type: { + name: "Boolean" + } + }, + privateEndpointName: { + serializedName: "properties.privateEndpointName", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "String" } }, - subnetId: { - serializedName: "properties.subnetId", + serverName: { + serializedName: "properties.serverName", type: { name: "String" } }, - vCores: { - serializedName: "properties.vCores", + databaseName: { + serializedName: "properties.databaseName", type: { - name: "Number" + name: "String" } }, - licenseType: { - serializedName: "properties.licenseType", + userName: { + serializedName: "properties.userName", type: { name: "String" } - } - } - } -}; - -export const JobAgent: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobAgent", - modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + }, + password: { + serializedName: "properties.password", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - databaseId: { - serializedName: "properties.databaseId", + syncDirection: { + serializedName: "properties.syncDirection", type: { name: "String" } }, - state: { - serializedName: "properties.state", + syncState: { + serializedName: "properties.syncState", readOnly: true, type: { name: "String" @@ -15909,215 +15507,179 @@ export const JobAgent: coreClient.CompositeMapper = { } }; -export const RestorableDroppedManagedDatabase: coreClient.CompositeMapper = { +export const TimeZone: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedManagedDatabase", + className: "TimeZone", modelProperties: { - ...TrackedResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", + ...ProxyResource.type.modelProperties, + timeZoneId: { + serializedName: "properties.timeZoneId", readOnly: true, type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - deletionDate: { - serializedName: "properties.deletionDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const VirtualCluster: coreClient.CompositeMapper = { +export const LogicalDatabaseTransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualCluster", + className: "LogicalDatabaseTransparentDataEncryption", modelProperties: { - ...TrackedResource.type.modelProperties, - subnetId: { - serializedName: "properties.subnetId", - readOnly: true, - type: { - name: "String" - } - }, - version: { - serializedName: "properties.version", - type: { - name: "String" - } - }, - childResources: { - serializedName: "properties.childResources", - readOnly: true, + ...ProxyResource.type.modelProperties, + state: { + serializedName: "properties.state", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const ManagedDatabase: coreClient.CompositeMapper = { +export const UpdateVirtualClusterDnsServersOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabase", + className: "UpdateVirtualClusterDnsServersOperation", modelProperties: { - ...TrackedResource.type.modelProperties, - collation: { - serializedName: "properties.collation", - type: { - name: "String" - } - }, + ...ProxyResource.type.modelProperties, status: { serializedName: "properties.status", readOnly: true, type: { name: "String" } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - earliestRestorePoint: { - serializedName: "properties.earliestRestorePoint", - readOnly: true, - type: { - name: "DateTime" - } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", - type: { - name: "DateTime" - } - }, - defaultSecondaryLocation: { - serializedName: "properties.defaultSecondaryLocation", - readOnly: true, - type: { - name: "String" - } - }, - catalogCollation: { - serializedName: "properties.catalogCollation", + } + } + } +}; + +export const VirtualNetworkRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + virtualNetworkSubnetId: { + serializedName: "properties.virtualNetworkSubnetId", type: { name: "String" } }, - createMode: { - serializedName: "properties.createMode", + ignoreMissingVnetServiceEndpoint: { + serializedName: "properties.ignoreMissingVnetServiceEndpoint", type: { - name: "String" + name: "Boolean" } }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + } + } + } +}; + +export const WorkloadClassifier: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadClassifier", + modelProperties: { + ...ProxyResource.type.modelProperties, + memberName: { + serializedName: "properties.memberName", type: { name: "String" } }, - crossSubscriptionSourceDatabaseId: { - serializedName: "properties.crossSubscriptionSourceDatabaseId", + label: { + serializedName: "properties.label", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + context: { + serializedName: "properties.context", type: { name: "String" } }, - crossSubscriptionRestorableDroppedDatabaseId: { - serializedName: - "properties.crossSubscriptionRestorableDroppedDatabaseId", + startTime: { + serializedName: "properties.startTime", type: { name: "String" } }, - storageContainerIdentity: { - serializedName: "properties.storageContainerIdentity", + endTime: { + serializedName: "properties.endTime", type: { name: "String" } }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", + importance: { + serializedName: "properties.importance", type: { name: "String" } - }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", - readOnly: true, + } + } + } +}; + +export const WorkloadGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + minResourcePercent: { + serializedName: "properties.minResourcePercent", type: { - name: "String" + name: "Number" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + maxResourcePercent: { + serializedName: "properties.maxResourcePercent", type: { - name: "String" + name: "Number" } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + minResourcePercentPerRequest: { + serializedName: "properties.minResourcePercentPerRequest", type: { - name: "String" + name: "Number" } }, - autoCompleteRestore: { - serializedName: "properties.autoCompleteRestore", + maxResourcePercentPerRequest: { + serializedName: "properties.maxResourcePercentPerRequest", type: { - name: "Boolean" + name: "Number" } }, - lastBackupName: { - serializedName: "properties.lastBackupName", + importance: { + serializedName: "properties.importance", type: { name: "String" } }, - crossSubscriptionTargetManagedInstanceId: { - serializedName: "properties.crossSubscriptionTargetManagedInstanceId", + queryExecutionTimeout: { + serializedName: "properties.queryExecutionTimeout", type: { - name: "String" + name: "Number" } } } @@ -16336,186 +15898,417 @@ export const Database: coreClient.CompositeMapper = { className: "Sku" } }, - autoPauseDelay: { - serializedName: "properties.autoPauseDelay", + autoPauseDelay: { + serializedName: "properties.autoPauseDelay", + type: { + name: "Number" + } + }, + currentBackupStorageRedundancy: { + serializedName: "properties.currentBackupStorageRedundancy", + readOnly: true, + type: { + name: "String" + } + }, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", + type: { + name: "String" + } + }, + minCapacity: { + serializedName: "properties.minCapacity", + type: { + name: "Number" + } + }, + pausedDate: { + serializedName: "properties.pausedDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + resumedDate: { + serializedName: "properties.resumedDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + type: { + name: "String" + } + }, + isLedgerOn: { + serializedName: "properties.isLedgerOn", + type: { + name: "Boolean" + } + }, + isInfraEncryptionEnabled: { + serializedName: "properties.isInfraEncryptionEnabled", + readOnly: true, + type: { + name: "Boolean" + } + }, + federatedClientId: { + serializedName: "properties.federatedClientId", + type: { + name: "Uuid" + } + }, + keys: { + serializedName: "properties.keys", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "DatabaseKey" } } + } + }, + encryptionProtector: { + serializedName: "properties.encryptionProtector", + type: { + name: "String" + } + }, + preferredEnclaveType: { + serializedName: "properties.preferredEnclaveType", + type: { + name: "String" + } + }, + sourceResourceId: { + serializedName: "properties.sourceResourceId", + type: { + name: "String" + } + }, + manualCutover: { + serializedName: "properties.manualCutover", + type: { + name: "Boolean" + } + }, + performCutover: { + serializedName: "properties.performCutover", + type: { + name: "Boolean" + } + }, + availabilityZone: { + serializedName: "properties.availabilityZone", + type: { + name: "String" + } + } + } + } +}; + +export const ElasticPool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPool", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + type: { + name: "Number" + } + }, + minCapacity: { + serializedName: "properties.minCapacity", + type: { + name: "Number" + } + }, + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", + type: { + name: "Composite", + className: "ElasticPoolPerDatabaseSettings" + } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "String" + } + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + type: { + name: "String" + } + }, + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", + type: { + name: "Number" + } + }, + preferredEnclaveType: { + serializedName: "properties.preferredEnclaveType", + type: { + name: "String" + } + }, + availabilityZone: { + serializedName: "properties.availabilityZone", + type: { + name: "String" + } + } + } + } +}; + +export const InstancePool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstancePool", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + subnetId: { + serializedName: "properties.subnetId", + type: { + name: "String" + } + }, + vCores: { + serializedName: "properties.vCores", + type: { + name: "Number" + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "String" + } + } + } + } +}; + +export const JobAgent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobAgent", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + databaseId: { + serializedName: "properties.databaseId", type: { - name: "Number" + name: "String" } }, - currentBackupStorageRedundancy: { - serializedName: "properties.currentBackupStorageRedundancy", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } - }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + } + } + } +}; + +export const ManagedDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabase", + modelProperties: { + ...TrackedResource.type.modelProperties, + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - minCapacity: { - serializedName: "properties.minCapacity", + status: { + serializedName: "properties.status", + readOnly: true, type: { - name: "Number" + name: "String" } }, - pausedDate: { - serializedName: "properties.pausedDate", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { name: "DateTime" } }, - resumedDate: { - serializedName: "properties.resumedDate", + earliestRestorePoint: { + serializedName: "properties.earliestRestorePoint", readOnly: true, type: { name: "DateTime" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", - type: { - name: "String" - } - }, - isLedgerOn: { - serializedName: "properties.isLedgerOn", + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "Boolean" + name: "DateTime" } }, - isInfraEncryptionEnabled: { - serializedName: "properties.isInfraEncryptionEnabled", + defaultSecondaryLocation: { + serializedName: "properties.defaultSecondaryLocation", readOnly: true, type: { - name: "Boolean" - } - }, - federatedClientId: { - serializedName: "properties.federatedClientId", - type: { - name: "Uuid" + name: "String" } }, - keys: { - serializedName: "properties.keys", + catalogCollation: { + serializedName: "properties.catalogCollation", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } + name: "String" } }, - encryptionProtector: { - serializedName: "properties.encryptionProtector", + createMode: { + serializedName: "properties.createMode", type: { name: "String" } }, - preferredEnclaveType: { - serializedName: "properties.preferredEnclaveType", + storageContainerUri: { + serializedName: "properties.storageContainerUri", type: { name: "String" } }, - sourceResourceId: { - serializedName: "properties.sourceResourceId", + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { name: "String" } }, - manualCutover: { - serializedName: "properties.manualCutover", + crossSubscriptionSourceDatabaseId: { + serializedName: "properties.crossSubscriptionSourceDatabaseId", type: { - name: "Boolean" + name: "String" } }, - performCutover: { - serializedName: "properties.performCutover", + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { - name: "Boolean" + name: "String" } }, - availabilityZone: { - serializedName: "properties.availabilityZone", + crossSubscriptionRestorableDroppedDatabaseId: { + serializedName: + "properties.crossSubscriptionRestorableDroppedDatabaseId", type: { name: "String" } - } - } - } -}; - -export const ElasticPool: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPool", - modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } }, - kind: { - serializedName: "kind", - readOnly: true, + storageContainerIdentity: { + serializedName: "properties.storageContainerIdentity", type: { name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + storageContainerSasToken: { + serializedName: "properties.storageContainerSasToken", type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", + failoverGroupId: { + serializedName: "properties.failoverGroupId", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { - name: "Number" + name: "String" } }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" + name: "String" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + autoCompleteRestore: { + serializedName: "properties.autoCompleteRestore", type: { name: "Boolean" } }, - licenseType: { - serializedName: "properties.licenseType", + lastBackupName: { + serializedName: "properties.lastBackupName", type: { name: "String" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + crossSubscriptionTargetManagedInstanceId: { + serializedName: "properties.crossSubscriptionTargetManagedInstanceId", type: { name: "String" } }, - highAvailabilityReplicaCount: { - serializedName: "properties.highAvailabilityReplicaCount", + isLedgerOn: { + serializedName: "properties.isLedgerOn", type: { - name: "Number" + name: "Boolean" } } } @@ -16729,6 +16522,51 @@ export const ManagedInstance: coreClient.CompositeMapper = { name: "Composite", className: "ServicePrincipal" } + }, + virtualClusterId: { + serializedName: "properties.virtualClusterId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RestorableDroppedManagedDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabase", + modelProperties: { + ...TrackedResource.type.modelProperties, + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + deletionDate: { + serializedName: "properties.deletionDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", + readOnly: true, + type: { + name: "DateTime" + } } } } @@ -16860,6 +16698,41 @@ export const Server: coreClient.CompositeMapper = { } }; +export const VirtualCluster: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualCluster", + modelProperties: { + ...TrackedResource.type.modelProperties, + subnetId: { + serializedName: "properties.subnetId", + readOnly: true, + type: { + name: "String" + } + }, + version: { + serializedName: "properties.version", + type: { + name: "String" + } + }, + childResources: { + serializedName: "properties.childResources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const FirewallRule: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16903,3 +16776,18 @@ export const IPv6FirewallRule: coreClient.CompositeMapper = { } } }; + +export const FailoverGroupsTryPlannedBeforeForcedFailoverHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroupsTryPlannedBeforeForcedFailoverHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/sql/arm-sql/src/models/parameters.ts b/sdk/sql/arm-sql/src/models/parameters.ts index 8eea1c028a9b..8deaee8ba7f1 100644 --- a/sdk/sql/arm-sql/src/models/parameters.ts +++ b/sdk/sql/arm-sql/src/models/parameters.ts @@ -12,131 +12,114 @@ import { OperationQueryParameter } from "@azure/core-client"; import { + BackupShortTermRetentionPolicy as BackupShortTermRetentionPolicyMapper, + ServerBlobAuditingPolicy as ServerBlobAuditingPolicyMapper, + DatabaseBlobAuditingPolicy as DatabaseBlobAuditingPolicyMapper, + ExtendedDatabaseBlobAuditingPolicy as ExtendedDatabaseBlobAuditingPolicyMapper, + ExtendedServerBlobAuditingPolicy as ExtendedServerBlobAuditingPolicyMapper, DataMaskingPolicy as DataMaskingPolicyMapper, DataMaskingRule as DataMaskingRuleMapper, - GeoBackupPolicy as GeoBackupPolicyMapper, + DatabaseAdvancedThreatProtection as DatabaseAdvancedThreatProtectionMapper, + Advisor as AdvisorMapper, + DatabaseAutomaticTuning as DatabaseAutomaticTuningMapper, + DatabaseExtensions as DatabaseExtensionsMapper, + RecommendedAction as RecommendedActionMapper, + DatabaseSecurityAlertPolicy as DatabaseSecurityAlertPolicyMapper, + DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper, + DatabaseSqlVulnerabilityAssessmentRuleBaselineInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper, + DatabaseVulnerabilityAssessmentRuleBaseline as DatabaseVulnerabilityAssessmentRuleBaselineMapper, + DatabaseVulnerabilityAssessment as DatabaseVulnerabilityAssessmentMapper, Database as DatabaseMapper, DatabaseUpdate as DatabaseUpdateMapper, ExportDatabaseDefinition as ExportDatabaseDefinitionMapper, ImportExistingDatabaseDefinition as ImportExistingDatabaseDefinitionMapper, ResourceMoveDefinition as ResourceMoveDefinitionMapper, + DistributedAvailabilityGroup as DistributedAvailabilityGroupMapper, + DistributedAvailabilityGroupSetRole as DistributedAvailabilityGroupSetRoleMapper, ElasticPool as ElasticPoolMapper, ElasticPoolUpdate as ElasticPoolUpdateMapper, - ServerCommunicationLink as ServerCommunicationLinkMapper, - Advisor as AdvisorMapper, - DatabaseAutomaticTuning as DatabaseAutomaticTuningMapper, - RecommendedAction as RecommendedActionMapper, - DatabaseSecurityAlertPolicy as DatabaseSecurityAlertPolicyMapper, - DatabaseVulnerabilityAssessmentRuleBaseline as DatabaseVulnerabilityAssessmentRuleBaselineMapper, - DatabaseVulnerabilityAssessment as DatabaseVulnerabilityAssessmentMapper, EncryptionProtector as EncryptionProtectorMapper, FailoverGroup as FailoverGroupMapper, FailoverGroupUpdate as FailoverGroupUpdateMapper, - FirewallRule as FirewallRuleMapper, FirewallRuleList as FirewallRuleListMapper, + FirewallRule as FirewallRuleMapper, + GeoBackupPolicy as GeoBackupPolicyMapper, + IPv6FirewallRule as IPv6FirewallRuleMapper, + InstanceFailoverGroup as InstanceFailoverGroupMapper, InstancePool as InstancePoolMapper, InstancePoolUpdate as InstancePoolUpdateMapper, JobAgent as JobAgentMapper, JobAgentUpdate as JobAgentUpdateMapper, JobCredential as JobCredentialMapper, - Job as JobMapper, JobStep as JobStepMapper, JobTargetGroup as JobTargetGroupMapper, + Job as JobMapper, + LedgerDigestUploads as LedgerDigestUploadsMapper, + CopyLongTermRetentionBackupParameters as CopyLongTermRetentionBackupParametersMapper, + UpdateLongTermRetentionBackupParameters as UpdateLongTermRetentionBackupParametersMapper, LongTermRetentionPolicy as LongTermRetentionPolicyMapper, MaintenanceWindows as MaintenanceWindowsMapper, ManagedBackupShortTermRetentionPolicy as ManagedBackupShortTermRetentionPolicyMapper, + ManagedDatabaseAdvancedThreatProtection as ManagedDatabaseAdvancedThreatProtectionMapper, ManagedDatabaseSecurityAlertPolicy as ManagedDatabaseSecurityAlertPolicyMapper, + SensitivityLabelUpdateList as SensitivityLabelUpdateListMapper, + SensitivityLabel as SensitivityLabelMapper, + RecommendedSensitivityLabelUpdateList as RecommendedSensitivityLabelUpdateListMapper, ManagedTransparentDataEncryption as ManagedTransparentDataEncryptionMapper, + DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated as DatabaseVulnerabilityAssessmentRuleBaselineAutoGeneratedMapper, + ManagedDatabase as ManagedDatabaseMapper, + ManagedDatabaseUpdate as ManagedDatabaseUpdateMapper, + ManagedDatabaseMoveDefinition as ManagedDatabaseMoveDefinitionMapper, + CompleteDatabaseRestoreDefinition as CompleteDatabaseRestoreDefinitionMapper, + ManagedDatabaseStartMoveDefinition as ManagedDatabaseStartMoveDefinitionMapper, ManagedInstanceAdministrator as ManagedInstanceAdministratorMapper, + ManagedInstanceAdvancedThreatProtection as ManagedInstanceAdvancedThreatProtectionMapper, ManagedInstanceAzureADOnlyAuthentication as ManagedInstanceAzureADOnlyAuthenticationMapper, + ManagedInstanceDtc as ManagedInstanceDtcMapper, ManagedInstanceEncryptionProtector as ManagedInstanceEncryptionProtectorMapper, ManagedInstanceKey as ManagedInstanceKeyMapper, ManagedInstanceLongTermRetentionPolicy as ManagedInstanceLongTermRetentionPolicyMapper, ManagedInstancePrivateEndpointConnection as ManagedInstancePrivateEndpointConnectionMapper, TdeCertificate as TdeCertificateMapper, ManagedInstanceVulnerabilityAssessment as ManagedInstanceVulnerabilityAssessmentMapper, + ManagedInstance as ManagedInstanceMapper, + ManagedInstanceUpdate as ManagedInstanceUpdateMapper, + ManagedLedgerDigestUploads as ManagedLedgerDigestUploadsMapper, + ManagedServerDnsAliasCreation as ManagedServerDnsAliasCreationMapper, + ManagedServerDnsAliasAcquisition as ManagedServerDnsAliasAcquisitionMapper, ManagedServerSecurityAlertPolicy as ManagedServerSecurityAlertPolicyMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, CreateDatabaseRestorePointDefinition as CreateDatabaseRestorePointDefinitionMapper, + ServerAdvancedThreatProtection as ServerAdvancedThreatProtectionMapper, ServerAutomaticTuning as ServerAutomaticTuningMapper, ServerAzureADAdministrator as ServerAzureADAdministratorMapper, ServerAzureADOnlyAuthentication as ServerAzureADOnlyAuthenticationMapper, + ServerConfigurationOption as ServerConfigurationOptionMapper, + ServerConnectionPolicy as ServerConnectionPolicyMapper, ServerDevOpsAuditingSettings as ServerDevOpsAuditingSettingsMapper, ServerDnsAliasAcquisition as ServerDnsAliasAcquisitionMapper, ServerKey as ServerKeyMapper, ServerSecurityAlertPolicy as ServerSecurityAlertPolicyMapper, + ServerTrustCertificate as ServerTrustCertificateMapper, ServerTrustGroup as ServerTrustGroupMapper, ServerVulnerabilityAssessment as ServerVulnerabilityAssessmentMapper, + CheckNameAvailabilityRequest as CheckNameAvailabilityRequestMapper, + Server as ServerMapper, + ServerUpdate as ServerUpdateMapper, + ImportNewDatabaseDefinition as ImportNewDatabaseDefinitionMapper, SqlAgentConfiguration as SqlAgentConfigurationMapper, + SqlVulnerabilityAssessment as SqlVulnerabilityAssessmentMapper, + StartStopManagedInstanceSchedule as StartStopManagedInstanceScheduleMapper, SyncAgent as SyncAgentMapper, SyncGroup as SyncGroupMapper, SyncMember as SyncMemberMapper, + LogicalDatabaseTransparentDataEncryption as LogicalDatabaseTransparentDataEncryptionMapper, + VirtualClusterUpdate as VirtualClusterUpdateMapper, VirtualNetworkRule as VirtualNetworkRuleMapper, WorkloadClassifier as WorkloadClassifierMapper, - WorkloadGroup as WorkloadGroupMapper, - BackupShortTermRetentionPolicy as BackupShortTermRetentionPolicyMapper, - DatabaseExtensions as DatabaseExtensionsMapper, - LedgerDigestUploads as LedgerDigestUploadsMapper, - OutboundFirewallRule as OutboundFirewallRuleMapper, - CopyLongTermRetentionBackupParameters as CopyLongTermRetentionBackupParametersMapper, - UpdateLongTermRetentionBackupParameters as UpdateLongTermRetentionBackupParametersMapper, - ServerConnectionPolicy as ServerConnectionPolicyMapper, - DistributedAvailabilityGroup as DistributedAvailabilityGroupMapper, - ServerTrustCertificate as ServerTrustCertificateMapper, - IPv6FirewallRule as IPv6FirewallRuleMapper, - SensitivityLabel as SensitivityLabelMapper, - SensitivityLabelUpdateList as SensitivityLabelUpdateListMapper, - RecommendedSensitivityLabelUpdateList as RecommendedSensitivityLabelUpdateListMapper, - ServerBlobAuditingPolicy as ServerBlobAuditingPolicyMapper, - DatabaseBlobAuditingPolicy as DatabaseBlobAuditingPolicyMapper, - ExtendedDatabaseBlobAuditingPolicy as ExtendedDatabaseBlobAuditingPolicyMapper, - ExtendedServerBlobAuditingPolicy as ExtendedServerBlobAuditingPolicyMapper, - DatabaseAdvancedThreatProtection as DatabaseAdvancedThreatProtectionMapper, - ServerAdvancedThreatProtection as ServerAdvancedThreatProtectionMapper, - ManagedServerDnsAliasCreation as ManagedServerDnsAliasCreationMapper, - ManagedServerDnsAliasAcquisition as ManagedServerDnsAliasAcquisitionMapper, - DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper, - DatabaseSqlVulnerabilityAssessmentRuleBaselineInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper, - ManagedDatabaseAdvancedThreatProtection as ManagedDatabaseAdvancedThreatProtectionMapper, - ManagedInstanceAdvancedThreatProtection as ManagedInstanceAdvancedThreatProtectionMapper, - SqlVulnerabilityAssessment as SqlVulnerabilityAssessmentMapper, - ManagedInstanceDtc as ManagedInstanceDtcMapper, - VirtualClusterUpdate as VirtualClusterUpdateMapper, - InstanceFailoverGroup as InstanceFailoverGroupMapper, - ManagedDatabase as ManagedDatabaseMapper, - ManagedDatabaseUpdate as ManagedDatabaseUpdateMapper, - ManagedDatabaseMoveDefinition as ManagedDatabaseMoveDefinitionMapper, - CompleteDatabaseRestoreDefinition as CompleteDatabaseRestoreDefinitionMapper, - ManagedDatabaseStartMoveDefinition as ManagedDatabaseStartMoveDefinitionMapper, - ManagedInstance as ManagedInstanceMapper, - ManagedInstanceUpdate as ManagedInstanceUpdateMapper, - ManagedLedgerDigestUploads as ManagedLedgerDigestUploadsMapper, - ServerConfigurationOption as ServerConfigurationOptionMapper, - CheckNameAvailabilityRequest as CheckNameAvailabilityRequestMapper, - Server as ServerMapper, - ServerUpdate as ServerUpdateMapper, - ImportNewDatabaseDefinition as ImportNewDatabaseDefinitionMapper, - StartStopManagedInstanceSchedule as StartStopManagedInstanceScheduleMapper, - LogicalDatabaseTransparentDataEncryption as LogicalDatabaseTransparentDataEncryptionMapper + WorkloadGroup as WorkloadGroupMapper } from "../models/mappers"; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } -}; - -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: DataMaskingPolicyMapper -}; - export const accept: OperationParameter = { parameterPath: "accept", mapper: { @@ -161,29 +144,6 @@ export const $host: OperationURLParameter = { skipEncoding: true }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2014-04-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", - mapper: { - serializedName: "subscriptionId", - required: true, - type: { - name: "String" - } - } -}; - export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -217,43 +177,33 @@ export const databaseName: OperationURLParameter = { } }; -export const dataMaskingPolicyName: OperationURLParameter = { - parameterPath: "dataMaskingPolicyName", +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", mapper: { - defaultValue: "Default", - isConstant: true, - serializedName: "dataMaskingPolicyName", + serializedName: "subscriptionId", + required: true, type: { name: "String" } } }; -export const parameters1: OperationParameter = { - parameterPath: "parameters", - mapper: DataMaskingRuleMapper -}; - -export const dataMaskingRuleName: OperationURLParameter = { - parameterPath: "dataMaskingRuleName", +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "dataMaskingRuleName", - required: true, + defaultValue: "2022-11-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String" } } }; -export const parameters2: OperationParameter = { - parameterPath: "parameters", - mapper: GeoBackupPolicyMapper -}; - -export const geoBackupPolicyName: OperationURLParameter = { - parameterPath: "geoBackupPolicyName", +export const policyName: OperationURLParameter = { + parameterPath: "policyName", mapper: { - serializedName: "geoBackupPolicyName", + serializedName: "policyName", required: true, type: { name: "String" @@ -261,98 +211,92 @@ export const geoBackupPolicyName: OperationURLParameter = { } }; -export const filter: OperationQueryParameter = { - parameterPath: "filter", +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { - serializedName: "$filter", - required: true, + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", type: { name: "String" } } }; -export const skipToken: OperationQueryParameter = { - parameterPath: ["options", "skipToken"], - mapper: { - serializedName: "$skipToken", - type: { - name: "String" - } - } +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: BackupShortTermRetentionPolicyMapper }; -export const apiVersion1: OperationQueryParameter = { - parameterPath: "apiVersion", +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - defaultValue: "2022-08-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "nextLink", + required: true, type: { name: "String" } - } + }, + skipEncoding: true }; -export const expand: OperationQueryParameter = { - parameterPath: ["options", "expand"], +export const blobAuditingPolicyName: OperationURLParameter = { + parameterPath: "blobAuditingPolicyName", mapper: { - serializedName: "$expand", + defaultValue: "default", + isConstant: true, + serializedName: "blobAuditingPolicyName", type: { name: "String" } } }; -export const filter1: OperationQueryParameter = { - parameterPath: ["options", "filter"], - mapper: { - serializedName: "$filter", - type: { - name: "String" - } - } +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: ServerBlobAuditingPolicyMapper }; -export const parameters3: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseMapper + mapper: DatabaseBlobAuditingPolicyMapper }; -export const parameters4: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseUpdateMapper + mapper: ExtendedDatabaseBlobAuditingPolicyMapper }; -export const parameters5: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: ExportDatabaseDefinitionMapper + mapper: ExtendedServerBlobAuditingPolicyMapper }; -export const replicaType: OperationQueryParameter = { - parameterPath: ["options", "replicaType"], +export const dataMaskingPolicyName: OperationURLParameter = { + parameterPath: "dataMaskingPolicyName", mapper: { - serializedName: "replicaType", + serializedName: "dataMaskingPolicyName", + required: true, type: { name: "String" } } }; -export const parameters6: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: ImportExistingDatabaseDefinitionMapper + mapper: DataMaskingPolicyMapper }; -export const parameters7: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: ResourceMoveDefinitionMapper + mapper: DataMaskingRuleMapper }; -export const elasticPoolName: OperationURLParameter = { - parameterPath: "elasticPoolName", +export const dataMaskingRuleName: OperationURLParameter = { + parameterPath: "dataMaskingRuleName", mapper: { - serializedName: "elasticPoolName", + serializedName: "dataMaskingRuleName", required: true, type: { name: "String" @@ -360,54 +304,21 @@ export const elasticPoolName: OperationURLParameter = { } }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - -export const skip: OperationQueryParameter = { - parameterPath: ["options", "skip"], - mapper: { - serializedName: "$skip", - type: { - name: "Number" - } - } -}; - -export const apiVersion2: OperationQueryParameter = { - parameterPath: "apiVersion", +export const dataWarehouseUserActivityName: OperationURLParameter = { + parameterPath: "dataWarehouseUserActivityName", mapper: { - defaultValue: "2021-08-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "dataWarehouseUserActivityName", + required: true, type: { name: "String" } } }; -export const parameters8: OperationParameter = { - parameterPath: "parameters", - mapper: ElasticPoolMapper -}; - -export const parameters9: OperationParameter = { - parameterPath: "parameters", - mapper: ElasticPoolUpdateMapper -}; - -export const communicationLinkName: OperationURLParameter = { - parameterPath: "communicationLinkName", +export const advancedThreatProtectionName: OperationURLParameter = { + parameterPath: "advancedThreatProtectionName", mapper: { - serializedName: "communicationLinkName", + serializedName: "advancedThreatProtectionName", required: true, type: { name: "String" @@ -415,28 +326,15 @@ export const communicationLinkName: OperationURLParameter = { } }; -export const parameters10: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: ServerCommunicationLinkMapper -}; - -export const serviceObjectiveName: OperationURLParameter = { - parameterPath: "serviceObjectiveName", - mapper: { - serializedName: "serviceObjectiveName", - required: true, - type: { - name: "String" - } - } + mapper: DatabaseAdvancedThreatProtectionMapper }; -export const apiVersion3: OperationQueryParameter = { - parameterPath: "apiVersion", +export const expand: OperationQueryParameter = { + parameterPath: ["options", "expand"], mapper: { - defaultValue: "2020-11-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "$expand", type: { name: "String" } @@ -454,12 +352,12 @@ export const advisorName: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: AdvisorMapper }; -export const parameters12: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: DatabaseAutomaticTuningMapper }; @@ -560,6 +458,16 @@ export const tableName: OperationURLParameter = { } }; +export const filter: OperationQueryParameter = { + parameterPath: ["options", "filter"], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; + export const columnName: OperationURLParameter = { parameterPath: "columnName", mapper: { @@ -571,6 +479,44 @@ export const columnName: OperationURLParameter = { } }; +export const encryptionProtectorName: OperationURLParameter = { + parameterPath: "encryptionProtectorName", + mapper: { + serializedName: "encryptionProtectorName", + required: true, + type: { + name: "String" + } + } +}; + +export const extensionName: OperationURLParameter = { + parameterPath: "extensionName", + mapper: { + serializedName: "extensionName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters10: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseExtensionsMapper +}; + +export const operationId: OperationURLParameter = { + parameterPath: "operationId", + mapper: { + serializedName: "operationId", + required: true, + type: { + name: "Uuid" + } + } +}; + export const recommendedActionName: OperationURLParameter = { parameterPath: "recommendedActionName", mapper: { @@ -582,7 +528,7 @@ export const recommendedActionName: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: RecommendedActionMapper }; @@ -598,7 +544,7 @@ export const securityAlertPolicyName: OperationURLParameter = { } }; -export const parameters14: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: DatabaseSecurityAlertPolicyMapper }; @@ -614,43 +560,26 @@ export const vulnerabilityAssessmentName: OperationURLParameter = { } }; -export const ruleId: OperationURLParameter = { - parameterPath: "ruleId", - mapper: { - serializedName: "ruleId", - required: true, - type: { - name: "String" - } - } -}; - export const baselineName: OperationURLParameter = { parameterPath: "baselineName", mapper: { serializedName: "baselineName", required: true, type: { - name: "Enum", - allowedValues: ["master", "default"] + name: "String" } } }; -export const parameters15: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseVulnerabilityAssessmentRuleBaselineMapper -}; - -export const parameters16: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseVulnerabilityAssessmentMapper + mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper }; -export const scanId: OperationURLParameter = { - parameterPath: "scanId", +export const ruleId: OperationURLParameter = { + parameterPath: "ruleId", mapper: { - serializedName: "scanId", + serializedName: "ruleId", required: true, type: { name: "String" @@ -658,10 +587,15 @@ export const scanId: OperationURLParameter = { } }; -export const dataWarehouseUserActivityName: OperationURLParameter = { - parameterPath: "dataWarehouseUserActivityName", +export const parameters14: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper +}; + +export const vulnerabilityAssessmentName1: OperationURLParameter = { + parameterPath: "vulnerabilityAssessmentName", mapper: { - serializedName: "dataWarehouseUserActivityName", + serializedName: "vulnerabilityAssessmentName", required: true, type: { name: "String" @@ -669,10 +603,10 @@ export const dataWarehouseUserActivityName: OperationURLParameter = { } }; -export const locationName: OperationURLParameter = { - parameterPath: "locationName", +export const scanId: OperationURLParameter = { + parameterPath: "scanId", mapper: { - serializedName: "locationName", + serializedName: "scanId", required: true, type: { name: "String" @@ -680,10 +614,10 @@ export const locationName: OperationURLParameter = { } }; -export const deletedServerName: OperationURLParameter = { - parameterPath: "deletedServerName", +export const scanResultId: OperationURLParameter = { + parameterPath: "scanResultId", mapper: { - serializedName: "deletedServerName", + serializedName: "scanResultId", required: true, type: { name: "String" @@ -691,59 +625,68 @@ export const deletedServerName: OperationURLParameter = { } }; -export const operationId: OperationURLParameter = { - parameterPath: "operationId", +export const vulnerabilityAssessmentName2: OperationURLParameter = { + parameterPath: "vulnerabilityAssessmentName", mapper: { - serializedName: "operationId", + serializedName: "vulnerabilityAssessmentName", required: true, type: { - name: "Uuid" + name: "String" } } }; -export const encryptionProtectorName: OperationURLParameter = { - parameterPath: "encryptionProtectorName", +export const baselineName1: OperationURLParameter = { + parameterPath: "baselineName", mapper: { - serializedName: "encryptionProtectorName", + serializedName: "baselineName", required: true, type: { - name: "String" + name: "Enum", + allowedValues: ["master", "default"] } } }; -export const parameters17: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: EncryptionProtectorMapper + mapper: DatabaseVulnerabilityAssessmentRuleBaselineMapper }; -export const failoverGroupName: OperationURLParameter = { - parameterPath: "failoverGroupName", +export const parameters16: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseVulnerabilityAssessmentMapper +}; + +export const skipToken: OperationQueryParameter = { + parameterPath: ["options", "skipToken"], mapper: { - serializedName: "failoverGroupName", - required: true, + serializedName: "$skipToken", type: { name: "String" } } }; +export const parameters17: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseMapper +}; + export const parameters18: OperationParameter = { parameterPath: "parameters", - mapper: FailoverGroupMapper + mapper: DatabaseUpdateMapper }; export const parameters19: OperationParameter = { parameterPath: "parameters", - mapper: FailoverGroupUpdateMapper + mapper: ExportDatabaseDefinitionMapper }; -export const firewallRuleName: OperationURLParameter = { - parameterPath: "firewallRuleName", +export const replicaType: OperationQueryParameter = { + parameterPath: ["options", "replicaType"], mapper: { - serializedName: "firewallRuleName", - required: true, + serializedName: "replicaType", type: { name: "String" } @@ -752,18 +695,18 @@ export const firewallRuleName: OperationURLParameter = { export const parameters20: OperationParameter = { parameterPath: "parameters", - mapper: FirewallRuleMapper + mapper: ImportExistingDatabaseDefinitionMapper }; export const parameters21: OperationParameter = { parameterPath: "parameters", - mapper: FirewallRuleListMapper + mapper: ResourceMoveDefinitionMapper }; -export const instancePoolName: OperationURLParameter = { - parameterPath: "instancePoolName", +export const elasticPoolName: OperationURLParameter = { + parameterPath: "elasticPoolName", mapper: { - serializedName: "instancePoolName", + serializedName: "elasticPoolName", required: true, type: { name: "String" @@ -771,20 +714,10 @@ export const instancePoolName: OperationURLParameter = { } }; -export const parameters22: OperationParameter = { - parameterPath: "parameters", - mapper: InstancePoolMapper -}; - -export const parameters23: OperationParameter = { - parameterPath: "parameters", - mapper: InstancePoolUpdateMapper -}; - -export const jobAgentName: OperationURLParameter = { - parameterPath: "jobAgentName", +export const locationName: OperationURLParameter = { + parameterPath: "locationName", mapper: { - serializedName: "jobAgentName", + serializedName: "locationName", required: true, type: { name: "String" @@ -792,20 +725,10 @@ export const jobAgentName: OperationURLParameter = { } }; -export const parameters24: OperationParameter = { - parameterPath: "parameters", - mapper: JobAgentMapper -}; - -export const parameters25: OperationParameter = { - parameterPath: "parameters", - mapper: JobAgentUpdateMapper -}; - -export const credentialName: OperationURLParameter = { - parameterPath: "credentialName", +export const deletedServerName: OperationURLParameter = { + parameterPath: "deletedServerName", mapper: { - serializedName: "credentialName", + serializedName: "deletedServerName", required: true, type: { name: "String" @@ -813,102 +736,67 @@ export const credentialName: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { - parameterPath: "parameters", - mapper: JobCredentialMapper -}; - -export const createTimeMin: OperationQueryParameter = { - parameterPath: ["options", "createTimeMin"], - mapper: { - serializedName: "createTimeMin", - type: { - name: "DateTime" - } - } -}; - -export const createTimeMax: OperationQueryParameter = { - parameterPath: ["options", "createTimeMax"], +export const managedInstanceName: OperationURLParameter = { + parameterPath: "managedInstanceName", mapper: { - serializedName: "createTimeMax", + serializedName: "managedInstanceName", + required: true, type: { - name: "DateTime" + name: "String" } } }; -export const endTimeMin: OperationQueryParameter = { - parameterPath: ["options", "endTimeMin"], +export const distributedAvailabilityGroupName: OperationURLParameter = { + parameterPath: "distributedAvailabilityGroupName", mapper: { - serializedName: "endTimeMin", + serializedName: "distributedAvailabilityGroupName", + required: true, type: { - name: "DateTime" + name: "String" } } }; -export const endTimeMax: OperationQueryParameter = { - parameterPath: ["options", "endTimeMax"], - mapper: { - serializedName: "endTimeMax", - type: { - name: "DateTime" - } - } +export const parameters22: OperationParameter = { + parameterPath: "parameters", + mapper: DistributedAvailabilityGroupMapper }; -export const isActive: OperationQueryParameter = { - parameterPath: ["options", "isActive"], - mapper: { - serializedName: "isActive", - type: { - name: "Boolean" - } - } +export const parameters23: OperationParameter = { + parameterPath: "parameters", + mapper: DistributedAvailabilityGroupSetRoleMapper }; -export const top: OperationQueryParameter = { - parameterPath: ["options", "top"], +export const skip: OperationQueryParameter = { + parameterPath: ["options", "skip"], mapper: { - serializedName: "$top", + serializedName: "$skip", type: { name: "Number" } } }; -export const jobName: OperationURLParameter = { - parameterPath: "jobName", - mapper: { - serializedName: "jobName", - required: true, - type: { - name: "String" - } - } +export const parameters24: OperationParameter = { + parameterPath: "parameters", + mapper: ElasticPoolMapper }; -export const jobExecutionId: OperationURLParameter = { - parameterPath: "jobExecutionId", - mapper: { - serializedName: "jobExecutionId", - required: true, - type: { - name: "Uuid" - } - } +export const parameters25: OperationParameter = { + parameterPath: "parameters", + mapper: ElasticPoolUpdateMapper }; -export const parameters27: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", - mapper: JobMapper + mapper: EncryptionProtectorMapper }; -export const stepName: OperationURLParameter = { - parameterPath: "stepName", +export const endpointType: OperationURLParameter = { + parameterPath: "endpointType", mapper: { - serializedName: "stepName", + serializedName: "endpointType", required: true, type: { name: "String" @@ -916,37 +804,52 @@ export const stepName: OperationURLParameter = { } }; -export const jobVersion: OperationURLParameter = { - parameterPath: "jobVersion", +export const failoverGroupName: OperationURLParameter = { + parameterPath: "failoverGroupName", mapper: { - serializedName: "jobVersion", + serializedName: "failoverGroupName", required: true, type: { - name: "Number" + name: "String" } } }; +export const parameters27: OperationParameter = { + parameterPath: "parameters", + mapper: FailoverGroupMapper +}; + export const parameters28: OperationParameter = { parameterPath: "parameters", - mapper: JobStepMapper + mapper: FailoverGroupUpdateMapper }; -export const targetId: OperationURLParameter = { - parameterPath: "targetId", +export const serverName1: OperationURLParameter = { + parameterPath: "serverName", mapper: { - serializedName: "targetId", + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9]*$"), + MaxLength: 63, + MinLength: 3 + }, + serializedName: "serverName", required: true, type: { - name: "Uuid" + name: "String" } } }; -export const targetGroupName: OperationURLParameter = { - parameterPath: "targetGroupName", +export const failoverGroupName1: OperationURLParameter = { + parameterPath: "failoverGroupName", mapper: { - serializedName: "targetGroupName", + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9]*$"), + MaxLength: 63, + MinLength: 3 + }, + serializedName: "failoverGroupName", required: true, type: { name: "String" @@ -956,23 +859,13 @@ export const targetGroupName: OperationURLParameter = { export const parameters29: OperationParameter = { parameterPath: "parameters", - mapper: JobTargetGroupMapper -}; - -export const include: OperationQueryParameter = { - parameterPath: ["options", "include"], - mapper: { - serializedName: "include", - type: { - name: "String" - } - } + mapper: FirewallRuleListMapper }; -export const policyName: OperationURLParameter = { - parameterPath: "policyName", +export const firewallRuleName: OperationURLParameter = { + parameterPath: "firewallRuleName", mapper: { - serializedName: "policyName", + serializedName: "firewallRuleName", required: true, type: { name: "String" @@ -982,13 +875,13 @@ export const policyName: OperationURLParameter = { export const parameters30: OperationParameter = { parameterPath: "parameters", - mapper: LongTermRetentionPolicyMapper + mapper: FirewallRuleMapper }; -export const maintenanceWindowOptionsName: OperationQueryParameter = { - parameterPath: "maintenanceWindowOptionsName", +export const geoBackupPolicyName: OperationURLParameter = { + parameterPath: "geoBackupPolicyName", mapper: { - serializedName: "maintenanceWindowOptionsName", + serializedName: "geoBackupPolicyName", required: true, type: { name: "String" @@ -996,10 +889,25 @@ export const maintenanceWindowOptionsName: OperationQueryParameter = { } }; -export const maintenanceWindowName: OperationQueryParameter = { - parameterPath: "maintenanceWindowName", +export const parameters31: OperationParameter = { + parameterPath: "parameters", + mapper: GeoBackupPolicyMapper +}; + +export const parameters32: OperationParameter = { + parameterPath: "parameters", + mapper: IPv6FirewallRuleMapper +}; + +export const parameters33: OperationParameter = { + parameterPath: "parameters", + mapper: InstanceFailoverGroupMapper +}; + +export const instancePoolName: OperationURLParameter = { + parameterPath: "instancePoolName", mapper: { - serializedName: "maintenanceWindowName", + serializedName: "instancePoolName", required: true, type: { name: "String" @@ -1007,15 +915,20 @@ export const maintenanceWindowName: OperationQueryParameter = { } }; -export const parameters31: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", - mapper: MaintenanceWindowsMapper + mapper: InstancePoolMapper }; -export const managedInstanceName: OperationURLParameter = { - parameterPath: "managedInstanceName", +export const parameters35: OperationParameter = { + parameterPath: "parameters", + mapper: InstancePoolUpdateMapper +}; + +export const jobAgentName: OperationURLParameter = { + parameterPath: "jobAgentName", mapper: { - serializedName: "managedInstanceName", + serializedName: "jobAgentName", required: true, type: { name: "String" @@ -1023,10 +936,20 @@ export const managedInstanceName: OperationURLParameter = { } }; -export const policyName1: OperationURLParameter = { - parameterPath: "policyName", +export const parameters36: OperationParameter = { + parameterPath: "parameters", + mapper: JobAgentMapper +}; + +export const parameters37: OperationParameter = { + parameterPath: "parameters", + mapper: JobAgentUpdateMapper +}; + +export const credentialName: OperationURLParameter = { + parameterPath: "credentialName", mapper: { - serializedName: "policyName", + serializedName: "credentialName", required: true, type: { name: "String" @@ -1034,93 +957,75 @@ export const policyName1: OperationURLParameter = { } }; -export const parameters32: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", - mapper: ManagedBackupShortTermRetentionPolicyMapper + mapper: JobCredentialMapper }; -export const queryId: OperationURLParameter = { - parameterPath: "queryId", +export const createTimeMin: OperationQueryParameter = { + parameterPath: ["options", "createTimeMin"], mapper: { - serializedName: "queryId", - required: true, + serializedName: "createTimeMin", type: { - name: "String" + name: "DateTime" } } }; -export const startTime: OperationQueryParameter = { - parameterPath: ["options", "startTime"], +export const createTimeMax: OperationQueryParameter = { + parameterPath: ["options", "createTimeMax"], mapper: { - serializedName: "startTime", + serializedName: "createTimeMax", type: { - name: "String" + name: "DateTime" } } }; -export const endTime: OperationQueryParameter = { - parameterPath: ["options", "endTime"], +export const endTimeMin: OperationQueryParameter = { + parameterPath: ["options", "endTimeMin"], mapper: { - serializedName: "endTime", + serializedName: "endTimeMin", type: { - name: "String" + name: "DateTime" } } }; -export const interval: OperationQueryParameter = { - parameterPath: ["options", "interval"], +export const endTimeMax: OperationQueryParameter = { + parameterPath: ["options", "endTimeMax"], mapper: { - serializedName: "interval", + serializedName: "endTimeMax", type: { - name: "String" + name: "DateTime" } } }; -export const parameters33: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseSecurityAlertPolicyMapper -}; - -export const tdeName: OperationURLParameter = { - parameterPath: "tdeName", +export const isActive: OperationQueryParameter = { + parameterPath: ["options", "isActive"], mapper: { - serializedName: "tdeName", - required: true, + serializedName: "isActive", type: { - name: "String" + name: "Boolean" } } }; -export const parameters34: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedTransparentDataEncryptionMapper -}; - -export const administratorName: OperationURLParameter = { - parameterPath: "administratorName", +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], mapper: { - serializedName: "administratorName", - required: true, + serializedName: "$top", type: { - name: "String" + name: "Number" } } }; -export const parameters35: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceAdministratorMapper -}; - -export const authenticationName: OperationURLParameter = { - parameterPath: "authenticationName", +export const jobName: OperationURLParameter = { + parameterPath: "jobName", mapper: { - serializedName: "authenticationName", + serializedName: "jobName", required: true, type: { name: "String" @@ -1128,36 +1033,21 @@ export const authenticationName: OperationURLParameter = { } }; -export const parameters36: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceAzureADOnlyAuthenticationMapper -}; - -export const parameters37: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceEncryptionProtectorMapper -}; - -export const keyName: OperationURLParameter = { - parameterPath: "keyName", +export const jobExecutionId: OperationURLParameter = { + parameterPath: "jobExecutionId", mapper: { - serializedName: "keyName", + serializedName: "jobExecutionId", required: true, type: { - name: "String" + name: "Uuid" } } }; -export const parameters38: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceKeyMapper -}; - -export const policyName2: OperationURLParameter = { - parameterPath: "policyName", +export const stepName: OperationURLParameter = { + parameterPath: "stepName", mapper: { - serializedName: "policyName", + serializedName: "stepName", required: true, type: { name: "String" @@ -1167,50 +1057,35 @@ export const policyName2: OperationURLParameter = { export const parameters39: OperationParameter = { parameterPath: "parameters", - mapper: ManagedInstanceLongTermRetentionPolicyMapper + mapper: JobStepMapper }; -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", +export const jobVersion: OperationURLParameter = { + parameterPath: "jobVersion", mapper: { - serializedName: "privateEndpointConnectionName", + serializedName: "jobVersion", required: true, type: { - name: "String" + name: "Number" } } }; -export const parameters40: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstancePrivateEndpointConnectionMapper -}; - -export const groupName: OperationURLParameter = { - parameterPath: "groupName", +export const targetId: OperationURLParameter = { + parameterPath: "targetId", mapper: { - serializedName: "groupName", + serializedName: "targetId", required: true, type: { - name: "String" + name: "Uuid" } } }; -export const parameters41: OperationParameter = { - parameterPath: "parameters", - mapper: TdeCertificateMapper -}; - -export const parameters42: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceVulnerabilityAssessmentMapper -}; - -export const restorableDroppedDatabaseId: OperationURLParameter = { - parameterPath: "restorableDroppedDatabaseId", +export const targetGroupName: OperationURLParameter = { + parameterPath: "targetGroupName", mapper: { - serializedName: "restorableDroppedDatabaseId", + serializedName: "targetGroupName", required: true, type: { name: "String" @@ -1218,20 +1093,20 @@ export const restorableDroppedDatabaseId: OperationURLParameter = { } }; -export const parameters43: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: "parameters", - mapper: ManagedServerSecurityAlertPolicyMapper + mapper: JobTargetGroupMapper }; -export const parameters44: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper + mapper: JobMapper }; -export const recoverableDatabaseName: OperationURLParameter = { - parameterPath: "recoverableDatabaseName", +export const ledgerDigestUploads: OperationURLParameter = { + parameterPath: "ledgerDigestUploads", mapper: { - serializedName: "recoverableDatabaseName", + serializedName: "ledgerDigestUploads", required: true, type: { name: "String" @@ -1239,53 +1114,45 @@ export const recoverableDatabaseName: OperationURLParameter = { } }; -export const parameters45: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", - mapper: CreateDatabaseRestorePointDefinitionMapper + mapper: LedgerDigestUploadsMapper }; -export const restorePointName: OperationURLParameter = { - parameterPath: "restorePointName", +export const include: OperationQueryParameter = { + parameterPath: ["options", "include"], mapper: { - serializedName: "restorePointName", - required: true, + serializedName: "include", type: { name: "String" } } }; -export const parameters46: OperationParameter = { - parameterPath: "parameters", - mapper: ServerAutomaticTuningMapper -}; - -export const parameters47: OperationParameter = { - parameterPath: "parameters", - mapper: ServerAzureADAdministratorMapper -}; - -export const parameters48: OperationParameter = { - parameterPath: "parameters", - mapper: ServerAzureADOnlyAuthenticationMapper +export const onlyLatestPerDatabase: OperationQueryParameter = { + parameterPath: ["options", "onlyLatestPerDatabase"], + mapper: { + serializedName: "onlyLatestPerDatabase", + type: { + name: "Boolean" + } + } }; -export const apiVersion4: OperationQueryParameter = { - parameterPath: "apiVersion", +export const databaseState: OperationQueryParameter = { + parameterPath: ["options", "databaseState"], mapper: { - defaultValue: "2022-02-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "databaseState", type: { name: "String" } } }; -export const devOpsAuditingSettingsName: OperationURLParameter = { - parameterPath: "devOpsAuditingSettingsName", +export const longTermRetentionServerName: OperationURLParameter = { + parameterPath: "longTermRetentionServerName", mapper: { - serializedName: "devOpsAuditingSettingsName", + serializedName: "longTermRetentionServerName", required: true, type: { name: "String" @@ -1293,15 +1160,10 @@ export const devOpsAuditingSettingsName: OperationURLParameter = { } }; -export const parameters49: OperationParameter = { - parameterPath: "parameters", - mapper: ServerDevOpsAuditingSettingsMapper -}; - -export const dnsAliasName: OperationURLParameter = { - parameterPath: "dnsAliasName", +export const longTermRetentionDatabaseName: OperationURLParameter = { + parameterPath: "longTermRetentionDatabaseName", mapper: { - serializedName: "dnsAliasName", + serializedName: "longTermRetentionDatabaseName", required: true, type: { name: "String" @@ -1309,25 +1171,31 @@ export const dnsAliasName: OperationURLParameter = { } }; -export const parameters50: OperationParameter = { - parameterPath: "parameters", - mapper: ServerDnsAliasAcquisitionMapper +export const backupName: OperationURLParameter = { + parameterPath: "backupName", + mapper: { + serializedName: "backupName", + required: true, + type: { + name: "String" + } + } }; -export const parameters51: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", - mapper: ServerKeyMapper + mapper: CopyLongTermRetentionBackupParametersMapper }; -export const parameters52: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", - mapper: ServerSecurityAlertPolicyMapper + mapper: UpdateLongTermRetentionBackupParametersMapper }; -export const serverTrustGroupName: OperationURLParameter = { - parameterPath: "serverTrustGroupName", +export const policyName1: OperationURLParameter = { + parameterPath: "policyName", mapper: { - serializedName: "serverTrustGroupName", + serializedName: "policyName", required: true, type: { name: "String" @@ -1335,25 +1203,26 @@ export const serverTrustGroupName: OperationURLParameter = { } }; -export const parameters53: OperationParameter = { - parameterPath: "parameters", - mapper: ServerTrustGroupMapper -}; - -export const parameters54: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", - mapper: ServerVulnerabilityAssessmentMapper + mapper: LongTermRetentionPolicyMapper }; -export const parameters55: OperationParameter = { - parameterPath: "parameters", - mapper: SqlAgentConfigurationMapper +export const maintenanceWindowOptionsName: OperationQueryParameter = { + parameterPath: "maintenanceWindowOptionsName", + mapper: { + serializedName: "maintenanceWindowOptionsName", + required: true, + type: { + name: "String" + } + } }; -export const usageName: OperationURLParameter = { - parameterPath: "usageName", +export const maintenanceWindowName: OperationQueryParameter = { + parameterPath: "maintenanceWindowName", mapper: { - serializedName: "usageName", + serializedName: "maintenanceWindowName", required: true, type: { name: "String" @@ -1361,10 +1230,15 @@ export const usageName: OperationURLParameter = { } }; -export const syncAgentName: OperationURLParameter = { - parameterPath: "syncAgentName", +export const parameters46: OperationParameter = { + parameterPath: "parameters", + mapper: MaintenanceWindowsMapper +}; + +export const policyName2: OperationURLParameter = { + parameterPath: "policyName", mapper: { - serializedName: "syncAgentName", + serializedName: "policyName", required: true, type: { name: "String" @@ -1372,15 +1246,20 @@ export const syncAgentName: OperationURLParameter = { } }; -export const parameters56: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", - mapper: SyncAgentMapper + mapper: ManagedBackupShortTermRetentionPolicyMapper }; -export const syncGroupName: OperationURLParameter = { - parameterPath: "syncGroupName", +export const parameters48: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseAdvancedThreatProtectionMapper +}; + +export const queryId: OperationURLParameter = { + parameterPath: "queryId", mapper: { - serializedName: "syncGroupName", + serializedName: "queryId", required: true, type: { name: "String" @@ -1388,133 +1267,127 @@ export const syncGroupName: OperationURLParameter = { } }; -export const startTime1: OperationQueryParameter = { - parameterPath: "startTime", +export const startTime: OperationQueryParameter = { + parameterPath: ["options", "startTime"], mapper: { serializedName: "startTime", - required: true, type: { name: "String" } } }; -export const endTime1: OperationQueryParameter = { - parameterPath: "endTime", +export const endTime: OperationQueryParameter = { + parameterPath: ["options", "endTime"], mapper: { serializedName: "endTime", - required: true, type: { name: "String" } } }; -export const typeParam: OperationQueryParameter = { - parameterPath: "typeParam", +export const interval: OperationQueryParameter = { + parameterPath: ["options", "interval"], mapper: { - serializedName: "type", - required: true, + serializedName: "interval", type: { name: "String" } } }; -export const continuationToken: OperationQueryParameter = { - parameterPath: ["options", "continuationToken"], +export const restoreDetailsName: OperationURLParameter = { + parameterPath: "restoreDetailsName", mapper: { - serializedName: "continuationToken", + serializedName: "restoreDetailsName", + required: true, type: { name: "String" } } }; -export const parameters57: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", - mapper: SyncGroupMapper + mapper: ManagedDatabaseSecurityAlertPolicyMapper }; -export const syncMemberName: OperationURLParameter = { - parameterPath: "syncMemberName", +export const count: OperationQueryParameter = { + parameterPath: ["options", "count"], mapper: { - serializedName: "syncMemberName", - required: true, + serializedName: "$count", type: { - name: "String" + name: "Boolean" } } }; -export const parameters58: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", - mapper: SyncMemberMapper + mapper: SensitivityLabelUpdateListMapper }; -export const timeZoneId: OperationURLParameter = { - parameterPath: "timeZoneId", +export const includeDisabledRecommendations: OperationQueryParameter = { + parameterPath: ["options", "includeDisabledRecommendations"], mapper: { - serializedName: "timeZoneId", - required: true, + serializedName: "includeDisabledRecommendations", type: { - name: "String" + name: "Boolean" } } }; -export const virtualNetworkRuleName: OperationURLParameter = { - parameterPath: "virtualNetworkRuleName", +export const sensitivityLabelSource: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", mapper: { - serializedName: "virtualNetworkRuleName", + serializedName: "sensitivityLabelSource", required: true, type: { - name: "String" + name: "Enum", + allowedValues: ["current", "recommended"] } } }; -export const parameters59: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", - mapper: VirtualNetworkRuleMapper + mapper: SensitivityLabelMapper }; -export const workloadGroupName: OperationURLParameter = { - parameterPath: "workloadGroupName", +export const sensitivityLabelSource1: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", mapper: { - serializedName: "workloadGroupName", - required: true, + defaultValue: "current", + isConstant: true, + serializedName: "sensitivityLabelSource", type: { name: "String" } } }; -export const workloadClassifierName: OperationURLParameter = { - parameterPath: "workloadClassifierName", +export const sensitivityLabelSource2: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", mapper: { - serializedName: "workloadClassifierName", - required: true, + defaultValue: "recommended", + isConstant: true, + serializedName: "sensitivityLabelSource", type: { name: "String" } } }; -export const parameters60: OperationParameter = { - parameterPath: "parameters", - mapper: WorkloadClassifierMapper -}; - -export const parameters61: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", - mapper: WorkloadGroupMapper + mapper: RecommendedSensitivityLabelUpdateListMapper }; -export const policyName3: OperationURLParameter = { - parameterPath: "policyName", +export const tdeName: OperationURLParameter = { + parameterPath: "tdeName", mapper: { - serializedName: "policyName", + serializedName: "tdeName", required: true, type: { name: "String" @@ -1522,27 +1395,45 @@ export const policyName3: OperationURLParameter = { } }; -export const apiVersion5: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2021-02-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } +export const parameters53: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedTransparentDataEncryptionMapper }; -export const parameters62: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", - mapper: BackupShortTermRetentionPolicyMapper + mapper: DatabaseVulnerabilityAssessmentRuleBaselineAutoGeneratedMapper }; -export const extensionName: OperationURLParameter = { - parameterPath: "extensionName", +export const parameters55: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseMapper +}; + +export const parameters56: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseUpdateMapper +}; + +export const parameters57: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseMoveDefinitionMapper +}; + +export const parameters58: OperationParameter = { + parameterPath: "parameters", + mapper: CompleteDatabaseRestoreDefinitionMapper +}; + +export const parameters59: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseStartMoveDefinitionMapper +}; + +export const administratorName: OperationURLParameter = { + parameterPath: "administratorName", mapper: { - serializedName: "extensionName", + serializedName: "administratorName", required: true, type: { name: "String" @@ -1550,15 +1441,20 @@ export const extensionName: OperationURLParameter = { } }; -export const parameters63: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseExtensionsMapper + mapper: ManagedInstanceAdministratorMapper }; -export const ledgerDigestUploads: OperationURLParameter = { - parameterPath: "ledgerDigestUploads", +export const parameters61: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceAdvancedThreatProtectionMapper +}; + +export const authenticationName: OperationURLParameter = { + parameterPath: "authenticationName", mapper: { - serializedName: "ledgerDigestUploads", + serializedName: "authenticationName", required: true, type: { name: "String" @@ -1566,15 +1462,15 @@ export const ledgerDigestUploads: OperationURLParameter = { } }; -export const parameters64: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", - mapper: LedgerDigestUploadsMapper + mapper: ManagedInstanceAzureADOnlyAuthenticationMapper }; -export const outboundRuleFqdn: OperationURLParameter = { - parameterPath: "outboundRuleFqdn", +export const dtcName: OperationURLParameter = { + parameterPath: "dtcName", mapper: { - serializedName: "outboundRuleFqdn", + serializedName: "dtcName", required: true, type: { name: "String" @@ -1582,30 +1478,36 @@ export const outboundRuleFqdn: OperationURLParameter = { } }; -export const parameters65: OperationParameter = { +export const parameters63: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceDtcMapper +}; + +export const parameters64: OperationParameter = { parameterPath: "parameters", - mapper: OutboundFirewallRuleMapper + mapper: ManagedInstanceEncryptionProtectorMapper }; -export const expandChildren: OperationQueryParameter = { - parameterPath: ["options", "expandChildren"], +export const keyName: OperationURLParameter = { + parameterPath: "keyName", mapper: { - serializedName: "expandChildren", + serializedName: "keyName", + required: true, type: { - name: "Boolean" + name: "String" } } }; -export const parameters66: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", - mapper: CopyLongTermRetentionBackupParametersMapper + mapper: ManagedInstanceKeyMapper }; -export const longTermRetentionServerName: OperationURLParameter = { - parameterPath: "longTermRetentionServerName", +export const policyName3: OperationURLParameter = { + parameterPath: "policyName", mapper: { - serializedName: "longTermRetentionServerName", + serializedName: "policyName", required: true, type: { name: "String" @@ -1613,10 +1515,15 @@ export const longTermRetentionServerName: OperationURLParameter = { } }; -export const longTermRetentionDatabaseName: OperationURLParameter = { - parameterPath: "longTermRetentionDatabaseName", +export const parameters66: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceLongTermRetentionPolicyMapper +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", mapper: { - serializedName: "longTermRetentionDatabaseName", + serializedName: "privateEndpointConnectionName", required: true, type: { name: "String" @@ -1624,10 +1531,15 @@ export const longTermRetentionDatabaseName: OperationURLParameter = { } }; -export const backupName: OperationURLParameter = { - parameterPath: "backupName", +export const parameters67: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstancePrivateEndpointConnectionMapper +}; + +export const groupName: OperationURLParameter = { + parameterPath: "groupName", mapper: { - serializedName: "backupName", + serializedName: "groupName", required: true, type: { name: "String" @@ -1635,75 +1547,70 @@ export const backupName: OperationURLParameter = { } }; -export const apiVersion6: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2021-05-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } +export const parameters68: OperationParameter = { + parameterPath: "parameters", + mapper: TdeCertificateMapper }; -export const parameters67: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", - mapper: UpdateLongTermRetentionBackupParametersMapper + mapper: ManagedInstanceVulnerabilityAssessmentMapper }; -export const onlyLatestPerDatabase: OperationQueryParameter = { - parameterPath: ["options", "onlyLatestPerDatabase"], +export const parameters70: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceMapper +}; + +export const parameters71: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceUpdateMapper +}; + +export const numberOfQueries: OperationQueryParameter = { + parameterPath: ["options", "numberOfQueries"], mapper: { - serializedName: "onlyLatestPerDatabase", + serializedName: "numberOfQueries", type: { - name: "Boolean" + name: "Number" } } }; -export const databaseState: OperationQueryParameter = { - parameterPath: ["options", "databaseState"], +export const databases: OperationQueryParameter = { + parameterPath: ["options", "databases"], mapper: { - serializedName: "databaseState", + serializedName: "databases", type: { name: "String" } } }; -export const connectionPolicyName: OperationURLParameter = { - parameterPath: "connectionPolicyName", +export const aggregationFunction: OperationQueryParameter = { + parameterPath: ["options", "aggregationFunction"], mapper: { - serializedName: "connectionPolicyName", - required: true, + serializedName: "aggregationFunction", type: { name: "String" } } }; -export const parameters68: OperationParameter = { - parameterPath: "parameters", - mapper: ServerConnectionPolicyMapper -}; - -export const apiVersion7: OperationQueryParameter = { - parameterPath: "apiVersion", +export const observationMetric: OperationQueryParameter = { + parameterPath: ["options", "observationMetric"], mapper: { - defaultValue: "2021-11-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "observationMetric", type: { name: "String" } } }; -export const distributedAvailabilityGroupName: OperationURLParameter = { - parameterPath: "distributedAvailabilityGroupName", +export const ledgerDigestUploads1: OperationURLParameter = { + parameterPath: "ledgerDigestUploads", mapper: { - serializedName: "distributedAvailabilityGroupName", + serializedName: "ledgerDigestUploads", required: true, type: { name: "String" @@ -1711,15 +1618,15 @@ export const distributedAvailabilityGroupName: OperationURLParameter = { } }; -export const parameters69: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", - mapper: DistributedAvailabilityGroupMapper + mapper: ManagedLedgerDigestUploadsMapper }; -export const certificateName: OperationURLParameter = { - parameterPath: "certificateName", +export const restorableDroppedDatabaseId: OperationURLParameter = { + parameterPath: "restorableDroppedDatabaseId", mapper: { - serializedName: "certificateName", + serializedName: "restorableDroppedDatabaseId", required: true, type: { name: "String" @@ -1727,20 +1634,10 @@ export const certificateName: OperationURLParameter = { } }; -export const parameters70: OperationParameter = { - parameterPath: "parameters", - mapper: ServerTrustCertificateMapper -}; - -export const parameters71: OperationParameter = { - parameterPath: "parameters", - mapper: IPv6FirewallRuleMapper -}; - -export const endpointType: OperationURLParameter = { - parameterPath: "endpointType", +export const dnsAliasName: OperationURLParameter = { + parameterPath: "dnsAliasName", mapper: { - serializedName: "endpointType", + serializedName: "dnsAliasName", required: true, type: { name: "String" @@ -1748,113 +1645,121 @@ export const endpointType: OperationURLParameter = { } }; -export const sensitivityLabelSource: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", +export const parameters73: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedServerDnsAliasCreationMapper +}; + +export const parameters74: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedServerDnsAliasAcquisitionMapper +}; + +export const securityAlertPolicyName1: OperationURLParameter = { + parameterPath: "securityAlertPolicyName", mapper: { - serializedName: "sensitivityLabelSource", + serializedName: "securityAlertPolicyName", required: true, type: { - name: "Enum", - allowedValues: ["current", "recommended"] + name: "String" } } }; -export const parameters72: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", - mapper: SensitivityLabelMapper + mapper: ManagedServerSecurityAlertPolicyMapper }; -export const sensitivityLabelSource1: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", +export const nspConfigName: OperationURLParameter = { + parameterPath: "nspConfigName", mapper: { - defaultValue: "current", - isConstant: true, - serializedName: "sensitivityLabelSource", + serializedName: "nspConfigName", + required: true, type: { name: "String" } } }; -export const sensitivityLabelSource2: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", +export const outboundRuleFqdn: OperationURLParameter = { + parameterPath: "outboundRuleFqdn", mapper: { - defaultValue: "recommended", - isConstant: true, - serializedName: "sensitivityLabelSource", + serializedName: "outboundRuleFqdn", + required: true, type: { name: "String" } } }; -export const count: OperationQueryParameter = { - parameterPath: ["options", "count"], +export const parameters76: OperationParameter = { + parameterPath: "parameters", + mapper: PrivateEndpointConnectionMapper +}; + +export const recoverableDatabaseName: OperationURLParameter = { + parameterPath: "recoverableDatabaseName", mapper: { - serializedName: "$count", + serializedName: "recoverableDatabaseName", + required: true, type: { - name: "Boolean" + name: "String" } } }; -export const parameters73: OperationParameter = { - parameterPath: "parameters", - mapper: SensitivityLabelUpdateListMapper -}; - -export const includeDisabledRecommendations: OperationQueryParameter = { - parameterPath: ["options", "includeDisabledRecommendations"], +export const linkId: OperationURLParameter = { + parameterPath: "linkId", mapper: { - serializedName: "includeDisabledRecommendations", + serializedName: "linkId", + required: true, type: { - name: "Boolean" + name: "String" } } }; -export const parameters74: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", - mapper: RecommendedSensitivityLabelUpdateListMapper + mapper: CreateDatabaseRestorePointDefinitionMapper }; -export const blobAuditingPolicyName: OperationURLParameter = { - parameterPath: "blobAuditingPolicyName", +export const restorePointName: OperationURLParameter = { + parameterPath: "restorePointName", mapper: { - defaultValue: "default", - isConstant: true, - serializedName: "blobAuditingPolicyName", + serializedName: "restorePointName", + required: true, type: { name: "String" } } }; -export const parameters75: OperationParameter = { +export const parameters78: OperationParameter = { parameterPath: "parameters", - mapper: ServerBlobAuditingPolicyMapper + mapper: ServerAdvancedThreatProtectionMapper }; -export const parameters76: OperationParameter = { +export const parameters79: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseBlobAuditingPolicyMapper + mapper: ServerAutomaticTuningMapper }; -export const parameters77: OperationParameter = { +export const parameters80: OperationParameter = { parameterPath: "parameters", - mapper: ExtendedDatabaseBlobAuditingPolicyMapper + mapper: ServerAzureADAdministratorMapper }; -export const parameters78: OperationParameter = { +export const parameters81: OperationParameter = { parameterPath: "parameters", - mapper: ExtendedServerBlobAuditingPolicyMapper + mapper: ServerAzureADOnlyAuthenticationMapper }; -export const advancedThreatProtectionName: OperationURLParameter = { - parameterPath: "advancedThreatProtectionName", +export const serverConfigurationOptionName: OperationURLParameter = { + parameterPath: "serverConfigurationOptionName", mapper: { - serializedName: "advancedThreatProtectionName", + serializedName: "serverConfigurationOptionName", required: true, type: { name: "String" @@ -1862,30 +1767,31 @@ export const advancedThreatProtectionName: OperationURLParameter = { } }; -export const parameters79: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseAdvancedThreatProtectionMapper -}; - -export const parameters80: OperationParameter = { +export const parameters82: OperationParameter = { parameterPath: "parameters", - mapper: ServerAdvancedThreatProtectionMapper + mapper: ServerConfigurationOptionMapper }; -export const parameters81: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedServerDnsAliasCreationMapper +export const connectionPolicyName: OperationURLParameter = { + parameterPath: "connectionPolicyName", + mapper: { + serializedName: "connectionPolicyName", + required: true, + type: { + name: "String" + } + } }; -export const parameters82: OperationParameter = { +export const parameters83: OperationParameter = { parameterPath: "parameters", - mapper: ManagedServerDnsAliasAcquisitionMapper + mapper: ServerConnectionPolicyMapper }; -export const baselineName1: OperationURLParameter = { - parameterPath: "baselineName", +export const devOpsAuditingSettingsName: OperationURLParameter = { + parameterPath: "devOpsAuditingSettingsName", mapper: { - serializedName: "baselineName", + serializedName: "devOpsAuditingSettingsName", required: true, type: { name: "String" @@ -1893,20 +1799,30 @@ export const baselineName1: OperationURLParameter = { } }; -export const parameters83: OperationParameter = { +export const parameters84: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper + mapper: ServerDevOpsAuditingSettingsMapper +}; + +export const parameters85: OperationParameter = { + parameterPath: "parameters", + mapper: ServerDnsAliasAcquisitionMapper +}; + +export const parameters86: OperationParameter = { + parameterPath: "parameters", + mapper: ServerKeyMapper }; -export const parameters84: OperationParameter = { +export const parameters87: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper + mapper: ServerSecurityAlertPolicyMapper }; -export const vulnerabilityAssessmentName1: OperationURLParameter = { - parameterPath: "vulnerabilityAssessmentName", +export const certificateName: OperationURLParameter = { + parameterPath: "certificateName", mapper: { - serializedName: "vulnerabilityAssessmentName", + serializedName: "certificateName", required: true, type: { name: "String" @@ -1914,21 +1830,15 @@ export const vulnerabilityAssessmentName1: OperationURLParameter = { } }; -export const scanResultId: OperationURLParameter = { - parameterPath: "scanResultId", - mapper: { - serializedName: "scanResultId", - required: true, - type: { - name: "String" - } - } +export const parameters88: OperationParameter = { + parameterPath: "parameters", + mapper: ServerTrustCertificateMapper }; -export const vulnerabilityAssessmentName2: OperationURLParameter = { - parameterPath: "vulnerabilityAssessmentName", +export const serverTrustGroupName: OperationURLParameter = { + parameterPath: "serverTrustGroupName", mapper: { - serializedName: "vulnerabilityAssessmentName", + serializedName: "serverTrustGroupName", required: true, type: { name: "String" @@ -1936,25 +1846,39 @@ export const vulnerabilityAssessmentName2: OperationURLParameter = { } }; -export const parameters85: OperationParameter = { +export const parameters89: OperationParameter = { parameterPath: "parameters", - mapper: ManagedDatabaseAdvancedThreatProtectionMapper + mapper: ServerTrustGroupMapper }; -export const parameters86: OperationParameter = { +export const parameters90: OperationParameter = { parameterPath: "parameters", - mapper: ManagedInstanceAdvancedThreatProtectionMapper + mapper: ServerVulnerabilityAssessmentMapper }; -export const linkId: OperationURLParameter = { - parameterPath: "linkId", - mapper: { - serializedName: "linkId", - required: true, - type: { - name: "String" - } - } +export const parameters91: OperationParameter = { + parameterPath: "parameters", + mapper: CheckNameAvailabilityRequestMapper +}; + +export const parameters92: OperationParameter = { + parameterPath: "parameters", + mapper: ServerMapper +}; + +export const parameters93: OperationParameter = { + parameterPath: "parameters", + mapper: ServerUpdateMapper +}; + +export const parameters94: OperationParameter = { + parameterPath: "parameters", + mapper: ImportNewDatabaseDefinitionMapper +}; + +export const parameters95: OperationParameter = { + parameterPath: "parameters", + mapper: SqlAgentConfigurationMapper }; export const systemDatabaseName: OperationQueryParameter = { @@ -1969,27 +1893,31 @@ export const systemDatabaseName: OperationQueryParameter = { } }; -export const parameters87: OperationParameter = { +export const parameters96: OperationParameter = { parameterPath: "parameters", mapper: SqlVulnerabilityAssessmentMapper }; -export const apiVersion8: OperationQueryParameter = { - parameterPath: "apiVersion", +export const startStopScheduleName: OperationURLParameter = { + parameterPath: "startStopScheduleName", mapper: { - defaultValue: "2022-05-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "startStopScheduleName", + required: true, type: { name: "String" } } }; -export const dtcName: OperationURLParameter = { - parameterPath: "dtcName", +export const parameters97: OperationParameter = { + parameterPath: "parameters", + mapper: StartStopManagedInstanceScheduleMapper +}; + +export const usageName: OperationURLParameter = { + parameterPath: "usageName", mapper: { - serializedName: "dtcName", + serializedName: "usageName", required: true, type: { name: "String" @@ -1997,15 +1925,10 @@ export const dtcName: OperationURLParameter = { } }; -export const parameters88: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceDtcMapper -}; - -export const virtualClusterName: OperationURLParameter = { - parameterPath: "virtualClusterName", +export const syncAgentName: OperationURLParameter = { + parameterPath: "syncAgentName", mapper: { - serializedName: "virtualClusterName", + serializedName: "syncAgentName", required: true, type: { name: "String" @@ -2013,20 +1936,15 @@ export const virtualClusterName: OperationURLParameter = { } }; -export const parameters89: OperationParameter = { - parameterPath: "parameters", - mapper: VirtualClusterUpdateMapper -}; - -export const parameters90: OperationParameter = { +export const parameters98: OperationParameter = { parameterPath: "parameters", - mapper: InstanceFailoverGroupMapper + mapper: SyncAgentMapper }; -export const restoreDetailsName: OperationURLParameter = { - parameterPath: "restoreDetailsName", +export const syncGroupName: OperationURLParameter = { + parameterPath: "syncGroupName", mapper: { - serializedName: "restoreDetailsName", + serializedName: "syncGroupName", required: true, type: { name: "String" @@ -2034,85 +1952,58 @@ export const restoreDetailsName: OperationURLParameter = { } }; -export const parameters91: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseMapper -}; - -export const parameters92: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseUpdateMapper -}; - -export const parameters93: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseMoveDefinitionMapper -}; - -export const parameters94: OperationParameter = { - parameterPath: "parameters", - mapper: CompleteDatabaseRestoreDefinitionMapper -}; - -export const parameters95: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseStartMoveDefinitionMapper -}; - -export const parameters96: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceMapper -}; - -export const parameters97: OperationParameter = { +export const parameters99: OperationParameter = { parameterPath: "parameters", - mapper: ManagedInstanceUpdateMapper + mapper: SyncGroupMapper }; -export const numberOfQueries: OperationQueryParameter = { - parameterPath: ["options", "numberOfQueries"], +export const startTime1: OperationQueryParameter = { + parameterPath: "startTime", mapper: { - serializedName: "numberOfQueries", + serializedName: "startTime", + required: true, type: { - name: "Number" + name: "String" } } }; -export const databases: OperationQueryParameter = { - parameterPath: ["options", "databases"], +export const endTime1: OperationQueryParameter = { + parameterPath: "endTime", mapper: { - serializedName: "databases", + serializedName: "endTime", + required: true, type: { name: "String" } } }; -export const aggregationFunction: OperationQueryParameter = { - parameterPath: ["options", "aggregationFunction"], +export const typeParam: OperationQueryParameter = { + parameterPath: "typeParam", mapper: { - serializedName: "aggregationFunction", + serializedName: "type", + required: true, type: { name: "String" } } }; -export const observationMetric: OperationQueryParameter = { - parameterPath: ["options", "observationMetric"], +export const continuationToken: OperationQueryParameter = { + parameterPath: ["options", "continuationToken"], mapper: { - serializedName: "observationMetric", + serializedName: "continuationToken", type: { name: "String" } } }; -export const ledgerDigestUploads1: OperationURLParameter = { - parameterPath: "ledgerDigestUploads", +export const syncMemberName: OperationURLParameter = { + parameterPath: "syncMemberName", mapper: { - serializedName: "ledgerDigestUploads", + serializedName: "syncMemberName", required: true, type: { name: "String" @@ -2120,15 +2011,15 @@ export const ledgerDigestUploads1: OperationURLParameter = { } }; -export const parameters98: OperationParameter = { +export const parameters100: OperationParameter = { parameterPath: "parameters", - mapper: ManagedLedgerDigestUploadsMapper + mapper: SyncMemberMapper }; -export const serverConfigurationOptionName: OperationURLParameter = { - parameterPath: "serverConfigurationOptionName", +export const timeZoneId: OperationURLParameter = { + parameterPath: "timeZoneId", mapper: { - serializedName: "serverConfigurationOptionName", + serializedName: "timeZoneId", required: true, type: { name: "String" @@ -2136,35 +2027,68 @@ export const serverConfigurationOptionName: OperationURLParameter = { } }; -export const parameters99: OperationParameter = { +export const parameters101: OperationParameter = { parameterPath: "parameters", - mapper: ServerConfigurationOptionMapper + mapper: LogicalDatabaseTransparentDataEncryptionMapper }; -export const parameters100: OperationParameter = { - parameterPath: "parameters", - mapper: CheckNameAvailabilityRequestMapper +export const expandChildren: OperationQueryParameter = { + parameterPath: ["options", "expandChildren"], + mapper: { + serializedName: "expandChildren", + type: { + name: "Boolean" + } + } }; -export const parameters101: OperationParameter = { - parameterPath: "parameters", - mapper: ServerMapper +export const virtualClusterName: OperationURLParameter = { + parameterPath: "virtualClusterName", + mapper: { + serializedName: "virtualClusterName", + required: true, + type: { + name: "String" + } + } }; export const parameters102: OperationParameter = { parameterPath: "parameters", - mapper: ServerUpdateMapper + mapper: VirtualClusterUpdateMapper +}; + +export const virtualNetworkRuleName: OperationURLParameter = { + parameterPath: "virtualNetworkRuleName", + mapper: { + serializedName: "virtualNetworkRuleName", + required: true, + type: { + name: "String" + } + } }; export const parameters103: OperationParameter = { parameterPath: "parameters", - mapper: ImportNewDatabaseDefinitionMapper + mapper: VirtualNetworkRuleMapper }; -export const startStopScheduleName: OperationURLParameter = { - parameterPath: "startStopScheduleName", +export const workloadGroupName: OperationURLParameter = { + parameterPath: "workloadGroupName", mapper: { - serializedName: "startStopScheduleName", + serializedName: "workloadGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const workloadClassifierName: OperationURLParameter = { + parameterPath: "workloadClassifierName", + mapper: { + serializedName: "workloadClassifierName", required: true, type: { name: "String" @@ -2174,10 +2098,10 @@ export const startStopScheduleName: OperationURLParameter = { export const parameters104: OperationParameter = { parameterPath: "parameters", - mapper: StartStopManagedInstanceScheduleMapper + mapper: WorkloadClassifierMapper }; export const parameters105: OperationParameter = { parameterPath: "parameters", - mapper: LogicalDatabaseTransparentDataEncryptionMapper + mapper: WorkloadGroupMapper }; diff --git a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts index 1b5a07be75a8..d13c6b8bd258 100644 --- a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts @@ -142,6 +142,26 @@ export class BackupShortTermRetentionPoliciesImpl } } + /** + * Gets a database's short term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: BackupShortTermRetentionPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -392,26 +412,6 @@ export class BackupShortTermRetentionPoliciesImpl return poller.pollUntilDone(); } - /** - * Gets a database's short term retention policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: BackupShortTermRetentionPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -437,6 +437,27 @@ export class BackupShortTermRetentionPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BackupShortTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", @@ -447,14 +468,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName3 + Parameters.subscriptionId, + Parameters.policyName ], headerParameters: [Parameters.accept], serializer @@ -478,17 +499,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters62, - queryParameters: [Parameters.apiVersion5], + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName3 + Parameters.subscriptionId, + Parameters.policyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -511,39 +532,18 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters62, - queryParameters: [Parameters.apiVersion5], + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName3 - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupShortTermRetentionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.policyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -557,10 +557,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/capabilities.ts b/sdk/sql/arm-sql/src/operations/capabilities.ts index fd1dde5eea32..86d6e90f97da 100644 --- a/sdk/sql/arm-sql/src/operations/capabilities.ts +++ b/sdk/sql/arm-sql/src/operations/capabilities.ts @@ -56,7 +56,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.include], + queryParameters: [Parameters.apiVersion, Parameters.include], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts b/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts index a1a6a0aa71e4..518459043c87 100644 --- a/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts @@ -12,11 +12,12 @@ import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { + DataMaskingPolicyName, + DataMaskingPoliciesGetOptionalParams, + DataMaskingPoliciesGetResponse, DataMaskingPolicy, DataMaskingPoliciesCreateOrUpdateOptionalParams, - DataMaskingPoliciesCreateOrUpdateResponse, - DataMaskingPoliciesGetOptionalParams, - DataMaskingPoliciesGetResponse + DataMaskingPoliciesCreateOrUpdateResponse } from "../models"; /** Class containing DataMaskingPolicies operations. */ @@ -32,91 +33,113 @@ export class DataMaskingPoliciesImpl implements DataMaskingPolicies { } /** - * Creates or updates a database data masking policy + * Gets the database data masking policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param parameters Parameters for creating or updating a data masking policy. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, - parameters: DataMaskingPolicy, - options?: DataMaskingPoliciesCreateOrUpdateOptionalParams - ): Promise { + dataMaskingPolicyName: DataMaskingPolicyName, + options?: DataMaskingPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, parameters, options }, - createOrUpdateOperationSpec + { + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + options + }, + getOperationSpec ); } /** - * Gets a database data masking policy. + * Creates or updates a database data masking policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. + * @param parameters Parameters for creating or updating a data masking policy. * @param options The options parameters. */ - get( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, - options?: DataMaskingPoliciesGetOptionalParams - ): Promise { + dataMaskingPolicyName: DataMaskingPolicyName, + parameters: DataMaskingPolicy, + options?: DataMaskingPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - getOperationSpec + { + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + parameters, + options + }, + createOrUpdateOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DataMaskingPolicy - } + }, + default: {} }, - requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.dataMaskingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}", - httpMethod: "GET", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.DataMaskingPolicy - } + }, + 201: { + bodyMapper: Mappers.DataMaskingPolicy + }, + default: {} }, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.dataMaskingPolicyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts b/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts index e2e56ad1fcbc..0c106d89ba41 100644 --- a/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts +++ b/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { DataMaskingRules } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -14,10 +15,13 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { DataMaskingRule, + DataMaskingPolicyName, + DataMaskingRulesListByDatabaseNextOptionalParams, DataMaskingRulesListByDatabaseOptionalParams, DataMaskingRulesListByDatabaseResponse, DataMaskingRulesCreateOrUpdateOptionalParams, - DataMaskingRulesCreateOrUpdateResponse + DataMaskingRulesCreateOrUpdateResponse, + DataMaskingRulesListByDatabaseNextResponse } from "../models"; /// @@ -39,18 +43,21 @@ export class DataMaskingRulesImpl implements DataMaskingRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking rule applies. * @param options The options parameters. */ public listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams ): PagedAsyncIterableIterator { const iter = this.listByDatabasePagingAll( resourceGroupName, serverName, databaseName, + dataMaskingPolicyName, options ); return { @@ -68,6 +75,7 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName, serverName, databaseName, + dataMaskingPolicyName, options, settings ); @@ -79,41 +87,94 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams, - _settings?: PageSettings + settings?: PageSettings ): AsyncIterableIterator { let result: DataMaskingRulesListByDatabaseResponse; - result = await this._listByDatabase( - resourceGroupName, - serverName, - databaseName, - options - ); - yield result.value || []; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDatabase( + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } } private async *listByDatabasePagingAll( resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams ): AsyncIterableIterator { for await (const page of this.listByDatabasePagingPage( resourceGroupName, serverName, databaseName, + dataMaskingPolicyName, options )) { yield* page; } } + /** + * Gets a list of database data masking rules. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking rule applies. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, + options?: DataMaskingRulesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + options + }, + listByDatabaseOperationSpec + ); + } + /** * Creates or updates a database data masking rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. * @param dataMaskingRuleName The name of the data masking rule. * @param parameters The required parameters for creating or updating a data masking rule. * @param options The options parameters. @@ -122,6 +183,7 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams @@ -131,6 +193,7 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName, serverName, databaseName, + dataMaskingPolicyName, dataMaskingRuleName, parameters, options @@ -140,28 +203,61 @@ export class DataMaskingRulesImpl implements DataMaskingRules { } /** - * Gets a list of database data masking rules. + * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking rule applies. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. * @param options The options parameters. */ - private _listByDatabase( + private _listByDatabaseNext( resourceGroupName: string, serverName: string, databaseName: string, - options?: DataMaskingRulesListByDatabaseOptionalParams - ): Promise { + dataMaskingPolicyName: DataMaskingPolicyName, + nextLink: string, + options?: DataMaskingRulesListByDatabaseNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + nextLink, + options + }, + listByDatabaseNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataMaskingRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.dataMaskingPolicyName + ], + headerParameters: [Parameters.accept], + serializer +}; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", @@ -172,39 +268,40 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, 201: { bodyMapper: Mappers.DataMaskingRule - } + }, + default: {} }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.dataMaskingPolicyName, Parameters.dataMaskingRuleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DataMaskingRuleListResult - } + }, + default: {} }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, + Parameters.nextLink, Parameters.dataMaskingPolicyName ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts index 868f7f14e0da..b4a9d8604fdb 100644 --- a/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts +++ b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts @@ -133,50 +133,50 @@ export class DataWarehouseUserActivitiesOperationsImpl } /** - * Gets the user activities of a data warehouse which includes running and suspended queries + * List the user activities of a data warehouse which includes running and suspended queries * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param dataWarehouseUserActivityName The activity name of the data warehouse. * @param options The options parameters. */ - get( + private _listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - dataWarehouseUserActivityName: DataWarehouseUserActivityName, - options?: DataWarehouseUserActivitiesGetOptionalParams - ): Promise { + options?: DataWarehouseUserActivitiesListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - dataWarehouseUserActivityName, - options - }, - getOperationSpec + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec ); } /** - * List the user activities of a data warehouse which includes running and suspended queries + * Gets the user activities of a data warehouse which includes running and suspended queries * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataWarehouseUserActivityName The activity name of the data warehouse. * @param options The options parameters. */ - private _listByDatabase( + get( resourceGroupName: string, serverName: string, databaseName: string, - options?: DataWarehouseUserActivitiesListByDatabaseOptionalParams - ): Promise { + dataWarehouseUserActivityName: DataWarehouseUserActivityName, + options?: DataWarehouseUserActivitiesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { + resourceGroupName, + serverName, + databaseName, + dataWarehouseUserActivityName, + options + }, + getOperationSpec ); } @@ -205,45 +205,45 @@ export class DataWarehouseUserActivitiesOperationsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataWarehouseUserActivities + bodyMapper: Mappers.DataWarehouseUserActivitiesListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.dataWarehouseUserActivityName + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataWarehouseUserActivitiesListResult + bodyMapper: Mappers.DataWarehouseUserActivities }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.dataWarehouseUserActivityName ], headerParameters: [Parameters.accept], serializer @@ -259,10 +259,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts index adb60be66288..d3e510f634cc 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts @@ -250,13 +250,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -271,13 +271,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advancedThreatProtectionName ], headerParameters: [Parameters.accept], @@ -296,17 +296,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters79, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advancedThreatProtectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -321,10 +321,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts b/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts index 97f58aea242b..0860f9bceae1 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts @@ -124,13 +124,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.expand, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -145,13 +145,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName ], headerParameters: [Parameters.accept], @@ -167,17 +167,17 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters11, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts index e0aec387a5be..ed8e54f01273 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts @@ -87,13 +87,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -108,16 +108,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters12, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters9, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts index a1c734062c7b..eab3f28f382e 100644 --- a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts @@ -230,13 +230,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -251,13 +251,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], headerParameters: [Parameters.accept], @@ -276,17 +276,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters76, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -301,10 +301,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseColumns.ts b/sdk/sql/arm-sql/src/operations/databaseColumns.ts index 65fc1842d8a5..84d8ed85226d 100644 --- a/sdk/sql/arm-sql/src/operations/databaseColumns.ts +++ b/sdk/sql/arm-sql/src/operations/databaseColumns.ts @@ -401,7 +401,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion, Parameters.schema, Parameters.table, Parameters.column, @@ -410,10 +410,10 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -428,13 +428,13 @@ const listByTableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName ], @@ -451,13 +451,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName @@ -476,10 +476,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -496,10 +496,10 @@ const listByTableNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.schemaName, Parameters.tableName diff --git a/sdk/sql/arm-sql/src/operations/databaseEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/databaseEncryptionProtectors.ts index c8b1b8da7d57..8e8c4cba2023 100644 --- a/sdk/sql/arm-sql/src/operations/databaseEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/databaseEncryptionProtectors.ts @@ -246,13 +246,13 @@ const revalidateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/encryptionProtector/{encryptionProtectorName}/revalidate", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], serializer @@ -262,13 +262,13 @@ const revertOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/encryptionProtector/{encryptionProtectorName}/revert", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts index 26d5acb9a9f9..c604a569696a 100644 --- a/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts @@ -139,6 +139,26 @@ export class DatabaseExtensionsOperationsImpl } } + /** + * List database extension. This will return an empty list as it is not supported. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseExtensionsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a database extension. This will return resource not found as it is not supported. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -162,7 +182,7 @@ export class DatabaseExtensionsOperationsImpl } /** - * Perform a database extension operation, like polybase import + * Perform a database extension operation, like database import, database export, or polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -247,7 +267,7 @@ export class DatabaseExtensionsOperationsImpl } /** - * Perform a database extension operation, like polybase import + * Perform a database extension operation, like database import, database export, or polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -275,26 +295,6 @@ export class DatabaseExtensionsOperationsImpl return poller.pollUntilDone(); } - /** - * List database extension. This will return an empty list as it is not supported. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabaseExtensionsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -320,18 +320,39 @@ export class DatabaseExtensionsOperationsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ImportExportExtensionsOperationListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}", httpMethod: "GET", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.extensionName ], serializer @@ -355,41 +376,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters63, - queryParameters: [Parameters.apiVersion5], + requestBody: Parameters.parameters10, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.extensionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ImportExportExtensionsOperationListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -401,10 +401,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseOperations.ts b/sdk/sql/arm-sql/src/operations/databaseOperations.ts index 29911abba47c..be610e7db06c 100644 --- a/sdk/sql/arm-sql/src/operations/databaseOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseOperations.ts @@ -130,44 +130,44 @@ export class DatabaseOperationsImpl implements DatabaseOperations { } /** - * Cancels the asynchronous operation on the database. + * Gets a list of operations performed on the database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param operationId The operation identifier. * @param options The options parameters. */ - cancel( + private _listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - operationId: string, - options?: DatabaseOperationsCancelOptionalParams - ): Promise { + options?: DatabaseOperationsListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, operationId, options }, - cancelOperationSpec + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec ); } /** - * Gets a list of operations performed on the database. + * Cancels the asynchronous operation on the database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param operationId The operation identifier. * @param options The options parameters. */ - private _listByDatabase( + cancel( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabaseOperationsListByDatabaseOptionalParams - ): Promise { + operationId: string, + options?: DatabaseOperationsCancelOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, operationId, options }, + cancelOperationSpec ); } @@ -196,22 +196,6 @@ export class DatabaseOperationsImpl implements DatabaseOperations { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations/{operationId}/cancel", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.operationId - ], - serializer -}; const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations", @@ -222,17 +206,33 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; +const cancelOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations/{operationId}/cancel", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.operationId + ], + serializer +}; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -244,10 +244,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts b/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts index ee1a5562868f..7af0c2536f4d 100644 --- a/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts +++ b/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts @@ -141,13 +141,13 @@ const listByDatabaseAdvisorOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName ], headerParameters: [Parameters.accept], @@ -163,13 +163,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName, Parameters.recommendedActionName ], @@ -186,18 +186,18 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters13, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters11, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName, Parameters.recommendedActionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/databaseSchemas.ts b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts index 8089e0aeec4c..03a0a595fe41 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSchemas.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts @@ -207,13 +207,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -228,13 +228,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName ], headerParameters: [Parameters.accept], @@ -251,10 +251,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts index cda02b5ed2cb..95bbe8d0aa5e 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts @@ -134,6 +134,26 @@ export class DatabaseSecurityAlertPoliciesImpl } } + /** + * Gets a list of database's security alert policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a database's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -193,26 +213,6 @@ export class DatabaseSecurityAlertPoliciesImpl ); } - /** - * Gets a list of database's security alert policies. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the security alert policy is defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -238,74 +238,74 @@ export class DatabaseSecurityAlertPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabaseSecurityAlertPolicy + bodyMapper: Mappers.DatabaseSecurityAlertListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.securityAlertPolicyName + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DatabaseSecurityAlertPolicy }, - 201: { - bodyMapper: Mappers.DatabaseSecurityAlertPolicy - }, default: {} }, - requestBody: Parameters.parameters14, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.securityAlertPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DatabaseSecurityAlertListResult + bodyMapper: Mappers.DatabaseSecurityAlertPolicy + }, + 201: { + bodyMapper: Mappers.DatabaseSecurityAlertPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters12, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.securityAlertPolicyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -319,10 +319,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts index 09d01ddbaf96..653ba8906e1f 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts @@ -290,13 +290,13 @@ const listBySqlVulnerabilityAssessmentOperationSpec: coreClient.OperationSpec = }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -312,15 +312,15 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer @@ -335,18 +335,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters83, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters13, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -362,10 +362,10 @@ const listBySqlVulnerabilityAssessmentNextOperationSpec: coreClient.OperationSpe }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts index c88c4fcc558b..6c4013d665fa 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts @@ -143,13 +143,13 @@ const executeOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/initiateScan", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts index 01a4dbdfcb36..348a7705bb06 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts @@ -347,15 +347,15 @@ const listByBaselineOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer @@ -370,16 +370,16 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], headerParameters: [Parameters.accept], serializer @@ -394,19 +394,19 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters84, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -415,16 +415,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules/{ruleId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], serializer }; @@ -440,13 +440,13 @@ const listByBaselineNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts index 0dbff42f30d0..d770a631ea1e 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts @@ -264,15 +264,15 @@ const listByScanOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.scanId, - Parameters.vulnerabilityAssessmentName1 + Parameters.subscriptionId, + Parameters.vulnerabilityAssessmentName1, + Parameters.scanId ], headerParameters: [Parameters.accept], serializer @@ -287,15 +287,15 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.scanId, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName1, + Parameters.scanId, Parameters.scanResultId ], headerParameters: [Parameters.accept], @@ -312,13 +312,13 @@ const listByScanNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.scanId, - Parameters.vulnerabilityAssessmentName1 + Parameters.vulnerabilityAssessmentName1, + Parameters.scanId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts index ae32a69202d0..db659f42801a 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts @@ -249,13 +249,13 @@ const listBySqlVulnerabilityAssessmentsOperationSpec: coreClient.OperationSpec = }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -271,13 +271,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId ], @@ -295,10 +295,10 @@ const listBySqlVulnerabilityAssessmentsNextOperationSpec: coreClient.OperationSp }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts index 30da0834319b..91b462932dd6 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts @@ -219,13 +219,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -240,13 +240,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName2 ], headerParameters: [Parameters.accept], @@ -263,10 +263,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseTables.ts b/sdk/sql/arm-sql/src/operations/databaseTables.ts index cafc9cb32cd6..aae755599b60 100644 --- a/sdk/sql/arm-sql/src/operations/databaseTables.ts +++ b/sdk/sql/arm-sql/src/operations/databaseTables.ts @@ -236,13 +236,13 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName ], headerParameters: [Parameters.accept], @@ -258,13 +258,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName ], @@ -282,10 +282,10 @@ const listBySchemaNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.schemaName ], diff --git a/sdk/sql/arm-sql/src/operations/databaseUsages.ts b/sdk/sql/arm-sql/src/operations/databaseUsages.ts index f08ec262d533..04242714040a 100644 --- a/sdk/sql/arm-sql/src/operations/databaseUsages.ts +++ b/sdk/sql/arm-sql/src/operations/databaseUsages.ts @@ -183,13 +183,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -205,10 +205,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts index e2c61f999170..c629a817a638 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts @@ -161,16 +161,16 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName + Parameters.baselineName1 ], headerParameters: [Parameters.accept], serializer @@ -186,18 +186,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { default: {} }, requestBody: Parameters.parameters15, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName + Parameters.baselineName1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -206,16 +206,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName + Parameters.baselineName1 ], serializer }; diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts index aa6a38eecfd7..ef4062d1f9cb 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts @@ -25,11 +25,11 @@ import { DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams, DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams, DatabaseVulnerabilityAssessmentScansListByDatabaseResponse, - DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, DatabaseVulnerabilityAssessmentScansGetOptionalParams, DatabaseVulnerabilityAssessmentScansGetResponse, DatabaseVulnerabilityAssessmentScansExportOptionalParams, DatabaseVulnerabilityAssessmentScansExportResponse, + DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse } from "../models"; @@ -150,6 +150,96 @@ export class DatabaseVulnerabilityAssessmentScansImpl } } + /** + * Lists the vulnerability assessment scans of a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + }, + listByDatabaseOperationSpec + ); + } + + /** + * Gets a vulnerability assessment scan record of a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: DatabaseVulnerabilityAssessmentScansGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + getOperationSpec + ); + } + + /** + * Convert an existing scan result to a human readable format. If already exists nothing happens + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the scanned database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id. + * @param options The options parameters. + */ + export( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + exportOperationSpec + ); + } + /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -256,96 +346,6 @@ export class DatabaseVulnerabilityAssessmentScansImpl return poller.pollUntilDone(); } - /** - * Lists the vulnerability assessment scans of a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - vulnerabilityAssessmentName, - options - }, - listByDatabaseOperationSpec - ); - } - - /** - * Gets a vulnerability assessment scan record of a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - scanId: string, - options?: DatabaseVulnerabilityAssessmentScansGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - vulnerabilityAssessmentName, - scanId, - options - }, - getOperationSpec - ); - } - - /** - * Convert an existing scan result to a human readable format. If already exists nothing happens - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the scanned database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id. - * @param options The options parameters. - */ - export( - resourceGroupName: string, - serverName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - scanId: string, - options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - vulnerabilityAssessmentName, - scanId, - options - }, - exportOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -380,23 +380,6 @@ export class DatabaseVulnerabilityAssessmentScansImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const initiateScanOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.scanId - ], - serializer -}; const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", @@ -407,13 +390,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -429,13 +412,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId ], @@ -455,19 +438,36 @@ const exportOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId ], headerParameters: [Parameters.accept], serializer }; +const initiateScanOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.vulnerabilityAssessmentName, + Parameters.scanId + ], + serializer +}; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -479,10 +479,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts index 7e3d25662531..85bab17abfc8 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts @@ -136,6 +136,27 @@ export class DatabaseVulnerabilityAssessmentsImpl } } + /** + * Lists the vulnerability assessment policies associated with a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the vulnerability assessment policies are + * defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets the database's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -223,27 +244,6 @@ export class DatabaseVulnerabilityAssessmentsImpl ); } - /** - * Lists the vulnerability assessment policies associated with a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the vulnerability assessment policies are - * defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -270,6 +270,27 @@ export class DatabaseVulnerabilityAssessmentsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", @@ -280,13 +301,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -306,16 +327,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { default: {} }, requestBody: Parameters.parameters16, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -324,36 +345,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.vulnerabilityAssessmentName - ], - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.accept], serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -367,10 +367,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databases.ts b/sdk/sql/arm-sql/src/operations/databases.ts index a4964281765f..21969882ee6a 100644 --- a/sdk/sql/arm-sql/src/operations/databases.ts +++ b/sdk/sql/arm-sql/src/operations/databases.ts @@ -20,12 +20,6 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { - Metric, - DatabasesListMetricsOptionalParams, - DatabasesListMetricsResponse, - MetricDefinition, - DatabasesListMetricDefinitionsOptionalParams, - DatabasesListMetricDefinitionsResponse, Database, DatabasesListByServerNextOptionalParams, DatabasesListByServerOptionalParams, @@ -76,164 +70,6 @@ export class DatabasesImpl implements Databases { this.client = client; } - /** - * Returns database metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - public listMetrics( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listMetricsPagingAll( - resourceGroupName, - serverName, - databaseName, - filter, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listMetricsPagingPage( - resourceGroupName, - serverName, - databaseName, - filter, - options, - settings - ); - } - }; - } - - private async *listMetricsPagingPage( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: DatabasesListMetricsResponse; - result = await this._listMetrics( - resourceGroupName, - serverName, - databaseName, - filter, - options - ); - yield result.value || []; - } - - private async *listMetricsPagingAll( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listMetricsPagingPage( - resourceGroupName, - serverName, - databaseName, - filter, - options - )) { - yield* page; - } - } - - /** - * Returns database metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - public listMetricDefinitions( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listMetricDefinitionsPagingAll( - resourceGroupName, - serverName, - databaseName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listMetricDefinitionsPagingPage( - resourceGroupName, - serverName, - databaseName, - options, - settings - ); - } - }; - } - - private async *listMetricDefinitionsPagingPage( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: DatabasesListMetricDefinitionsResponse; - result = await this._listMetricDefinitions( - resourceGroupName, - serverName, - databaseName, - options - ); - yield result.value || []; - } - - private async *listMetricDefinitionsPagingAll( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listMetricDefinitionsPagingPage( - resourceGroupName, - serverName, - databaseName, - options - )) { - yield* page; - } - } - /** * Gets a list of databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -494,48 +330,6 @@ export class DatabasesImpl implements Databases { } } - /** - * Returns database metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - private _listMetrics( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, filter, options }, - listMetricsOperationSpec - ); - } - - /** - * Returns database metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listMetricDefinitions( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listMetricDefinitionsOperationSpec - ); - } - /** * Gets a list of databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -1596,46 +1390,6 @@ export class DatabasesImpl implements Databases { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listMetricsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/metrics", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetricListResult - } - }, - queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listMetricDefinitionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/metricDefinitions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetricDefinitionListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases", @@ -1646,12 +1400,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.skipToken, Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1667,16 +1421,16 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion, Parameters.expand, - Parameters.filter1 + Parameters.filter ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1700,16 +1454,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters3, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1718,13 +1472,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], serializer }; @@ -1747,16 +1501,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters4, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters18, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1779,16 +1533,16 @@ const exportOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters5, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters19, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1797,13 +1551,13 @@ const failoverOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.replicaType], + queryParameters: [Parameters.apiVersion, Parameters.replicaType], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], serializer }; @@ -1826,16 +1580,16 @@ const importOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1844,14 +1598,14 @@ const renameOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move", httpMethod: "POST", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters7, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", @@ -1876,13 +1630,13 @@ const pauseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1906,13 +1660,13 @@ const resumeOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1922,13 +1676,13 @@ const upgradeDataWarehouseOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], serializer }; @@ -1942,12 +1696,12 @@ const listByElasticPoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], headerParameters: [Parameters.accept], @@ -1963,12 +1717,12 @@ const listInaccessibleByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1984,9 +1738,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -2003,11 +1757,11 @@ const listByElasticPoolNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.elasticPoolName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.elasticPoolName ], headerParameters: [Parameters.accept], serializer @@ -2023,9 +1777,9 @@ const listInaccessibleByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/deletedServers.ts b/sdk/sql/arm-sql/src/operations/deletedServers.ts index 94fad79d6c71..2dad85dfb2a7 100644 --- a/sdk/sql/arm-sql/src/operations/deletedServers.ts +++ b/sdk/sql/arm-sql/src/operations/deletedServers.ts @@ -178,34 +178,34 @@ export class DeletedServersImpl implements DeletedServers { } /** - * Gets a deleted server. + * Gets a list of deleted servers for a location. * @param locationName The name of the region where the resource is located. - * @param deletedServerName The name of the deleted server. * @param options The options parameters. */ - get( + private _listByLocation( locationName: string, - deletedServerName: string, - options?: DeletedServersGetOptionalParams - ): Promise { + options?: DeletedServersListByLocationOptionalParams + ): Promise { return this.client.sendOperationRequest( - { locationName, deletedServerName, options }, - getOperationSpec + { locationName, options }, + listByLocationOperationSpec ); } /** - * Gets a list of deleted servers for a location. + * Gets a deleted server. * @param locationName The name of the region where the resource is located. + * @param deletedServerName The name of the deleted server. * @param options The options parameters. */ - private _listByLocation( + get( locationName: string, - options?: DeletedServersListByLocationOptionalParams - ): Promise { + deletedServerName: string, + options?: DeletedServersGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec + { locationName, deletedServerName, options }, + getOperationSpec ); } @@ -344,46 +344,46 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const listByLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServer + bodyMapper: Mappers.DeletedServerListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName, - Parameters.deletedServerName + Parameters.locationName ], headerParameters: [Parameters.accept], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServerListResult + bodyMapper: Mappers.DeletedServer }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, + Parameters.deletedServerName ], headerParameters: [Parameters.accept], serializer @@ -407,7 +407,7 @@ const recoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts b/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts index d35fb658b978..b244b4767ea6 100644 --- a/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts +++ b/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts @@ -31,6 +31,9 @@ import { DistributedAvailabilityGroupsDeleteOptionalParams, DistributedAvailabilityGroupsUpdateOptionalParams, DistributedAvailabilityGroupsUpdateResponse, + DistributedAvailabilityGroupSetRole, + DistributedAvailabilityGroupsSetRoleOptionalParams, + DistributedAvailabilityGroupsSetRoleResponse, DistributedAvailabilityGroupsListByInstanceNextResponse } from "../models"; @@ -486,6 +489,114 @@ export class DistributedAvailabilityGroupsImpl return poller.pollUntilDone(); } + /** + * Sets the role for managed instance in a distributed availability group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group set role request parameters. + * @param options The options parameters. + */ + async beginSetRole( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroupSetRole, + options?: DistributedAvailabilityGroupsSetRoleOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DistributedAvailabilityGroupsSetRoleResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + }, + spec: setRoleOperationSpec + }); + const poller = await createHttpPoller< + DistributedAvailabilityGroupsSetRoleResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Sets the role for managed instance in a distributed availability group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group set role request parameters. + * @param options The options parameters. + */ + async beginSetRoleAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroupSetRole, + options?: DistributedAvailabilityGroupsSetRoleOptionalParams + ): Promise { + const poller = await this.beginSetRole( + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** * ListByInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -519,11 +630,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -539,11 +650,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], @@ -569,16 +680,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters69, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -587,11 +698,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], @@ -616,16 +727,48 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters69, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.distributedAvailabilityGroupName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const setRoleOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}/setRole", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 201: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 202: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 204: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + default: {} + }, + requestBody: Parameters.parameters23, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -640,8 +783,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts b/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts deleted file mode 100644 index 2f5362f3f0f2..000000000000 --- a/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { ElasticPoolActivities } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClient } from "../sqlManagementClient"; -import { - ElasticPoolActivity, - ElasticPoolActivitiesListByElasticPoolOptionalParams, - ElasticPoolActivitiesListByElasticPoolResponse -} from "../models"; - -/// -/** Class containing ElasticPoolActivities operations. */ -export class ElasticPoolActivitiesImpl implements ElasticPoolActivities { - private readonly client: SqlManagementClient; - - /** - * Initialize a new instance of the class ElasticPoolActivities class. - * @param client Reference to the service client - */ - constructor(client: SqlManagementClient) { - this.client = client; - } - - /** - * Returns elastic pool activities. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool for which to get the current activity. - * @param options The options parameters. - */ - public listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByElasticPoolPagingAll( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByElasticPoolPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options, - settings - ); - } - }; - } - - private async *listByElasticPoolPagingPage( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ElasticPoolActivitiesListByElasticPoolResponse; - result = await this._listByElasticPool( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - yield result.value || []; - } - - private async *listByElasticPoolPagingAll( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByElasticPoolPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options - )) { - yield* page; - } - } - - /** - * Returns elastic pool activities. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool for which to get the current activity. - * @param options The options parameters. - */ - private _listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listByElasticPoolOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByElasticPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolActivity", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolActivityListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts b/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts deleted file mode 100644 index 2601e5cf7795..000000000000 --- a/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { ElasticPoolDatabaseActivities } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClient } from "../sqlManagementClient"; -import { - ElasticPoolDatabaseActivity, - ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams, - ElasticPoolDatabaseActivitiesListByElasticPoolResponse -} from "../models"; - -/// -/** Class containing ElasticPoolDatabaseActivities operations. */ -export class ElasticPoolDatabaseActivitiesImpl - implements ElasticPoolDatabaseActivities { - private readonly client: SqlManagementClient; - - /** - * Initialize a new instance of the class ElasticPoolDatabaseActivities class. - * @param client Reference to the service client - */ - constructor(client: SqlManagementClient) { - this.client = client; - } - - /** - * Returns activity on databases inside of an elastic pool. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - public listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByElasticPoolPagingAll( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByElasticPoolPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options, - settings - ); - } - }; - } - - private async *listByElasticPoolPagingPage( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ElasticPoolDatabaseActivitiesListByElasticPoolResponse; - result = await this._listByElasticPool( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - yield result.value || []; - } - - private async *listByElasticPoolPagingAll( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByElasticPoolPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options - )) { - yield* page; - } - } - - /** - * Returns activity on databases inside of an elastic pool. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - private _listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listByElasticPoolOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByElasticPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolDatabaseActivity", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolDatabaseActivityListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts index 4f6b0d8c0369..3da77036d56f 100644 --- a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts +++ b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts @@ -130,44 +130,44 @@ export class ElasticPoolOperationsImpl implements ElasticPoolOperations { } /** - * Cancels the asynchronous operation on the elastic pool. + * Gets a list of operations performed on the elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName - * @param operationId The operation identifier. * @param options The options parameters. */ - cancel( + private _listByElasticPool( resourceGroupName: string, serverName: string, elasticPoolName: string, - operationId: string, - options?: ElasticPoolOperationsCancelOptionalParams - ): Promise { + options?: ElasticPoolOperationsListByElasticPoolOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, operationId, options }, - cancelOperationSpec + { resourceGroupName, serverName, elasticPoolName, options }, + listByElasticPoolOperationSpec ); } /** - * Gets a list of operations performed on the elastic pool. + * Cancels the asynchronous operation on the elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName + * @param operationId The operation identifier. * @param options The options parameters. */ - private _listByElasticPool( + cancel( resourceGroupName: string, serverName: string, elasticPoolName: string, - options?: ElasticPoolOperationsListByElasticPoolOptionalParams - ): Promise { + operationId: string, + options?: ElasticPoolOperationsCancelOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listByElasticPoolOperationSpec + { resourceGroupName, serverName, elasticPoolName, operationId, options }, + cancelOperationSpec ); } @@ -196,22 +196,6 @@ export class ElasticPoolOperationsImpl implements ElasticPoolOperations { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations/{operationId}/cancel", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName, - Parameters.operationId - ], - serializer -}; const listByElasticPoolOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations", @@ -222,17 +206,33 @@ const listByElasticPoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], headerParameters: [Parameters.accept], serializer }; +const cancelOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations/{operationId}/cancel", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.operationId, + Parameters.elasticPoolName + ], + serializer +}; const listByElasticPoolNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -244,11 +244,11 @@ const listByElasticPoolNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.elasticPoolName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.elasticPoolName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/elasticPools.ts b/sdk/sql/arm-sql/src/operations/elasticPools.ts index 0f233ee3c798..f53f4b5a0892 100644 --- a/sdk/sql/arm-sql/src/operations/elasticPools.ts +++ b/sdk/sql/arm-sql/src/operations/elasticPools.ts @@ -20,12 +20,6 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { - Metric, - ElasticPoolsListMetricsOptionalParams, - ElasticPoolsListMetricsResponse, - MetricDefinition, - ElasticPoolsListMetricDefinitionsOptionalParams, - ElasticPoolsListMetricDefinitionsResponse, ElasticPool, ElasticPoolsListByServerNextOptionalParams, ElasticPoolsListByServerOptionalParams, @@ -55,164 +49,6 @@ export class ElasticPoolsImpl implements ElasticPools { this.client = client; } - /** - * Returns elastic pool metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - public listMetrics( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listMetricsPagingAll( - resourceGroupName, - serverName, - elasticPoolName, - filter, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listMetricsPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - filter, - options, - settings - ); - } - }; - } - - private async *listMetricsPagingPage( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ElasticPoolsListMetricsResponse; - result = await this._listMetrics( - resourceGroupName, - serverName, - elasticPoolName, - filter, - options - ); - yield result.value || []; - } - - private async *listMetricsPagingAll( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listMetricsPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - filter, - options - )) { - yield* page; - } - } - - /** - * Returns elastic pool metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - public listMetricDefinitions( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listMetricDefinitionsPagingAll( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listMetricDefinitionsPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options, - settings - ); - } - }; - } - - private async *listMetricDefinitionsPagingPage( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ElasticPoolsListMetricDefinitionsResponse; - result = await this._listMetricDefinitions( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - yield result.value || []; - } - - private async *listMetricDefinitionsPagingAll( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listMetricDefinitionsPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options - )) { - yield* page; - } - } - /** * Gets all elastic pools in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -294,48 +130,6 @@ export class ElasticPoolsImpl implements ElasticPools { } } - /** - * Returns elastic pool metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - private _listMetrics( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, filter, options }, - listMetricsOperationSpec - ); - } - - /** - * Returns elastic pool metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - private _listMetricDefinitions( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listMetricDefinitionsOperationSpec - ); - } - /** * Gets all elastic pools in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -450,7 +244,8 @@ export class ElasticPoolsImpl implements ElasticPools { OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -542,7 +337,8 @@ export class ElasticPoolsImpl implements ElasticPools { }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -647,7 +443,8 @@ export class ElasticPoolsImpl implements ElasticPools { OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -791,46 +588,6 @@ export class ElasticPoolsImpl implements ElasticPools { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listMetricsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metrics", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetricListResult - } - }, - queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listMetricDefinitionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metricDefinitions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetricDefinitionListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools", @@ -841,12 +598,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.skip, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -861,12 +618,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], headerParameters: [Parameters.accept], @@ -891,16 +648,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters8, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -909,12 +666,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], serializer @@ -938,16 +695,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters9, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters25, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -956,12 +713,12 @@ const failoverOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/failover", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], serializer @@ -977,9 +734,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts index 922035eec174..8464dde90d10 100644 --- a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts @@ -395,12 +395,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -415,12 +415,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], headerParameters: [Parameters.accept], @@ -445,16 +445,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters17, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters26, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -463,12 +463,12 @@ const revalidateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}/revalidate", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], serializer @@ -484,9 +484,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/endpointCertificates.ts b/sdk/sql/arm-sql/src/operations/endpointCertificates.ts index 73ab43fbaccc..c0aaf8145289 100644 --- a/sdk/sql/arm-sql/src/operations/endpointCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/endpointCertificates.ts @@ -192,11 +192,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -212,11 +212,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.endpointType ], @@ -234,8 +234,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts index d5174e078181..51e241f71377 100644 --- a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts @@ -230,13 +230,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -251,13 +251,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], headerParameters: [Parameters.accept], @@ -276,17 +276,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters77, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -301,10 +301,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts index a4d65fdb0d5e..3c0bc87773c6 100644 --- a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts @@ -292,12 +292,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -312,12 +312,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], headerParameters: [Parameters.accept], @@ -342,16 +342,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters78, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -366,9 +366,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/failoverGroups.ts b/sdk/sql/arm-sql/src/operations/failoverGroups.ts index 977fa86d19d9..b2093ff8a4f7 100644 --- a/sdk/sql/arm-sql/src/operations/failoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/failoverGroups.ts @@ -36,6 +36,8 @@ import { FailoverGroupsFailoverResponse, FailoverGroupsForceFailoverAllowDataLossOptionalParams, FailoverGroupsForceFailoverAllowDataLossResponse, + FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams, + FailoverGroupsTryPlannedBeforeForcedFailoverResponse, FailoverGroupsListByServerNextResponse } from "../models"; @@ -133,6 +135,24 @@ export class FailoverGroupsImpl implements FailoverGroups { } } + /** + * Lists the failover groups in a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server containing the failover group. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: FailoverGroupsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -458,24 +478,6 @@ export class FailoverGroupsImpl implements FailoverGroups { return poller.pollUntilDone(); } - /** - * Lists the failover groups in a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server containing the failover group. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: FailoverGroupsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * Fails over from the current primary server to this server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -670,6 +672,106 @@ export class FailoverGroupsImpl implements FailoverGroups { return poller.pollUntilDone(); } + /** + * Fails over from the current primary server to this server. This operation tries planned before + * forced failover but might still result in data loss. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param failoverGroupName The name of the failover group. + * @param options The options parameters. + */ + async beginTryPlannedBeforeForcedFailover( + resourceGroupName: string, + serverName: string, + failoverGroupName: string, + options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FailoverGroupsTryPlannedBeforeForcedFailoverResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serverName, failoverGroupName, options }, + spec: tryPlannedBeforeForcedFailoverOperationSpec + }); + const poller = await createHttpPoller< + FailoverGroupsTryPlannedBeforeForcedFailoverResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Fails over from the current primary server to this server. This operation tries planned before + * forced failover but might still result in data loss. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param failoverGroupName The name of the failover group. + * @param options The options parameters. + */ + async beginTryPlannedBeforeForcedFailoverAndWait( + resourceGroupName: string, + serverName: string, + failoverGroupName: string, + options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + ): Promise { + const poller = await this.beginTryPlannedBeforeForcedFailover( + resourceGroupName, + serverName, + failoverGroupName, + options + ); + return poller.pollUntilDone(); + } + /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -693,6 +795,26 @@ export class FailoverGroupsImpl implements FailoverGroups { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FailoverGroupListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", @@ -703,12 +825,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], headerParameters: [Parameters.accept], @@ -733,16 +855,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters18, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters27, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -751,12 +873,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], serializer @@ -780,42 +902,52 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters19, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters28, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { +const failoverOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/failover", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.FailoverGroupListResult + bodyMapper: Mappers.FailoverGroup + }, + 201: { + bodyMapper: Mappers.FailoverGroup + }, + 202: { + bodyMapper: Mappers.FailoverGroup + }, + 204: { + bodyMapper: Mappers.FailoverGroup }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId, + Parameters.failoverGroupName ], headerParameters: [Parameters.accept], serializer }; -const failoverOperationSpec: coreClient.OperationSpec = { +const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/failover", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/forceFailoverAllowDataLoss", httpMethod: "POST", responses: { 200: { @@ -832,20 +964,20 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], headerParameters: [Parameters.accept], serializer }; -const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { +const tryPlannedBeforeForcedFailoverOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/forceFailoverAllowDataLoss", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/tryPlannedBeforeForcedFailover", httpMethod: "POST", responses: { 200: { @@ -862,13 +994,13 @@ const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName, - Parameters.failoverGroupName + Parameters.subscriptionId, + Parameters.serverName1, + Parameters.failoverGroupName1 ], headerParameters: [Parameters.accept], serializer @@ -884,9 +1016,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/firewallRules.ts b/sdk/sql/arm-sql/src/operations/firewallRules.ts index 834d1dd674bf..5855fecd3064 100644 --- a/sdk/sql/arm-sql/src/operations/firewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/firewallRules.ts @@ -18,14 +18,14 @@ import { FirewallRulesListByServerNextOptionalParams, FirewallRulesListByServerOptionalParams, FirewallRulesListByServerResponse, + FirewallRuleList, + FirewallRulesReplaceOptionalParams, + FirewallRulesReplaceResponse, FirewallRulesGetOptionalParams, FirewallRulesGetResponse, FirewallRulesCreateOrUpdateOptionalParams, FirewallRulesCreateOrUpdateResponse, FirewallRulesDeleteOptionalParams, - FirewallRuleList, - FirewallRulesReplaceOptionalParams, - FirewallRulesReplaceResponse, FirewallRulesListByServerNextResponse } from "../models"; @@ -124,102 +124,102 @@ export class FirewallRulesImpl implements FirewallRules { } /** - * Gets a firewall rule. + * Gets a list of firewall rules. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ - get( + private _listByServer( resourceGroupName: string, serverName: string, - firewallRuleName: string, - options?: FirewallRulesGetOptionalParams - ): Promise { + options?: FirewallRulesListByServerOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, firewallRuleName, options }, - getOperationSpec + { resourceGroupName, serverName, options }, + listByServerOperationSpec ); } /** - * Creates or updates a firewall rule. + * Replaces all firewall rules on the server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param firewallRuleName The name of the firewall rule. - * @param parameters The required parameters for creating or updating a firewall rule. + * @param parameters A list of server firewall rules. * @param options The options parameters. */ - createOrUpdate( + replace( resourceGroupName: string, serverName: string, - firewallRuleName: string, - parameters: FirewallRule, - options?: FirewallRulesCreateOrUpdateOptionalParams - ): Promise { + parameters: FirewallRuleList, + options?: FirewallRulesReplaceOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, firewallRuleName, parameters, options }, - createOrUpdateOperationSpec + { resourceGroupName, serverName, parameters, options }, + replaceOperationSpec ); } /** - * Deletes a firewall rule. + * Gets a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ - delete( + get( resourceGroupName: string, serverName: string, firewallRuleName: string, - options?: FirewallRulesDeleteOptionalParams - ): Promise { + options?: FirewallRulesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, firewallRuleName, options }, - deleteOperationSpec + getOperationSpec ); } /** - * Gets a list of firewall rules. + * Creates or updates a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param parameters The required parameters for creating or updating a firewall rule. * @param options The options parameters. */ - private _listByServer( + createOrUpdate( resourceGroupName: string, serverName: string, - options?: FirewallRulesListByServerOptionalParams - ): Promise { + firewallRuleName: string, + parameters: FirewallRule, + options?: FirewallRulesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec + { resourceGroupName, serverName, firewallRuleName, parameters, options }, + createOrUpdateOperationSpec ); } /** - * Replaces all firewall rules on the server. + * Deletes a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param parameters A list of server firewall rules. + * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ - replace( + delete( resourceGroupName: string, serverName: string, - parameters: FirewallRuleList, - options?: FirewallRulesReplaceOptionalParams - ): Promise { + firewallRuleName: string, + options?: FirewallRulesDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, parameters, options }, - replaceOperationSpec + { resourceGroupName, serverName, firewallRuleName, options }, + deleteOperationSpec ); } @@ -246,111 +246,111 @@ export class FirewallRulesImpl implements FirewallRules { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.FirewallRule + bodyMapper: Mappers.FirewallRuleListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.firewallRuleName + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const replaceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.FirewallRule }, - 201: { - bodyMapper: Mappers.FirewallRule - }, + 202: {}, default: {} }, - requestBody: Parameters.parameters20, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters29, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.firewallRuleName + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const deleteOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", - httpMethod: "DELETE", - responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.firewallRuleName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.FirewallRuleListResult + bodyMapper: Mappers.FirewallRule }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId, + Parameters.firewallRuleName ], headerParameters: [Parameters.accept], serializer }; -const replaceOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.FirewallRule }, - 202: {}, + 201: { + bodyMapper: Mappers.FirewallRule + }, default: {} }, - requestBody: Parameters.parameters21, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters30, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId, + Parameters.firewallRuleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.firewallRuleName + ], + serializer +}; const listByServerNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -362,9 +362,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts b/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts index 125dd16ba8a4..847db3b6528f 100644 --- a/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { GeoBackupPolicies } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -14,13 +15,15 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { GeoBackupPolicy, - GeoBackupPoliciesListByDatabaseOptionalParams, - GeoBackupPoliciesListByDatabaseResponse, + GeoBackupPoliciesListNextOptionalParams, + GeoBackupPoliciesListOptionalParams, + GeoBackupPoliciesListResponse, GeoBackupPolicyName, + GeoBackupPoliciesGetOptionalParams, + GeoBackupPoliciesGetResponse, GeoBackupPoliciesCreateOrUpdateOptionalParams, GeoBackupPoliciesCreateOrUpdateResponse, - GeoBackupPoliciesGetOptionalParams, - GeoBackupPoliciesGetResponse + GeoBackupPoliciesListNextResponse } from "../models"; /// @@ -37,20 +40,20 @@ export class GeoBackupPoliciesImpl implements GeoBackupPolicies { } /** - * Returns a list of geo backup policies. + * Gets a list of Geo backup policies for the given database resource. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ - public listByDatabase( + public list( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams + options?: GeoBackupPoliciesListOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByDatabasePagingAll( + const iter = this.listPagingAll( resourceGroupName, serverName, databaseName, @@ -67,7 +70,7 @@ export class GeoBackupPoliciesImpl implements GeoBackupPolicies { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByDatabasePagingPage( + return this.listPagingPage( resourceGroupName, serverName, databaseName, @@ -78,30 +81,49 @@ export class GeoBackupPoliciesImpl implements GeoBackupPolicies { }; } - private async *listByDatabasePagingPage( + private async *listPagingPage( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams, - _settings?: PageSettings + options?: GeoBackupPoliciesListOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result: GeoBackupPoliciesListByDatabaseResponse; - result = await this._listByDatabase( - resourceGroupName, - serverName, - databaseName, - options - ); - yield result.value || []; + let result: GeoBackupPoliciesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serverName, + databaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serverName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } } - private async *listByDatabasePagingAll( + private async *listPagingAll( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams + options?: GeoBackupPoliciesListOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByDatabasePagingPage( + for await (const page of this.listPagingPage( resourceGroupName, serverName, databaseName, @@ -112,111 +134,128 @@ export class GeoBackupPoliciesImpl implements GeoBackupPolicies { } /** - * Updates a database geo backup policy. + * Gets a list of Geo backup policies for the given database resource. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param geoBackupPolicyName The name of the geo backup policy. - * @param parameters The required parameters for creating or updating the geo backup policy. * @param options The options parameters. */ - createOrUpdate( + private _list( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: GeoBackupPoliciesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listOperationSpec + ); + } + + /** + * Gets a Geo backup policy for the given database resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param geoBackupPolicyName The name of the Geo backup policy. This should always be 'Default'. + * @param options The options parameters. + */ + get( resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, - parameters: GeoBackupPolicy, - options?: GeoBackupPoliciesCreateOrUpdateOptionalParams - ): Promise { + options?: GeoBackupPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, geoBackupPolicyName, - parameters, options }, - createOrUpdateOperationSpec + getOperationSpec ); } /** - * Gets a geo backup policy. + * Create or update a database default Geo backup policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param geoBackupPolicyName The name of the geo backup policy. + * @param geoBackupPolicyName The name of the Geo backup policy. This should always be 'Default'. + * @param parameters The required parameters for creating or updating the geo backup policy. * @param options The options parameters. */ - get( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, - options?: GeoBackupPoliciesGetOptionalParams - ): Promise { + parameters: GeoBackupPolicy, + options?: GeoBackupPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, geoBackupPolicyName, + parameters, options }, - getOperationSpec + createOrUpdateOperationSpec ); } /** - * Returns a list of geo backup policies. + * ListNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ - private _listByDatabase( + private _listNext( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams - ): Promise { + nextLink: string, + options?: GeoBackupPoliciesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, nextLink, options }, + listNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies/{geoBackupPolicyName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GeoBackupPolicy + bodyMapper: Mappers.GeoBackupPolicyListResult }, - 201: { - bodyMapper: Mappers.GeoBackupPolicy - } + default: {} }, - requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.geoBackupPolicyName + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { @@ -226,36 +265,64 @@ const getOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.GeoBackupPolicy - } + }, + default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.geoBackupPolicyName ], headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies/{geoBackupPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GeoBackupPolicyListResult - } + bodyMapper: Mappers.GeoBackupPolicy + }, + 201: { + bodyMapper: Mappers.GeoBackupPolicy + }, + default: {} }, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, Parameters.subscriptionId, + Parameters.geoBackupPolicyName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GeoBackupPolicyListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts b/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts index db272af7ed9d..b648c5f9ddc6 100644 --- a/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts @@ -233,12 +233,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -253,12 +253,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.firewallRuleName ], headerParameters: [Parameters.accept], @@ -277,16 +277,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters71, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters32, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.firewallRuleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -295,12 +295,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.firewallRuleName ], serializer @@ -316,9 +316,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/index.ts b/sdk/sql/arm-sql/src/operations/index.ts index c5f2c323d80d..c10041cb37aa 100644 --- a/sdk/sql/arm-sql/src/operations/index.ts +++ b/sdk/sql/arm-sql/src/operations/index.ts @@ -6,59 +6,85 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./backupShortTermRetentionPolicies"; +export * from "./serverBlobAuditingPolicies"; +export * from "./databaseBlobAuditingPolicies"; +export * from "./extendedDatabaseBlobAuditingPolicies"; +export * from "./extendedServerBlobAuditingPolicies"; export * from "./dataMaskingPolicies"; export * from "./dataMaskingRules"; -export * from "./geoBackupPolicies"; -export * from "./databases"; -export * from "./elasticPools"; -export * from "./serverCommunicationLinks"; -export * from "./serviceObjectives"; -export * from "./elasticPoolActivities"; -export * from "./elasticPoolDatabaseActivities"; -export * from "./serverUsages"; +export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseAdvancedThreatProtectionSettings"; export * from "./databaseAdvisors"; export * from "./databaseAutomaticTuningOperations"; export * from "./databaseColumns"; +export * from "./databaseEncryptionProtectors"; +export * from "./databaseExtensionsOperations"; +export * from "./databaseOperations"; export * from "./databaseRecommendedActions"; export * from "./databaseSchemas"; export * from "./databaseSecurityAlertPolicies"; +export * from "./databaseSqlVulnerabilityAssessmentBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; +export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentScanResult"; +export * from "./databaseSqlVulnerabilityAssessmentScans"; +export * from "./databaseSqlVulnerabilityAssessmentsSettings"; export * from "./databaseTables"; +export * from "./databaseUsages"; export * from "./databaseVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseVulnerabilityAssessments"; export * from "./databaseVulnerabilityAssessmentScans"; -export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseVulnerabilityAssessments"; +export * from "./databases"; export * from "./deletedServers"; +export * from "./distributedAvailabilityGroups"; export * from "./elasticPoolOperations"; +export * from "./elasticPools"; export * from "./encryptionProtectors"; +export * from "./endpointCertificates"; export * from "./failoverGroups"; export * from "./firewallRules"; +export * from "./geoBackupPolicies"; +export * from "./iPv6FirewallRules"; +export * from "./instanceFailoverGroups"; export * from "./instancePools"; export * from "./jobAgents"; export * from "./jobCredentials"; export * from "./jobExecutions"; -export * from "./jobs"; export * from "./jobStepExecutions"; export * from "./jobSteps"; export * from "./jobTargetExecutions"; export * from "./jobTargetGroups"; export * from "./jobVersions"; +export * from "./jobs"; +export * from "./ledgerDigestUploadsOperations"; export * from "./capabilities"; +export * from "./longTermRetentionBackups"; +export * from "./longTermRetentionManagedInstanceBackups"; export * from "./longTermRetentionPolicies"; export * from "./maintenanceWindowOptionsOperations"; export * from "./maintenanceWindowsOperations"; export * from "./managedBackupShortTermRetentionPolicies"; +export * from "./managedDatabaseAdvancedThreatProtectionSettings"; export * from "./managedDatabaseColumns"; +export * from "./managedDatabaseMoveOperations"; export * from "./managedDatabaseQueries"; +export * from "./managedDatabaseRestoreDetails"; export * from "./managedDatabaseSchemas"; export * from "./managedDatabaseSecurityAlertPolicies"; export * from "./managedDatabaseSecurityEvents"; +export * from "./managedDatabaseSensitivityLabels"; +export * from "./managedDatabaseRecommendedSensitivityLabels"; export * from "./managedDatabaseTables"; export * from "./managedDatabaseTransparentDataEncryption"; export * from "./managedDatabaseVulnerabilityAssessmentRuleBaselines"; -export * from "./managedDatabaseVulnerabilityAssessments"; export * from "./managedDatabaseVulnerabilityAssessmentScans"; +export * from "./managedDatabaseVulnerabilityAssessments"; +export * from "./managedDatabases"; export * from "./managedInstanceAdministrators"; +export * from "./managedInstanceAdvancedThreatProtectionSettings"; export * from "./managedInstanceAzureADOnlyAuthentications"; +export * from "./managedInstanceDtcs"; export * from "./managedInstanceEncryptionProtectors"; export * from "./managedInstanceKeys"; export * from "./managedInstanceLongTermRetentionPolicies"; @@ -67,69 +93,42 @@ export * from "./managedInstancePrivateEndpointConnections"; export * from "./managedInstancePrivateLinkResources"; export * from "./managedInstanceTdeCertificates"; export * from "./managedInstanceVulnerabilityAssessments"; +export * from "./managedInstances"; +export * from "./managedLedgerDigestUploadsOperations"; export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; +export * from "./managedServerDnsAliases"; export * from "./managedServerSecurityAlertPolicies"; +export * from "./networkSecurityPerimeterConfigurations"; export * from "./operations"; +export * from "./outboundFirewallRules"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./recoverableDatabases"; export * from "./recoverableManagedDatabases"; +export * from "./replicationLinks"; +export * from "./restorableDroppedDatabases"; +export * from "./restorableDroppedManagedDatabases"; export * from "./restorePoints"; +export * from "./sensitivityLabels"; +export * from "./recommendedSensitivityLabels"; +export * from "./serverAdvancedThreatProtectionSettings"; export * from "./serverAdvisors"; export * from "./serverAutomaticTuningOperations"; export * from "./serverAzureADAdministrators"; export * from "./serverAzureADOnlyAuthentications"; +export * from "./serverConfigurationOptions"; +export * from "./serverConnectionPolicies"; export * from "./serverDevOpsAuditSettings"; export * from "./serverDnsAliases"; export * from "./serverKeys"; export * from "./serverOperations"; export * from "./serverSecurityAlertPolicies"; +export * from "./serverTrustCertificates"; export * from "./serverTrustGroups"; +export * from "./serverUsages"; export * from "./serverVulnerabilityAssessments"; +export * from "./servers"; export * from "./sqlAgent"; -export * from "./subscriptionUsages"; -export * from "./syncAgents"; -export * from "./syncGroups"; -export * from "./syncMembers"; -export * from "./tdeCertificates"; -export * from "./timeZones"; -export * from "./virtualNetworkRules"; -export * from "./workloadClassifiers"; -export * from "./workloadGroups"; -export * from "./backupShortTermRetentionPolicies"; -export * from "./databaseExtensionsOperations"; -export * from "./databaseOperations"; -export * from "./databaseUsages"; -export * from "./ledgerDigestUploadsOperations"; -export * from "./outboundFirewallRules"; -export * from "./usages"; -export * from "./longTermRetentionBackups"; -export * from "./longTermRetentionManagedInstanceBackups"; -export * from "./restorableDroppedManagedDatabases"; -export * from "./serverConnectionPolicies"; -export * from "./distributedAvailabilityGroups"; -export * from "./serverTrustCertificates"; -export * from "./iPv6FirewallRules"; -export * from "./endpointCertificates"; -export * from "./managedDatabaseSensitivityLabels"; -export * from "./managedDatabaseRecommendedSensitivityLabels"; -export * from "./sensitivityLabels"; -export * from "./recommendedSensitivityLabels"; -export * from "./serverBlobAuditingPolicies"; -export * from "./databaseBlobAuditingPolicies"; -export * from "./extendedDatabaseBlobAuditingPolicies"; -export * from "./extendedServerBlobAuditingPolicies"; -export * from "./databaseAdvancedThreatProtectionSettings"; -export * from "./serverAdvancedThreatProtectionSettings"; -export * from "./managedServerDnsAliases"; -export * from "./databaseSqlVulnerabilityAssessmentBaselines"; -export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; -export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseSqlVulnerabilityAssessmentScanResult"; -export * from "./databaseSqlVulnerabilityAssessmentScans"; -export * from "./databaseSqlVulnerabilityAssessmentsSettings"; -export * from "./managedDatabaseAdvancedThreatProtectionSettings"; -export * from "./managedInstanceAdvancedThreatProtectionSettings"; -export * from "./replicationLinks"; export * from "./sqlVulnerabilityAssessmentBaseline"; export * from "./sqlVulnerabilityAssessmentBaselines"; export * from "./sqlVulnerabilityAssessmentExecuteScan"; @@ -139,19 +138,17 @@ export * from "./sqlVulnerabilityAssessmentScanResult"; export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentsSettings"; export * from "./sqlVulnerabilityAssessments"; -export * from "./managedDatabaseMoveOperations"; -export * from "./managedInstanceDtcs"; -export * from "./synapseLinkWorkspaces"; -export * from "./virtualClusters"; -export * from "./instanceFailoverGroups"; -export * from "./managedDatabaseRestoreDetails"; -export * from "./managedDatabases"; -export * from "./databaseEncryptionProtectors"; -export * from "./managedInstances"; -export * from "./managedLedgerDigestUploadsOperations"; -export * from "./recoverableDatabases"; -export * from "./restorableDroppedDatabases"; -export * from "./serverConfigurationOptions"; -export * from "./servers"; export * from "./startStopManagedInstanceSchedules"; +export * from "./subscriptionUsages"; +export * from "./synapseLinkWorkspaces"; +export * from "./syncAgents"; +export * from "./syncGroups"; +export * from "./syncMembers"; +export * from "./tdeCertificates"; +export * from "./timeZones"; export * from "./transparentDataEncryptions"; +export * from "./usages"; +export * from "./virtualClusters"; +export * from "./virtualNetworkRules"; +export * from "./workloadClassifiers"; +export * from "./workloadGroups"; diff --git a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts index 590e8772c0fa..cbfff46c6823 100644 --- a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts @@ -598,11 +598,11 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName ], headerParameters: [Parameters.accept], @@ -618,11 +618,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], @@ -648,16 +648,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters90, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -666,11 +666,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], @@ -695,11 +695,11 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], @@ -725,11 +725,11 @@ const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], @@ -747,8 +747,8 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName ], diff --git a/sdk/sql/arm-sql/src/operations/instancePools.ts b/sdk/sql/arm-sql/src/operations/instancePools.ts index 88b421a31f7e..e5b3e2b00bff 100644 --- a/sdk/sql/arm-sql/src/operations/instancePools.ts +++ b/sdk/sql/arm-sql/src/operations/instancePools.ts @@ -21,12 +21,12 @@ import { import { createLroSpec } from "../lroImpl"; import { InstancePool, - InstancePoolsListByResourceGroupNextOptionalParams, - InstancePoolsListByResourceGroupOptionalParams, - InstancePoolsListByResourceGroupResponse, InstancePoolsListNextOptionalParams, InstancePoolsListOptionalParams, InstancePoolsListResponse, + InstancePoolsListByResourceGroupNextOptionalParams, + InstancePoolsListByResourceGroupOptionalParams, + InstancePoolsListByResourceGroupResponse, InstancePoolsGetOptionalParams, InstancePoolsGetResponse, InstancePoolsCreateOrUpdateOptionalParams, @@ -35,8 +35,8 @@ import { InstancePoolUpdate, InstancePoolsUpdateOptionalParams, InstancePoolsUpdateResponse, - InstancePoolsListByResourceGroupNextResponse, - InstancePoolsListNextResponse + InstancePoolsListNextResponse, + InstancePoolsListByResourceGroupNextResponse } from "../models"; /// @@ -53,16 +53,13 @@ export class InstancePoolsImpl implements InstancePools { } /** - * Gets a list of instance pools in the resource group - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. + * Gets a list of all instance pools in the subscription. * @param options The options parameters. */ - public listByResourceGroup( - resourceGroupName: string, - options?: InstancePoolsListByResourceGroupOptionalParams + public list( + options?: InstancePoolsListOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + const iter = this.listPagingAll(options); return { next() { return iter.next(); @@ -74,35 +71,26 @@ export class InstancePoolsImpl implements InstancePools { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings - ); + return this.listPagingPage(options, settings); } }; } - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: InstancePoolsListByResourceGroupOptionalParams, + private async *listPagingPage( + options?: InstancePoolsListOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: InstancePoolsListByResourceGroupResponse; + let result: InstancePoolsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); + result = await this._list(options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options - ); + result = await this._listNext(continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -110,26 +98,25 @@ export class InstancePoolsImpl implements InstancePools { } } - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: InstancePoolsListByResourceGroupOptionalParams + private async *listPagingAll( + options?: InstancePoolsListOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options - )) { + for await (const page of this.listPagingPage(options)) { yield* page; } } /** - * Gets a list of all instance pools in the subscription. + * Gets a list of instance pools in the resource group + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param options The options parameters. */ - public list( - options?: InstancePoolsListOptionalParams + public listByResourceGroup( + resourceGroupName: string, + options?: InstancePoolsListByResourceGroupOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { next() { return iter.next(); @@ -141,26 +128,35 @@ export class InstancePoolsImpl implements InstancePools { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage(options, settings); + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); } }; } - private async *listPagingPage( - options?: InstancePoolsListOptionalParams, + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: InstancePoolsListByResourceGroupOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: InstancePoolsListResponse; + let result: InstancePoolsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(options); + result = await this._listByResourceGroup(resourceGroupName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listNext(continuationToken, options); + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -168,14 +164,44 @@ export class InstancePoolsImpl implements InstancePools { } } - private async *listPagingAll( - options?: InstancePoolsListOptionalParams + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: InstancePoolsListByResourceGroupOptionalParams ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { yield* page; } } + /** + * Gets a list of all instance pools in the subscription. + * @param options The options parameters. + */ + private _list( + options?: InstancePoolsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * Gets a list of instance pools in the resource group + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: InstancePoolsListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + /** * Gets an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -473,31 +499,20 @@ export class InstancePoolsImpl implements InstancePools { } /** - * Gets a list of instance pools in the resource group - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ - private _listByResourceGroup( - resourceGroupName: string, - options?: InstancePoolsListByResourceGroupOptionalParams - ): Promise { + private _listNext( + nextLink: string, + options?: InstancePoolsListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec + { nextLink, options }, + listNextOperationSpec ); } - /** - * Gets a list of all instance pools in the subscription. - * @param options The options parameters. - */ - private _list( - options?: InstancePoolsListOptionalParams - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -515,25 +530,43 @@ export class InstancePoolsImpl implements InstancePools { listByResourceGroupNextOperationSpec ); } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: InstancePoolsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/instancePools", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InstancePoolListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InstancePoolListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}", @@ -544,11 +577,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], headerParameters: [Parameters.accept], @@ -573,15 +606,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters22, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -590,11 +623,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], serializer @@ -618,52 +651,19 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters23, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters35, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InstancePoolListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/instancePools", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InstancePoolListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -675,13 +675,12 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink ], headerParameters: [Parameters.accept], serializer }; -const listNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -692,6 +691,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink ], diff --git a/sdk/sql/arm-sql/src/operations/jobAgents.ts b/sdk/sql/arm-sql/src/operations/jobAgents.ts index 87b93b6b9a6e..c8b53f1dcda7 100644 --- a/sdk/sql/arm-sql/src/operations/jobAgents.ts +++ b/sdk/sql/arm-sql/src/operations/jobAgents.ts @@ -505,12 +505,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -525,12 +525,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], headerParameters: [Parameters.accept], @@ -555,16 +555,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters24, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters36, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -573,12 +573,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], serializer @@ -602,16 +602,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters25, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters37, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -626,9 +626,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/jobCredentials.ts b/sdk/sql/arm-sql/src/operations/jobCredentials.ts index af5926f629a6..1ba5b9c71066 100644 --- a/sdk/sql/arm-sql/src/operations/jobCredentials.ts +++ b/sdk/sql/arm-sql/src/operations/jobCredentials.ts @@ -263,12 +263,12 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], headerParameters: [Parameters.accept], @@ -284,12 +284,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.credentialName ], @@ -309,17 +309,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters26, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters38, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.credentialName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -328,12 +328,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.credentialName ], @@ -350,9 +350,9 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName ], diff --git a/sdk/sql/arm-sql/src/operations/jobExecutions.ts b/sdk/sql/arm-sql/src/operations/jobExecutions.ts index d141427f5115..a1df8ecc2e02 100644 --- a/sdk/sql/arm-sql/src/operations/jobExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobExecutions.ts @@ -27,13 +27,13 @@ import { JobExecutionsListByJobNextOptionalParams, JobExecutionsListByJobOptionalParams, JobExecutionsListByJobResponse, - JobExecutionsCancelOptionalParams, - JobExecutionsCreateOptionalParams, - JobExecutionsCreateResponse, JobExecutionsGetOptionalParams, JobExecutionsGetResponse, JobExecutionsCreateOrUpdateOptionalParams, JobExecutionsCreateOrUpdateResponse, + JobExecutionsCancelOptionalParams, + JobExecutionsCreateOptionalParams, + JobExecutionsCreateResponse, JobExecutionsListByAgentNextResponse, JobExecutionsListByJobNextResponse } from "../models"; @@ -269,23 +269,45 @@ export class JobExecutionsImpl implements JobExecutions { } /** - * Requests cancellation of a job execution. + * Lists a job's executions. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param jobAgentName The name of the job agent. + * @param jobName The name of the job to get. + * @param options The options parameters. + */ + private _listByJob( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + jobName: string, + options?: JobExecutionsListByJobOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, jobAgentName, jobName, options }, + listByJobOperationSpec + ); + } + + /** + * Gets a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobExecutionId The id of the job execution to cancel. + * @param jobExecutionId The id of the job execution * @param options The options parameters. */ - cancel( + get( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobExecutionsCancelOptionalParams - ): Promise { + options?: JobExecutionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -295,35 +317,37 @@ export class JobExecutionsImpl implements JobExecutions { jobExecutionId, options }, - cancelOperationSpec + getOperationSpec ); } /** - * Starts an elastic job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - async beginCreate( + async beginCreateOrUpdate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobExecutionsCreateOptionalParams + jobExecutionId: string, + options?: JobExecutionsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< - OperationState, - JobExecutionsCreateResponse + OperationState, + JobExecutionsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -361,12 +385,19 @@ export class JobExecutionsImpl implements JobExecutions { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, serverName, jobAgentName, jobName, options }, - spec: createOperationSpec + args: { + resourceGroupName, + serverName, + jobAgentName, + jobName, + jobExecutionId, + options + }, + spec: createOrUpdateOperationSpec }); const poller = await createHttpPoller< - JobExecutionsCreateResponse, - OperationState + JobExecutionsCreateOrUpdateResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs @@ -376,71 +407,52 @@ export class JobExecutionsImpl implements JobExecutions { } /** - * Starts an elastic job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - async beginCreateAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobExecutionsCreateOptionalParams - ): Promise { - const poller = await this.beginCreate( + jobExecutionId: string, + options?: JobExecutionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, serverName, jobAgentName, jobName, + jobExecutionId, options ); return poller.pollUntilDone(); } /** - * Lists a job's executions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param jobAgentName The name of the job agent. - * @param jobName The name of the job to get. - * @param options The options parameters. - */ - private _listByJob( - resourceGroupName: string, - serverName: string, - jobAgentName: string, - jobName: string, - options?: JobExecutionsListByJobOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, jobAgentName, jobName, options }, - listByJobOperationSpec - ); - } - - /** - * Gets a job execution. + * Requests cancellation of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobExecutionId The id of the job execution + * @param jobExecutionId The id of the job execution to cancel. * @param options The options parameters. */ - get( + cancel( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobExecutionsGetOptionalParams - ): Promise { + options?: JobExecutionsCancelOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -450,37 +462,35 @@ export class JobExecutionsImpl implements JobExecutions { jobExecutionId, options }, - getOperationSpec + cancelOperationSpec ); } /** - * Creates or updates a job execution. + * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginCreate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobExecutionId: string, - options?: JobExecutionsCreateOrUpdateOptionalParams + options?: JobExecutionsCreateOptionalParams ): Promise< SimplePollerLike< - OperationState, - JobExecutionsCreateOrUpdateResponse + OperationState, + JobExecutionsCreateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -518,19 +528,12 @@ export class JobExecutionsImpl implements JobExecutions { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobExecutionId, - options - }, - spec: createOrUpdateOperationSpec + args: { resourceGroupName, serverName, jobAgentName, jobName, options }, + spec: createOperationSpec }); const poller = await createHttpPoller< - JobExecutionsCreateOrUpdateResponse, - OperationState + JobExecutionsCreateResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs @@ -540,29 +543,26 @@ export class JobExecutionsImpl implements JobExecutions { } /** - * Creates or updates a job execution. + * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginCreateAndWait( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobExecutionId: string, - options?: JobExecutionsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + options?: JobExecutionsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( resourceGroupName, serverName, jobAgentName, jobName, - jobExecutionId, options ); return poller.pollUntilDone(); @@ -635,8 +635,8 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, Parameters.skip, - Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -646,58 +646,10 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.jobAgentName - ], - headerParameters: [Parameters.accept], - serializer -}; -const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/cancel", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobExecutionId - ], - serializer -}; -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/start", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.JobExecution - }, - 201: { - bodyMapper: Mappers.JobExecution - }, - 202: { - bodyMapper: Mappers.JobExecution - }, - 204: { - bodyMapper: Mappers.JobExecution - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName + Parameters.jobAgentName ], headerParameters: [Parameters.accept], serializer @@ -713,8 +665,8 @@ const listByJobOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, Parameters.skip, - Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -724,9 +676,9 @@ const listByJobOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], @@ -743,12 +695,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId @@ -775,16 +727,64 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, Parameters.subscriptionId, + Parameters.jobAgentName, + Parameters.jobName, + Parameters.jobExecutionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const cancelOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/cancel", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId ], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/start", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.JobExecution + }, + 201: { + bodyMapper: Mappers.JobExecution + }, + 202: { + bodyMapper: Mappers.JobExecution + }, + 204: { + bodyMapper: Mappers.JobExecution + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.jobAgentName, + Parameters.jobName + ], headerParameters: [Parameters.accept], serializer }; @@ -799,9 +799,9 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName ], @@ -819,9 +819,9 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName diff --git a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts index 3203761d8b0b..0846fe36197b 100644 --- a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts @@ -261,8 +261,8 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, Parameters.skip, - Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -272,9 +272,9 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId @@ -292,12 +292,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId, @@ -317,9 +317,9 @@ const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName, diff --git a/sdk/sql/arm-sql/src/operations/jobSteps.ts b/sdk/sql/arm-sql/src/operations/jobSteps.ts index 03c9b6c625b9..36bb848deae7 100644 --- a/sdk/sql/arm-sql/src/operations/jobSteps.ts +++ b/sdk/sql/arm-sql/src/operations/jobSteps.ts @@ -15,21 +15,21 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { JobStep, - JobStepsListByVersionNextOptionalParams, - JobStepsListByVersionOptionalParams, - JobStepsListByVersionResponse, JobStepsListByJobNextOptionalParams, JobStepsListByJobOptionalParams, JobStepsListByJobResponse, - JobStepsGetByVersionOptionalParams, - JobStepsGetByVersionResponse, + JobStepsListByVersionNextOptionalParams, + JobStepsListByVersionOptionalParams, + JobStepsListByVersionResponse, JobStepsGetOptionalParams, JobStepsGetResponse, JobStepsCreateOrUpdateOptionalParams, JobStepsCreateOrUpdateResponse, JobStepsDeleteOptionalParams, - JobStepsListByVersionNextResponse, - JobStepsListByJobNextResponse + JobStepsGetByVersionOptionalParams, + JobStepsGetByVersionResponse, + JobStepsListByJobNextResponse, + JobStepsListByVersionNextResponse } from "../models"; /// @@ -46,29 +46,26 @@ export class JobStepsImpl implements JobSteps { } /** - * Gets all job steps in the specified job version. + * Gets all job steps for a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobVersion The version of the job to get. * @param options The options parameters. */ - public listByVersion( + public listByJob( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams + options?: JobStepsListByJobOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByVersionPagingAll( + const iter = this.listByJobPagingAll( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, options ); return { @@ -82,12 +79,11 @@ export class JobStepsImpl implements JobSteps { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByVersionPagingPage( + return this.listByJobPagingPage( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, options, settings ); @@ -95,24 +91,22 @@ export class JobStepsImpl implements JobSteps { }; } - private async *listByVersionPagingPage( + private async *listByJobPagingPage( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams, + options?: JobStepsListByJobOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: JobStepsListByVersionResponse; + let result: JobStepsListByJobResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByVersion( + result = await this._listByJob( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, options ); let page = result.value || []; @@ -121,12 +115,11 @@ export class JobStepsImpl implements JobSteps { yield page; } while (continuationToken) { - result = await this._listByVersionNext( + result = await this._listByJobNext( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, continuationToken, options ); @@ -137,20 +130,18 @@ export class JobStepsImpl implements JobSteps { } } - private async *listByVersionPagingAll( + private async *listByJobPagingAll( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams + options?: JobStepsListByJobOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByVersionPagingPage( + for await (const page of this.listByJobPagingPage( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, options )) { yield* page; @@ -158,26 +149,29 @@ export class JobStepsImpl implements JobSteps { } /** - * Gets all job steps for a job's current version. + * Gets all job steps in the specified job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobVersion The version of the job to get. * @param options The options parameters. */ - public listByJob( + public listByVersion( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobStepsListByJobOptionalParams + jobVersion: number, + options?: JobStepsListByVersionOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByJobPagingAll( + const iter = this.listByVersionPagingAll( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, options ); return { @@ -191,11 +185,12 @@ export class JobStepsImpl implements JobSteps { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByJobPagingPage( + return this.listByVersionPagingPage( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, options, settings ); @@ -203,22 +198,24 @@ export class JobStepsImpl implements JobSteps { }; } - private async *listByJobPagingPage( + private async *listByVersionPagingPage( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobStepsListByJobOptionalParams, + jobVersion: number, + options?: JobStepsListByVersionOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: JobStepsListByJobResponse; + let result: JobStepsListByVersionResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByJob( + result = await this._listByVersion( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, options ); let page = result.value || []; @@ -227,11 +224,12 @@ export class JobStepsImpl implements JobSteps { yield page; } while (continuationToken) { - result = await this._listByJobNext( + result = await this._listByVersionNext( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, continuationToken, options ); @@ -242,18 +240,20 @@ export class JobStepsImpl implements JobSteps { } } - private async *listByJobPagingAll( + private async *listByVersionPagingAll( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobStepsListByJobOptionalParams + jobVersion: number, + options?: JobStepsListByVersionOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByJobPagingPage( + for await (const page of this.listByVersionPagingPage( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, options )) { yield* page; @@ -261,110 +261,110 @@ export class JobStepsImpl implements JobSteps { } /** - * Gets all job steps in the specified job version. + * Gets all job steps for a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobVersion The version of the job to get. * @param options The options parameters. */ - private _listByVersion( + private _listByJob( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams - ): Promise { + options?: JobStepsListByJobOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobVersion, - options - }, - listByVersionOperationSpec + { resourceGroupName, serverName, jobAgentName, jobName, options }, + listByJobOperationSpec ); } /** - * Gets the specified version of a job step. + * Gets a job step in a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobVersion The version of the job to get. * @param stepName The name of the job step. * @param options The options parameters. */ - getByVersion( + get( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, stepName: string, - options?: JobStepsGetByVersionOptionalParams - ): Promise { + options?: JobStepsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, stepName, options }, - getByVersionOperationSpec + getOperationSpec ); } /** - * Gets all job steps for a job's current version. + * Creates or updates a job step. This will implicitly create a new job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. - * @param jobName The name of the job to get. + * @param jobName The name of the job. + * @param stepName The name of the job step. + * @param parameters The requested state of the job step. * @param options The options parameters. */ - private _listByJob( + createOrUpdate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobStepsListByJobOptionalParams - ): Promise { + stepName: string, + parameters: JobStep, + options?: JobStepsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, jobAgentName, jobName, options }, - listByJobOperationSpec + { + resourceGroupName, + serverName, + jobAgentName, + jobName, + stepName, + parameters, + options + }, + createOrUpdateOperationSpec ); } /** - * Gets a job step in a job's current version. + * Deletes a job step. This will implicitly create a new job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param stepName The name of the job step. + * @param stepName The name of the job step to delete. * @param options The options parameters. */ - get( + delete( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, - options?: JobStepsGetOptionalParams - ): Promise { + options?: JobStepsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -374,146 +374,146 @@ export class JobStepsImpl implements JobSteps { stepName, options }, - getOperationSpec + deleteOperationSpec ); } /** - * Creates or updates a job step. This will implicitly create a new job version. + * Gets all job steps in the specified job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. - * @param jobName The name of the job. - * @param stepName The name of the job step. - * @param parameters The requested state of the job step. + * @param jobName The name of the job to get. + * @param jobVersion The version of the job to get. * @param options The options parameters. */ - createOrUpdate( + private _listByVersion( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - stepName: string, - parameters: JobStep, - options?: JobStepsCreateOrUpdateOptionalParams - ): Promise { + jobVersion: number, + options?: JobStepsListByVersionOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, - stepName, - parameters, + jobVersion, options }, - createOrUpdateOperationSpec + listByVersionOperationSpec ); } /** - * Deletes a job step. This will implicitly create a new job version. + * Gets the specified version of a job step. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param stepName The name of the job step to delete. + * @param jobVersion The version of the job to get. + * @param stepName The name of the job step. * @param options The options parameters. */ - delete( + getByVersion( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, + jobVersion: number, stepName: string, - options?: JobStepsDeleteOptionalParams - ): Promise { + options?: JobStepsGetByVersionOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, stepName, options }, - deleteOperationSpec + getByVersionOperationSpec ); } /** - * ListByVersionNext + * ListByJobNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobVersion The version of the job to get. - * @param nextLink The nextLink from the previous successful call to the ListByVersion method. + * @param nextLink The nextLink from the previous successful call to the ListByJob method. * @param options The options parameters. */ - private _listByVersionNext( + private _listByJobNext( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, nextLink: string, - options?: JobStepsListByVersionNextOptionalParams - ): Promise { + options?: JobStepsListByJobNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, nextLink, options }, - listByVersionNextOperationSpec + listByJobNextOperationSpec ); } /** - * ListByJobNext + * ListByVersionNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param nextLink The nextLink from the previous successful call to the ListByJob method. + * @param jobVersion The version of the job to get. + * @param nextLink The nextLink from the previous successful call to the ListByVersion method. * @param options The options parameters. */ - private _listByJobNext( + private _listByVersionNext( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, + jobVersion: number, nextLink: string, - options?: JobStepsListByJobNextOptionalParams - ): Promise { + options?: JobStepsListByVersionNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, nextLink, options }, - listByJobNextOperationSpec + listByVersionNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listByVersionOperationSpec: coreClient.OperationSpec = { +const listByJobOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps", httpMethod: "GET", responses: { 200: { @@ -521,22 +521,21 @@ const listByVersionOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobVersion + Parameters.jobName ], headerParameters: [Parameters.accept], serializer }; -const getByVersionOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", httpMethod: "GET", responses: { 200: { @@ -544,111 +543,112 @@ const getByVersionOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.stepName, - Parameters.jobVersion + Parameters.stepName ], headerParameters: [Parameters.accept], serializer }; -const listByJobOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.JobStepListResult + bodyMapper: Mappers.JobStep + }, + 201: { + bodyMapper: Mappers.JobStep }, default: {} }, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters39, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, - Parameters.jobName + Parameters.jobName, + Parameters.stepName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.JobStep - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.stepName ], - headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const listByVersionOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobStep - }, - 201: { - bodyMapper: Mappers.JobStep + bodyMapper: Mappers.JobStepListResult }, default: {} }, - requestBody: Parameters.parameters28, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.stepName + Parameters.jobVersion ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const deleteOperationSpec: coreClient.OperationSpec = { +const getByVersionOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", - httpMethod: "DELETE", - responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JobStep + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.stepName + Parameters.stepName, + Parameters.jobVersion ], + headerParameters: [Parameters.accept], serializer }; -const listByVersionNextOperationSpec: coreClient.OperationSpec = { +const listByJobNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -659,18 +659,17 @@ const listByVersionNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobVersion + Parameters.jobName ], headerParameters: [Parameters.accept], serializer }; -const listByJobNextOperationSpec: coreClient.OperationSpec = { +const listByVersionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -681,12 +680,13 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, - Parameters.jobName + Parameters.jobName, + Parameters.jobVersion ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts index 6f87154e46ed..cc635abce0f5 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts @@ -15,16 +15,16 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { JobExecution, - JobTargetExecutionsListByJobExecutionNextOptionalParams, - JobTargetExecutionsListByJobExecutionOptionalParams, - JobTargetExecutionsListByJobExecutionResponse, JobTargetExecutionsListByStepNextOptionalParams, JobTargetExecutionsListByStepOptionalParams, JobTargetExecutionsListByStepResponse, + JobTargetExecutionsListByJobExecutionNextOptionalParams, + JobTargetExecutionsListByJobExecutionOptionalParams, + JobTargetExecutionsListByJobExecutionResponse, JobTargetExecutionsGetOptionalParams, JobTargetExecutionsGetResponse, - JobTargetExecutionsListByJobExecutionNextResponse, - JobTargetExecutionsListByStepNextResponse + JobTargetExecutionsListByStepNextResponse, + JobTargetExecutionsListByJobExecutionNextResponse } from "../models"; /// @@ -41,29 +41,32 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } /** - * Lists target executions for all steps of a job execution. + * Lists the target executions of a job step execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution + * @param stepName The name of the step. * @param options The options parameters. */ - public listByJobExecution( + public listByStep( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByJobExecutionPagingAll( + const iter = this.listByStepPagingAll( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, options ); return { @@ -77,12 +80,13 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByJobExecutionPagingPage( + return this.listByStepPagingPage( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, options, settings ); @@ -90,24 +94,26 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { }; } - private async *listByJobExecutionPagingPage( + private async *listByStepPagingPage( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams, + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: JobTargetExecutionsListByJobExecutionResponse; + let result: JobTargetExecutionsListByStepResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByJobExecution( + result = await this._listByStep( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, options ); let page = result.value || []; @@ -116,12 +122,13 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { yield page; } while (continuationToken) { - result = await this._listByJobExecutionNext( + result = await this._listByStepNext( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, continuationToken, options ); @@ -132,20 +139,22 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } } - private async *listByJobExecutionPagingAll( + private async *listByStepPagingAll( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByJobExecutionPagingPage( + for await (const page of this.listByStepPagingPage( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, options )) { yield* page; @@ -153,32 +162,29 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } /** - * Lists the target executions of a job step execution. + * Lists target executions for all steps of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution - * @param stepName The name of the step. * @param options The options parameters. */ - public listByStep( + public listByJobExecution( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams + options?: JobTargetExecutionsListByJobExecutionOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByStepPagingAll( + const iter = this.listByJobExecutionPagingAll( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, options ); return { @@ -192,13 +198,12 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByStepPagingPage( + return this.listByJobExecutionPagingPage( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, options, settings ); @@ -206,26 +211,24 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { }; } - private async *listByStepPagingPage( + private async *listByJobExecutionPagingPage( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams, + options?: JobTargetExecutionsListByJobExecutionOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: JobTargetExecutionsListByStepResponse; + let result: JobTargetExecutionsListByJobExecutionResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByStep( + result = await this._listByJobExecution( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, options ); let page = result.value || []; @@ -234,13 +237,12 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { yield page; } while (continuationToken) { - result = await this._listByStepNext( + result = await this._listByJobExecutionNext( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, continuationToken, options ); @@ -251,22 +253,20 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } } - private async *listByStepPagingAll( + private async *listByJobExecutionPagingAll( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams + options?: JobTargetExecutionsListByJobExecutionOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByStepPagingPage( + for await (const page of this.listByJobExecutionPagingPage( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, options )) { yield* page; @@ -274,23 +274,25 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } /** - * Lists target executions for all steps of a job execution. + * Lists the target executions of a job step execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution + * @param stepName The name of the step. * @param options The options parameters. */ - private _listByJobExecution( + private _listByStep( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams - ): Promise { + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -298,32 +300,35 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobAgentName, jobName, jobExecutionId, + stepName, options }, - listByJobExecutionOperationSpec + listByStepOperationSpec ); } /** - * Lists the target executions of a job step execution. + * Gets a target execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The id of the job execution + * @param jobExecutionId The unique id of the job execution * @param stepName The name of the step. + * @param targetId The target id. * @param options The options parameters. */ - private _listByStep( + get( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams - ): Promise { + targetId: string, + options?: JobTargetExecutionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -332,34 +337,31 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobName, jobExecutionId, stepName, + targetId, options }, - listByStepOperationSpec + getOperationSpec ); } /** - * Gets a target execution. + * Lists target executions for all steps of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The unique id of the job execution - * @param stepName The name of the step. - * @param targetId The target id. + * @param jobExecutionId The id of the job execution * @param options The options parameters. */ - get( + private _listByJobExecution( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - targetId: string, - options?: JobTargetExecutionsGetOptionalParams - ): Promise { + options?: JobTargetExecutionsListByJobExecutionOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -367,34 +369,34 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobAgentName, jobName, jobExecutionId, - stepName, - targetId, options }, - getOperationSpec + listByJobExecutionOperationSpec ); } /** - * ListByJobExecutionNext + * ListByStepNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution - * @param nextLink The nextLink from the previous successful call to the ListByJobExecution method. + * @param stepName The name of the step. + * @param nextLink The nextLink from the previous successful call to the ListByStep method. * @param options The options parameters. */ - private _listByJobExecutionNext( + private _listByStepNext( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, + stepName: string, nextLink: string, - options?: JobTargetExecutionsListByJobExecutionNextOptionalParams - ): Promise { + options?: JobTargetExecutionsListByStepNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -402,35 +404,34 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobAgentName, jobName, jobExecutionId, + stepName, nextLink, options }, - listByJobExecutionNextOperationSpec + listByStepNextOperationSpec ); } /** - * ListByStepNext + * ListByJobExecutionNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution - * @param stepName The name of the step. - * @param nextLink The nextLink from the previous successful call to the ListByStep method. + * @param nextLink The nextLink from the previous successful call to the ListByJobExecution method. * @param options The options parameters. */ - private _listByStepNext( + private _listByJobExecutionNext( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, nextLink: string, - options?: JobTargetExecutionsListByStepNextOptionalParams - ): Promise { + options?: JobTargetExecutionsListByJobExecutionNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -438,20 +439,19 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobAgentName, jobName, jobExecutionId, - stepName, nextLink, options }, - listByStepNextOperationSpec + listByJobExecutionNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listByJobExecutionOperationSpec: coreClient.OperationSpec = { +const listByStepOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/targets", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets", httpMethod: "GET", responses: { 200: { @@ -460,8 +460,8 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, Parameters.skip, - Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -471,75 +471,75 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.jobExecutionId + Parameters.jobExecutionId, + Parameters.stepName ], headerParameters: [Parameters.accept], serializer }; -const listByStepOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets/{targetId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobExecutionListResult + bodyMapper: Mappers.JobExecution }, default: {} }, - queryParameters: [ - Parameters.skip, - Parameters.apiVersion3, - Parameters.createTimeMin, - Parameters.createTimeMax, - Parameters.endTimeMin, - Parameters.endTimeMax, - Parameters.isActive, - Parameters.top - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId, - Parameters.stepName + Parameters.stepName, + Parameters.targetId ], headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const listByJobExecutionOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets/{targetId}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/targets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobExecution + bodyMapper: Mappers.JobExecutionListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.createTimeMin, + Parameters.createTimeMax, + Parameters.endTimeMin, + Parameters.endTimeMax, + Parameters.isActive, + Parameters.top + ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.jobExecutionId, - Parameters.stepName, - Parameters.targetId + Parameters.jobExecutionId ], headerParameters: [Parameters.accept], serializer }; -const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { +const listByStepNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -550,18 +550,19 @@ const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName, - Parameters.jobExecutionId + Parameters.jobExecutionId, + Parameters.stepName ], headerParameters: [Parameters.accept], serializer }; -const listByStepNextOperationSpec: coreClient.OperationSpec = { +const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -572,14 +573,13 @@ const listByStepNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName, - Parameters.jobExecutionId, - Parameters.stepName + Parameters.jobExecutionId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts index edeca621f0aa..83609b301188 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts @@ -263,12 +263,12 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], headerParameters: [Parameters.accept], @@ -284,12 +284,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.targetGroupName ], @@ -309,17 +309,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters29, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters40, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.targetGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -328,12 +328,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.targetGroupName ], @@ -350,9 +350,9 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName ], diff --git a/sdk/sql/arm-sql/src/operations/jobVersions.ts b/sdk/sql/arm-sql/src/operations/jobVersions.ts index 7d04aea01fed..c9239b0b021d 100644 --- a/sdk/sql/arm-sql/src/operations/jobVersions.ts +++ b/sdk/sql/arm-sql/src/operations/jobVersions.ts @@ -236,12 +236,12 @@ const listByJobOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], @@ -258,12 +258,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobVersion @@ -282,9 +282,9 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName diff --git a/sdk/sql/arm-sql/src/operations/jobs.ts b/sdk/sql/arm-sql/src/operations/jobs.ts index 3348c0c69ecd..875e20847ce0 100644 --- a/sdk/sql/arm-sql/src/operations/jobs.ts +++ b/sdk/sql/arm-sql/src/operations/jobs.ts @@ -263,12 +263,12 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], headerParameters: [Parameters.accept], @@ -284,12 +284,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], @@ -309,17 +309,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters27, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters41, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -328,12 +328,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], @@ -350,9 +350,9 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName ], diff --git a/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts b/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts index 592626cd2172..1c841a6f5f9a 100644 --- a/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts @@ -142,6 +142,26 @@ export class LedgerDigestUploadsOperationsImpl } } + /** + * Gets all ledger digest upload settings on a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: LedgerDigestUploadsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets the current ledger digest upload configuration for a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -284,26 +304,6 @@ export class LedgerDigestUploadsOperationsImpl return poller.pollUntilDone(); } - /** - * Gets all ledger digest upload settings on a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: LedgerDigestUploadsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * Disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger * instance. @@ -439,6 +439,27 @@ export class LedgerDigestUploadsOperationsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LedgerDigestUploadsListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads/{ledgerDigestUploads}", @@ -449,13 +470,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.ledgerDigestUploads ], headerParameters: [Parameters.accept], @@ -480,41 +501,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters64, - queryParameters: [Parameters.apiVersion5], + requestBody: Parameters.parameters42, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.ledgerDigestUploads ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LedgerDigestUploadsListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; const disableOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads/{ledgerDigestUploads}/disable", @@ -534,13 +534,13 @@ const disableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.ledgerDigestUploads ], headerParameters: [Parameters.accept], @@ -557,10 +557,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts index 5a43072aa7e5..ac0859f6c309 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts @@ -21,46 +21,46 @@ import { import { createLroSpec } from "../lroImpl"; import { LongTermRetentionBackup, - LongTermRetentionBackupsListByDatabaseNextOptionalParams, - LongTermRetentionBackupsListByDatabaseOptionalParams, - LongTermRetentionBackupsListByDatabaseResponse, LongTermRetentionBackupsListByLocationNextOptionalParams, LongTermRetentionBackupsListByLocationOptionalParams, LongTermRetentionBackupsListByLocationResponse, LongTermRetentionBackupsListByServerNextOptionalParams, LongTermRetentionBackupsListByServerOptionalParams, LongTermRetentionBackupsListByServerResponse, - LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams, - LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, - LongTermRetentionBackupsListByResourceGroupDatabaseResponse, + LongTermRetentionBackupsListByDatabaseNextOptionalParams, + LongTermRetentionBackupsListByDatabaseOptionalParams, + LongTermRetentionBackupsListByDatabaseResponse, LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams, LongTermRetentionBackupsListByResourceGroupLocationOptionalParams, LongTermRetentionBackupsListByResourceGroupLocationResponse, LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams, LongTermRetentionBackupsListByResourceGroupServerOptionalParams, LongTermRetentionBackupsListByResourceGroupServerResponse, + LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams, + LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + LongTermRetentionBackupsListByResourceGroupDatabaseResponse, + LongTermRetentionBackupsGetOptionalParams, + LongTermRetentionBackupsGetResponse, + LongTermRetentionBackupsDeleteOptionalParams, CopyLongTermRetentionBackupParameters, LongTermRetentionBackupsCopyOptionalParams, LongTermRetentionBackupsCopyResponse, UpdateLongTermRetentionBackupParameters, LongTermRetentionBackupsUpdateOptionalParams, LongTermRetentionBackupsUpdateResponse, - LongTermRetentionBackupsGetOptionalParams, - LongTermRetentionBackupsGetResponse, - LongTermRetentionBackupsDeleteOptionalParams, + LongTermRetentionBackupsGetByResourceGroupOptionalParams, + LongTermRetentionBackupsGetByResourceGroupResponse, + LongTermRetentionBackupsDeleteByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupResponse, LongTermRetentionBackupsUpdateByResourceGroupOptionalParams, LongTermRetentionBackupsUpdateByResourceGroupResponse, - LongTermRetentionBackupsGetByResourceGroupOptionalParams, - LongTermRetentionBackupsGetByResourceGroupResponse, - LongTermRetentionBackupsDeleteByResourceGroupOptionalParams, - LongTermRetentionBackupsListByDatabaseNextResponse, LongTermRetentionBackupsListByLocationNextResponse, LongTermRetentionBackupsListByServerNextResponse, - LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse, + LongTermRetentionBackupsListByDatabaseNextResponse, LongTermRetentionBackupsListByResourceGroupLocationNextResponse, - LongTermRetentionBackupsListByResourceGroupServerNextResponse + LongTermRetentionBackupsListByResourceGroupServerNextResponse, + LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse } from "../models"; /// @@ -76,99 +76,6 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { this.client = client; } - /** - * Lists all long term retention backups for a database. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param options The options parameters. - */ - public listByDatabase( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByDatabasePagingAll( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByDatabasePagingPage( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options, - settings - ); - } - }; - } - - private async *listByDatabasePagingPage( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: LongTermRetentionBackupsListByDatabaseResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByDatabase( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByDatabaseNext( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByDatabasePagingAll( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByDatabasePagingPage( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - )) { - yield* page; - } - } - /** * Lists the long term retention backups for a given location. * @param locationName The location of the database @@ -320,22 +227,18 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { /** * Lists all long term retention backups for a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ - public listByResourceGroupDatabase( - resourceGroupName: string, + public listByDatabase( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + options?: LongTermRetentionBackupsListByDatabaseOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupDatabasePagingAll( - resourceGroupName, + const iter = this.listByDatabasePagingAll( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -352,8 +255,7 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupDatabasePagingPage( - resourceGroupName, + return this.listByDatabasePagingPage( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -364,19 +266,17 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { }; } - private async *listByResourceGroupDatabasePagingPage( - resourceGroupName: string, + private async *listByDatabasePagingPage( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + options?: LongTermRetentionBackupsListByDatabaseOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: LongTermRetentionBackupsListByResourceGroupDatabaseResponse; + let result: LongTermRetentionBackupsListByDatabaseResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroupDatabase( - resourceGroupName, + result = await this._listByDatabase( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -388,8 +288,7 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { yield page; } while (continuationToken) { - result = await this._listByResourceGroupDatabaseNext( - resourceGroupName, + result = await this._listByDatabaseNext( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -403,15 +302,13 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } } - private async *listByResourceGroupDatabasePagingAll( - resourceGroupName: string, + private async *listByDatabasePagingAll( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + options?: LongTermRetentionBackupsListByDatabaseOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupDatabasePagingPage( - resourceGroupName, + for await (const page of this.listByDatabasePagingPage( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -601,82 +498,257 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Copy an existing long term retention backup. - * @param locationName The location of the database. + * Lists all long term retention backups for a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopy( + public listByResourceGroupDatabase( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - LongTermRetentionBackupsCopyResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupDatabasePagingAll( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); } - }; + return this.listByResourceGroupDatabasePagingPage( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options, + settings + ); + } }; + } - const lro = createLroSpec({ - sendOperationFn, - args: { + private async *listByResourceGroupDatabasePagingPage( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: LongTermRetentionBackupsListByResourceGroupDatabaseResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroupDatabase( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupDatabaseNext( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupDatabasePagingAll( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupDatabasePagingPage( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options + )) { + yield* page; + } + } + + /** + * Lists the long term retention backups for a given location. + * @param locationName The location of the database + * @param options The options parameters. + */ + private _listByLocation( + locationName: string, + options?: LongTermRetentionBackupsListByLocationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, options }, + listByLocationOperationSpec + ); + } + + /** + * Lists the long term retention backups for a given server. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param options The options parameters. + */ + private _listByServer( + locationName: string, + longTermRetentionServerName: string, + options?: LongTermRetentionBackupsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, longTermRetentionServerName, options }, + listByServerOperationSpec + ); + } + + /** + * Lists all long term retention backups for a database. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param options The options parameters. + */ + private _listByDatabase( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, longTermRetentionServerName, longTermRetentionDatabaseName, - backupName, - parameters, options }, - spec: copyOperationSpec + listByDatabaseOperationSpec + ); + } + + /** + * Gets a long term retention backup. + * @param locationName The location of the database. + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + get( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + options + }, + getOperationSpec + ); + } + + /** + * Deletes a long term retention backup. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + async beginDelete( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + options + }, + spec: deleteOperationSpec }); - const poller = await createHttpPoller< - LongTermRetentionBackupsCopyResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -685,59 +757,56 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Copy an existing long term retention backup. - * @param locationName The location of the database. + * Deletes a long term retention backup. + * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopyAndWait( + async beginDeleteAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyOptionalParams - ): Promise { - const poller = await this.beginCopy( + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, - parameters, options ); return poller.pollUntilDone(); } /** - * Updates an existing long term retention backup. + * Copy an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The requested backup resource state + * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginUpdate( + async beginCopy( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateOptionalParams + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyOptionalParams ): Promise< SimplePollerLike< - OperationState, - LongTermRetentionBackupsUpdateResponse + OperationState, + LongTermRetentionBackupsCopyResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -783,11 +852,11 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { parameters, options }, - spec: updateOperationSpec + spec: copyOperationSpec }); const poller = await createHttpPoller< - LongTermRetentionBackupsUpdateResponse, - OperationState + LongTermRetentionBackupsCopyResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs @@ -797,23 +866,23 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Updates an existing long term retention backup. + * Copy an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The requested backup resource state + * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginUpdateAndWait( + async beginCopyAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyOptionalParams + ): Promise { + const poller = await this.beginCopy( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -825,51 +894,31 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Gets a long term retention backup. + * Updates an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - get( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - options?: LongTermRetentionBackupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - options - }, - getOperationSpec - ); - } - - /** - * Deletes a long term retention backup. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param options The options parameters. - */ - async beginDelete( + async beginUpdate( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams - ): Promise, void>> { + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LongTermRetentionBackupsUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -912,11 +961,15 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options }, - spec: deleteOperationSpec + spec: updateOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + LongTermRetentionBackupsUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -925,115 +978,152 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Deletes a long term retention backup. - * @param locationName The location of the database + * Updates an existing long term retention backup. + * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - async beginDeleteAndWait( + async beginUpdateAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options ); return poller.pollUntilDone(); } /** - * Lists all long term retention backups for a database. + * Lists the long term retention backups for a given location. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ - private _listByDatabase( + private _listByResourceGroupLocation( + resourceGroupName: string, locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): Promise { + options?: LongTermRetentionBackupsListByResourceGroupLocationOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - }, - listByDatabaseOperationSpec + { resourceGroupName, locationName, options }, + listByResourceGroupLocationOperationSpec ); } /** - * Lists the long term retention backups for a given location. + * Lists the long term retention backups for a given server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server * @param options The options parameters. */ - private _listByLocation( + private _listByResourceGroupServer( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionBackupsListByLocationOptionalParams - ): Promise { + longTermRetentionServerName: string, + options?: LongTermRetentionBackupsListByResourceGroupServerOptionalParams + ): Promise { return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec + { resourceGroupName, locationName, longTermRetentionServerName, options }, + listByResourceGroupServerOperationSpec ); } /** - * Lists the long term retention backups for a given server. + * Lists all long term retention backups for a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ - private _listByServer( + private _listByResourceGroupDatabase( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, - options?: LongTermRetentionBackupsListByServerOptionalParams - ): Promise { + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( - { locationName, longTermRetentionServerName, options }, - listByServerOperationSpec + { + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options + }, + listByResourceGroupDatabaseOperationSpec ); } /** - * Copy an existing long term retention backup to a different server. + * Gets a long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopyByResourceGroup( + getByResourceGroup( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - LongTermRetentionBackupsCopyByResourceGroupResponse - > - > { + options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + options + }, + getByResourceGroupOperationSpec + ); + } + + /** + * Deletes a long term retention backup. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + async beginDeleteByResourceGroup( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1077,15 +1167,11 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { longTermRetentionServerName, longTermRetentionDatabaseName, backupName, - parameters, options }, - spec: copyByResourceGroupOperationSpec + spec: deleteByResourceGroupOperationSpec }); - const poller = await createHttpPoller< - LongTermRetentionBackupsCopyByResourceGroupResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -1094,66 +1180,63 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Copy an existing long term retention backup to a different server. + * Deletes a long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database. + * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopyByResourceGroupAndWait( + async beginDeleteByResourceGroupAndWait( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams - ): Promise { - const poller = await this.beginCopyByResourceGroup( + options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams + ): Promise { + const poller = await this.beginDeleteByResourceGroup( resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, - parameters, options ); return poller.pollUntilDone(); } /** - * Updates an existing long term retention backup. + * Copy an existing long term retention backup to a different server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The requested backup resource state + * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginUpdateByResourceGroup( + async beginCopyByResourceGroup( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams ): Promise< SimplePollerLike< - OperationState, - LongTermRetentionBackupsUpdateByResourceGroupResponse + OperationState, + LongTermRetentionBackupsCopyByResourceGroupResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1200,104 +1283,80 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { parameters, options }, - spec: updateByResourceGroupOperationSpec + spec: copyByResourceGroupOperationSpec }); const poller = await createHttpPoller< - LongTermRetentionBackupsUpdateByResourceGroupResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Updates an existing long term retention backup. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database. - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param parameters The requested backup resource state - * @param options The options parameters. - */ - async beginUpdateByResourceGroupAndWait( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams - ): Promise { - const poller = await this.beginUpdateByResourceGroup( - resourceGroupName, - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - parameters, - options - ); - return poller.pollUntilDone(); + LongTermRetentionBackupsCopyByResourceGroupResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; } /** - * Gets a long term retention backup. + * Copy an existing long term retention backup to a different server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - getByResourceGroup( + async beginCopyByResourceGroupAndWait( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - options - }, - getByResourceGroupOperationSpec + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams + ): Promise { + const poller = await this.beginCopyByResourceGroup( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + parameters, + options ); + return poller.pollUntilDone(); } /** - * Deletes a long term retention backup. + * Updates an existing long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database + * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - async beginDeleteByResourceGroup( + async beginUpdateByResourceGroup( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - ): Promise, void>> { + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LongTermRetentionBackupsUpdateByResourceGroupResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1341,11 +1400,15 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options }, - spec: deleteByResourceGroupOperationSpec + spec: updateByResourceGroupOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + LongTermRetentionBackupsUpdateByResourceGroupResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -1354,127 +1417,37 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Deletes a long term retention backup. + * Updates an existing long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database + * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - async beginDeleteByResourceGroupAndWait( + async beginUpdateByResourceGroupAndWait( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - ): Promise { - const poller = await this.beginDeleteByResourceGroup( + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + ): Promise { + const poller = await this.beginUpdateByResourceGroup( resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options ); return poller.pollUntilDone(); } - /** - * Lists all long term retention backups for a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param options The options parameters. - */ - private _listByResourceGroupDatabase( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - }, - listByResourceGroupDatabaseOperationSpec - ); - } - - /** - * Lists the long term retention backups for a given location. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param options The options parameters. - */ - private _listByResourceGroupLocation( - resourceGroupName: string, - locationName: string, - options?: LongTermRetentionBackupsListByResourceGroupLocationOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, options }, - listByResourceGroupLocationOperationSpec - ); - } - - /** - * Lists the long term retention backups for a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param options The options parameters. - */ - private _listByResourceGroupServer( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - options?: LongTermRetentionBackupsListByResourceGroupServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, longTermRetentionServerName, options }, - listByResourceGroupServerOperationSpec - ); - } - - /** - * ListByDatabaseNext - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. - * @param options The options parameters. - */ - private _listByDatabaseNext( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - nextLink: string, - options?: LongTermRetentionBackupsListByDatabaseNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - nextLink, - options - }, - listByDatabaseNextOperationSpec - ); - } - /** * ListByLocationNext * @param locationName The location of the database @@ -1512,34 +1485,29 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * ListByResourceGroupDatabaseNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. + * ListByDatabaseNext * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupDatabase - * method. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. * @param options The options parameters. */ - private _listByResourceGroupDatabaseNext( - resourceGroupName: string, + private _listByDatabaseNext( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, nextLink: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams - ): Promise { + options?: LongTermRetentionBackupsListByDatabaseNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { - resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, nextLink, options }, - listByResourceGroupDatabaseNextOperationSpec + listByDatabaseNextOperationSpec ); } @@ -1592,112 +1560,87 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { listByResourceGroupServerNextOperationSpec ); } + + /** + * ListByResourceGroupDatabaseNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupDatabase + * method. + * @param options The options parameters. + */ + private _listByResourceGroupDatabaseNext( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + nextLink: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + nextLink, + options + }, + listByResourceGroupDatabaseNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const copyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 201: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 202: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 204: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - default: {} - }, - requestBody: Parameters.parameters66, - queryParameters: [Parameters.apiVersion6], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { +const listByLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 201: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 202: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 204: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult + bodyMapper: Mappers.LongTermRetentionBackupListResult }, default: {} }, - requestBody: Parameters.parameters67, - queryParameters: [Parameters.apiVersion6], + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + Parameters.locationName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const listByServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackup + bodyMapper: Mappers.LongTermRetentionBackupListResult }, default: {} }, - queryParameters: [Parameters.apiVersion6], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", - httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion6], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + Parameters.longTermRetentionServerName ], + headerParameters: [Parameters.accept], serializer }; const listByDatabaseOperationSpec: coreClient.OperationSpec = { @@ -1711,7 +1654,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1725,56 +1668,47 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult + bodyMapper: Mappers.LongTermRetentionBackup }, default: {} }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], headerParameters: [Parameters.accept], serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: {} - }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], - headerParameters: [Parameters.accept], serializer }; -const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { +const copyOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", httpMethod: "POST", responses: { 200: { @@ -1791,24 +1725,23 @@ const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters66, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters43, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, Parameters.backupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { +const updateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", httpMethod: "POST", responses: { 200: { @@ -1825,59 +1758,67 @@ const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters67, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters44, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, Parameters.backupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const getByResourceGroupOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackup + bodyMapper: Mappers.LongTermRetentionBackupListResult }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + Parameters.subscriptionId, + Parameters.locationName ], headerParameters: [Parameters.accept], serializer }; -const deleteByResourceGroupOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", - httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion6], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionBackupListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + Parameters.longTermRetentionServerName ], + headerParameters: [Parameters.accept], serializer }; const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { @@ -1891,14 +1832,14 @@ const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName @@ -1906,73 +1847,112 @@ const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { +const getByResourceGroupOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult + bodyMapper: Mappers.LongTermRetentionBackup }, default: {} }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.locationName + Parameters.subscriptionId, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupServerOperationSpec: coreClient.OperationSpec = { +const deleteByResourceGroupOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName + ], + serializer +}; +const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 201: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 202: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 204: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult }, default: {} }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + requestBody: Parameters.parameters43, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", +const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 201: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 202: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 204: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult }, default: {} }, + requestBody: Parameters.parameters44, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink, Parameters.locationName, Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByLocationNextOperationSpec: coreClient.OperationSpec = { @@ -2012,7 +1992,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -2024,7 +2004,6 @@ const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, Parameters.locationName, Parameters.longTermRetentionServerName, @@ -2044,8 +2023,8 @@ const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName ], @@ -2063,8 +2042,8 @@ const listByResourceGroupServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.longTermRetentionServerName @@ -2072,3 +2051,24 @@ const listByResourceGroupServerNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionBackupListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts index 9e65cc54a56e..ff96f39b6859 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts @@ -21,36 +21,36 @@ import { import { createLroSpec } from "../lroImpl"; import { ManagedInstanceLongTermRetentionBackup, + LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams, + LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, + LongTermRetentionManagedInstanceBackupsListByLocationResponse, LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams, LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams, LongTermRetentionManagedInstanceBackupsListByDatabaseResponse, LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams, LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams, LongTermRetentionManagedInstanceBackupsListByInstanceResponse, - LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams, - LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, - LongTermRetentionManagedInstanceBackupsListByLocationResponse, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse, LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse, LongTermRetentionManagedInstanceBackupsGetOptionalParams, LongTermRetentionManagedInstanceBackupsGetResponse, LongTermRetentionManagedInstanceBackupsDeleteOptionalParams, LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams, LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse, LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams, + LongTermRetentionManagedInstanceBackupsListByLocationNextResponse, LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse, LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse, - LongTermRetentionManagedInstanceBackupsListByLocationNextResponse, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse, - LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse + LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse } from "../models"; /// @@ -67,6 +67,71 @@ export class LongTermRetentionManagedInstanceBackupsImpl this.client = client; } + /** + * Lists the long term retention backups for managed databases in a given location. + * @param locationName The location of the database. + * @param options The options parameters. + */ + public listByLocation( + locationName: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByLocationPagingAll(locationName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByLocationPagingPage(locationName, options, settings); + } + }; + } + + private async *listByLocationPagingPage( + locationName: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: LongTermRetentionManagedInstanceBackupsListByLocationResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByLocation(locationName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByLocationNext( + locationName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByLocationPagingAll( + locationName: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByLocationPagingPage( + locationName, + options + )) { + yield* page; + } + } + /** * Lists all long term retention backups for a managed database. * @param locationName The location of the database. @@ -246,14 +311,21 @@ export class LongTermRetentionManagedInstanceBackupsImpl /** * Lists the long term retention backups for managed databases in a given location. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param options The options parameters. */ - public listByLocation( + public listByResourceGroupLocation( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(locationName, options); + const iter = this.listByResourceGroupLocationPagingAll( + resourceGroupName, + locationName, + options + ); return { next() { return iter.next(); @@ -265,27 +337,38 @@ export class LongTermRetentionManagedInstanceBackupsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByLocationPagingPage(locationName, options, settings); + return this.listByResourceGroupLocationPagingPage( + resourceGroupName, + locationName, + options, + settings + ); } }; } - private async *listByLocationPagingPage( + private async *listByResourceGroupLocationPagingPage( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: LongTermRetentionManagedInstanceBackupsListByLocationResponse; + let result: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByLocation(locationName, options); + result = await this._listByResourceGroupLocation( + resourceGroupName, + locationName, + options + ); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listByLocationNext( + result = await this._listByResourceGroupLocationNext( + resourceGroupName, locationName, continuationToken, options @@ -297,11 +380,13 @@ export class LongTermRetentionManagedInstanceBackupsImpl } } - private async *listByLocationPagingAll( + private async *listByResourceGroupLocationPagingAll( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage( + for await (const page of this.listByResourceGroupLocationPagingPage( + resourceGroupName, locationName, options )) { @@ -508,87 +593,36 @@ export class LongTermRetentionManagedInstanceBackupsImpl /** * Lists the long term retention backups for managed databases in a given location. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param options The options parameters. */ - public listByResourceGroupLocation( - resourceGroupName: string, + private _listByLocation( locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupLocationPagingAll( - resourceGroupName, - locationName, - options + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, options }, + listByLocationOperationSpec ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupLocationPagingPage( - resourceGroupName, - locationName, - options, - settings - ); - } - }; - } - - private async *listByResourceGroupLocationPagingPage( - resourceGroupName: string, - locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroupLocation( - resourceGroupName, - locationName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupLocationNext( - resourceGroupName, - locationName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } } - private async *listByResourceGroupLocationPagingAll( - resourceGroupName: string, + /** + * Lists all long term retention backups for a managed database. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param options The options parameters. + */ + private _listByDatabase( locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupLocationPagingPage( - resourceGroupName, - locationName, - options - )) { - yield* page; - } + managedInstanceName: string, + databaseName: string, + options?: LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); } /** @@ -710,25 +744,6 @@ export class LongTermRetentionManagedInstanceBackupsImpl return poller.pollUntilDone(); } - /** - * Lists all long term retention backups for a managed database. - * @param locationName The location of the database. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the managed database. - * @param options The options parameters. - */ - private _listByDatabase( - locationName: string, - managedInstanceName: string, - databaseName: string, - options?: LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { locationName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * Lists the long term retention backups for a given managed instance. * @param locationName The location of the database @@ -748,16 +763,51 @@ export class LongTermRetentionManagedInstanceBackupsImpl /** * Lists the long term retention backups for managed databases in a given location. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param options The options parameters. */ - private _listByLocation( + private _listByResourceGroupLocation( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams - ): Promise { + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams + ): Promise< + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse + > { return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec + { resourceGroupName, locationName, options }, + listByResourceGroupLocationOperationSpec + ); + } + + /** + * Lists all long term retention backups for a managed database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param options The options parameters. + */ + private _listByResourceGroupDatabase( + resourceGroupName: string, + locationName: string, + managedInstanceName: string, + databaseName: string, + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams + ): Promise< + LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + managedInstanceName, + databaseName, + options + }, + listByResourceGroupDatabaseOperationSpec ); } @@ -900,36 +950,6 @@ export class LongTermRetentionManagedInstanceBackupsImpl return poller.pollUntilDone(); } - /** - * Lists all long term retention backups for a managed database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the managed database. - * @param options The options parameters. - */ - private _listByResourceGroupDatabase( - resourceGroupName: string, - locationName: string, - managedInstanceName: string, - databaseName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams - ): Promise< - LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse - > { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - managedInstanceName, - databaseName, - options - }, - listByResourceGroupDatabaseOperationSpec - ); - } - /** * Lists the long term retention backups for a given managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -953,22 +973,21 @@ export class LongTermRetentionManagedInstanceBackupsImpl } /** - * Lists the long term retention backups for managed databases in a given location. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. + * ListByLocationNext * @param locationName The location of the database. + * @param nextLink The nextLink from the previous successful call to the ListByLocation method. * @param options The options parameters. */ - private _listByResourceGroupLocation( - resourceGroupName: string, + private _listByLocationNext( locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams + nextLink: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams ): Promise< - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse + LongTermRetentionManagedInstanceBackupsListByLocationNextResponse > { return this.client.sendOperationRequest( - { resourceGroupName, locationName, options }, - listByResourceGroupLocationOperationSpec + { locationName, nextLink, options }, + listByLocationNextOperationSpec ); } @@ -1017,21 +1036,25 @@ export class LongTermRetentionManagedInstanceBackupsImpl } /** - * ListByLocationNext + * ListByResourceGroupLocationNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupLocation + * method. * @param options The options parameters. */ - private _listByLocationNext( + private _listByResourceGroupLocationNext( + resourceGroupName: string, locationName: string, nextLink: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams ): Promise< - LongTermRetentionManagedInstanceBackupsListByLocationNextResponse + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse > { return this.client.sendOperationRequest( - { locationName, nextLink, options }, - listByLocationNextOperationSpec + { resourceGroupName, locationName, nextLink, options }, + listByResourceGroupLocationNextOperationSpec ); } @@ -1099,33 +1122,58 @@ export class LongTermRetentionManagedInstanceBackupsImpl listByResourceGroupInstanceNextOperationSpec ); } - - /** - * ListByResourceGroupLocationNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupLocation - * method. - * @param options The options parameters. - */ - private _listByResourceGroupLocationNext( - resourceGroupName: string, - locationName: string, - nextLink: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams - ): Promise< - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse - > { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, nextLink, options }, - listByResourceGroupLocationNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByLocationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.locationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], + urlParameters: [ + Parameters.$host, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.locationName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", @@ -1136,11 +1184,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName @@ -1153,20 +1201,20 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName ], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const listByInstanceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", httpMethod: "GET", responses: { 200: { @@ -1175,23 +1223,22 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.databaseName, Parameters.locationName, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const listByInstanceOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", httpMethod: "GET", responses: { 200: { @@ -1200,22 +1247,22 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.locationName, - Parameters.managedInstanceName + Parameters.locationName ], headerParameters: [Parameters.accept], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", httpMethod: "GET", responses: { 200: { @@ -1224,14 +1271,17 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer @@ -1246,12 +1296,12 @@ const getByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName @@ -1264,44 +1314,18 @@ const deleteByResourceGroupOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName ], serializer }; -const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult - }, - default: {} - }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.databaseName, - Parameters.locationName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByResourceGroupInstanceOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", @@ -1313,23 +1337,22 @@ const listByResourceGroupInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", +const listByLocationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { @@ -1337,15 +1360,10 @@ const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.nextLink, Parameters.locationName ], headerParameters: [Parameters.accept], @@ -1362,8 +1380,8 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.managedInstanceName @@ -1390,7 +1408,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1401,6 +1419,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName @@ -1419,9 +1438,9 @@ const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.managedInstanceName @@ -1440,8 +1459,8 @@ const listByResourceGroupInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.managedInstanceName @@ -1449,22 +1468,3 @@ const listByResourceGroupInstanceNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult - }, - default: {} - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts index ee4cdc7ed63f..2a782613d7df 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts @@ -140,6 +140,26 @@ export class LongTermRetentionPoliciesImpl } } + /** + * Gets a database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: LongTermRetentionPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -276,26 +296,6 @@ export class LongTermRetentionPoliciesImpl return poller.pollUntilDone(); } - /** - * Gets a database's long term retention policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: LongTermRetentionPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -321,6 +321,27 @@ export class LongTermRetentionPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", @@ -331,14 +352,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName + Parameters.subscriptionId, + Parameters.policyName1 ], headerParameters: [Parameters.accept], serializer @@ -362,39 +383,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters30, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters45, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.policyName1 ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -408,10 +408,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts b/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts index 7d37a81d521e..48421453c0a5 100644 --- a/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts @@ -71,15 +71,15 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion, Parameters.maintenanceWindowOptionsName ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts b/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts index 46eb3995825f..5ebd823b46a2 100644 --- a/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts @@ -103,13 +103,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.maintenanceWindowName], + queryParameters: [Parameters.apiVersion, Parameters.maintenanceWindowName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -119,14 +119,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/maintenanceWindows/current", httpMethod: "PUT", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters31, - queryParameters: [Parameters.apiVersion3, Parameters.maintenanceWindowName], + requestBody: Parameters.parameters46, + queryParameters: [Parameters.apiVersion, Parameters.maintenanceWindowName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", diff --git a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts index a3ebdc263efd..3737e9dc3589 100644 --- a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts @@ -142,6 +142,26 @@ export class ManagedBackupShortTermRetentionPoliciesImpl } } + /** + * Gets a managed database's short term retention policy list. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a managed database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -402,26 +422,6 @@ export class ManagedBackupShortTermRetentionPoliciesImpl return poller.pollUntilDone(); } - /** - * Gets a managed database's short term retention policy list. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -455,6 +455,27 @@ export class ManagedBackupShortTermRetentionPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", @@ -465,14 +486,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1 + Parameters.policyName2 ], headerParameters: [Parameters.accept], serializer @@ -496,17 +517,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters47, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1 + Parameters.policyName2 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -529,41 +550,20 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters47, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1 + Parameters.policyName2 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.databaseName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -575,9 +575,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts index 4f21f56c00dd..1af03bcf9773 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts @@ -260,12 +260,12 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -281,14 +281,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName, - Parameters.advancedThreatProtectionName + Parameters.subscriptionId, + Parameters.advancedThreatProtectionName, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer @@ -306,17 +306,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters85, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName, - Parameters.advancedThreatProtectionName + Parameters.subscriptionId, + Parameters.advancedThreatProtectionName, + Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -331,9 +331,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts index 8305947586e6..4954dc4647a7 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts @@ -407,7 +407,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion, Parameters.schema, Parameters.table, Parameters.column, @@ -416,9 +416,9 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -434,12 +434,12 @@ const listByTableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.managedInstanceName @@ -457,12 +457,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -482,9 +482,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], @@ -502,9 +502,9 @@ const listByTableNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.schemaName, Parameters.tableName, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts index 1e6d12515c03..f397f4734878 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts @@ -194,14 +194,14 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.filter1, - Parameters.onlyLatestPerDatabase, - Parameters.apiVersion8 + Parameters.apiVersion, + Parameters.filter, + Parameters.onlyLatestPerDatabase ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName ], headerParameters: [Parameters.accept], @@ -217,13 +217,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.locationName, - Parameters.operationId + Parameters.subscriptionId, + Parameters.operationId, + Parameters.locationName ], headerParameters: [Parameters.accept], serializer @@ -239,8 +239,8 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts index 8fa799c006f5..01b5e3b7e828 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts @@ -239,12 +239,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.queryId ], @@ -262,16 +262,16 @@ const listByQueryOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion, Parameters.startTime, Parameters.endTime, Parameters.interval ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.queryId ], @@ -289,9 +289,9 @@ const listByQueryNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName, Parameters.queryId diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts index 4495b39a248a..48a997b1c468 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts @@ -65,13 +65,13 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters74, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters52, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts index 93e16abc5e05..374ee8c43a2a 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts @@ -71,12 +71,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.restoreDetailsName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts index 4cd53b391edf..5f5daa940d6a 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts @@ -219,12 +219,12 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -240,12 +240,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.managedInstanceName ], @@ -263,9 +263,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts index bbdd9b4820be..c9cb0a02dd24 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts @@ -135,6 +135,27 @@ export class ManagedDatabaseSecurityAlertPoliciesImpl } } + /** + * Gets a list of managed database's security alert policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policies are + * defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a managed database's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -194,27 +215,6 @@ export class ManagedDatabaseSecurityAlertPoliciesImpl ); } - /** - * Gets a list of managed database's security alert policies. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the managed database for which the security alert policies are - * defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -247,74 +247,74 @@ export class ManagedDatabaseSecurityAlertPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicyListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.securityAlertPolicyName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy }, - 201: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy - }, default: {} }, - requestBody: Parameters.parameters33, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.securityAlertPolicyName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicyListResult + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy + }, + 201: { + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters49, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, + Parameters.securityAlertPolicyName, Parameters.managedInstanceName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -328,9 +328,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts index 6d0c1c76d83e..a3a24dbb483e 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts @@ -191,17 +191,17 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.filter1, - Parameters.skip, - Parameters.apiVersion3, + Parameters.apiVersion, Parameters.skiptoken, + Parameters.filter, + Parameters.skip, Parameters.top ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -218,9 +218,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts index c2691e7a4472..5c38dd66888d 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts @@ -21,6 +21,11 @@ import { ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams, ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams, ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse, + ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams, + ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams, + ManagedDatabaseSensitivityLabelsListByDatabaseResponse, + SensitivityLabelUpdateList, + ManagedDatabaseSensitivityLabelsUpdateOptionalParams, SensitivityLabelSource, ManagedDatabaseSensitivityLabelsGetOptionalParams, ManagedDatabaseSensitivityLabelsGetResponse, @@ -29,10 +34,9 @@ import { ManagedDatabaseSensitivityLabelsDeleteOptionalParams, ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams, ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams, - SensitivityLabelUpdateList, - ManagedDatabaseSensitivityLabelsUpdateOptionalParams, ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse, - ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse + ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse, + ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse } from "../models"; /// @@ -237,6 +241,170 @@ export class ManagedDatabaseSensitivityLabelsImpl } } + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + public listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( + resourceGroupName, + managedInstanceName, + databaseName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByDatabasePagingPage( + resourceGroupName, + managedInstanceName, + databaseName, + options, + settings + ); + } + }; + } + + private async *listByDatabasePagingPage( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedDatabaseSensitivityLabelsListByDatabaseResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDatabase( + resourceGroupName, + managedInstanceName, + databaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + managedInstanceName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByDatabasePagingAll( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( + resourceGroupName, + managedInstanceName, + databaseName, + options + )) { + yield* page; + } + } + + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listCurrentByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listCurrentByDatabaseOperationSpec + ); + } + + /** + * Update sensitivity labels of a given database using an operations batch. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters A list of sensitivity label update operations. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: SensitivityLabelUpdateList, + options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listRecommendedByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams + ): Promise< + ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listRecommendedByDatabaseOperationSpec + ); + } + /** * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -422,85 +590,66 @@ export class ManagedDatabaseSensitivityLabelsImpl * @param databaseName The name of the database. * @param options The options parameters. */ - private _listCurrentByDatabase( + private _listByDatabase( resourceGroupName: string, managedInstanceName: string, databaseName: string, - options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams - ): Promise { + options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, managedInstanceName, databaseName, options }, - listCurrentByDatabaseOperationSpec + listByDatabaseOperationSpec ); } /** - * Update sensitivity labels of a given database using an operations batch. + * ListCurrentByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. - * @param parameters A list of sensitivity label update operations. + * @param nextLink The nextLink from the previous successful call to the ListCurrentByDatabase method. * @param options The options parameters. */ - update( + private _listCurrentByDatabaseNext( resourceGroupName: string, managedInstanceName: string, databaseName: string, - parameters: SensitivityLabelUpdateList, - options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams - ): Promise { + nextLink: string, + options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams + ): Promise< + ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse + > { return this.client.sendOperationRequest( { resourceGroupName, managedInstanceName, databaseName, - parameters, + nextLink, options }, - updateOperationSpec - ); - } - - /** - * Gets the sensitivity labels of a given database - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listRecommendedByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams - ): Promise< - ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse - > { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listRecommendedByDatabaseOperationSpec + listCurrentByDatabaseNextOperationSpec ); } /** - * ListCurrentByDatabaseNext + * ListRecommendedByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. - * @param nextLink The nextLink from the previous successful call to the ListCurrentByDatabase method. + * @param nextLink The nextLink from the previous successful call to the ListRecommendedByDatabase + * method. * @param options The options parameters. */ - private _listCurrentByDatabaseNext( + private _listRecommendedByDatabaseNext( resourceGroupName: string, managedInstanceName: string, databaseName: string, nextLink: string, - options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams + options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams ): Promise< - ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse + ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse > { return this.client.sendOperationRequest( { @@ -510,29 +659,26 @@ export class ManagedDatabaseSensitivityLabelsImpl nextLink, options }, - listCurrentByDatabaseNextOperationSpec + listRecommendedByDatabaseNextOperationSpec ); } /** - * ListRecommendedByDatabaseNext + * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. - * @param nextLink The nextLink from the previous successful call to the ListRecommendedByDatabase - * method. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. * @param options The options parameters. */ - private _listRecommendedByDatabaseNext( + private _listByDatabaseNext( resourceGroupName: string, managedInstanceName: string, databaseName: string, nextLink: string, - options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams - ): Promise< - ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse - > { + options?: ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -541,13 +687,83 @@ export class ManagedDatabaseSensitivityLabelsImpl nextLink, options }, - listRecommendedByDatabaseNextOperationSpec + listByDatabaseNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.skipToken, + Parameters.count + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", + httpMethod: "PATCH", + responses: { 200: {}, default: {} }, + requestBody: Parameters.parameters50, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.contentType], + mediaType: "json", + serializer +}; +const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.skipToken, + Parameters.includeDisabledRecommendations + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", @@ -558,12 +774,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -586,20 +802,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters72, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters51, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, Parameters.managedInstanceName, Parameters.sensitivityLabelSource1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -608,12 +824,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -627,12 +843,12 @@ const disableRecommendationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -646,12 +862,12 @@ const enableRecommendationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -660,9 +876,9 @@ const enableRecommendationOperationSpec: coreClient.OperationSpec = { ], serializer }; -const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/sensitivityLabels", httpMethod: "GET", responses: { 200: { @@ -670,43 +886,19 @@ const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [ - Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion3, - Parameters.count - ], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", - httpMethod: "PATCH", - responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters73, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.databaseName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", +const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { @@ -714,23 +906,18 @@ const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [ - Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion3, - Parameters.includeDisabledRecommendations - ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, + Parameters.nextLink, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { +const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -741,16 +928,16 @@ const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -761,9 +948,9 @@ const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts index 502c6909d5fc..bc8614c36c86 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts @@ -242,12 +242,12 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.managedInstanceName ], @@ -264,12 +264,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.managedInstanceName @@ -288,9 +288,9 @@ const listBySchemaNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.schemaName, Parameters.managedInstanceName diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts index 96f3658dec02..888006d792f4 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts @@ -135,6 +135,27 @@ export class ManagedDatabaseTransparentDataEncryptionImpl } } + /** + * Gets a list of managed database's transparent data encryptions. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the transparent data encryption is + * defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a managed database's transparent data encryption. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -195,27 +216,6 @@ export class ManagedDatabaseTransparentDataEncryptionImpl ); } - /** - * Gets a list of managed database's transparent data encryptions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the managed database for which the transparent data encryption is - * defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -250,74 +250,74 @@ export class ManagedDatabaseTransparentDataEncryptionImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedTransparentDataEncryption + bodyMapper: Mappers.ManagedTransparentDataEncryptionListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName, - Parameters.tdeName + Parameters.subscriptionId, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ManagedTransparentDataEncryption }, - 201: { - bodyMapper: Mappers.ManagedTransparentDataEncryption - }, default: {} }, - requestBody: Parameters.parameters34, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.tdeName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ManagedTransparentDataEncryptionListResult + bodyMapper: Mappers.ManagedTransparentDataEncryption + }, + 201: { + bodyMapper: Mappers.ManagedTransparentDataEncryption }, default: {} }, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters53, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.tdeName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -331,9 +331,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts index 7ba333464cdb..22f138f77d21 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts @@ -16,7 +16,7 @@ import { VulnerabilityAssessmentPolicyBaselineName, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse, - DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams @@ -92,7 +92,7 @@ export class ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, - parameters: DatabaseVulnerabilityAssessmentRuleBaseline, + parameters: DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams ): Promise< ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse @@ -157,19 +157,20 @@ const getOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentRuleBaseline + bodyMapper: + Mappers.DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName, + Parameters.baselineName1, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -181,23 +182,24 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentRuleBaseline + bodyMapper: + Mappers.DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated }, default: {} }, - requestBody: Parameters.parameters15, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters54, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName, + Parameters.baselineName1, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -206,15 +208,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName, + Parameters.baselineName1, Parameters.managedInstanceName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts index 469dbc414f2d..ffaa91714c49 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts @@ -25,11 +25,11 @@ import { ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse, - ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, - ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams, - ManagedDatabaseVulnerabilityAssessmentScansExportResponse, ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansGetResponse, + ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams, + ManagedDatabaseVulnerabilityAssessmentScansExportResponse, + ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse } from "../models"; @@ -150,6 +150,98 @@ export class ManagedDatabaseVulnerabilityAssessmentScansImpl } } + /** + * Lists the vulnerability assessment scans of a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams + ): Promise< + ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + vulnerabilityAssessmentName, + options + }, + listByDatabaseOperationSpec + ); + } + + /** + * Gets a vulnerability assessment scan record of a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + getOperationSpec + ); + } + + /** + * Convert an existing scan result to a human readable format. If already exists nothing happens + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the scanned database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id. + * @param options The options parameters. + */ + export( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + exportOperationSpec + ); + } + /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -256,98 +348,6 @@ export class ManagedDatabaseVulnerabilityAssessmentScansImpl return poller.pollUntilDone(); } - /** - * Convert an existing scan result to a human readable format. If already exists nothing happens - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the scanned database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id. - * @param options The options parameters. - */ - export( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - vulnerabilityAssessmentName, - scanId, - options - }, - exportOperationSpec - ); - } - - /** - * Lists the vulnerability assessment scans of a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams - ): Promise< - ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse - > { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - vulnerabilityAssessmentName, - options - }, - listByDatabaseOperationSpec - ); - } - - /** - * Gets a vulnerability assessment scan record of a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - vulnerabilityAssessmentName, - scanId, - options - }, - getOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -384,42 +384,44 @@ export class ManagedDatabaseVulnerabilityAssessmentScansImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const initiateScanOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.scanId, Parameters.managedInstanceName ], + headerParameters: [Parameters.accept], serializer }; -const exportOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport - }, - 201: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport + bodyMapper: Mappers.VulnerabilityAssessmentScanRecord }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId, Parameters.managedInstanceName @@ -427,49 +429,47 @@ const exportOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const exportOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport + }, + 201: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, + Parameters.scanId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const initiateScanOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecord - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId, Parameters.managedInstanceName ], - headerParameters: [Parameters.accept], serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -483,9 +483,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts index 6a319ea249ad..c1533bc20698 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts @@ -135,6 +135,26 @@ export class ManagedDatabaseVulnerabilityAssessmentsImpl } } + /** + * Lists the vulnerability assessments of a managed database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database for which the vulnerability assessment is defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets the database's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -222,26 +242,6 @@ export class ManagedDatabaseVulnerabilityAssessmentsImpl ); } - /** - * Lists the vulnerability assessments of a managed database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database for which the vulnerability assessment is defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -275,6 +275,27 @@ export class ManagedDatabaseVulnerabilityAssessmentsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", @@ -285,12 +306,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], @@ -311,16 +332,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { default: {} }, requestBody: Parameters.parameters16, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -329,36 +350,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.managedInstanceName - ], - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.databaseName, + Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], - headerParameters: [Parameters.accept], serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -372,9 +372,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabases.ts b/sdk/sql/arm-sql/src/operations/managedDatabases.ts index 3291b982c3e9..20f9f268c3a3 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabases.ts @@ -1044,11 +1044,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1064,12 +1064,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1094,16 +1094,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters91, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters55, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1112,12 +1112,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], serializer @@ -1141,16 +1141,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters92, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters56, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1159,13 +1159,13 @@ const cancelMoveOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/cancelMove", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters93, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters57, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], @@ -1177,13 +1177,13 @@ const completeMoveOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/completeMove", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters93, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters57, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], @@ -1195,13 +1195,13 @@ const completeRestoreOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/completeRestore", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters94, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], @@ -1213,13 +1213,13 @@ const startMoveOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/startMove", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters95, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters59, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], @@ -1236,11 +1236,11 @@ const listInaccessibleByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1257,8 +1257,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], @@ -1276,8 +1276,8 @@ const listInaccessibleByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts index 22f363c4a739..46a0aa828307 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts @@ -405,11 +405,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -425,11 +425,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.administratorName ], @@ -455,16 +455,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters35, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters60, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.administratorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -473,11 +473,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators/{administratorName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.administratorName ], @@ -494,8 +494,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts index 1fa9f7d88afe..e994bc4e43be 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts @@ -325,11 +325,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -345,13 +345,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.advancedThreatProtectionName + Parameters.subscriptionId, + Parameters.advancedThreatProtectionName, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer @@ -375,16 +375,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters86, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters61, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.advancedThreatProtectionName + Parameters.subscriptionId, + Parameters.advancedThreatProtectionName, + Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -399,8 +399,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts index d69b36b18a72..c7167cacd386 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts @@ -132,6 +132,24 @@ export class ManagedInstanceAzureADOnlyAuthenticationsImpl } } + /** + * Gets a list of server Azure Active Directory only authentications. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + /** * Gets a specific Azure Active Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -362,24 +380,6 @@ export class ManagedInstanceAzureADOnlyAuthenticationsImpl return poller.pollUntilDone(); } - /** - * Gets a list of server Azure Active Directory only authentications. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param options The options parameters. - */ - private _listByInstance( - resourceGroupName: string, - managedInstanceName: string, - options?: ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec - ); - } - /** * ListByInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -405,6 +405,26 @@ export class ManagedInstanceAzureADOnlyAuthenticationsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceAzureADOnlyAuthListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/{authenticationName}", @@ -415,11 +435,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.authenticationName ], @@ -445,16 +465,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters36, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters62, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.authenticationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -463,36 +483,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/{authenticationName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.authenticationName ], serializer }; -const listByInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceAzureADOnlyAuthListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByInstanceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -504,8 +504,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts b/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts index 001cbaa8a45b..45832fd2b643 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts @@ -309,11 +309,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -329,11 +329,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dtcName ], @@ -359,16 +359,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters88, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters63, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dtcName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -383,8 +383,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts index 492e33384460..40881c56ebd8 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts @@ -25,11 +25,11 @@ import { ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams, ManagedInstanceEncryptionProtectorsListByInstanceResponse, EncryptionProtectorName, - ManagedInstanceEncryptionProtectorsRevalidateOptionalParams, ManagedInstanceEncryptionProtectorsGetOptionalParams, ManagedInstanceEncryptionProtectorsGetResponse, ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams, ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse, + ManagedInstanceEncryptionProtectorsRevalidateOptionalParams, ManagedInstanceEncryptionProtectorsListByInstanceNextResponse } from "../models"; @@ -133,23 +133,73 @@ export class ManagedInstanceEncryptionProtectorsImpl } /** - * Revalidates an existing encryption protector. + * Gets a list of managed instance encryption protectors + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + + /** + * Gets a managed instance encryption protector. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param encryptionProtectorName The name of the encryption protector to be retrieved. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: ManagedInstanceEncryptionProtectorsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + encryptionProtectorName, + options + }, + getOperationSpec + ); + } + + /** + * Updates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be updated. + * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ - async beginRevalidate( + async beginCreateOrUpdate( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - ): Promise, void>> { + parameters: ManagedInstanceEncryptionProtector, + options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -191,11 +241,15 @@ export class ManagedInstanceEncryptionProtectorsImpl resourceGroupName, managedInstanceName, encryptionProtectorName, + parameters, options }, - spec: revalidateOperationSpec + spec: createOrUpdateOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -204,96 +258,49 @@ export class ManagedInstanceEncryptionProtectorsImpl } /** - * Revalidates an existing encryption protector. + * Updates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be updated. + * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ - async beginRevalidateAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - ): Promise { - const poller = await this.beginRevalidate( + parameters: ManagedInstanceEncryptionProtector, + options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, managedInstanceName, encryptionProtectorName, + parameters, options ); return poller.pollUntilDone(); } /** - * Gets a list of managed instance encryption protectors - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param options The options parameters. - */ - private _listByInstance( - resourceGroupName: string, - managedInstanceName: string, - options?: ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec - ); - } - - /** - * Gets a managed instance encryption protector. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param encryptionProtectorName The name of the encryption protector to be retrieved. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - managedInstanceName: string, - encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - encryptionProtectorName, - options - }, - getOperationSpec - ); - } - - /** - * Updates an existing encryption protector. + * Revalidates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be updated. - * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginRevalidate( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, - parameters: ManagedInstanceEncryptionProtector, - options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse - > - > { + options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -335,15 +342,11 @@ export class ManagedInstanceEncryptionProtectorsImpl resourceGroupName, managedInstanceName, encryptionProtectorName, - parameters, options }, - spec: createOrUpdateOperationSpec + spec: revalidateOperationSpec }); - const poller = await createHttpPoller< - ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -352,26 +355,23 @@ export class ManagedInstanceEncryptionProtectorsImpl } /** - * Updates an existing encryption protector. + * Revalidates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be updated. - * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginRevalidateAndWait( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, - parameters: ManagedInstanceEncryptionProtector, - options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + ): Promise { + const poller = await this.beginRevalidate( resourceGroupName, managedInstanceName, encryptionProtectorName, - parameters, options ); return poller.pollUntilDone(); @@ -400,21 +400,6 @@ export class ManagedInstanceEncryptionProtectorsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const revalidateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}/revalidate", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.encryptionProtectorName, - Parameters.managedInstanceName - ], - serializer -}; const listByInstanceOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector", @@ -425,11 +410,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -445,11 +430,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.encryptionProtectorName, Parameters.managedInstanceName ], @@ -475,19 +460,34 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters37, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters64, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.encryptionProtectorName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; +const revalidateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}/revalidate", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.encryptionProtectorName, + Parameters.managedInstanceName + ], + serializer +}; const listByInstanceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -499,8 +499,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts index 725908c2504c..7a768c6e04a5 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts @@ -398,11 +398,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -418,11 +418,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.keyName ], @@ -448,16 +448,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters65, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.keyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -466,11 +466,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys/{keyName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.keyName ], @@ -487,8 +487,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts index d3868036d6bb..682081ab9a07 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts @@ -29,6 +29,8 @@ import { ManagedInstanceLongTermRetentionPoliciesGetResponse, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse, + ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams, + ManagedInstanceLongTermRetentionPoliciesDeleteResponse, ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse } from "../models"; @@ -140,6 +142,26 @@ export class ManagedInstanceLongTermRetentionPoliciesImpl } } + /** + * Gets a database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a managed database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -287,23 +309,111 @@ export class ManagedInstanceLongTermRetentionPoliciesImpl } /** - * Gets a database's long term retention policy. + * Deletes a managed database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. + * @param policyName The policy name. Should always be Default. * @param options The options parameters. */ - private _listByDatabase( + async beginDelete( resourceGroupName: string, managedInstanceName: string, databaseName: string, - options?: ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec + policyName: ManagedInstanceLongTermRetentionPolicyName, + options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstanceLongTermRetentionPoliciesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + managedInstanceName, + databaseName, + policyName, + options + }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + ManagedInstanceLongTermRetentionPoliciesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a managed database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param policyName The policy name. Should always be Default. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + policyName: ManagedInstanceLongTermRetentionPolicyName, + options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + managedInstanceName, + databaseName, + policyName, + options ); + return poller.pollUntilDone(); } /** @@ -339,6 +449,27 @@ export class ManagedInstanceLongTermRetentionPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", @@ -349,14 +480,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName2 + Parameters.policyName3 ], headerParameters: [Parameters.accept], serializer @@ -380,37 +511,47 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters39, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters66, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName2 + Parameters.policyName3 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", + httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicyListResult + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy + }, + 201: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy + }, + 202: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy + }, + 204: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.policyName3 ], headerParameters: [Parameters.accept], serializer @@ -426,9 +567,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts index 83f954fa3669..f49dea5da490 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts @@ -214,11 +214,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -234,11 +234,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.operationId, Parameters.managedInstanceName ], @@ -250,11 +250,11 @@ const cancelOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations/{operationId}/cancel", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.operationId, Parameters.managedInstanceName ], @@ -271,8 +271,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts index 56b94d8ffb79..dc01c6b37cb5 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts @@ -131,6 +131,26 @@ export class ManagedInstancePrivateEndpointConnectionsImpl } } + /** + * Gets all private endpoint connections on a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByManagedInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams + ): Promise< + ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByManagedInstanceOperationSpec + ); + } + /** * Gets a private endpoint connection. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -362,26 +382,6 @@ export class ManagedInstancePrivateEndpointConnectionsImpl return poller.pollUntilDone(); } - /** - * Gets all private endpoint connections on a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param options The options parameters. - */ - private _listByManagedInstance( - resourceGroupName: string, - managedInstanceName: string, - options?: ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams - ): Promise< - ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse - > { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByManagedInstanceOperationSpec - ); - } - /** * ListByManagedInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -407,6 +407,26 @@ export class ManagedInstancePrivateEndpointConnectionsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstancePrivateEndpointConnectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections/{privateEndpointConnectionName}", @@ -417,11 +437,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.privateEndpointConnectionName ], @@ -447,16 +467,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters40, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters67, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -465,36 +485,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.privateEndpointConnectionName ], serializer }; -const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstancePrivateEndpointConnectionListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -506,8 +506,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts index d4272d26ac39..8cf4021e1a89 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts @@ -195,11 +195,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -215,11 +215,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.groupName ], @@ -237,8 +237,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts index ca77a8f4e4ae..e8d31f3556d7 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts @@ -132,12 +132,12 @@ const createOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/tdeCertificates", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters41, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters68, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts index 374e12c30b00..6b777999df6c 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts @@ -127,6 +127,25 @@ export class ManagedInstanceVulnerabilityAssessmentsImpl } } + /** + * Gets the managed instance's vulnerability assessment policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance for which the vulnerability assessments + * is defined. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + /** * Gets the managed instance's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -210,25 +229,6 @@ export class ManagedInstanceVulnerabilityAssessmentsImpl ); } - /** - * Gets the managed instance's vulnerability assessment policies. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance for which the vulnerability assessments - * is defined. - * @param options The options parameters. - */ - private _listByInstance( - resourceGroupName: string, - managedInstanceName: string, - options?: ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec - ); - } - /** * ListByInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -255,6 +255,26 @@ export class ManagedInstanceVulnerabilityAssessmentsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", @@ -265,11 +285,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], @@ -289,16 +309,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters42, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters69, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -307,34 +327,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vulnerabilityAssessmentName, - Parameters.managedInstanceName - ], - serializer -}; -const listByInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceVulnerabilityAssessmentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], - headerParameters: [Parameters.accept], serializer }; const listByInstanceNextOperationSpec: coreClient.OperationSpec = { @@ -348,8 +348,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstances.ts b/sdk/sql/arm-sql/src/operations/managedInstances.ts index 8ae5acfe20f6..2ee66c23249e 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstances.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstances.ts @@ -48,7 +48,9 @@ import { ManagedInstancesUpdateResponse, ManagedInstancesFailoverOptionalParams, ManagedInstancesStartOptionalParams, + ManagedInstancesStartResponse, ManagedInstancesStopOptionalParams, + ManagedInstancesStopResponse, ManagedInstancesListNextResponse, ManagedInstancesListByInstancePoolNextResponse, ManagedInstancesListByResourceGroupNextResponse, @@ -903,11 +905,16 @@ export class ManagedInstancesImpl implements ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesStartResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -948,7 +955,10 @@ export class ManagedInstancesImpl implements ManagedInstances { args: { resourceGroupName, managedInstanceName, options }, spec: startOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ManagedInstancesStartResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -968,7 +978,7 @@ export class ManagedInstancesImpl implements ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams - ): Promise { + ): Promise { const poller = await this.beginStart( resourceGroupName, managedInstanceName, @@ -988,11 +998,16 @@ export class ManagedInstancesImpl implements ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesStopResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1033,7 +1048,10 @@ export class ManagedInstancesImpl implements ManagedInstances { args: { resourceGroupName, managedInstanceName, options }, spec: stopOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ManagedInstancesStopResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -1053,7 +1071,7 @@ export class ManagedInstancesImpl implements ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams - ): Promise { + ): Promise { const poller = await this.beginStop( resourceGroupName, managedInstanceName, @@ -1189,7 +1207,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -1204,11 +1222,11 @@ const listByInstancePoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], headerParameters: [Parameters.accept], @@ -1224,11 +1242,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1243,11 +1261,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1272,15 +1290,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters96, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters70, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1289,11 +1307,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], serializer @@ -1317,15 +1335,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters97, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters71, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1334,11 +1352,11 @@ const failoverOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.replicaType], + queryParameters: [Parameters.apiVersion, Parameters.replicaType], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], serializer @@ -1353,11 +1371,11 @@ const listOutboundNetworkDependenciesByManagedInstanceOperationSpec: coreClient. }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1367,28 +1385,58 @@ const startOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/start", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstance + }, + 201: { + bodyMapper: Mappers.ManagedInstance + }, + 202: { + bodyMapper: Mappers.ManagedInstance + }, + 204: { + bodyMapper: Mappers.ManagedInstance + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], + headerParameters: [Parameters.accept], serializer }; const stopOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/stop", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstance + }, + 201: { + bodyMapper: Mappers.ManagedInstance + }, + 202: { + bodyMapper: Mappers.ManagedInstance + }, + 204: { + bodyMapper: Mappers.ManagedInstance + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], + headerParameters: [Parameters.accept], serializer }; const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { @@ -1402,7 +1450,7 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion, Parameters.startTime, Parameters.endTime, Parameters.interval, @@ -1413,8 +1461,8 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1448,8 +1496,8 @@ const listByInstancePoolNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.instancePoolName ], @@ -1467,8 +1515,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -1485,8 +1533,8 @@ const listOutboundNetworkDependenciesByManagedInstanceNextOperationSpec: coreCli }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], @@ -1504,8 +1552,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts b/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts index 0becad7c84cf..2b08860d247e 100644 --- a/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts @@ -455,12 +455,12 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -476,12 +476,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.ledgerDigestUploads1 ], @@ -507,17 +507,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters98, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters72, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.ledgerDigestUploads1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -540,12 +540,12 @@ const disableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.ledgerDigestUploads1 ], @@ -563,9 +563,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts index cfa11d83dfc7..67491438e0af 100644 --- a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts @@ -142,6 +142,33 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImp } } + /** + * Gets a dropped database's short term retention policy list. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param options The options parameters. + */ + private _listByRestorableDroppedDatabase( + resourceGroupName: string, + managedInstanceName: string, + restorableDroppedDatabaseId: string, + options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams + ): Promise< + ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + restorableDroppedDatabaseId, + options + }, + listByRestorableDroppedDatabaseOperationSpec + ); + } + /** * Gets a dropped database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -412,33 +439,6 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImp return poller.pollUntilDone(); } - /** - * Gets a dropped database's short term retention policy list. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param restorableDroppedDatabaseId - * @param options The options parameters. - */ - private _listByRestorableDroppedDatabase( - resourceGroupName: string, - managedInstanceName: string, - restorableDroppedDatabaseId: string, - options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams - ): Promise< - ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse - > { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - restorableDroppedDatabaseId, - options - }, - listByRestorableDroppedDatabaseOperationSpec - ); - } - /** * ListByRestorableDroppedDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -473,6 +473,27 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImp // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByRestorableDroppedDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.restorableDroppedDatabaseId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}", @@ -483,13 +504,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1, + Parameters.policyName2, Parameters.restorableDroppedDatabaseId ], headerParameters: [Parameters.accept], @@ -514,17 +535,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters47, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1, + Parameters.policyName2, Parameters.restorableDroppedDatabaseId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -547,39 +568,18 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters47, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.policyName1, - Parameters.restorableDroppedDatabaseId - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByRestorableDroppedDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.managedInstanceName, + Parameters.policyName2, Parameters.restorableDroppedDatabaseId ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByRestorableDroppedDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -593,8 +593,8 @@ const listByRestorableDroppedDatabaseNextOperationSpec: coreClient.OperationSpec }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName, Parameters.restorableDroppedDatabaseId diff --git a/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts b/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts index 9892cdac4d73..cfa3ee7a9f96 100644 --- a/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts +++ b/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts @@ -510,11 +510,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -530,11 +530,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dnsAliasName ], @@ -560,16 +560,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters81, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters73, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dnsAliasName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -578,11 +578,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dnsAliases/{dnsAliasName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dnsAliasName ], @@ -607,16 +607,16 @@ const acquireOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters82, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters74, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dnsAliasName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -631,8 +631,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts index aa8b76cbc463..63cd83c6a0b3 100644 --- a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts @@ -24,7 +24,7 @@ import { ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams, ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams, ManagedServerSecurityAlertPoliciesListByInstanceResponse, - SecurityAlertPolicyName, + SecurityAlertPolicyNameAutoGenerated, ManagedServerSecurityAlertPoliciesGetOptionalParams, ManagedServerSecurityAlertPoliciesGetResponse, ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams, @@ -131,6 +131,24 @@ export class ManagedServerSecurityAlertPoliciesImpl } } + /** + * Get the managed server's threat detection policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + /** * Get a managed server's threat detection policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -142,7 +160,7 @@ export class ManagedServerSecurityAlertPoliciesImpl get( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -168,7 +186,7 @@ export class ManagedServerSecurityAlertPoliciesImpl async beginCreateOrUpdate( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise< @@ -250,7 +268,7 @@ export class ManagedServerSecurityAlertPoliciesImpl async beginCreateOrUpdateAndWait( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise { @@ -264,24 +282,6 @@ export class ManagedServerSecurityAlertPoliciesImpl return poller.pollUntilDone(); } - /** - * Get the managed server's threat detection policies. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param options The options parameters. - */ - private _listByInstance( - resourceGroupName: string, - managedInstanceName: string, - options?: ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec - ); - } - /** * ListByInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -305,6 +305,26 @@ export class ManagedServerSecurityAlertPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedServerSecurityAlertPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}", @@ -315,13 +335,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.securityAlertPolicyName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.securityAlertPolicyName1 ], headerParameters: [Parameters.accept], serializer @@ -345,37 +365,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters43, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters75, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.securityAlertPolicyName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedServerSecurityAlertPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.managedInstanceName + Parameters.managedInstanceName, + Parameters.securityAlertPolicyName1 ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByInstanceNextOperationSpec: coreClient.OperationSpec = { @@ -389,8 +389,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts b/sdk/sql/arm-sql/src/operations/networkSecurityPerimeterConfigurations.ts similarity index 56% rename from sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts rename to sdk/sql/arm-sql/src/operations/networkSecurityPerimeterConfigurations.ts index 657d69692402..292ea8c4a9db 100644 --- a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts +++ b/sdk/sql/arm-sql/src/operations/networkSecurityPerimeterConfigurations.ts @@ -7,7 +7,8 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { ServerCommunicationLinks } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper"; +import { NetworkSecurityPerimeterConfigurations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; @@ -19,23 +20,25 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { - ServerCommunicationLink, - ServerCommunicationLinksListByServerOptionalParams, - ServerCommunicationLinksListByServerResponse, - ServerCommunicationLinksDeleteOptionalParams, - ServerCommunicationLinksGetOptionalParams, - ServerCommunicationLinksGetResponse, - ServerCommunicationLinksCreateOrUpdateOptionalParams, - ServerCommunicationLinksCreateOrUpdateResponse + NetworkSecurityPerimeterConfiguration, + NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams, + NetworkSecurityPerimeterConfigurationsListByServerOptionalParams, + NetworkSecurityPerimeterConfigurationsListByServerResponse, + NetworkSecurityPerimeterConfigurationsGetOptionalParams, + NetworkSecurityPerimeterConfigurationsGetResponse, + NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + NetworkSecurityPerimeterConfigurationsReconcileResponse, + NetworkSecurityPerimeterConfigurationsListByServerNextResponse } from "../models"; /// -/** Class containing ServerCommunicationLinks operations. */ -export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { +/** Class containing NetworkSecurityPerimeterConfigurations operations. */ +export class NetworkSecurityPerimeterConfigurationsImpl + implements NetworkSecurityPerimeterConfigurations { private readonly client: SqlManagementClient; /** - * Initialize a new instance of the class ServerCommunicationLinks class. + * Initialize a new instance of the class NetworkSecurityPerimeterConfigurations class. * @param client Reference to the service client */ constructor(client: SqlManagementClient) { @@ -43,7 +46,7 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { } /** - * Gets a list of server communication links. + * Gets a list of NSP configurations for a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -52,8 +55,8 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { public listByServer( resourceGroupName: string, serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams - ): PagedAsyncIterableIterator { + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + ): PagedAsyncIterableIterator { const iter = this.listByServerPagingAll( resourceGroupName, serverName, @@ -83,19 +86,37 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { private async *listByServerPagingPage( resourceGroupName: string, serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ServerCommunicationLinksListByServerResponse; - result = await this._listByServer(resourceGroupName, serverName, options); - yield result.value || []; + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NetworkSecurityPerimeterConfigurationsListByServerResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByServer(resourceGroupName, serverName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServerNext( + resourceGroupName, + serverName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } } private async *listByServerPagingAll( resourceGroupName: string, serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams - ): AsyncIterableIterator { + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + ): AsyncIterableIterator { for await (const page of this.listByServerPagingPage( resourceGroupName, serverName, @@ -106,70 +127,66 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { } /** - * Deletes a server communication link. + * Gets a list of NSP configurations for a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. * @param options The options parameters. */ - delete( + private _listByServer( resourceGroupName: string, serverName: string, - communicationLinkName: string, - options?: ServerCommunicationLinksDeleteOptionalParams - ): Promise { + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, communicationLinkName, options }, - deleteOperationSpec + { resourceGroupName, serverName, options }, + listByServerOperationSpec ); } /** - * Returns a server communication link. + * Gets a network security perimeter configuration. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. + * @param nspConfigName * @param options The options parameters. */ get( resourceGroupName: string, serverName: string, - communicationLinkName: string, - options?: ServerCommunicationLinksGetOptionalParams - ): Promise { + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, communicationLinkName, options }, + { resourceGroupName, serverName, nspConfigName, options }, getOperationSpec ); } /** - * Creates a server communication link. + * Reconcile network security perimeter configuration for SQL Resource Provider * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. + * @param nspConfigName * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginReconcile( resourceGroupName: string, serverName: string, - communicationLinkName: string, - parameters: ServerCommunicationLink, - options?: ServerCommunicationLinksCreateOrUpdateOptionalParams + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams ): Promise< SimplePollerLike< - OperationState, - ServerCommunicationLinksCreateOrUpdateResponse + OperationState, + NetworkSecurityPerimeterConfigurationsReconcileResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -207,154 +224,153 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - serverName, - communicationLinkName, - parameters, - options - }, - spec: createOrUpdateOperationSpec + args: { resourceGroupName, serverName, nspConfigName, options }, + spec: reconcileOperationSpec }); const poller = await createHttpPoller< - ServerCommunicationLinksCreateOrUpdateResponse, - OperationState + NetworkSecurityPerimeterConfigurationsReconcileResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; } /** - * Creates a server communication link. + * Reconcile network security perimeter configuration for SQL Resource Provider * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. + * @param nspConfigName * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginReconcileAndWait( resourceGroupName: string, serverName: string, - communicationLinkName: string, - parameters: ServerCommunicationLink, - options?: ServerCommunicationLinksCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + ): Promise { + const poller = await this.beginReconcile( resourceGroupName, serverName, - communicationLinkName, - parameters, + nspConfigName, options ); return poller.pollUntilDone(); } /** - * Gets a list of server communication links. + * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. + * @param nextLink The nextLink from the previous successful call to the ListByServer method. * @param options The options parameters. */ - private _listByServer( + private _listByServerNext( resourceGroupName: string, serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams - ): Promise { + nextLink: string, + options?: NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec + { resourceGroupName, serverName, nextLink, options }, + listByServerNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const deleteOperationSpec: coreClient.OperationSpec = { +const listByServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", - httpMethod: "DELETE", - responses: { 200: {} }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/networkSecurityPerimeterConfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult + }, + default: {} + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.communicationLinkName + Parameters.subscriptionId ], + headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/networkSecurityPerimeterConfigurations/{nspConfigName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerCommunicationLink - } + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration + }, + default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.communicationLinkName + Parameters.subscriptionId, + Parameters.nspConfigName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const reconcileOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/networkSecurityPerimeterConfigurations/{nspConfigName}/reconcile", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ServerCommunicationLink + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration }, 201: { - bodyMapper: Mappers.ServerCommunicationLink + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration }, 202: { - bodyMapper: Mappers.ServerCommunicationLink + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration }, 204: { - bodyMapper: Mappers.ServerCommunicationLink - } + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration + }, + default: {} }, - requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.communicationLinkName + Parameters.subscriptionId, + Parameters.nspConfigName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks", +const listByServerNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerCommunicationLinkListResult - } + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult + }, + default: {} }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/operations.ts b/sdk/sql/arm-sql/src/operations/operations.ts index 11395fed5450..2fbbeacf475e 100644 --- a/sdk/sql/arm-sql/src/operations/operations.ts +++ b/sdk/sql/arm-sql/src/operations/operations.ts @@ -125,7 +125,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts b/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts index 34f7a4eaae03..212f141d09f3 100644 --- a/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts @@ -126,6 +126,24 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { } } + /** + * Gets all outbound firewall rules on a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: OutboundFirewallRulesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets an outbound firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -152,14 +170,12 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn - * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ async beginCreateOrUpdate( resourceGroupName: string, serverName: string, outboundRuleFqdn: string, - parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< @@ -208,13 +224,7 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - serverName, - outboundRuleFqdn, - parameters, - options - }, + args: { resourceGroupName, serverName, outboundRuleFqdn, options }, spec: createOrUpdateOperationSpec }); const poller = await createHttpPoller< @@ -234,21 +244,18 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn - * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, outboundRuleFqdn: string, - parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serverName, outboundRuleFqdn, - parameters, options ); return poller.pollUntilDone(); @@ -343,24 +350,6 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { return poller.pollUntilDone(); } - /** - * Gets all outbound firewall rules on a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: OutboundFirewallRulesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -384,6 +373,26 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundFirewallRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules/{outboundRuleFqdn}", @@ -394,12 +403,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.outboundRuleFqdn ], headerParameters: [Parameters.accept], @@ -424,17 +433,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters65, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.outboundRuleFqdn ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const deleteOperationSpec: coreClient.OperationSpec = { @@ -442,34 +449,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules/{outboundRuleFqdn}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.outboundRuleFqdn - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundFirewallRuleListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.outboundRuleFqdn ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -483,9 +470,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts index a45dfefa2d64..503c2c18207e 100644 --- a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts @@ -127,6 +127,24 @@ export class PrivateEndpointConnectionsImpl } } + /** + * Gets all private endpoint connections on a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: PrivateEndpointConnectionsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a private endpoint connection. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -349,24 +367,6 @@ export class PrivateEndpointConnectionsImpl return poller.pollUntilDone(); } - /** - * Gets all private endpoint connections on a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: PrivateEndpointConnectionsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -390,6 +390,26 @@ export class PrivateEndpointConnectionsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateEndpointConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}", @@ -400,12 +420,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.privateEndpointConnectionName ], headerParameters: [Parameters.accept], @@ -430,16 +450,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters44, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters76, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -448,34 +468,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.privateEndpointConnectionName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateEndpointConnections", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -489,9 +489,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts index de58d0c36ac9..d23fdb13805f 100644 --- a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts @@ -188,12 +188,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -208,12 +208,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.groupName ], headerParameters: [Parameters.accept], @@ -230,9 +230,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts index 55d9dd8112f2..a56e7ec44811 100644 --- a/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts @@ -59,14 +59,14 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/recommendedSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters74, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters52, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", diff --git a/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts b/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts index 24c0e8b6a0f1..c333aef6479d 100644 --- a/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts @@ -188,12 +188,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -209,16 +209,16 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion, Parameters.expand, - Parameters.filter1 + Parameters.filter ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -234,9 +234,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts index 139fa424961a..495517480331 100644 --- a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts @@ -198,11 +198,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -218,11 +218,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.recoverableDatabaseName ], @@ -240,8 +240,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/replicationLinks.ts b/sdk/sql/arm-sql/src/operations/replicationLinks.ts index 1bfe5461f089..a9da680e049c 100644 --- a/sdk/sql/arm-sql/src/operations/replicationLinks.ts +++ b/sdk/sql/arm-sql/src/operations/replicationLinks.ts @@ -639,13 +639,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -660,13 +660,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.linkId ], headerParameters: [Parameters.accept], @@ -677,13 +677,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.linkId ], serializer @@ -707,13 +707,13 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.linkId ], headerParameters: [Parameters.accept], @@ -738,13 +738,13 @@ const failoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.linkId ], headerParameters: [Parameters.accept], @@ -760,12 +760,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -781,10 +781,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -801,9 +801,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts b/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts index 3976f52f583e..4e48e012dd64 100644 --- a/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts @@ -189,12 +189,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -210,15 +210,15 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion, Parameters.expand, - Parameters.filter1 + Parameters.filter ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.restorableDroppedDatabaseId ], headerParameters: [Parameters.accept], @@ -235,9 +235,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts index 222e8175a786..04b41ffb5997 100644 --- a/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts @@ -198,11 +198,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -218,11 +218,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.restorableDroppedDatabaseId ], @@ -240,8 +240,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/restorePoints.ts b/sdk/sql/arm-sql/src/operations/restorePoints.ts index 2f9bacc6d6e1..44b6ae086919 100644 --- a/sdk/sql/arm-sql/src/operations/restorePoints.ts +++ b/sdk/sql/arm-sql/src/operations/restorePoints.ts @@ -359,13 +359,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -389,16 +389,16 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters45, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters77, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -412,13 +412,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.restorePointName ], headerParameters: [Parameters.accept], @@ -429,13 +429,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints/{restorePointName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.restorePointName ], serializer @@ -451,10 +451,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts index 03e9b34aebee..8470e84a041a 100644 --- a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts @@ -21,18 +21,22 @@ import { SensitivityLabelsListRecommendedByDatabaseNextOptionalParams, SensitivityLabelsListRecommendedByDatabaseOptionalParams, SensitivityLabelsListRecommendedByDatabaseResponse, + SensitivityLabelsListByDatabaseNextOptionalParams, + SensitivityLabelsListByDatabaseOptionalParams, + SensitivityLabelsListByDatabaseResponse, SensitivityLabelUpdateList, SensitivityLabelsUpdateOptionalParams, - SensitivityLabelsEnableRecommendationOptionalParams, - SensitivityLabelsDisableRecommendationOptionalParams, SensitivityLabelSource, SensitivityLabelsGetOptionalParams, SensitivityLabelsGetResponse, SensitivityLabelsCreateOrUpdateOptionalParams, SensitivityLabelsCreateOrUpdateResponse, SensitivityLabelsDeleteOptionalParams, + SensitivityLabelsDisableRecommendationOptionalParams, + SensitivityLabelsEnableRecommendationOptionalParams, SensitivityLabelsListCurrentByDatabaseNextResponse, - SensitivityLabelsListRecommendedByDatabaseNextResponse + SensitivityLabelsListRecommendedByDatabaseNextResponse, + SensitivityLabelsListByDatabaseNextResponse } from "../models"; /// @@ -236,6 +240,100 @@ export class SensitivityLabelsImpl implements SensitivityLabels { } } + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + public listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SensitivityLabelsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( + resourceGroupName, + serverName, + databaseName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByDatabasePagingPage( + resourceGroupName, + serverName, + databaseName, + options, + settings + ); + } + }; + } + + private async *listByDatabasePagingPage( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SensitivityLabelsListByDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: SensitivityLabelsListByDatabaseResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDatabase( + resourceGroupName, + serverName, + databaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + serverName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByDatabasePagingAll( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SensitivityLabelsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( + resourceGroupName, + serverName, + databaseName, + options + )) { + yield* page; + } + } + /** * Gets the sensitivity labels of a given database * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -299,8 +397,7 @@ export class SensitivityLabelsImpl implements SensitivityLabels { } /** - * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all - * columns) + * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -308,17 +405,19 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ - enableRecommendation( + get( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsEnableRecommendationOptionalParams - ): Promise { + sensitivityLabelSource: SensitivityLabelSource, + options?: SensitivityLabelsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -327,14 +426,15 @@ export class SensitivityLabelsImpl implements SensitivityLabels { schemaName, tableName, columnName, + sensitivityLabelSource, options }, - enableRecommendationOperationSpec + getOperationSpec ); } /** - * Disables sensitivity recommendations on a given column + * Creates or updates the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -342,17 +442,19 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. * @param options The options parameters. */ - disableRecommendation( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsDisableRecommendationOptionalParams - ): Promise { + parameters: SensitivityLabel, + options?: SensitivityLabelsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -361,14 +463,15 @@ export class SensitivityLabelsImpl implements SensitivityLabels { schemaName, tableName, columnName, + parameters, options }, - disableRecommendationOperationSpec + createOrUpdateOperationSpec ); } /** - * Gets the sensitivity label of a given column + * Deletes the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -376,19 +479,17 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ - get( + delete( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - sensitivityLabelSource: SensitivityLabelSource, - options?: SensitivityLabelsGetOptionalParams - ): Promise { + options?: SensitivityLabelsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -397,15 +498,14 @@ export class SensitivityLabelsImpl implements SensitivityLabels { schemaName, tableName, columnName, - sensitivityLabelSource, options }, - getOperationSpec + deleteOperationSpec ); } /** - * Creates or updates the sensitivity label of a given column + * Disables sensitivity recommendations on a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -413,19 +513,17 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @param parameters The column sensitivity label resource. * @param options The options parameters. */ - createOrUpdate( + disableRecommendation( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - parameters: SensitivityLabel, - options?: SensitivityLabelsCreateOrUpdateOptionalParams - ): Promise { + options?: SensitivityLabelsDisableRecommendationOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -434,15 +532,15 @@ export class SensitivityLabelsImpl implements SensitivityLabels { schemaName, tableName, columnName, - parameters, options }, - createOrUpdateOperationSpec + disableRecommendationOperationSpec ); } /** - * Deletes the sensitivity label of a given column + * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all + * columns) * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -452,14 +550,14 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param columnName The name of the column. * @param options The options parameters. */ - delete( + enableRecommendation( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsDeleteOptionalParams + options?: SensitivityLabelsEnableRecommendationOptionalParams ): Promise { return this.client.sendOperationRequest( { @@ -471,7 +569,27 @@ export class SensitivityLabelsImpl implements SensitivityLabels { columnName, options }, - deleteOperationSpec + enableRecommendationOperationSpec + ); + } + + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SensitivityLabelsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec ); } @@ -519,6 +637,28 @@ export class SensitivityLabelsImpl implements SensitivityLabels { listRecommendedByDatabaseNextOperationSpec ); } + + /** + * ListByDatabaseNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. + * @param options The options parameters. + */ + private _listByDatabaseNext( + resourceGroupName: string, + serverName: string, + databaseName: string, + nextLink: string, + options?: SensitivityLabelsListByDatabaseNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, nextLink, options }, + listByDatabaseNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -534,17 +674,17 @@ const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, + Parameters.filter, Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion3, Parameters.count ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -554,14 +694,14 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/currentSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters73, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters50, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", @@ -578,57 +718,19 @@ const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, + Parameters.filter, Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion3, Parameters.includeDisabledRecommendations ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; -const enableRecommendationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.schemaName, - Parameters.tableName, - Parameters.columnName, - Parameters.sensitivityLabelSource2 - ], - serializer -}; -const disableRecommendationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.schemaName, - Parameters.tableName, - Parameters.columnName, - Parameters.sensitivityLabelSource2 + Parameters.subscriptionId ], + headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { @@ -641,13 +743,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -669,20 +771,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters72, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters51, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, Parameters.sensitivityLabelSource1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -691,13 +793,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -705,6 +807,65 @@ const deleteOperationSpec: coreClient.OperationSpec = { ], serializer }; +const disableRecommendationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource2 + ], + serializer +}; +const enableRecommendationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource2 + ], + serializer +}; +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sensitivityLabels", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion, Parameters.filter], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -716,10 +877,10 @@ const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -736,10 +897,30 @@ const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts index 786fffe889df..1753ee1f1c20 100644 --- a/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts +++ b/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts @@ -310,12 +310,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -330,12 +330,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.advancedThreatProtectionName ], headerParameters: [Parameters.accept], @@ -360,16 +360,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters80, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters78, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.advancedThreatProtectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -384,9 +384,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverAdvisors.ts b/sdk/sql/arm-sql/src/operations/serverAdvisors.ts index 1e83f27a66d5..9fdca3b4ada5 100644 --- a/sdk/sql/arm-sql/src/operations/serverAdvisors.ts +++ b/sdk/sql/arm-sql/src/operations/serverAdvisors.ts @@ -111,12 +111,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.expand, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -131,12 +131,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.advisorName ], headerParameters: [Parameters.accept], @@ -152,16 +152,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters11, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.advisorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts index b49d07004d22..91eb58b364fc 100644 --- a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts +++ b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts @@ -83,12 +83,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -103,15 +103,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters46, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters79, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts index bd1ba1c33674..d5da75090240 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts @@ -128,6 +128,24 @@ export class ServerAzureADAdministratorsImpl } } + /** + * Gets a list of Azure Active Directory administrators in a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerAzureADAdministratorsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a Azure Active Directory administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -345,24 +363,6 @@ export class ServerAzureADAdministratorsImpl return poller.pollUntilDone(); } - /** - * Gets a list of Azure Active Directory administrators in a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerAzureADAdministratorsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -386,6 +386,26 @@ export class ServerAzureADAdministratorsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AdministratorListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}", @@ -396,12 +416,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.administratorName ], headerParameters: [Parameters.accept], @@ -426,16 +446,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters47, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters80, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.administratorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -444,34 +464,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.administratorName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdministratorListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.administratorName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -485,9 +485,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts index 11a9db62feba..f34b126aae69 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts @@ -128,6 +128,24 @@ export class ServerAzureADOnlyAuthenticationsImpl } } + /** + * Gets a list of server Azure Active Directory only authentications. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerAzureADOnlyAuthenticationsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a specific Azure Active Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -349,24 +367,6 @@ export class ServerAzureADOnlyAuthenticationsImpl return poller.pollUntilDone(); } - /** - * Gets a list of server Azure Active Directory only authentications. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerAzureADOnlyAuthenticationsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -390,6 +390,26 @@ export class ServerAzureADOnlyAuthenticationsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureADOnlyAuthListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}", @@ -400,12 +420,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.authenticationName ], headerParameters: [Parameters.accept], @@ -430,16 +450,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters48, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters81, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.authenticationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -448,34 +468,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.authenticationName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AzureADOnlyAuthListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.authenticationName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -489,9 +489,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts index cb1fb98c2009..35d1d6913f2b 100644 --- a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts @@ -292,12 +292,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -312,12 +312,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], headerParameters: [Parameters.accept], @@ -342,16 +342,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters75, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -366,9 +366,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts b/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts index 05e63b637645..380b7575d4a9 100644 --- a/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts +++ b/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts @@ -315,11 +315,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -335,11 +335,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.serverConfigurationOptionName ], @@ -365,16 +365,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters99, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters82, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.serverConfigurationOptionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -389,8 +389,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts index 11bb50107ae1..cfc8cbcb806e 100644 --- a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts @@ -126,6 +126,24 @@ export class ServerConnectionPoliciesImpl implements ServerConnectionPolicies { } } + /** + * Lists connection policy + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerConnectionPoliciesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a server connection policy * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -254,24 +272,6 @@ export class ServerConnectionPoliciesImpl implements ServerConnectionPolicies { return poller.pollUntilDone(); } - /** - * Lists connection policy - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerConnectionPoliciesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -295,6 +295,26 @@ export class ServerConnectionPoliciesImpl implements ServerConnectionPolicies { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerConnectionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies/{connectionPolicyName}", @@ -305,12 +325,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.connectionPolicyName ], headerParameters: [Parameters.accept], @@ -335,39 +355,19 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters68, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters83, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.connectionPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerConnectionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion6], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -379,9 +379,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts index a8650f453acf..1b7f87cf6fef 100644 --- a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts +++ b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts @@ -307,12 +307,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -327,12 +327,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.devOpsAuditingSettingsName ], headerParameters: [Parameters.accept], @@ -357,16 +357,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters49, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters84, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.devOpsAuditingSettingsName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -381,9 +381,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts index ebf604e30bda..bbf5904d8655 100644 --- a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts +++ b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts @@ -129,6 +129,24 @@ export class ServerDnsAliasesImpl implements ServerDnsAliases { } } + /** + * Gets a list of server DNS aliases for a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server that the alias is pointing to. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerDnsAliasesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a server DNS alias. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -335,24 +353,6 @@ export class ServerDnsAliasesImpl implements ServerDnsAliases { return poller.pollUntilDone(); } - /** - * Gets a list of server DNS aliases for a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server that the alias is pointing to. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerDnsAliasesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * Acquires server DNS alias from another server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -484,6 +484,26 @@ export class ServerDnsAliasesImpl implements ServerDnsAliases { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerDnsAliasListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}", @@ -494,12 +514,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.dnsAliasName ], headerParameters: [Parameters.accept], @@ -524,12 +544,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.dnsAliasName ], headerParameters: [Parameters.accept], @@ -540,34 +560,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.dnsAliasName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerDnsAliasListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.dnsAliasName ], - headerParameters: [Parameters.accept], serializer }; const acquireOperationSpec: coreClient.OperationSpec = { @@ -589,16 +589,16 @@ const acquireOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters50, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters85, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.dnsAliasName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -613,9 +613,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverKeys.ts b/sdk/sql/arm-sql/src/operations/serverKeys.ts index 227b7c5b7831..a88d19bc2a3d 100644 --- a/sdk/sql/arm-sql/src/operations/serverKeys.ts +++ b/sdk/sql/arm-sql/src/operations/serverKeys.ts @@ -394,12 +394,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -414,12 +414,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.keyName ], headerParameters: [Parameters.accept], @@ -444,16 +444,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters51, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters86, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.keyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -462,12 +462,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.keyName ], serializer @@ -483,9 +483,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverOperations.ts b/sdk/sql/arm-sql/src/operations/serverOperations.ts index 77096439d5c9..9cf84209a1c2 100644 --- a/sdk/sql/arm-sql/src/operations/serverOperations.ts +++ b/sdk/sql/arm-sql/src/operations/serverOperations.ts @@ -166,12 +166,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -187,9 +187,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts index 55ce4715b6d0..8949c555685b 100644 --- a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts @@ -24,7 +24,7 @@ import { ServerSecurityAlertPoliciesListByServerNextOptionalParams, ServerSecurityAlertPoliciesListByServerOptionalParams, ServerSecurityAlertPoliciesListByServerResponse, - SecurityAlertPolicyName, + SecurityAlertPolicyNameAutoGenerated, ServerSecurityAlertPoliciesGetOptionalParams, ServerSecurityAlertPoliciesGetResponse, ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams, @@ -127,6 +127,24 @@ export class ServerSecurityAlertPoliciesImpl } } + /** + * Get the server's threat detection policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerSecurityAlertPoliciesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Get a server's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -138,7 +156,7 @@ export class ServerSecurityAlertPoliciesImpl get( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ServerSecurityAlertPoliciesGetOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -159,7 +177,7 @@ export class ServerSecurityAlertPoliciesImpl async beginCreateOrUpdate( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise< @@ -241,7 +259,7 @@ export class ServerSecurityAlertPoliciesImpl async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise { @@ -255,24 +273,6 @@ export class ServerSecurityAlertPoliciesImpl return poller.pollUntilDone(); } - /** - * Get the server's threat detection policies. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerSecurityAlertPoliciesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -296,6 +296,26 @@ export class ServerSecurityAlertPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LogicalServerSecurityAlertPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}", @@ -306,13 +326,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.securityAlertPolicyName + Parameters.subscriptionId, + Parameters.securityAlertPolicyName1 ], headerParameters: [Parameters.accept], serializer @@ -336,37 +356,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters52, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters87, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.securityAlertPolicyName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LogicalServerSecurityAlertPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.securityAlertPolicyName1 ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -380,9 +380,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts b/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts index 94619235f0c8..be7f056a16d6 100644 --- a/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts @@ -405,11 +405,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -425,11 +425,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.certificateName ], @@ -455,16 +455,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters70, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters88, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.certificateName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -473,11 +473,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustCertificates/{certificateName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.certificateName ], @@ -494,8 +494,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts index 51668da0d657..ee96e98174c3 100644 --- a/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts +++ b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts @@ -219,6 +219,24 @@ export class ServerTrustGroupsImpl implements ServerTrustGroups { } } + /** + * Lists a server trust group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName The name of the region where the resource is located. + * @param options The options parameters. + */ + private _listByLocation( + resourceGroupName: string, + locationName: string, + options?: ServerTrustGroupsListByLocationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, locationName, options }, + listByLocationOperationSpec + ); + } + /** * Gets a server trust group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -436,24 +454,6 @@ export class ServerTrustGroupsImpl implements ServerTrustGroups { return poller.pollUntilDone(); } - /** - * Lists a server trust group. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The name of the region where the resource is located. - * @param options The options parameters. - */ - private _listByLocation( - resourceGroupName: string, - locationName: string, - options?: ServerTrustGroupsListByLocationOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, options }, - listByLocationOperationSpec - ); - } - /** * Gets a server trust groups by instance name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -515,6 +515,26 @@ export class ServerTrustGroupsImpl implements ServerTrustGroups { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByLocationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerTrustGroupListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.locationName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}", @@ -525,11 +545,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.serverTrustGroupName ], @@ -555,16 +575,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters53, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters89, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.serverTrustGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -573,36 +593,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.serverTrustGroupName ], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerTrustGroupListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByInstanceOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustGroups", @@ -613,11 +613,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -634,8 +634,8 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName ], @@ -653,8 +653,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/serverUsages.ts b/sdk/sql/arm-sql/src/operations/serverUsages.ts index f4b83e359898..aa7d28217d4d 100644 --- a/sdk/sql/arm-sql/src/operations/serverUsages.ts +++ b/sdk/sql/arm-sql/src/operations/serverUsages.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { ServerUsages } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -14,8 +15,10 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { ServerUsage, + ServerUsagesListByServerNextOptionalParams, ServerUsagesListByServerOptionalParams, - ServerUsagesListByServerResponse + ServerUsagesListByServerResponse, + ServerUsagesListByServerNextResponse } from "../models"; /// @@ -32,7 +35,7 @@ export class ServerUsagesImpl implements ServerUsages { } /** - * Returns server usages. + * Gets server usages. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -73,11 +76,29 @@ export class ServerUsagesImpl implements ServerUsages { resourceGroupName: string, serverName: string, options?: ServerUsagesListByServerOptionalParams, - _settings?: PageSettings + settings?: PageSettings ): AsyncIterableIterator { let result: ServerUsagesListByServerResponse; - result = await this._listByServer(resourceGroupName, serverName, options); - yield result.value || []; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByServer(resourceGroupName, serverName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServerNext( + resourceGroupName, + serverName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } } private async *listByServerPagingAll( @@ -95,7 +116,7 @@ export class ServerUsagesImpl implements ServerUsages { } /** - * Returns server usages. + * Gets server usages. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -111,6 +132,26 @@ export class ServerUsagesImpl implements ServerUsages { listByServerOperationSpec ); } + + /** + * ListByServerNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nextLink The nextLink from the previous successful call to the ListByServer method. + * @param options The options parameters. + */ + private _listByServerNext( + resourceGroupName: string, + serverName: string, + nextLink: string, + options?: ServerUsagesListByServerNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, nextLink, options }, + listByServerNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -122,14 +163,34 @@ const listByServerOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.ServerUsageListResult - } + }, + default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByServerNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerUsageListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts index 1a4a1c19a157..96df0a704208 100644 --- a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts @@ -122,6 +122,24 @@ export class ServerVulnerabilityAssessmentsImpl } } + /** + * Lists the vulnerability assessment policies associated with a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerVulnerabilityAssessmentsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets the server's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -192,24 +210,6 @@ export class ServerVulnerabilityAssessmentsImpl ); } - /** - * Lists the vulnerability assessment policies associated with a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerVulnerabilityAssessmentsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -233,6 +233,26 @@ export class ServerVulnerabilityAssessmentsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", @@ -243,12 +263,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -267,16 +287,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters54, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters90, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -285,34 +305,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.vulnerabilityAssessmentName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerVulnerabilityAssessmentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -326,9 +326,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/servers.ts b/sdk/sql/arm-sql/src/operations/servers.ts index 7feef8467dbe..a6058e65e2b5 100644 --- a/sdk/sql/arm-sql/src/operations/servers.ts +++ b/sdk/sql/arm-sql/src/operations/servers.ts @@ -757,10 +757,10 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters100, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters91, + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -773,7 +773,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -788,11 +788,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -807,12 +807,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -836,15 +836,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters101, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters92, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -853,12 +853,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], serializer }; @@ -881,15 +881,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters102, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters93, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -912,15 +912,15 @@ const importDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters103, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters94, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -943,12 +943,12 @@ const refreshStatusOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -981,8 +981,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serviceObjectives.ts b/sdk/sql/arm-sql/src/operations/serviceObjectives.ts deleted file mode 100644 index f0dc3077156f..000000000000 --- a/sdk/sql/arm-sql/src/operations/serviceObjectives.ts +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { ServiceObjectives } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClient } from "../sqlManagementClient"; -import { - ServiceObjective, - ServiceObjectivesListByServerOptionalParams, - ServiceObjectivesListByServerResponse, - ServiceObjectivesGetOptionalParams, - ServiceObjectivesGetResponse -} from "../models"; - -/// -/** Class containing ServiceObjectives operations. */ -export class ServiceObjectivesImpl implements ServiceObjectives { - private readonly client: SqlManagementClient; - - /** - * Initialize a new instance of the class ServiceObjectives class. - * @param client Reference to the service client - */ - constructor(client: SqlManagementClient) { - this.client = client; - } - - /** - * Returns database service objectives. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - public listByServer( - resourceGroupName: string, - serverName: string, - options?: ServiceObjectivesListByServerOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByServerPagingAll( - resourceGroupName, - serverName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByServerPagingPage( - resourceGroupName, - serverName, - options, - settings - ); - } - }; - } - - private async *listByServerPagingPage( - resourceGroupName: string, - serverName: string, - options?: ServiceObjectivesListByServerOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ServiceObjectivesListByServerResponse; - result = await this._listByServer(resourceGroupName, serverName, options); - yield result.value || []; - } - - private async *listByServerPagingAll( - resourceGroupName: string, - serverName: string, - options?: ServiceObjectivesListByServerOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByServerPagingPage( - resourceGroupName, - serverName, - options - )) { - yield* page; - } - } - - /** - * Gets a database service objective. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param serviceObjectiveName The name of the service objective to retrieve. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - serviceObjectiveName: string, - options?: ServiceObjectivesGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, serviceObjectiveName, options }, - getOperationSpec - ); - } - - /** - * Returns database service objectives. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServiceObjectivesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/serviceObjectives/{serviceObjectiveName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServiceObjective - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.serviceObjectiveName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/serviceObjectives", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServiceObjectiveListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/sqlAgent.ts b/sdk/sql/arm-sql/src/operations/sqlAgent.ts index ad92b6ac2fc5..6a6e1323a743 100644 --- a/sdk/sql/arm-sql/src/operations/sqlAgent.ts +++ b/sdk/sql/arm-sql/src/operations/sqlAgent.ts @@ -82,11 +82,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -102,15 +102,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters55, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters95, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts index c4720901c367..15aae44b6e82 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts @@ -228,12 +228,12 @@ const listBySqlVulnerabilityAssessmentOperationSpec: coreClient.OperationSpec = }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -249,14 +249,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer @@ -273,9 +273,9 @@ const listBySqlVulnerabilityAssessmentNextOperationSpec: coreClient.OperationSpe }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts index 69e5424b1149..c18709105d0a 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts @@ -76,17 +76,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters83, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + requestBody: Parameters.parameters13, + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts index 2ac6992dfbc5..687b90b42624 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts @@ -137,12 +137,12 @@ const executeOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/initiateScan", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts index da7bf8c0cf8c..50c81e5f7a4d 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts @@ -285,14 +285,14 @@ const listByBaselineOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer @@ -307,15 +307,15 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], headerParameters: [Parameters.accept], serializer @@ -330,18 +330,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters84, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -357,12 +357,12 @@ const listByBaselineNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts index 8f7ab9b19460..79ac40471908 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts @@ -69,15 +69,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules/{ruleId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], serializer }; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts index 56a042696e44..d68a0c20574a 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts @@ -244,14 +244,14 @@ const listByScanOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.scanId, - Parameters.vulnerabilityAssessmentName1 + Parameters.subscriptionId, + Parameters.vulnerabilityAssessmentName1, + Parameters.scanId ], headerParameters: [Parameters.accept], serializer @@ -266,14 +266,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.scanId, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName1, + Parameters.scanId, Parameters.scanResultId ], headerParameters: [Parameters.accept], @@ -290,12 +290,12 @@ const listByScanNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.scanId, - Parameters.vulnerabilityAssessmentName1 + Parameters.vulnerabilityAssessmentName1, + Parameters.scanId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts index fb90561fc7c7..93f8dc4ea0c8 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts @@ -226,12 +226,12 @@ const listBySqlVulnerabilityAssessmentsOperationSpec: coreClient.OperationSpec = }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -247,12 +247,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId ], @@ -270,9 +270,9 @@ const listBySqlVulnerabilityAssessmentsNextOperationSpec: coreClient.OperationSp }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts index 3f206bb29c7a..03e1a5319ed1 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts @@ -57,12 +57,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts index bae15f9195a0..c6767eb274cd 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts @@ -221,12 +221,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -241,12 +241,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName2 ], headerParameters: [Parameters.accept], @@ -265,16 +265,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters87, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters96, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -289,9 +289,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts b/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts index 237913cde7b1..01162434a149 100644 --- a/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts +++ b/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts @@ -255,11 +255,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -275,11 +275,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.startStopScheduleName ], @@ -299,16 +299,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters104, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters97, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.startStopScheduleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -317,11 +317,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/{startStopScheduleName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.startStopScheduleName ], @@ -338,8 +338,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts index 21f0c1222413..379b8de8a0eb 100644 --- a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts +++ b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts @@ -163,7 +163,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -182,7 +182,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/synapseLinkWorkspaces.ts b/sdk/sql/arm-sql/src/operations/synapseLinkWorkspaces.ts index cd7dc31dc4be..399513c4407d 100644 --- a/sdk/sql/arm-sql/src/operations/synapseLinkWorkspaces.ts +++ b/sdk/sql/arm-sql/src/operations/synapseLinkWorkspaces.ts @@ -183,13 +183,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -205,10 +205,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/syncAgents.ts b/sdk/sql/arm-sql/src/operations/syncAgents.ts index 6bb5aebe81cd..0418b99a70ee 100644 --- a/sdk/sql/arm-sql/src/operations/syncAgents.ts +++ b/sdk/sql/arm-sql/src/operations/syncAgents.ts @@ -227,6 +227,24 @@ export class SyncAgentsImpl implements SyncAgents { } } + /** + * Lists sync agents in a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server on which the sync agent is hosted. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: SyncAgentsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a sync agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -444,24 +462,6 @@ export class SyncAgentsImpl implements SyncAgents { return poller.pollUntilDone(); } - /** - * Lists sync agents in a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server on which the sync agent is hosted. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: SyncAgentsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * Generates a sync agent key. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -547,6 +547,26 @@ export class SyncAgentsImpl implements SyncAgents { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SyncAgentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}", @@ -557,12 +577,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.syncAgentName ], headerParameters: [Parameters.accept], @@ -587,16 +607,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters56, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters98, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.syncAgentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -605,34 +625,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.syncAgentName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SyncAgentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.syncAgentName ], - headerParameters: [Parameters.accept], serializer }; const generateKeyOperationSpec: coreClient.OperationSpec = { @@ -645,12 +645,12 @@ const generateKeyOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.syncAgentName ], headerParameters: [Parameters.accept], @@ -666,12 +666,12 @@ const listLinkedDatabasesOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.syncAgentName ], headerParameters: [Parameters.accept], @@ -688,9 +688,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -707,9 +707,9 @@ const listLinkedDatabasesNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.syncAgentName ], diff --git a/sdk/sql/arm-sql/src/operations/syncGroups.ts b/sdk/sql/arm-sql/src/operations/syncGroups.ts index 58715f34f68d..9808ce53a97d 100644 --- a/sdk/sql/arm-sql/src/operations/syncGroups.ts +++ b/sdk/sql/arm-sql/src/operations/syncGroups.ts @@ -24,6 +24,10 @@ import { SyncGroupsListSyncDatabaseIdsNextOptionalParams, SyncGroupsListSyncDatabaseIdsOptionalParams, SyncGroupsListSyncDatabaseIdsResponse, + SyncGroup, + SyncGroupsListByDatabaseNextOptionalParams, + SyncGroupsListByDatabaseOptionalParams, + SyncGroupsListByDatabaseResponse, SyncFullSchemaProperties, SyncGroupsListHubSchemasNextOptionalParams, SyncGroupsListHubSchemasOptionalParams, @@ -33,13 +37,6 @@ import { SyncGroupsType, SyncGroupsListLogsOptionalParams, SyncGroupsListLogsResponse, - SyncGroup, - SyncGroupsListByDatabaseNextOptionalParams, - SyncGroupsListByDatabaseOptionalParams, - SyncGroupsListByDatabaseResponse, - SyncGroupsRefreshHubSchemaOptionalParams, - SyncGroupsCancelSyncOptionalParams, - SyncGroupsTriggerSyncOptionalParams, SyncGroupsGetOptionalParams, SyncGroupsGetResponse, SyncGroupsCreateOrUpdateOptionalParams, @@ -47,10 +44,13 @@ import { SyncGroupsDeleteOptionalParams, SyncGroupsUpdateOptionalParams, SyncGroupsUpdateResponse, + SyncGroupsCancelSyncOptionalParams, + SyncGroupsRefreshHubSchemaOptionalParams, + SyncGroupsTriggerSyncOptionalParams, SyncGroupsListSyncDatabaseIdsNextResponse, + SyncGroupsListByDatabaseNextResponse, SyncGroupsListHubSchemasNextResponse, - SyncGroupsListLogsNextResponse, - SyncGroupsListByDatabaseNextResponse + SyncGroupsListLogsNextResponse } from "../models"; /// @@ -136,26 +136,23 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Gets a collection of hub database schemas. + * Lists sync groups under a hub database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - public listHubSchemas( + public listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - syncGroupName: string, - options?: SyncGroupsListHubSchemasOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listHubSchemasPagingAll( + options?: SyncGroupsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( resourceGroupName, serverName, databaseName, - syncGroupName, options ); return { @@ -169,11 +166,10 @@ export class SyncGroupsImpl implements SyncGroups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listHubSchemasPagingPage( + return this.listByDatabasePagingPage( resourceGroupName, serverName, databaseName, - syncGroupName, options, settings ); @@ -181,22 +177,20 @@ export class SyncGroupsImpl implements SyncGroups { }; } - private async *listHubSchemasPagingPage( + private async *listByDatabasePagingPage( resourceGroupName: string, serverName: string, databaseName: string, - syncGroupName: string, - options?: SyncGroupsListHubSchemasOptionalParams, + options?: SyncGroupsListByDatabaseOptionalParams, settings?: PageSettings - ): AsyncIterableIterator { - let result: SyncGroupsListHubSchemasResponse; + ): AsyncIterableIterator { + let result: SyncGroupsListByDatabaseResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listHubSchemas( + result = await this._listByDatabase( resourceGroupName, serverName, databaseName, - syncGroupName, options ); let page = result.value || []; @@ -205,11 +199,10 @@ export class SyncGroupsImpl implements SyncGroups { yield page; } while (continuationToken) { - result = await this._listHubSchemasNext( + result = await this._listByDatabaseNext( resourceGroupName, serverName, databaseName, - syncGroupName, continuationToken, options ); @@ -220,18 +213,16 @@ export class SyncGroupsImpl implements SyncGroups { } } - private async *listHubSchemasPagingAll( + private async *listByDatabasePagingAll( resourceGroupName: string, serverName: string, databaseName: string, - syncGroupName: string, - options?: SyncGroupsListHubSchemasOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listHubSchemasPagingPage( + options?: SyncGroupsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( resourceGroupName, serverName, databaseName, - syncGroupName, options )) { yield* page; @@ -239,35 +230,26 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Gets a collection of sync group logs. + * Gets a collection of hub database schemas. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param startTime Get logs generated after this time. - * @param endTime Get logs generated before this time. - * @param typeParam The types of logs to retrieve. * @param options The options parameters. */ - public listLogs( + public listHubSchemas( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - startTime: string, - endTime: string, - typeParam: SyncGroupsType, - options?: SyncGroupsListLogsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listLogsPagingAll( + options?: SyncGroupsListHubSchemasOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listHubSchemasPagingAll( resourceGroupName, serverName, databaseName, syncGroupName, - startTime, - endTime, - typeParam, options ); return { @@ -281,14 +263,11 @@ export class SyncGroupsImpl implements SyncGroups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listLogsPagingPage( + return this.listHubSchemasPagingPage( resourceGroupName, serverName, databaseName, syncGroupName, - startTime, - endTime, - typeParam, options, settings ); @@ -296,28 +275,22 @@ export class SyncGroupsImpl implements SyncGroups { }; } - private async *listLogsPagingPage( + private async *listHubSchemasPagingPage( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - startTime: string, - endTime: string, - typeParam: SyncGroupsType, - options?: SyncGroupsListLogsOptionalParams, + options?: SyncGroupsListHubSchemasOptionalParams, settings?: PageSettings - ): AsyncIterableIterator { - let result: SyncGroupsListLogsResponse; + ): AsyncIterableIterator { + let result: SyncGroupsListHubSchemasResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listLogs( + result = await this._listHubSchemas( resourceGroupName, serverName, databaseName, syncGroupName, - startTime, - endTime, - typeParam, options ); let page = result.value || []; @@ -326,7 +299,7 @@ export class SyncGroupsImpl implements SyncGroups { yield page; } while (continuationToken) { - result = await this._listLogsNext( + result = await this._listHubSchemasNext( resourceGroupName, serverName, databaseName, @@ -341,24 +314,18 @@ export class SyncGroupsImpl implements SyncGroups { } } - private async *listLogsPagingAll( + private async *listHubSchemasPagingAll( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - startTime: string, - endTime: string, - typeParam: SyncGroupsType, - options?: SyncGroupsListLogsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listLogsPagingPage( + options?: SyncGroupsListHubSchemasOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listHubSchemasPagingPage( resourceGroupName, serverName, databaseName, syncGroupName, - startTime, - endTime, - typeParam, options )) { yield* page; @@ -366,23 +333,35 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Lists sync groups under a hub database. + * Gets a collection of sync group logs. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param startTime Get logs generated after this time. + * @param endTime Get logs generated before this time. + * @param typeParam The types of logs to retrieve. * @param options The options parameters. */ - public listByDatabase( + public listLogs( resourceGroupName: string, serverName: string, databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByDatabasePagingAll( + syncGroupName: string, + startTime: string, + endTime: string, + typeParam: SyncGroupsType, + options?: SyncGroupsListLogsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listLogsPagingAll( resourceGroupName, serverName, databaseName, + syncGroupName, + startTime, + endTime, + typeParam, options ); return { @@ -396,10 +375,14 @@ export class SyncGroupsImpl implements SyncGroups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByDatabasePagingPage( + return this.listLogsPagingPage( resourceGroupName, serverName, databaseName, + syncGroupName, + startTime, + endTime, + typeParam, options, settings ); @@ -407,20 +390,28 @@ export class SyncGroupsImpl implements SyncGroups { }; } - private async *listByDatabasePagingPage( + private async *listLogsPagingPage( resourceGroupName: string, serverName: string, databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams, + syncGroupName: string, + startTime: string, + endTime: string, + typeParam: SyncGroupsType, + options?: SyncGroupsListLogsOptionalParams, settings?: PageSettings - ): AsyncIterableIterator { - let result: SyncGroupsListByDatabaseResponse; + ): AsyncIterableIterator { + let result: SyncGroupsListLogsResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByDatabase( + result = await this._listLogs( resourceGroupName, serverName, databaseName, + syncGroupName, + startTime, + endTime, + typeParam, options ); let page = result.value || []; @@ -429,10 +420,11 @@ export class SyncGroupsImpl implements SyncGroups { yield page; } while (continuationToken) { - result = await this._listByDatabaseNext( + result = await this._listLogsNext( resourceGroupName, serverName, databaseName, + syncGroupName, continuationToken, options ); @@ -443,16 +435,24 @@ export class SyncGroupsImpl implements SyncGroups { } } - private async *listByDatabasePagingAll( + private async *listLogsPagingAll( resourceGroupName: string, serverName: string, databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByDatabasePagingPage( + syncGroupName: string, + startTime: string, + endTime: string, + typeParam: SyncGroupsType, + options?: SyncGroupsListLogsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listLogsPagingPage( resourceGroupName, serverName, databaseName, + syncGroupName, + startTime, + endTime, + typeParam, options )) { yield* page; @@ -475,7 +475,27 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Refreshes a hub database schema. + * Lists sync groups under a hub database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SyncGroupsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + + /** + * Gets a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -483,17 +503,46 @@ export class SyncGroupsImpl implements SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - async beginRefreshHubSchema( + get( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsRefreshHubSchemaOptionalParams - ): Promise, void>> { + options?: SyncGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a sync group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + parameters: SyncGroup, + options?: SyncGroupsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + SyncGroupsCreateOrUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -536,11 +585,15 @@ export class SyncGroupsImpl implements SyncGroups { serverName, databaseName, syncGroupName, + parameters, options }, - spec: refreshHubSchemaOperationSpec + spec: createOrUpdateOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + SyncGroupsCreateOrUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -549,183 +602,54 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Refreshes a hub database schema. + * Creates or updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginRefreshHubSchemaAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsRefreshHubSchemaOptionalParams - ): Promise { - const poller = await this.beginRefreshHubSchema( + parameters: SyncGroup, + options?: SyncGroupsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, serverName, databaseName, syncGroupName, + parameters, options ); return poller.pollUntilDone(); } /** - * Gets a collection of hub database schemas. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - private _listHubSchemas( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncGroupsListHubSchemasOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - listHubSchemasOperationSpec - ); - } - - /** - * Gets a collection of sync group logs. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param startTime Get logs generated after this time. - * @param endTime Get logs generated before this time. - * @param typeParam The types of logs to retrieve. - * @param options The options parameters. - */ - private _listLogs( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - startTime: string, - endTime: string, - typeParam: SyncGroupsType, - options?: SyncGroupsListLogsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - startTime, - endTime, - typeParam, - options - }, - listLogsOperationSpec - ); - } - - /** - * Cancels a sync group synchronization. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - cancelSync( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncGroupsCancelSyncOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - cancelSyncOperationSpec - ); - } - - /** - * Triggers a sync group synchronization. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - triggerSync( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncGroupsTriggerSyncOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - triggerSyncOperationSpec - ); - } - - /** - * Gets a sync group. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncGroupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - getOperationSpec - ); - } - - /** - * Creates or updates a sync group. + * Deletes a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginDelete( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SyncGroupsCreateOrUpdateResponse - > - > { + options?: SyncGroupsDeleteOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -768,15 +692,11 @@ export class SyncGroupsImpl implements SyncGroups { serverName, databaseName, syncGroupName, - parameters, options }, - spec: createOrUpdateOperationSpec + spec: deleteOperationSpec }); - const poller = await createHttpPoller< - SyncGroupsCreateOrUpdateResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -785,54 +705,58 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Creates or updates a sync group. + * Deletes a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginDeleteAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + options?: SyncGroupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( resourceGroupName, serverName, databaseName, syncGroupName, - parameters, options ); return poller.pollUntilDone(); } /** - * Deletes a sync group. + * Updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginDelete( + async beginUpdate( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsDeleteOptionalParams - ): Promise, void>> { + parameters: SyncGroup, + options?: SyncGroupsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + SyncGroupsUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -875,11 +799,15 @@ export class SyncGroupsImpl implements SyncGroups { serverName, databaseName, syncGroupName, + parameters, options }, - spec: deleteOperationSpec + spec: updateOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + SyncGroupsUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -888,58 +816,135 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Deletes a sync group. + * Updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginDeleteAndWait( + async beginUpdateAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( + parameters: SyncGroup, + options?: SyncGroupsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( resourceGroupName, serverName, databaseName, syncGroupName, + parameters, options ); return poller.pollUntilDone(); } /** - * Updates a sync group. + * Cancels a sync group synchronization. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginUpdate( + cancelSync( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SyncGroupsUpdateResponse - > - > { + options?: SyncGroupsCancelSyncOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + cancelSyncOperationSpec + ); + } + + /** + * Gets a collection of hub database schemas. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param options The options parameters. + */ + private _listHubSchemas( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + options?: SyncGroupsListHubSchemasOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + listHubSchemasOperationSpec + ); + } + + /** + * Gets a collection of sync group logs. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param startTime Get logs generated after this time. + * @param endTime Get logs generated before this time. + * @param typeParam The types of logs to retrieve. + * @param options The options parameters. + */ + private _listLogs( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + startTime: string, + endTime: string, + typeParam: SyncGroupsType, + options?: SyncGroupsListLogsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + syncGroupName, + startTime, + endTime, + typeParam, + options + }, + listLogsOperationSpec + ); + } + + /** + * Refreshes a hub database schema. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param options The options parameters. + */ + async beginRefreshHubSchema( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + options?: SyncGroupsRefreshHubSchemaOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -982,15 +987,11 @@ export class SyncGroupsImpl implements SyncGroups { serverName, databaseName, syncGroupName, - parameters, options }, - spec: updateOperationSpec + spec: refreshHubSchemaOperationSpec }); - const poller = await createHttpPoller< - SyncGroupsUpdateResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -999,51 +1000,50 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Updates a sync group. + * Refreshes a hub database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginUpdateAndWait( + async beginRefreshHubSchemaAndWait( resourceGroupName: string, serverName: string, - databaseName: string, - syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( + databaseName: string, + syncGroupName: string, + options?: SyncGroupsRefreshHubSchemaOptionalParams + ): Promise { + const poller = await this.beginRefreshHubSchema( resourceGroupName, serverName, databaseName, syncGroupName, - parameters, options ); return poller.pollUntilDone(); } /** - * Lists sync groups under a hub database. + * Triggers a sync group synchronization. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - private _listByDatabase( + triggerSync( resourceGroupName: string, serverName: string, databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams - ): Promise { + syncGroupName: string, + options?: SyncGroupsTriggerSyncOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + triggerSyncOperationSpec ); } @@ -1064,6 +1064,28 @@ export class SyncGroupsImpl implements SyncGroups { ); } + /** + * ListByDatabaseNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. + * @param options The options parameters. + */ + private _listByDatabaseNext( + resourceGroupName: string, + serverName: string, + databaseName: string, + nextLink: string, + options?: SyncGroupsListByDatabaseNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, nextLink, options }, + listByDatabaseNextOperationSpec + ); + } + /** * ListHubSchemasNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -1125,28 +1147,6 @@ export class SyncGroupsImpl implements SyncGroups { listLogsNextOperationSpec ); } - - /** - * ListByDatabaseNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. - * @param options The options parameters. - */ - private _listByDatabaseNext( - resourceGroupName: string, - serverName: string, - databaseName: string, - nextLink: string, - options?: SyncGroupsListByDatabaseNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, nextLink, options }, - listByDatabaseNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -1161,7 +1161,7 @@ const listSyncDatabaseIdsOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1170,104 +1170,27 @@ const listSyncDatabaseIdsOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const refreshHubSchemaOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/refreshHubSchema", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName - ], - serializer -}; -const listHubSchemasOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/hubSchemas", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SyncFullSchemaPropertiesListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listLogsOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/logs", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncGroupLogListResult + bodyMapper: Mappers.SyncGroupListResult }, default: {} }, - queryParameters: [ - Parameters.apiVersion3, - Parameters.startTime1, - Parameters.endTime1, - Parameters.typeParam, - Parameters.continuationToken - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.syncGroupName + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; -const cancelSyncOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/cancelSync", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName - ], - serializer -}; -const triggerSyncOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/triggerSync", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName - ], - serializer -}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}", @@ -1278,13 +1201,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName ], headerParameters: [Parameters.accept], @@ -1309,17 +1232,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters57, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters99, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1328,13 +1251,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName ], serializer @@ -1358,41 +1281,118 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters57, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters99, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const cancelSyncOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/cancelSync", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName + ], + serializer +}; +const listHubSchemasOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/hubSchemas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncGroupListResult + bodyMapper: Mappers.SyncFullSchemaPropertiesListResult }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, Parameters.subscriptionId, + Parameters.syncGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listLogsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/logs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SyncGroupLogListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.startTime1, + Parameters.endTime1, + Parameters.typeParam, + Parameters.continuationToken + ], + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName ], headerParameters: [Parameters.accept], serializer }; +const refreshHubSchemaOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/refreshHubSchema", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName + ], + serializer +}; +const triggerSyncOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/triggerSync", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName + ], + serializer +}; const listSyncDatabaseIdsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -1411,64 +1411,64 @@ const listSyncDatabaseIdsNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listHubSchemasNextOperationSpec: coreClient.OperationSpec = { +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncFullSchemaPropertiesListResult + bodyMapper: Mappers.SyncGroupListResult }, default: {} }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.nextLink, - Parameters.syncGroupName + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer }; -const listLogsNextOperationSpec: coreClient.OperationSpec = { +const listHubSchemasNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncGroupLogListResult + bodyMapper: Mappers.SyncFullSchemaPropertiesListResult }, default: {} }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.syncGroupName ], headerParameters: [Parameters.accept], serializer }; -const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { +const listLogsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncGroupListResult + bodyMapper: Mappers.SyncGroupLogListResult }, default: {} }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.syncGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/syncMembers.ts b/sdk/sql/arm-sql/src/operations/syncMembers.ts index 01c6585ed644..9d7545adbcca 100644 --- a/sdk/sql/arm-sql/src/operations/syncMembers.ts +++ b/sdk/sql/arm-sql/src/operations/syncMembers.ts @@ -268,6 +268,28 @@ export class SyncMembersImpl implements SyncMembers { } } + /** + * Lists sync members in the given sync group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param options The options parameters. + */ + private _listBySyncGroup( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + options?: SyncMembersListBySyncGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + listBySyncGroupOperationSpec + ); + } + /** * Gets a sync member. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -645,59 +667,6 @@ export class SyncMembersImpl implements SyncMembers { return poller.pollUntilDone(); } - /** - * Lists sync members in the given sync group. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - private _listBySyncGroup( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncMembersListBySyncGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - listBySyncGroupOperationSpec - ); - } - - /** - * Gets a sync member database schema. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group on which the sync member is hosted. - * @param syncMemberName The name of the sync member. - * @param options The options parameters. - */ - private _listMemberSchemas( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - syncMemberName: string, - options?: SyncMembersListMemberSchemasOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - syncMemberName, - options - }, - listMemberSchemasOperationSpec - ); - } - /** * Refreshes a sync member database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -804,6 +773,37 @@ export class SyncMembersImpl implements SyncMembers { return poller.pollUntilDone(); } + /** + * Gets a sync member database schema. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group on which the sync member is hosted. + * @param syncMemberName The name of the sync member. + * @param options The options parameters. + */ + private _listMemberSchemas( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + syncMemberName: string, + options?: SyncMembersListMemberSchemasOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + syncGroupName, + syncMemberName, + options + }, + listMemberSchemasOperationSpec + ); + } + /** * ListBySyncGroupNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -872,6 +872,28 @@ export class SyncMembersImpl implements SyncMembers { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listBySyncGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SyncMemberListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}", @@ -882,13 +904,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName, Parameters.syncMemberName ], @@ -914,18 +936,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters58, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters100, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName, Parameters.syncMemberName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -934,13 +956,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName, Parameters.syncMemberName ], @@ -965,41 +987,36 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters58, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters100, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName, Parameters.syncMemberName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listBySyncGroupOperationSpec: coreClient.OperationSpec = { +const refreshMemberSchemaOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SyncMemberListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}/refreshSchema", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.syncGroupName + Parameters.subscriptionId, + Parameters.syncGroupName, + Parameters.syncMemberName ], - headerParameters: [Parameters.accept], serializer }; const listMemberSchemasOperationSpec: coreClient.OperationSpec = { @@ -1012,34 +1029,17 @@ const listMemberSchemasOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.syncGroupName, - Parameters.syncMemberName - ], - headerParameters: [Parameters.accept], - serializer -}; -const refreshMemberSchemaOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}/refreshSchema", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, Parameters.syncGroupName, Parameters.syncMemberName ], + headerParameters: [Parameters.accept], serializer }; const listBySyncGroupNextOperationSpec: coreClient.OperationSpec = { @@ -1053,10 +1053,10 @@ const listBySyncGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.syncGroupName ], @@ -1074,10 +1074,10 @@ const listMemberSchemasNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.syncGroupName, Parameters.syncMemberName diff --git a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts index bb34783b6e22..58cbde8a3a5a 100644 --- a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts @@ -128,13 +128,13 @@ const createOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/tdeCertificates", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters41, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters68, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", diff --git a/sdk/sql/arm-sql/src/operations/timeZones.ts b/sdk/sql/arm-sql/src/operations/timeZones.ts index b4188003f731..2cb598dd6fd3 100644 --- a/sdk/sql/arm-sql/src/operations/timeZones.ts +++ b/sdk/sql/arm-sql/src/operations/timeZones.ts @@ -163,7 +163,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -182,7 +182,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts index 0c05cfb6fc3a..dbf9b284e19b 100644 --- a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts +++ b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts @@ -336,13 +336,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -357,13 +357,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.tdeName ], headerParameters: [Parameters.accept], @@ -388,17 +388,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters105, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters101, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.tdeName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -413,10 +413,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/usages.ts b/sdk/sql/arm-sql/src/operations/usages.ts index ae84548ce8ff..06ce5078b66c 100644 --- a/sdk/sql/arm-sql/src/operations/usages.ts +++ b/sdk/sql/arm-sql/src/operations/usages.ts @@ -170,11 +170,11 @@ const listByInstancePoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5, Parameters.expandChildren], + queryParameters: [Parameters.apiVersion, Parameters.expandChildren], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], headerParameters: [Parameters.accept], @@ -191,8 +191,8 @@ const listByInstancePoolNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.instancePoolName ], diff --git a/sdk/sql/arm-sql/src/operations/virtualClusters.ts b/sdk/sql/arm-sql/src/operations/virtualClusters.ts index 75795cfde8f6..3757b1fcdf5b 100644 --- a/sdk/sql/arm-sql/src/operations/virtualClusters.ts +++ b/sdk/sql/arm-sql/src/operations/virtualClusters.ts @@ -539,7 +539,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -554,11 +554,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -573,11 +573,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.virtualClusterName ], headerParameters: [Parameters.accept], @@ -588,11 +588,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.virtualClusterName ], serializer @@ -616,15 +616,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters89, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters102, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.virtualClusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -647,11 +647,11 @@ const updateDnsServersOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.virtualClusterName ], headerParameters: [Parameters.accept], @@ -685,8 +685,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts index 9e12e44c6e17..4a096d2dceda 100644 --- a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts +++ b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts @@ -126,6 +126,24 @@ export class VirtualNetworkRulesImpl implements VirtualNetworkRules { } } + /** + * Gets a list of virtual network rules in a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: VirtualNetworkRulesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a virtual network rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -343,24 +361,6 @@ export class VirtualNetworkRulesImpl implements VirtualNetworkRules { return poller.pollUntilDone(); } - /** - * Gets a list of virtual network rules in a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: VirtualNetworkRulesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -384,6 +384,26 @@ export class VirtualNetworkRulesImpl implements VirtualNetworkRules { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", @@ -394,12 +414,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.virtualNetworkRuleName ], headerParameters: [Parameters.accept], @@ -424,16 +444,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters59, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters103, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.virtualNetworkRuleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -442,34 +462,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.virtualNetworkRuleName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRuleListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.virtualNetworkRuleName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -483,9 +483,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts index b0c2b4457082..3097b5c07774 100644 --- a/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts +++ b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts @@ -148,6 +148,34 @@ export class WorkloadClassifiersImpl implements WorkloadClassifiers { } } + /** + * Gets the list of workload classifiers for a workload group + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param workloadGroupName The name of the workload group from which to receive the classifiers from. + * @param options The options parameters. + */ + private _listByWorkloadGroup( + resourceGroupName: string, + serverName: string, + databaseName: string, + workloadGroupName: string, + options?: WorkloadClassifiersListByWorkloadGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + workloadGroupName, + options + }, + listByWorkloadGroupOperationSpec + ); + } + /** * Gets a workload classifier * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -405,34 +433,6 @@ export class WorkloadClassifiersImpl implements WorkloadClassifiers { return poller.pollUntilDone(); } - /** - * Gets the list of workload classifiers for a workload group - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param workloadGroupName The name of the workload group from which to receive the classifiers from. - * @param options The options parameters. - */ - private _listByWorkloadGroup( - resourceGroupName: string, - serverName: string, - databaseName: string, - workloadGroupName: string, - options?: WorkloadClassifiersListByWorkloadGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - workloadGroupName, - options - }, - listByWorkloadGroupOperationSpec - ); - } - /** * ListByWorkloadGroupNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -467,6 +467,28 @@ export class WorkloadClassifiersImpl implements WorkloadClassifiers { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByWorkloadGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkloadClassifierListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.workloadGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", @@ -477,13 +499,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName, Parameters.workloadClassifierName ], @@ -509,18 +531,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters60, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters104, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName, Parameters.workloadClassifierName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -529,40 +551,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName, Parameters.workloadClassifierName ], serializer }; -const listByWorkloadGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.WorkloadClassifierListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.workloadGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByWorkloadGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -574,10 +574,10 @@ const listByWorkloadGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.workloadGroupName ], diff --git a/sdk/sql/arm-sql/src/operations/workloadGroups.ts b/sdk/sql/arm-sql/src/operations/workloadGroups.ts index 9d89473a34e3..8e424bd55e2d 100644 --- a/sdk/sql/arm-sql/src/operations/workloadGroups.ts +++ b/sdk/sql/arm-sql/src/operations/workloadGroups.ts @@ -139,6 +139,26 @@ export class WorkloadGroupsImpl implements WorkloadGroups { } } + /** + * Gets the list of workload groups + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: WorkloadGroupsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a workload group * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -381,26 +401,6 @@ export class WorkloadGroupsImpl implements WorkloadGroups { return poller.pollUntilDone(); } - /** - * Gets the list of workload groups - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: WorkloadGroupsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -426,6 +426,27 @@ export class WorkloadGroupsImpl implements WorkloadGroups { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkloadGroupListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}", @@ -436,13 +457,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName ], headerParameters: [Parameters.accept], @@ -467,17 +488,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters61, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters105, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -486,36 +507,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.workloadGroupName - ], - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.WorkloadGroupListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.workloadGroupName ], - headerParameters: [Parameters.accept], serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -529,10 +529,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingPolicies.ts index c2869cb72d2c..8923ae23a9e2 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingPolicies.ts @@ -7,43 +7,48 @@ */ import { + DataMaskingPolicyName, + DataMaskingPoliciesGetOptionalParams, + DataMaskingPoliciesGetResponse, DataMaskingPolicy, DataMaskingPoliciesCreateOrUpdateOptionalParams, - DataMaskingPoliciesCreateOrUpdateResponse, - DataMaskingPoliciesGetOptionalParams, - DataMaskingPoliciesGetResponse + DataMaskingPoliciesCreateOrUpdateResponse } from "../models"; /** Interface representing a DataMaskingPolicies. */ export interface DataMaskingPolicies { /** - * Creates or updates a database data masking policy + * Gets the database data masking policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param parameters Parameters for creating or updating a data masking policy. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, - parameters: DataMaskingPolicy, - options?: DataMaskingPoliciesCreateOrUpdateOptionalParams - ): Promise; + dataMaskingPolicyName: DataMaskingPolicyName, + options?: DataMaskingPoliciesGetOptionalParams + ): Promise; /** - * Gets a database data masking policy. + * Creates or updates a database data masking policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. + * @param parameters Parameters for creating or updating a data masking policy. * @param options The options parameters. */ - get( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, - options?: DataMaskingPoliciesGetOptionalParams - ): Promise; + dataMaskingPolicyName: DataMaskingPolicyName, + parameters: DataMaskingPolicy, + options?: DataMaskingPoliciesCreateOrUpdateOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingRules.ts b/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingRules.ts index 6bf212be628a..6e0a6759777b 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingRules.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingRules.ts @@ -9,6 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DataMaskingRule, + DataMaskingPolicyName, DataMaskingRulesListByDatabaseOptionalParams, DataMaskingRulesCreateOrUpdateOptionalParams, DataMaskingRulesCreateOrUpdateResponse @@ -23,12 +24,14 @@ export interface DataMaskingRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking rule applies. * @param options The options parameters. */ listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams ): PagedAsyncIterableIterator; /** @@ -37,6 +40,7 @@ export interface DataMaskingRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. * @param dataMaskingRuleName The name of the data masking rule. * @param parameters The required parameters for creating or updating a data masking rule. * @param options The options parameters. @@ -45,6 +49,7 @@ export interface DataMaskingRules { resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseExtensionsOperations.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseExtensionsOperations.ts index 7a44394d45f9..7a641d988afa 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/databaseExtensionsOperations.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseExtensionsOperations.ts @@ -51,7 +51,7 @@ export interface DatabaseExtensionsOperations { options?: DatabaseExtensionsGetOptionalParams ): Promise; /** - * Perform a database extension operation, like polybase import + * Perform a database extension operation, like database import, database export, or polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -74,7 +74,7 @@ export interface DatabaseExtensionsOperations { > >; /** - * Perform a database extension operation, like polybase import + * Perform a database extension operation, like database import, database export, or polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseVulnerabilityAssessmentScans.ts index 867519ccf003..fcab875bd5e4 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/databaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseVulnerabilityAssessmentScans.ts @@ -12,11 +12,11 @@ import { VulnerabilityAssessmentScanRecord, VulnerabilityAssessmentName, DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams, - DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, DatabaseVulnerabilityAssessmentScansGetOptionalParams, DatabaseVulnerabilityAssessmentScansGetResponse, DatabaseVulnerabilityAssessmentScansExportOptionalParams, - DatabaseVulnerabilityAssessmentScansExportResponse + DatabaseVulnerabilityAssessmentScansExportResponse, + DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams } from "../models"; /// @@ -39,7 +39,7 @@ export interface DatabaseVulnerabilityAssessmentScans { options?: DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams ): PagedAsyncIterableIterator; /** - * Executes a Vulnerability Assessment database scan. + * Gets a vulnerability assessment scan record of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -48,34 +48,34 @@ export interface DatabaseVulnerabilityAssessmentScans { * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - beginInitiateScan( + get( resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise, void>>; + options?: DatabaseVulnerabilityAssessmentScansGetOptionalParams + ): Promise; /** - * Executes a Vulnerability Assessment database scan. + * Convert an existing scan result to a human readable format. If already exists nothing happens * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. + * @param databaseName The name of the scanned database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param scanId The vulnerability assessment scan Id. * @param options The options parameters. */ - beginInitiateScanAndWait( + export( resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise; + options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams + ): Promise; /** - * Gets a vulnerability assessment scan record of a database. + * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -84,30 +84,30 @@ export interface DatabaseVulnerabilityAssessmentScans { * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - get( + beginInitiateScan( resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: DatabaseVulnerabilityAssessmentScansGetOptionalParams - ): Promise; + options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise, void>>; /** - * Convert an existing scan result to a human readable format. If already exists nothing happens + * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the scanned database. + * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - export( + beginInitiateScanAndWait( resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams - ): Promise; + options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts index 8f79003b89da..f5536fb35b9d 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts @@ -9,10 +9,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { - Metric, - DatabasesListMetricsOptionalParams, - MetricDefinition, - DatabasesListMetricDefinitionsOptionalParams, Database, DatabasesListByServerOptionalParams, DatabasesListByElasticPoolOptionalParams, @@ -44,36 +40,6 @@ import { /// /** Interface representing a Databases. */ export interface Databases { - /** - * Returns database metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - listMetrics( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams - ): PagedAsyncIterableIterator; - /** - * Returns database metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - listMetricDefinitions( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams - ): PagedAsyncIterableIterator; /** * Gets a list of databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts index 3cb9703777b3..7d2cb31d2a80 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts @@ -17,7 +17,10 @@ import { DistributedAvailabilityGroupsCreateOrUpdateResponse, DistributedAvailabilityGroupsDeleteOptionalParams, DistributedAvailabilityGroupsUpdateOptionalParams, - DistributedAvailabilityGroupsUpdateResponse + DistributedAvailabilityGroupsUpdateResponse, + DistributedAvailabilityGroupSetRole, + DistributedAvailabilityGroupsSetRoleOptionalParams, + DistributedAvailabilityGroupsSetRoleResponse } from "../models"; /// @@ -151,4 +154,41 @@ export interface DistributedAvailabilityGroups { parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams ): Promise; + /** + * Sets the role for managed instance in a distributed availability group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group set role request parameters. + * @param options The options parameters. + */ + beginSetRole( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroupSetRole, + options?: DistributedAvailabilityGroupsSetRoleOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DistributedAvailabilityGroupsSetRoleResponse + > + >; + /** + * Sets the role for managed instance in a distributed availability group. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group set role request parameters. + * @param options The options parameters. + */ + beginSetRoleAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroupSetRole, + options?: DistributedAvailabilityGroupsSetRoleOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolActivities.ts b/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolActivities.ts deleted file mode 100644 index 8ed1453d251f..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolActivities.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - ElasticPoolActivity, - ElasticPoolActivitiesListByElasticPoolOptionalParams -} from "../models"; - -/// -/** Interface representing a ElasticPoolActivities. */ -export interface ElasticPoolActivities { - /** - * Returns elastic pool activities. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool for which to get the current activity. - * @param options The options parameters. - */ - listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolDatabaseActivities.ts b/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolDatabaseActivities.ts deleted file mode 100644 index c89936b0d92b..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolDatabaseActivities.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - ElasticPoolDatabaseActivity, - ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams -} from "../models"; - -/// -/** Interface representing a ElasticPoolDatabaseActivities. */ -export interface ElasticPoolDatabaseActivities { - /** - * Returns activity on databases inside of an elastic pool. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPools.ts b/sdk/sql/arm-sql/src/operationsInterfaces/elasticPools.ts index b541bbe69419..063a1e86a954 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPools.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/elasticPools.ts @@ -9,10 +9,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { - Metric, - ElasticPoolsListMetricsOptionalParams, - MetricDefinition, - ElasticPoolsListMetricDefinitionsOptionalParams, ElasticPool, ElasticPoolsListByServerOptionalParams, ElasticPoolsGetOptionalParams, @@ -29,36 +25,6 @@ import { /// /** Interface representing a ElasticPools. */ export interface ElasticPools { - /** - * Returns elastic pool metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - listMetrics( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams - ): PagedAsyncIterableIterator; - /** - * Returns elastic pool metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - listMetricDefinitions( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams - ): PagedAsyncIterableIterator; /** * Gets all elastic pools in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/failoverGroups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/failoverGroups.ts index 35369b01de90..8708d43cd778 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/failoverGroups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/failoverGroups.ts @@ -22,7 +22,9 @@ import { FailoverGroupsFailoverOptionalParams, FailoverGroupsFailoverResponse, FailoverGroupsForceFailoverAllowDataLossOptionalParams, - FailoverGroupsForceFailoverAllowDataLossResponse + FailoverGroupsForceFailoverAllowDataLossResponse, + FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams, + FailoverGroupsTryPlannedBeforeForcedFailoverResponse } from "../models"; /// @@ -222,4 +224,39 @@ export interface FailoverGroups { failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams ): Promise; + /** + * Fails over from the current primary server to this server. This operation tries planned before + * forced failover but might still result in data loss. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param failoverGroupName The name of the failover group. + * @param options The options parameters. + */ + beginTryPlannedBeforeForcedFailover( + resourceGroupName: string, + serverName: string, + failoverGroupName: string, + options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FailoverGroupsTryPlannedBeforeForcedFailoverResponse + > + >; + /** + * Fails over from the current primary server to this server. This operation tries planned before + * forced failover but might still result in data loss. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param failoverGroupName The name of the failover group. + * @param options The options parameters. + */ + beginTryPlannedBeforeForcedFailoverAndWait( + resourceGroupName: string, + serverName: string, + failoverGroupName: string, + options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/firewallRules.ts b/sdk/sql/arm-sql/src/operationsInterfaces/firewallRules.ts index b9045ebd226a..5f8e53550314 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/firewallRules.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/firewallRules.ts @@ -10,14 +10,14 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { FirewallRule, FirewallRulesListByServerOptionalParams, + FirewallRuleList, + FirewallRulesReplaceOptionalParams, + FirewallRulesReplaceResponse, FirewallRulesGetOptionalParams, FirewallRulesGetResponse, FirewallRulesCreateOrUpdateOptionalParams, FirewallRulesCreateOrUpdateResponse, - FirewallRulesDeleteOptionalParams, - FirewallRuleList, - FirewallRulesReplaceOptionalParams, - FirewallRulesReplaceResponse + FirewallRulesDeleteOptionalParams } from "../models"; /// @@ -35,6 +35,20 @@ export interface FirewallRules { serverName: string, options?: FirewallRulesListByServerOptionalParams ): PagedAsyncIterableIterator; + /** + * Replaces all firewall rules on the server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters A list of server firewall rules. + * @param options The options parameters. + */ + replace( + resourceGroupName: string, + serverName: string, + parameters: FirewallRuleList, + options?: FirewallRulesReplaceOptionalParams + ): Promise; /** * Gets a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -79,18 +93,4 @@ export interface FirewallRules { firewallRuleName: string, options?: FirewallRulesDeleteOptionalParams ): Promise; - /** - * Replaces all firewall rules on the server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters A list of server firewall rules. - * @param options The options parameters. - */ - replace( - resourceGroupName: string, - serverName: string, - parameters: FirewallRuleList, - options?: FirewallRulesReplaceOptionalParams - ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/geoBackupPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/geoBackupPolicies.ts index 597dd83ae5ff..3310663b5299 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/geoBackupPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/geoBackupPolicies.ts @@ -9,63 +9,63 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { GeoBackupPolicy, - GeoBackupPoliciesListByDatabaseOptionalParams, + GeoBackupPoliciesListOptionalParams, GeoBackupPolicyName, - GeoBackupPoliciesCreateOrUpdateOptionalParams, - GeoBackupPoliciesCreateOrUpdateResponse, GeoBackupPoliciesGetOptionalParams, - GeoBackupPoliciesGetResponse + GeoBackupPoliciesGetResponse, + GeoBackupPoliciesCreateOrUpdateOptionalParams, + GeoBackupPoliciesCreateOrUpdateResponse } from "../models"; /// /** Interface representing a GeoBackupPolicies. */ export interface GeoBackupPolicies { /** - * Returns a list of geo backup policies. + * Gets a list of Geo backup policies for the given database resource. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ - listByDatabase( + list( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams + options?: GeoBackupPoliciesListOptionalParams ): PagedAsyncIterableIterator; /** - * Updates a database geo backup policy. + * Gets a Geo backup policy for the given database resource. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param geoBackupPolicyName The name of the geo backup policy. - * @param parameters The required parameters for creating or updating the geo backup policy. + * @param geoBackupPolicyName The name of the Geo backup policy. This should always be 'Default'. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, - parameters: GeoBackupPolicy, - options?: GeoBackupPoliciesCreateOrUpdateOptionalParams - ): Promise; + options?: GeoBackupPoliciesGetOptionalParams + ): Promise; /** - * Gets a geo backup policy. + * Create or update a database default Geo backup policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param geoBackupPolicyName The name of the geo backup policy. + * @param geoBackupPolicyName The name of the Geo backup policy. This should always be 'Default'. + * @param parameters The required parameters for creating or updating the geo backup policy. * @param options The options parameters. */ - get( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, - options?: GeoBackupPoliciesGetOptionalParams - ): Promise; + parameters: GeoBackupPolicy, + options?: GeoBackupPoliciesCreateOrUpdateOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts index c5f2c323d80d..c10041cb37aa 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts @@ -6,59 +6,85 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./backupShortTermRetentionPolicies"; +export * from "./serverBlobAuditingPolicies"; +export * from "./databaseBlobAuditingPolicies"; +export * from "./extendedDatabaseBlobAuditingPolicies"; +export * from "./extendedServerBlobAuditingPolicies"; export * from "./dataMaskingPolicies"; export * from "./dataMaskingRules"; -export * from "./geoBackupPolicies"; -export * from "./databases"; -export * from "./elasticPools"; -export * from "./serverCommunicationLinks"; -export * from "./serviceObjectives"; -export * from "./elasticPoolActivities"; -export * from "./elasticPoolDatabaseActivities"; -export * from "./serverUsages"; +export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseAdvancedThreatProtectionSettings"; export * from "./databaseAdvisors"; export * from "./databaseAutomaticTuningOperations"; export * from "./databaseColumns"; +export * from "./databaseEncryptionProtectors"; +export * from "./databaseExtensionsOperations"; +export * from "./databaseOperations"; export * from "./databaseRecommendedActions"; export * from "./databaseSchemas"; export * from "./databaseSecurityAlertPolicies"; +export * from "./databaseSqlVulnerabilityAssessmentBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; +export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentScanResult"; +export * from "./databaseSqlVulnerabilityAssessmentScans"; +export * from "./databaseSqlVulnerabilityAssessmentsSettings"; export * from "./databaseTables"; +export * from "./databaseUsages"; export * from "./databaseVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseVulnerabilityAssessments"; export * from "./databaseVulnerabilityAssessmentScans"; -export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseVulnerabilityAssessments"; +export * from "./databases"; export * from "./deletedServers"; +export * from "./distributedAvailabilityGroups"; export * from "./elasticPoolOperations"; +export * from "./elasticPools"; export * from "./encryptionProtectors"; +export * from "./endpointCertificates"; export * from "./failoverGroups"; export * from "./firewallRules"; +export * from "./geoBackupPolicies"; +export * from "./iPv6FirewallRules"; +export * from "./instanceFailoverGroups"; export * from "./instancePools"; export * from "./jobAgents"; export * from "./jobCredentials"; export * from "./jobExecutions"; -export * from "./jobs"; export * from "./jobStepExecutions"; export * from "./jobSteps"; export * from "./jobTargetExecutions"; export * from "./jobTargetGroups"; export * from "./jobVersions"; +export * from "./jobs"; +export * from "./ledgerDigestUploadsOperations"; export * from "./capabilities"; +export * from "./longTermRetentionBackups"; +export * from "./longTermRetentionManagedInstanceBackups"; export * from "./longTermRetentionPolicies"; export * from "./maintenanceWindowOptionsOperations"; export * from "./maintenanceWindowsOperations"; export * from "./managedBackupShortTermRetentionPolicies"; +export * from "./managedDatabaseAdvancedThreatProtectionSettings"; export * from "./managedDatabaseColumns"; +export * from "./managedDatabaseMoveOperations"; export * from "./managedDatabaseQueries"; +export * from "./managedDatabaseRestoreDetails"; export * from "./managedDatabaseSchemas"; export * from "./managedDatabaseSecurityAlertPolicies"; export * from "./managedDatabaseSecurityEvents"; +export * from "./managedDatabaseSensitivityLabels"; +export * from "./managedDatabaseRecommendedSensitivityLabels"; export * from "./managedDatabaseTables"; export * from "./managedDatabaseTransparentDataEncryption"; export * from "./managedDatabaseVulnerabilityAssessmentRuleBaselines"; -export * from "./managedDatabaseVulnerabilityAssessments"; export * from "./managedDatabaseVulnerabilityAssessmentScans"; +export * from "./managedDatabaseVulnerabilityAssessments"; +export * from "./managedDatabases"; export * from "./managedInstanceAdministrators"; +export * from "./managedInstanceAdvancedThreatProtectionSettings"; export * from "./managedInstanceAzureADOnlyAuthentications"; +export * from "./managedInstanceDtcs"; export * from "./managedInstanceEncryptionProtectors"; export * from "./managedInstanceKeys"; export * from "./managedInstanceLongTermRetentionPolicies"; @@ -67,69 +93,42 @@ export * from "./managedInstancePrivateEndpointConnections"; export * from "./managedInstancePrivateLinkResources"; export * from "./managedInstanceTdeCertificates"; export * from "./managedInstanceVulnerabilityAssessments"; +export * from "./managedInstances"; +export * from "./managedLedgerDigestUploadsOperations"; export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; +export * from "./managedServerDnsAliases"; export * from "./managedServerSecurityAlertPolicies"; +export * from "./networkSecurityPerimeterConfigurations"; export * from "./operations"; +export * from "./outboundFirewallRules"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./recoverableDatabases"; export * from "./recoverableManagedDatabases"; +export * from "./replicationLinks"; +export * from "./restorableDroppedDatabases"; +export * from "./restorableDroppedManagedDatabases"; export * from "./restorePoints"; +export * from "./sensitivityLabels"; +export * from "./recommendedSensitivityLabels"; +export * from "./serverAdvancedThreatProtectionSettings"; export * from "./serverAdvisors"; export * from "./serverAutomaticTuningOperations"; export * from "./serverAzureADAdministrators"; export * from "./serverAzureADOnlyAuthentications"; +export * from "./serverConfigurationOptions"; +export * from "./serverConnectionPolicies"; export * from "./serverDevOpsAuditSettings"; export * from "./serverDnsAliases"; export * from "./serverKeys"; export * from "./serverOperations"; export * from "./serverSecurityAlertPolicies"; +export * from "./serverTrustCertificates"; export * from "./serverTrustGroups"; +export * from "./serverUsages"; export * from "./serverVulnerabilityAssessments"; +export * from "./servers"; export * from "./sqlAgent"; -export * from "./subscriptionUsages"; -export * from "./syncAgents"; -export * from "./syncGroups"; -export * from "./syncMembers"; -export * from "./tdeCertificates"; -export * from "./timeZones"; -export * from "./virtualNetworkRules"; -export * from "./workloadClassifiers"; -export * from "./workloadGroups"; -export * from "./backupShortTermRetentionPolicies"; -export * from "./databaseExtensionsOperations"; -export * from "./databaseOperations"; -export * from "./databaseUsages"; -export * from "./ledgerDigestUploadsOperations"; -export * from "./outboundFirewallRules"; -export * from "./usages"; -export * from "./longTermRetentionBackups"; -export * from "./longTermRetentionManagedInstanceBackups"; -export * from "./restorableDroppedManagedDatabases"; -export * from "./serverConnectionPolicies"; -export * from "./distributedAvailabilityGroups"; -export * from "./serverTrustCertificates"; -export * from "./iPv6FirewallRules"; -export * from "./endpointCertificates"; -export * from "./managedDatabaseSensitivityLabels"; -export * from "./managedDatabaseRecommendedSensitivityLabels"; -export * from "./sensitivityLabels"; -export * from "./recommendedSensitivityLabels"; -export * from "./serverBlobAuditingPolicies"; -export * from "./databaseBlobAuditingPolicies"; -export * from "./extendedDatabaseBlobAuditingPolicies"; -export * from "./extendedServerBlobAuditingPolicies"; -export * from "./databaseAdvancedThreatProtectionSettings"; -export * from "./serverAdvancedThreatProtectionSettings"; -export * from "./managedServerDnsAliases"; -export * from "./databaseSqlVulnerabilityAssessmentBaselines"; -export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; -export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseSqlVulnerabilityAssessmentScanResult"; -export * from "./databaseSqlVulnerabilityAssessmentScans"; -export * from "./databaseSqlVulnerabilityAssessmentsSettings"; -export * from "./managedDatabaseAdvancedThreatProtectionSettings"; -export * from "./managedInstanceAdvancedThreatProtectionSettings"; -export * from "./replicationLinks"; export * from "./sqlVulnerabilityAssessmentBaseline"; export * from "./sqlVulnerabilityAssessmentBaselines"; export * from "./sqlVulnerabilityAssessmentExecuteScan"; @@ -139,19 +138,17 @@ export * from "./sqlVulnerabilityAssessmentScanResult"; export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentsSettings"; export * from "./sqlVulnerabilityAssessments"; -export * from "./managedDatabaseMoveOperations"; -export * from "./managedInstanceDtcs"; -export * from "./synapseLinkWorkspaces"; -export * from "./virtualClusters"; -export * from "./instanceFailoverGroups"; -export * from "./managedDatabaseRestoreDetails"; -export * from "./managedDatabases"; -export * from "./databaseEncryptionProtectors"; -export * from "./managedInstances"; -export * from "./managedLedgerDigestUploadsOperations"; -export * from "./recoverableDatabases"; -export * from "./restorableDroppedDatabases"; -export * from "./serverConfigurationOptions"; -export * from "./servers"; export * from "./startStopManagedInstanceSchedules"; +export * from "./subscriptionUsages"; +export * from "./synapseLinkWorkspaces"; +export * from "./syncAgents"; +export * from "./syncGroups"; +export * from "./syncMembers"; +export * from "./tdeCertificates"; +export * from "./timeZones"; export * from "./transparentDataEncryptions"; +export * from "./usages"; +export * from "./virtualClusters"; +export * from "./virtualNetworkRules"; +export * from "./workloadClassifiers"; +export * from "./workloadGroups"; diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/instancePools.ts b/sdk/sql/arm-sql/src/operationsInterfaces/instancePools.ts index abd5edb6b950..ad85070b5916 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/instancePools.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/instancePools.ts @@ -10,8 +10,8 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { InstancePool, - InstancePoolsListByResourceGroupOptionalParams, InstancePoolsListOptionalParams, + InstancePoolsListByResourceGroupOptionalParams, InstancePoolsGetOptionalParams, InstancePoolsGetResponse, InstancePoolsCreateOrUpdateOptionalParams, @@ -25,6 +25,13 @@ import { /// /** Interface representing a InstancePools. */ export interface InstancePools { + /** + * Gets a list of all instance pools in the subscription. + * @param options The options parameters. + */ + list( + options?: InstancePoolsListOptionalParams + ): PagedAsyncIterableIterator; /** * Gets a list of instance pools in the resource group * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -35,13 +42,6 @@ export interface InstancePools { resourceGroupName: string, options?: InstancePoolsListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; - /** - * Gets a list of all instance pools in the subscription. - * @param options The options parameters. - */ - list( - options?: InstancePoolsListOptionalParams - ): PagedAsyncIterableIterator; /** * Gets an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/jobExecutions.ts b/sdk/sql/arm-sql/src/operationsInterfaces/jobExecutions.ts index d74fc17c51d6..bd1f03157e8b 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/jobExecutions.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/jobExecutions.ts @@ -12,13 +12,13 @@ import { JobExecution, JobExecutionsListByAgentOptionalParams, JobExecutionsListByJobOptionalParams, - JobExecutionsCancelOptionalParams, - JobExecutionsCreateOptionalParams, - JobExecutionsCreateResponse, JobExecutionsGetOptionalParams, JobExecutionsGetResponse, JobExecutionsCreateOrUpdateOptionalParams, - JobExecutionsCreateOrUpdateResponse + JobExecutionsCreateOrUpdateResponse, + JobExecutionsCancelOptionalParams, + JobExecutionsCreateOptionalParams, + JobExecutionsCreateResponse } from "../models"; /// @@ -55,117 +55,117 @@ export interface JobExecutions { options?: JobExecutionsListByJobOptionalParams ): PagedAsyncIterableIterator; /** - * Requests cancellation of a job execution. + * Gets a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobExecutionId The id of the job execution to cancel. + * @param jobExecutionId The id of the job execution * @param options The options parameters. */ - cancel( + get( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobExecutionsCancelOptionalParams - ): Promise; + options?: JobExecutionsGetOptionalParams + ): Promise; /** - * Starts an elastic job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - beginCreate( + beginCreateOrUpdate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobExecutionsCreateOptionalParams + jobExecutionId: string, + options?: JobExecutionsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< - OperationState, - JobExecutionsCreateResponse + OperationState, + JobExecutionsCreateOrUpdateResponse > >; /** - * Starts an elastic job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - beginCreateAndWait( + beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobExecutionsCreateOptionalParams - ): Promise; + jobExecutionId: string, + options?: JobExecutionsCreateOrUpdateOptionalParams + ): Promise; /** - * Gets a job execution. + * Requests cancellation of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobExecutionId The id of the job execution + * @param jobExecutionId The id of the job execution to cancel. * @param options The options parameters. */ - get( + cancel( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobExecutionsGetOptionalParams - ): Promise; + options?: JobExecutionsCancelOptionalParams + ): Promise; /** - * Creates or updates a job execution. + * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - beginCreateOrUpdate( + beginCreate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobExecutionId: string, - options?: JobExecutionsCreateOrUpdateOptionalParams + options?: JobExecutionsCreateOptionalParams ): Promise< SimplePollerLike< - OperationState, - JobExecutionsCreateOrUpdateResponse + OperationState, + JobExecutionsCreateResponse > >; /** - * Creates or updates a job execution. + * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - beginCreateOrUpdateAndWait( + beginCreateAndWait( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobExecutionId: string, - options?: JobExecutionsCreateOrUpdateOptionalParams - ): Promise; + options?: JobExecutionsCreateOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/jobSteps.ts b/sdk/sql/arm-sql/src/operationsInterfaces/jobSteps.ts index a6b38d15ea5b..6d1be1898afd 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/jobSteps.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/jobSteps.ts @@ -9,38 +9,20 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { JobStep, - JobStepsListByVersionOptionalParams, JobStepsListByJobOptionalParams, - JobStepsGetByVersionOptionalParams, - JobStepsGetByVersionResponse, + JobStepsListByVersionOptionalParams, JobStepsGetOptionalParams, JobStepsGetResponse, JobStepsCreateOrUpdateOptionalParams, JobStepsCreateOrUpdateResponse, - JobStepsDeleteOptionalParams + JobStepsDeleteOptionalParams, + JobStepsGetByVersionOptionalParams, + JobStepsGetByVersionResponse } from "../models"; /// /** Interface representing a JobSteps. */ export interface JobSteps { - /** - * Gets all job steps in the specified job version. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param jobAgentName The name of the job agent. - * @param jobName The name of the job to get. - * @param jobVersion The version of the job to get. - * @param options The options parameters. - */ - listByVersion( - resourceGroupName: string, - serverName: string, - jobAgentName: string, - jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams - ): PagedAsyncIterableIterator; /** * Gets all job steps for a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -58,25 +40,23 @@ export interface JobSteps { options?: JobStepsListByJobOptionalParams ): PagedAsyncIterableIterator; /** - * Gets the specified version of a job step. + * Gets all job steps in the specified job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. - * @param jobName The name of the job. + * @param jobName The name of the job to get. * @param jobVersion The version of the job to get. - * @param stepName The name of the job step. * @param options The options parameters. */ - getByVersion( + listByVersion( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, - stepName: string, - options?: JobStepsGetByVersionOptionalParams - ): Promise; + options?: JobStepsListByVersionOptionalParams + ): PagedAsyncIterableIterator; /** * Gets a job step in a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -133,4 +113,24 @@ export interface JobSteps { stepName: string, options?: JobStepsDeleteOptionalParams ): Promise; + /** + * Gets the specified version of a job step. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param jobAgentName The name of the job agent. + * @param jobName The name of the job. + * @param jobVersion The version of the job to get. + * @param stepName The name of the job step. + * @param options The options parameters. + */ + getByVersion( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + jobName: string, + jobVersion: number, + stepName: string, + options?: JobStepsGetByVersionOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/jobTargetExecutions.ts b/sdk/sql/arm-sql/src/operationsInterfaces/jobTargetExecutions.ts index 9fc54e524215..7559b110bf62 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/jobTargetExecutions.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/jobTargetExecutions.ts @@ -9,8 +9,8 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { JobExecution, - JobTargetExecutionsListByJobExecutionOptionalParams, JobTargetExecutionsListByStepOptionalParams, + JobTargetExecutionsListByJobExecutionOptionalParams, JobTargetExecutionsGetOptionalParams, JobTargetExecutionsGetResponse } from "../models"; @@ -19,42 +19,42 @@ import { /** Interface representing a JobTargetExecutions. */ export interface JobTargetExecutions { /** - * Lists target executions for all steps of a job execution. + * Lists the target executions of a job step execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution + * @param stepName The name of the step. * @param options The options parameters. */ - listByJobExecution( + listByStep( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams ): PagedAsyncIterableIterator; /** - * Lists the target executions of a job step execution. + * Lists target executions for all steps of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution - * @param stepName The name of the step. * @param options The options parameters. */ - listByStep( + listByJobExecution( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams + options?: JobTargetExecutionsListByJobExecutionOptionalParams ): PagedAsyncIterableIterator; /** * Gets a target execution. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts index 1eb1ef588d07..1aefe1d8bd53 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts @@ -10,46 +10,33 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { LongTermRetentionBackup, - LongTermRetentionBackupsListByDatabaseOptionalParams, LongTermRetentionBackupsListByLocationOptionalParams, LongTermRetentionBackupsListByServerOptionalParams, - LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + LongTermRetentionBackupsListByDatabaseOptionalParams, LongTermRetentionBackupsListByResourceGroupLocationOptionalParams, LongTermRetentionBackupsListByResourceGroupServerOptionalParams, + LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + LongTermRetentionBackupsGetOptionalParams, + LongTermRetentionBackupsGetResponse, + LongTermRetentionBackupsDeleteOptionalParams, CopyLongTermRetentionBackupParameters, LongTermRetentionBackupsCopyOptionalParams, LongTermRetentionBackupsCopyResponse, UpdateLongTermRetentionBackupParameters, LongTermRetentionBackupsUpdateOptionalParams, LongTermRetentionBackupsUpdateResponse, - LongTermRetentionBackupsGetOptionalParams, - LongTermRetentionBackupsGetResponse, - LongTermRetentionBackupsDeleteOptionalParams, + LongTermRetentionBackupsGetByResourceGroupOptionalParams, + LongTermRetentionBackupsGetByResourceGroupResponse, + LongTermRetentionBackupsDeleteByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupResponse, LongTermRetentionBackupsUpdateByResourceGroupOptionalParams, - LongTermRetentionBackupsUpdateByResourceGroupResponse, - LongTermRetentionBackupsGetByResourceGroupOptionalParams, - LongTermRetentionBackupsGetByResourceGroupResponse, - LongTermRetentionBackupsDeleteByResourceGroupOptionalParams + LongTermRetentionBackupsUpdateByResourceGroupResponse } from "../models"; /// /** Interface representing a LongTermRetentionBackups. */ export interface LongTermRetentionBackups { - /** - * Lists all long term retention backups for a database. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param options The options parameters. - */ - listByDatabase( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): PagedAsyncIterableIterator; /** * Lists the long term retention backups for a given location. * @param locationName The location of the database @@ -72,19 +59,16 @@ export interface LongTermRetentionBackups { ): PagedAsyncIterableIterator; /** * Lists all long term retention backups for a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ - listByResourceGroupDatabase( - resourceGroupName: string, + listByDatabase( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + options?: LongTermRetentionBackupsListByDatabaseOptionalParams ): PagedAsyncIterableIterator; /** * Lists the long term retention backups for a given location. @@ -112,6 +96,67 @@ export interface LongTermRetentionBackups { longTermRetentionServerName: string, options?: LongTermRetentionBackupsListByResourceGroupServerOptionalParams ): PagedAsyncIterableIterator; + /** + * Lists all long term retention backups for a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param options The options parameters. + */ + listByResourceGroupDatabase( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a long term retention backup. + * @param locationName The location of the database. + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + get( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsGetOptionalParams + ): Promise; + /** + * Deletes a long term retention backup. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + beginDelete( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a long term retention backup. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + beginDeleteAndWait( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise; /** * Copy an existing long term retention backup. * @param locationName The location of the database. @@ -192,48 +237,57 @@ export interface LongTermRetentionBackups { ): Promise; /** * Gets a long term retention backup. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ - get( + getByResourceGroup( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsGetOptionalParams - ): Promise; + options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams + ): Promise; /** * Deletes a long term retention backup. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ - beginDelete( + beginDeleteByResourceGroup( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams + options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams ): Promise, void>>; /** * Deletes a long term retention backup. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ - beginDeleteAndWait( + beginDeleteByResourceGroupAndWait( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams + options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams ): Promise; /** * Copy an existing long term retention backup to a different server. @@ -325,58 +379,4 @@ export interface LongTermRetentionBackups { parameters: UpdateLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams ): Promise; - /** - * Gets a long term retention backup. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database. - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param options The options parameters. - */ - getByResourceGroup( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams - ): Promise; - /** - * Deletes a long term retention backup. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param options The options parameters. - */ - beginDeleteByResourceGroup( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - ): Promise, void>>; - /** - * Deletes a long term retention backup. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param options The options parameters. - */ - beginDeleteByResourceGroupAndWait( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionManagedInstanceBackups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionManagedInstanceBackups.ts index b69527af808c..02115fbf09f6 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionManagedInstanceBackups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionManagedInstanceBackups.ts @@ -10,12 +10,12 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ManagedInstanceLongTermRetentionBackup, + LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams, LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams, - LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, LongTermRetentionManagedInstanceBackupsGetOptionalParams, LongTermRetentionManagedInstanceBackupsGetResponse, LongTermRetentionManagedInstanceBackupsDeleteOptionalParams, @@ -27,6 +27,15 @@ import { /// /** Interface representing a LongTermRetentionManagedInstanceBackups. */ export interface LongTermRetentionManagedInstanceBackups { + /** + * Lists the long term retention backups for managed databases in a given location. + * @param locationName The location of the database. + * @param options The options parameters. + */ + listByLocation( + locationName: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + ): PagedAsyncIterableIterator; /** * Lists all long term retention backups for a managed database. * @param locationName The location of the database. @@ -53,12 +62,15 @@ export interface LongTermRetentionManagedInstanceBackups { ): PagedAsyncIterableIterator; /** * Lists the long term retention backups for managed databases in a given location. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param options The options parameters. */ - listByLocation( + listByResourceGroupLocation( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams ): PagedAsyncIterableIterator; /** * Lists all long term retention backups for a managed database. @@ -90,18 +102,6 @@ export interface LongTermRetentionManagedInstanceBackups { managedInstanceName: string, options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams ): PagedAsyncIterableIterator; - /** - * Lists the long term retention backups for managed databases in a given location. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database. - * @param options The options parameters. - */ - listByResourceGroupLocation( - resourceGroupName: string, - locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams - ): PagedAsyncIterableIterator; /** * Gets a long term retention backup for a managed database. * @param locationName The location of the database. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseSensitivityLabels.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseSensitivityLabels.ts index d9e14da84f1f..f0c117f4b1a8 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseSensitivityLabels.ts @@ -11,6 +11,9 @@ import { SensitivityLabel, ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams, ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams, + ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams, + SensitivityLabelUpdateList, + ManagedDatabaseSensitivityLabelsUpdateOptionalParams, SensitivityLabelSource, ManagedDatabaseSensitivityLabelsGetOptionalParams, ManagedDatabaseSensitivityLabelsGetResponse, @@ -18,9 +21,7 @@ import { ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse, ManagedDatabaseSensitivityLabelsDeleteOptionalParams, ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams, - ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams, - SensitivityLabelUpdateList, - ManagedDatabaseSensitivityLabelsUpdateOptionalParams + ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams } from "../models"; /// @@ -54,6 +55,36 @@ export interface ManagedDatabaseSensitivityLabels { databaseName: string, options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams ): PagedAsyncIterableIterator; + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; + /** + * Update sensitivity labels of a given database using an operations batch. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters A list of sensitivity label update operations. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: SensitivityLabelUpdateList, + options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams + ): Promise; /** * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -159,20 +190,4 @@ export interface ManagedDatabaseSensitivityLabels { columnName: string, options?: ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams ): Promise; - /** - * Update sensitivity labels of a given database using an operations batch. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param parameters A list of sensitivity label update operations. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - parameters: SensitivityLabelUpdateList, - options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams - ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts index 805767112711..9ddcbf80a1d4 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts @@ -11,7 +11,7 @@ import { VulnerabilityAssessmentPolicyBaselineName, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse, - DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams @@ -62,7 +62,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, - parameters: DatabaseVulnerabilityAssessmentRuleBaseline, + parameters: DatabaseVulnerabilityAssessmentRuleBaselineAutoGenerated, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams ): Promise< ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentScans.ts index 4730f0544871..01e0fbabe295 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentScans.ts @@ -12,11 +12,11 @@ import { VulnerabilityAssessmentScanRecord, VulnerabilityAssessmentName, ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams, - ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, + ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams, + ManagedDatabaseVulnerabilityAssessmentScansGetResponse, ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansExportResponse, - ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams, - ManagedDatabaseVulnerabilityAssessmentScansGetResponse + ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams } from "../models"; /// @@ -39,7 +39,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { options?: ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams ): PagedAsyncIterableIterator; /** - * Executes a Vulnerability Assessment database scan. + * Gets a vulnerability assessment scan record of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. @@ -48,52 +48,52 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - beginInitiateScan( + get( resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise, void>>; + options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams + ): Promise; /** - * Executes a Vulnerability Assessment database scan. + * Convert an existing scan result to a human readable format. If already exists nothing happens * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. + * @param databaseName The name of the scanned database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param scanId The vulnerability assessment scan Id. * @param options The options parameters. */ - beginInitiateScanAndWait( + export( resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise; + options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams + ): Promise; /** - * Convert an existing scan result to a human readable format. If already exists nothing happens + * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the scanned database. + * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - export( + beginInitiateScan( resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams - ): Promise; + options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise, void>>; /** - * Gets a vulnerability assessment scan record of a database. + * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. @@ -102,12 +102,12 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - get( + beginInitiateScanAndWait( resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams - ): Promise; + options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceEncryptionProtectors.ts index 278f0b4c3c42..e9c1556de46a 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceEncryptionProtectors.ts @@ -12,11 +12,11 @@ import { ManagedInstanceEncryptionProtector, ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams, EncryptionProtectorName, - ManagedInstanceEncryptionProtectorsRevalidateOptionalParams, ManagedInstanceEncryptionProtectorsGetOptionalParams, ManagedInstanceEncryptionProtectorsGetResponse, ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams, - ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse + ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse, + ManagedInstanceEncryptionProtectorsRevalidateOptionalParams } from "../models"; /// @@ -34,34 +34,6 @@ export interface ManagedInstanceEncryptionProtectors { managedInstanceName: string, options?: ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams ): PagedAsyncIterableIterator; - /** - * Revalidates an existing encryption protector. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param encryptionProtectorName The name of the encryption protector to be updated. - * @param options The options parameters. - */ - beginRevalidate( - resourceGroupName: string, - managedInstanceName: string, - encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - ): Promise, void>>; - /** - * Revalidates an existing encryption protector. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param encryptionProtectorName The name of the encryption protector to be updated. - * @param options The options parameters. - */ - beginRevalidateAndWait( - resourceGroupName: string, - managedInstanceName: string, - encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - ): Promise; /** * Gets a managed instance encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -113,4 +85,32 @@ export interface ManagedInstanceEncryptionProtectors { parameters: ManagedInstanceEncryptionProtector, options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams ): Promise; + /** + * Revalidates an existing encryption protector. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param encryptionProtectorName The name of the encryption protector to be updated. + * @param options The options parameters. + */ + beginRevalidate( + resourceGroupName: string, + managedInstanceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + ): Promise, void>>; + /** + * Revalidates an existing encryption protector. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param encryptionProtectorName The name of the encryption protector to be updated. + * @param options The options parameters. + */ + beginRevalidateAndWait( + resourceGroupName: string, + managedInstanceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceLongTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceLongTermRetentionPolicies.ts index 564702efdb0a..ac05a3216c5a 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceLongTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceLongTermRetentionPolicies.ts @@ -15,7 +15,9 @@ import { ManagedInstanceLongTermRetentionPoliciesGetOptionalParams, ManagedInstanceLongTermRetentionPoliciesGetResponse, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams, - ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse + ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse, + ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams, + ManagedInstanceLongTermRetentionPoliciesDeleteResponse } from "../models"; /// @@ -94,4 +96,41 @@ export interface ManagedInstanceLongTermRetentionPolicies { parameters: ManagedInstanceLongTermRetentionPolicy, options?: ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams ): Promise; + /** + * Deletes a managed database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param policyName The policy name. Should always be Default. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + policyName: ManagedInstanceLongTermRetentionPolicyName, + options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstanceLongTermRetentionPoliciesDeleteResponse + > + >; + /** + * Deletes a managed database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param policyName The policy name. Should always be Default. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + policyName: ManagedInstanceLongTermRetentionPolicyName, + options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts index 8be022d6aaec..bd92da43c4cc 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts @@ -27,7 +27,9 @@ import { ManagedInstancesUpdateResponse, ManagedInstancesFailoverOptionalParams, ManagedInstancesStartOptionalParams, - ManagedInstancesStopOptionalParams + ManagedInstancesStartResponse, + ManagedInstancesStopOptionalParams, + ManagedInstancesStopResponse } from "../models"; /// @@ -223,7 +225,12 @@ export interface ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesStartResponse + > + >; /** * Starts the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -235,7 +242,7 @@ export interface ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams - ): Promise; + ): Promise; /** * Stops the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -247,7 +254,12 @@ export interface ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesStopResponse + > + >; /** * Stops the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -259,5 +271,5 @@ export interface ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams - ): Promise; + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedServerSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedServerSecurityAlertPolicies.ts index cb8ed03f3506..6427586070b5 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedServerSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedServerSecurityAlertPolicies.ts @@ -11,7 +11,7 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ManagedServerSecurityAlertPolicy, ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams, - SecurityAlertPolicyName, + SecurityAlertPolicyNameAutoGenerated, ManagedServerSecurityAlertPoliciesGetOptionalParams, ManagedServerSecurityAlertPoliciesGetResponse, ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams, @@ -44,7 +44,7 @@ export interface ManagedServerSecurityAlertPolicies { get( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams ): Promise; /** @@ -59,7 +59,7 @@ export interface ManagedServerSecurityAlertPolicies { beginCreateOrUpdate( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise< @@ -80,7 +80,7 @@ export interface ManagedServerSecurityAlertPolicies { beginCreateOrUpdateAndWait( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise; diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts b/sdk/sql/arm-sql/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts new file mode 100644 index 000000000000..a58b36488f28 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts @@ -0,0 +1,82 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NetworkSecurityPerimeterConfiguration, + NetworkSecurityPerimeterConfigurationsListByServerOptionalParams, + NetworkSecurityPerimeterConfigurationsGetOptionalParams, + NetworkSecurityPerimeterConfigurationsGetResponse, + NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + NetworkSecurityPerimeterConfigurationsReconcileResponse +} from "../models"; + +/// +/** Interface representing a NetworkSecurityPerimeterConfigurations. */ +export interface NetworkSecurityPerimeterConfigurations { + /** + * Gets a list of NSP configurations for a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + listByServer( + resourceGroupName: string, + serverName: string, + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a network security perimeter configuration. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nspConfigName + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams + ): Promise; + /** + * Reconcile network security perimeter configuration for SQL Resource Provider + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nspConfigName + * @param options The options parameters. + */ + beginReconcile( + resourceGroupName: string, + serverName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkSecurityPerimeterConfigurationsReconcileResponse + > + >; + /** + * Reconcile network security perimeter configuration for SQL Resource Provider + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nspConfigName + * @param options The options parameters. + */ + beginReconcileAndWait( + resourceGroupName: string, + serverName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/outboundFirewallRules.ts b/sdk/sql/arm-sql/src/operationsInterfaces/outboundFirewallRules.ts index 29322a46884a..41e1fcd9752d 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/outboundFirewallRules.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/outboundFirewallRules.ts @@ -53,14 +53,12 @@ export interface OutboundFirewallRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn - * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ beginCreateOrUpdate( resourceGroupName: string, serverName: string, outboundRuleFqdn: string, - parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< @@ -74,14 +72,12 @@ export interface OutboundFirewallRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn - * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, outboundRuleFqdn: string, - parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams ): Promise; /** diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/sensitivityLabels.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sensitivityLabels.ts index 2e29e28ed53b..8e4d638bebd8 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/sensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sensitivityLabels.ts @@ -11,16 +11,17 @@ import { SensitivityLabel, SensitivityLabelsListCurrentByDatabaseOptionalParams, SensitivityLabelsListRecommendedByDatabaseOptionalParams, + SensitivityLabelsListByDatabaseOptionalParams, SensitivityLabelUpdateList, SensitivityLabelsUpdateOptionalParams, - SensitivityLabelsEnableRecommendationOptionalParams, - SensitivityLabelsDisableRecommendationOptionalParams, SensitivityLabelSource, SensitivityLabelsGetOptionalParams, SensitivityLabelsGetResponse, SensitivityLabelsCreateOrUpdateOptionalParams, SensitivityLabelsCreateOrUpdateResponse, - SensitivityLabelsDeleteOptionalParams + SensitivityLabelsDeleteOptionalParams, + SensitivityLabelsDisableRecommendationOptionalParams, + SensitivityLabelsEnableRecommendationOptionalParams } from "../models"; /// @@ -54,6 +55,20 @@ export interface SensitivityLabels { databaseName: string, options?: SensitivityLabelsListRecommendedByDatabaseOptionalParams ): PagedAsyncIterableIterator; + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SensitivityLabelsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; /** * Update sensitivity labels of a given database using an operations batch. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -71,8 +86,7 @@ export interface SensitivityLabels { options?: SensitivityLabelsUpdateOptionalParams ): Promise; /** - * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all - * columns) + * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -80,19 +94,21 @@ export interface SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ - enableRecommendation( + get( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsEnableRecommendationOptionalParams - ): Promise; + sensitivityLabelSource: SensitivityLabelSource, + options?: SensitivityLabelsGetOptionalParams + ): Promise; /** - * Disables sensitivity recommendations on a given column + * Creates or updates the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -100,19 +116,21 @@ export interface SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. * @param options The options parameters. */ - disableRecommendation( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsDisableRecommendationOptionalParams - ): Promise; + parameters: SensitivityLabel, + options?: SensitivityLabelsCreateOrUpdateOptionalParams + ): Promise; /** - * Gets the sensitivity label of a given column + * Deletes the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -120,21 +138,19 @@ export interface SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ - get( + delete( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - sensitivityLabelSource: SensitivityLabelSource, - options?: SensitivityLabelsGetOptionalParams - ): Promise; + options?: SensitivityLabelsDeleteOptionalParams + ): Promise; /** - * Creates or updates the sensitivity label of a given column + * Disables sensitivity recommendations on a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -142,21 +158,20 @@ export interface SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @param parameters The column sensitivity label resource. * @param options The options parameters. */ - createOrUpdate( + disableRecommendation( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - parameters: SensitivityLabel, - options?: SensitivityLabelsCreateOrUpdateOptionalParams - ): Promise; + options?: SensitivityLabelsDisableRecommendationOptionalParams + ): Promise; /** - * Deletes the sensitivity label of a given column + * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all + * columns) * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -166,13 +181,13 @@ export interface SensitivityLabels { * @param columnName The name of the column. * @param options The options parameters. */ - delete( + enableRecommendation( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsDeleteOptionalParams + options?: SensitivityLabelsEnableRecommendationOptionalParams ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverCommunicationLinks.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverCommunicationLinks.ts deleted file mode 100644 index addf8110e3b0..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serverCommunicationLinks.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - ServerCommunicationLink, - ServerCommunicationLinksListByServerOptionalParams, - ServerCommunicationLinksDeleteOptionalParams, - ServerCommunicationLinksGetOptionalParams, - ServerCommunicationLinksGetResponse, - ServerCommunicationLinksCreateOrUpdateOptionalParams, - ServerCommunicationLinksCreateOrUpdateResponse -} from "../models"; - -/// -/** Interface representing a ServerCommunicationLinks. */ -export interface ServerCommunicationLinks { - /** - * Gets a list of server communication links. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams - ): PagedAsyncIterableIterator; - /** - * Deletes a server communication link. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - serverName: string, - communicationLinkName: string, - options?: ServerCommunicationLinksDeleteOptionalParams - ): Promise; - /** - * Returns a server communication link. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - communicationLinkName: string, - options?: ServerCommunicationLinksGetOptionalParams - ): Promise; - /** - * Creates a server communication link. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serverName: string, - communicationLinkName: string, - parameters: ServerCommunicationLink, - options?: ServerCommunicationLinksCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ServerCommunicationLinksCreateOrUpdateResponse - > - >; - /** - * Creates a server communication link. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serverName: string, - communicationLinkName: string, - parameters: ServerCommunicationLink, - options?: ServerCommunicationLinksCreateOrUpdateOptionalParams - ): Promise; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverSecurityAlertPolicies.ts index 1822ab56744c..d75617a8a677 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serverSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/serverSecurityAlertPolicies.ts @@ -11,7 +11,7 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ServerSecurityAlertPolicy, ServerSecurityAlertPoliciesListByServerOptionalParams, - SecurityAlertPolicyName, + SecurityAlertPolicyNameAutoGenerated, ServerSecurityAlertPoliciesGetOptionalParams, ServerSecurityAlertPoliciesGetResponse, ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams, @@ -44,7 +44,7 @@ export interface ServerSecurityAlertPolicies { get( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ServerSecurityAlertPoliciesGetOptionalParams ): Promise; /** @@ -59,7 +59,7 @@ export interface ServerSecurityAlertPolicies { beginCreateOrUpdate( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise< @@ -80,7 +80,7 @@ export interface ServerSecurityAlertPolicies { beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise; diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverUsages.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverUsages.ts index 8f0e03fb7a9e..5da881ab19de 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serverUsages.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/serverUsages.ts @@ -13,7 +13,7 @@ import { ServerUsage, ServerUsagesListByServerOptionalParams } from "../models"; /** Interface representing a ServerUsages. */ export interface ServerUsages { /** - * Returns server usages. + * Gets server usages. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serviceObjectives.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serviceObjectives.ts deleted file mode 100644 index 3c14a0a36783..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serviceObjectives.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - ServiceObjective, - ServiceObjectivesListByServerOptionalParams, - ServiceObjectivesGetOptionalParams, - ServiceObjectivesGetResponse -} from "../models"; - -/// -/** Interface representing a ServiceObjectives. */ -export interface ServiceObjectives { - /** - * Returns database service objectives. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - listByServer( - resourceGroupName: string, - serverName: string, - options?: ServiceObjectivesListByServerOptionalParams - ): PagedAsyncIterableIterator; - /** - * Gets a database service objective. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param serviceObjectiveName The name of the service objective to retrieve. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - serviceObjectiveName: string, - options?: ServiceObjectivesGetOptionalParams - ): Promise; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts index b5e658e4de5f..57849b89ace3 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts @@ -11,23 +11,23 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SyncDatabaseIdProperties, SyncGroupsListSyncDatabaseIdsOptionalParams, + SyncGroup, + SyncGroupsListByDatabaseOptionalParams, SyncFullSchemaProperties, SyncGroupsListHubSchemasOptionalParams, SyncGroupLogProperties, SyncGroupsType, SyncGroupsListLogsOptionalParams, - SyncGroup, - SyncGroupsListByDatabaseOptionalParams, - SyncGroupsRefreshHubSchemaOptionalParams, - SyncGroupsCancelSyncOptionalParams, - SyncGroupsTriggerSyncOptionalParams, SyncGroupsGetOptionalParams, SyncGroupsGetResponse, SyncGroupsCreateOrUpdateOptionalParams, SyncGroupsCreateOrUpdateResponse, SyncGroupsDeleteOptionalParams, SyncGroupsUpdateOptionalParams, - SyncGroupsUpdateResponse + SyncGroupsUpdateResponse, + SyncGroupsCancelSyncOptionalParams, + SyncGroupsRefreshHubSchemaOptionalParams, + SyncGroupsTriggerSyncOptionalParams } from "../models"; /// @@ -42,6 +42,20 @@ export interface SyncGroups { locationName: string, options?: SyncGroupsListSyncDatabaseIdsOptionalParams ): PagedAsyncIterableIterator; + /** + * Lists sync groups under a hub database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param options The options parameters. + */ + listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SyncGroupsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; /** * Gets a collection of hub database schemas. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -81,21 +95,7 @@ export interface SyncGroups { options?: SyncGroupsListLogsOptionalParams ): PagedAsyncIterableIterator; /** - * Lists sync groups under a hub database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param options The options parameters. - */ - listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams - ): PagedAsyncIterableIterator; - /** - * Refreshes a hub database schema. + * Gets a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -103,47 +103,56 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - beginRefreshHubSchema( + get( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsRefreshHubSchemaOptionalParams - ): Promise, void>>; + options?: SyncGroupsGetOptionalParams + ): Promise; /** - * Refreshes a hub database schema. + * Creates or updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginRefreshHubSchemaAndWait( + beginCreateOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsRefreshHubSchemaOptionalParams - ): Promise; + parameters: SyncGroup, + options?: SyncGroupsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + SyncGroupsCreateOrUpdateResponse + > + >; /** - * Cancels a sync group synchronization. + * Creates or updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - cancelSync( + beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsCancelSyncOptionalParams - ): Promise; + parameters: SyncGroup, + options?: SyncGroupsCreateOrUpdateOptionalParams + ): Promise; /** - * Triggers a sync group synchronization. + * Deletes a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -151,15 +160,15 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - triggerSync( + beginDelete( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsTriggerSyncOptionalParams - ): Promise; + options?: SyncGroupsDeleteOptionalParams + ): Promise, void>>; /** - * Gets a sync group. + * Deletes a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -167,15 +176,15 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - get( + beginDeleteAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsGetOptionalParams - ): Promise; + options?: SyncGroupsDeleteOptionalParams + ): Promise; /** - * Creates or updates a sync group. + * Updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -184,21 +193,21 @@ export interface SyncGroups { * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginCreateOrUpdate( + beginUpdate( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: SyncGroup, - options?: SyncGroupsCreateOrUpdateOptionalParams + options?: SyncGroupsUpdateOptionalParams ): Promise< SimplePollerLike< - OperationState, - SyncGroupsCreateOrUpdateResponse + OperationState, + SyncGroupsUpdateResponse > >; /** - * Creates or updates a sync group. + * Updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -207,16 +216,16 @@ export interface SyncGroups { * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginCreateOrUpdateAndWait( + beginUpdateAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: SyncGroup, - options?: SyncGroupsCreateOrUpdateOptionalParams - ): Promise; + options?: SyncGroupsUpdateOptionalParams + ): Promise; /** - * Deletes a sync group. + * Cancels a sync group synchronization. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -224,15 +233,15 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - beginDelete( + cancelSync( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsDeleteOptionalParams - ): Promise, void>>; + options?: SyncGroupsCancelSyncOptionalParams + ): Promise; /** - * Deletes a sync group. + * Refreshes a hub database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -240,52 +249,43 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - beginDeleteAndWait( + beginRefreshHubSchema( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsDeleteOptionalParams - ): Promise; + options?: SyncGroupsRefreshHubSchemaOptionalParams + ): Promise, void>>; /** - * Updates a sync group. + * Refreshes a hub database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginUpdate( + beginRefreshHubSchemaAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SyncGroupsUpdateResponse - > - >; + options?: SyncGroupsRefreshHubSchemaOptionalParams + ): Promise; /** - * Updates a sync group. + * Triggers a sync group synchronization. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginUpdateAndWait( + triggerSync( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsUpdateOptionalParams - ): Promise; + options?: SyncGroupsTriggerSyncOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/sqlManagementClient.ts b/sdk/sql/arm-sql/src/sqlManagementClient.ts index 661a39ff3973..b7dcb4e44dc5 100644 --- a/sdk/sql/arm-sql/src/sqlManagementClient.ts +++ b/sdk/sql/arm-sql/src/sqlManagementClient.ts @@ -8,61 +8,92 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { + BackupShortTermRetentionPoliciesImpl, + ServerBlobAuditingPoliciesImpl, + DatabaseBlobAuditingPoliciesImpl, + ExtendedDatabaseBlobAuditingPoliciesImpl, + ExtendedServerBlobAuditingPoliciesImpl, DataMaskingPoliciesImpl, DataMaskingRulesImpl, - GeoBackupPoliciesImpl, - DatabasesImpl, - ElasticPoolsImpl, - ServerCommunicationLinksImpl, - ServiceObjectivesImpl, - ElasticPoolActivitiesImpl, - ElasticPoolDatabaseActivitiesImpl, - ServerUsagesImpl, + DataWarehouseUserActivitiesOperationsImpl, + DatabaseAdvancedThreatProtectionSettingsImpl, DatabaseAdvisorsImpl, DatabaseAutomaticTuningOperationsImpl, DatabaseColumnsImpl, + DatabaseEncryptionProtectorsImpl, + DatabaseExtensionsOperationsImpl, + DatabaseOperationsImpl, DatabaseRecommendedActionsImpl, DatabaseSchemasImpl, DatabaseSecurityAlertPoliciesImpl, + DatabaseSqlVulnerabilityAssessmentBaselinesImpl, + DatabaseSqlVulnerabilityAssessmentExecuteScanImpl, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl, + DatabaseSqlVulnerabilityAssessmentScanResultImpl, + DatabaseSqlVulnerabilityAssessmentScansImpl, + DatabaseSqlVulnerabilityAssessmentsSettingsImpl, DatabaseTablesImpl, + DatabaseUsagesImpl, DatabaseVulnerabilityAssessmentRuleBaselinesImpl, - DatabaseVulnerabilityAssessmentsImpl, DatabaseVulnerabilityAssessmentScansImpl, - DataWarehouseUserActivitiesOperationsImpl, + DatabaseVulnerabilityAssessmentsImpl, + DatabasesImpl, DeletedServersImpl, + DistributedAvailabilityGroupsImpl, ElasticPoolOperationsImpl, + ElasticPoolsImpl, EncryptionProtectorsImpl, + EndpointCertificatesImpl, FailoverGroupsImpl, FirewallRulesImpl, + GeoBackupPoliciesImpl, + IPv6FirewallRulesImpl, + InstanceFailoverGroupsImpl, InstancePoolsImpl, JobAgentsImpl, JobCredentialsImpl, JobExecutionsImpl, - JobsImpl, JobStepExecutionsImpl, JobStepsImpl, JobTargetExecutionsImpl, JobTargetGroupsImpl, JobVersionsImpl, + JobsImpl, + LedgerDigestUploadsOperationsImpl, CapabilitiesImpl, + LongTermRetentionBackupsImpl, + LongTermRetentionManagedInstanceBackupsImpl, LongTermRetentionPoliciesImpl, MaintenanceWindowOptionsOperationsImpl, MaintenanceWindowsOperationsImpl, ManagedBackupShortTermRetentionPoliciesImpl, + ManagedDatabaseAdvancedThreatProtectionSettingsImpl, ManagedDatabaseColumnsImpl, + ManagedDatabaseMoveOperationsImpl, ManagedDatabaseQueriesImpl, + ManagedDatabaseRestoreDetailsImpl, ManagedDatabaseSchemasImpl, ManagedDatabaseSecurityAlertPoliciesImpl, ManagedDatabaseSecurityEventsImpl, + ManagedDatabaseSensitivityLabelsImpl, + ManagedDatabaseRecommendedSensitivityLabelsImpl, ManagedDatabaseTablesImpl, ManagedDatabaseTransparentDataEncryptionImpl, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl, - ManagedDatabaseVulnerabilityAssessmentsImpl, ManagedDatabaseVulnerabilityAssessmentScansImpl, + ManagedDatabaseVulnerabilityAssessmentsImpl, + ManagedDatabasesImpl, ManagedInstanceAdministratorsImpl, + ManagedInstanceAdvancedThreatProtectionSettingsImpl, ManagedInstanceAzureADOnlyAuthenticationsImpl, + ManagedInstanceDtcsImpl, ManagedInstanceEncryptionProtectorsImpl, ManagedInstanceKeysImpl, ManagedInstanceLongTermRetentionPoliciesImpl, @@ -71,69 +102,42 @@ import { ManagedInstancePrivateLinkResourcesImpl, ManagedInstanceTdeCertificatesImpl, ManagedInstanceVulnerabilityAssessmentsImpl, + ManagedInstancesImpl, + ManagedLedgerDigestUploadsOperationsImpl, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImpl, + ManagedServerDnsAliasesImpl, ManagedServerSecurityAlertPoliciesImpl, + NetworkSecurityPerimeterConfigurationsImpl, OperationsImpl, + OutboundFirewallRulesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, + RecoverableDatabasesImpl, RecoverableManagedDatabasesImpl, + ReplicationLinksImpl, + RestorableDroppedDatabasesImpl, + RestorableDroppedManagedDatabasesImpl, RestorePointsImpl, + SensitivityLabelsImpl, + RecommendedSensitivityLabelsImpl, + ServerAdvancedThreatProtectionSettingsImpl, ServerAdvisorsImpl, ServerAutomaticTuningOperationsImpl, ServerAzureADAdministratorsImpl, ServerAzureADOnlyAuthenticationsImpl, + ServerConfigurationOptionsImpl, + ServerConnectionPoliciesImpl, ServerDevOpsAuditSettingsImpl, ServerDnsAliasesImpl, ServerKeysImpl, ServerOperationsImpl, ServerSecurityAlertPoliciesImpl, + ServerTrustCertificatesImpl, ServerTrustGroupsImpl, + ServerUsagesImpl, ServerVulnerabilityAssessmentsImpl, + ServersImpl, SqlAgentImpl, - SubscriptionUsagesImpl, - SyncAgentsImpl, - SyncGroupsImpl, - SyncMembersImpl, - TdeCertificatesImpl, - TimeZonesImpl, - VirtualNetworkRulesImpl, - WorkloadClassifiersImpl, - WorkloadGroupsImpl, - BackupShortTermRetentionPoliciesImpl, - DatabaseExtensionsOperationsImpl, - DatabaseOperationsImpl, - DatabaseUsagesImpl, - LedgerDigestUploadsOperationsImpl, - OutboundFirewallRulesImpl, - UsagesImpl, - LongTermRetentionBackupsImpl, - LongTermRetentionManagedInstanceBackupsImpl, - RestorableDroppedManagedDatabasesImpl, - ServerConnectionPoliciesImpl, - DistributedAvailabilityGroupsImpl, - ServerTrustCertificatesImpl, - IPv6FirewallRulesImpl, - EndpointCertificatesImpl, - ManagedDatabaseSensitivityLabelsImpl, - ManagedDatabaseRecommendedSensitivityLabelsImpl, - SensitivityLabelsImpl, - RecommendedSensitivityLabelsImpl, - ServerBlobAuditingPoliciesImpl, - DatabaseBlobAuditingPoliciesImpl, - ExtendedDatabaseBlobAuditingPoliciesImpl, - ExtendedServerBlobAuditingPoliciesImpl, - DatabaseAdvancedThreatProtectionSettingsImpl, - ServerAdvancedThreatProtectionSettingsImpl, - ManagedServerDnsAliasesImpl, - DatabaseSqlVulnerabilityAssessmentBaselinesImpl, - DatabaseSqlVulnerabilityAssessmentExecuteScanImpl, - DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl, - DatabaseSqlVulnerabilityAssessmentScanResultImpl, - DatabaseSqlVulnerabilityAssessmentScansImpl, - DatabaseSqlVulnerabilityAssessmentsSettingsImpl, - ManagedDatabaseAdvancedThreatProtectionSettingsImpl, - ManagedInstanceAdvancedThreatProtectionSettingsImpl, - ReplicationLinksImpl, SqlVulnerabilityAssessmentBaselineImpl, SqlVulnerabilityAssessmentBaselinesImpl, SqlVulnerabilityAssessmentExecuteScanImpl, @@ -143,77 +147,101 @@ import { SqlVulnerabilityAssessmentScansImpl, SqlVulnerabilityAssessmentsSettingsImpl, SqlVulnerabilityAssessmentsImpl, - ManagedDatabaseMoveOperationsImpl, - ManagedInstanceDtcsImpl, + StartStopManagedInstanceSchedulesImpl, + SubscriptionUsagesImpl, SynapseLinkWorkspacesImpl, + SyncAgentsImpl, + SyncGroupsImpl, + SyncMembersImpl, + TdeCertificatesImpl, + TimeZonesImpl, + TransparentDataEncryptionsImpl, + UsagesImpl, VirtualClustersImpl, - InstanceFailoverGroupsImpl, - ManagedDatabaseRestoreDetailsImpl, - ManagedDatabasesImpl, - DatabaseEncryptionProtectorsImpl, - ManagedInstancesImpl, - ManagedLedgerDigestUploadsOperationsImpl, - RecoverableDatabasesImpl, - RestorableDroppedDatabasesImpl, - ServerConfigurationOptionsImpl, - ServersImpl, - StartStopManagedInstanceSchedulesImpl, - TransparentDataEncryptionsImpl + VirtualNetworkRulesImpl, + WorkloadClassifiersImpl, + WorkloadGroupsImpl } from "./operations"; import { + BackupShortTermRetentionPolicies, + ServerBlobAuditingPolicies, + DatabaseBlobAuditingPolicies, + ExtendedDatabaseBlobAuditingPolicies, + ExtendedServerBlobAuditingPolicies, DataMaskingPolicies, DataMaskingRules, - GeoBackupPolicies, - Databases, - ElasticPools, - ServerCommunicationLinks, - ServiceObjectives, - ElasticPoolActivities, - ElasticPoolDatabaseActivities, - ServerUsages, + DataWarehouseUserActivitiesOperations, + DatabaseAdvancedThreatProtectionSettings, DatabaseAdvisors, DatabaseAutomaticTuningOperations, DatabaseColumns, + DatabaseEncryptionProtectors, + DatabaseExtensionsOperations, + DatabaseOperations, DatabaseRecommendedActions, DatabaseSchemas, DatabaseSecurityAlertPolicies, + DatabaseSqlVulnerabilityAssessmentBaselines, + DatabaseSqlVulnerabilityAssessmentExecuteScan, + DatabaseSqlVulnerabilityAssessmentRuleBaselines, + DatabaseSqlVulnerabilityAssessmentScanResult, + DatabaseSqlVulnerabilityAssessmentScans, + DatabaseSqlVulnerabilityAssessmentsSettings, DatabaseTables, + DatabaseUsages, DatabaseVulnerabilityAssessmentRuleBaselines, - DatabaseVulnerabilityAssessments, DatabaseVulnerabilityAssessmentScans, - DataWarehouseUserActivitiesOperations, + DatabaseVulnerabilityAssessments, + Databases, DeletedServers, + DistributedAvailabilityGroups, ElasticPoolOperations, + ElasticPools, EncryptionProtectors, + EndpointCertificates, FailoverGroups, FirewallRules, + GeoBackupPolicies, + IPv6FirewallRules, + InstanceFailoverGroups, InstancePools, JobAgents, JobCredentials, JobExecutions, - Jobs, JobStepExecutions, JobSteps, JobTargetExecutions, JobTargetGroups, JobVersions, + Jobs, + LedgerDigestUploadsOperations, Capabilities, + LongTermRetentionBackups, + LongTermRetentionManagedInstanceBackups, LongTermRetentionPolicies, MaintenanceWindowOptionsOperations, MaintenanceWindowsOperations, ManagedBackupShortTermRetentionPolicies, + ManagedDatabaseAdvancedThreatProtectionSettings, ManagedDatabaseColumns, + ManagedDatabaseMoveOperations, ManagedDatabaseQueries, + ManagedDatabaseRestoreDetails, ManagedDatabaseSchemas, ManagedDatabaseSecurityAlertPolicies, ManagedDatabaseSecurityEvents, + ManagedDatabaseSensitivityLabels, + ManagedDatabaseRecommendedSensitivityLabels, ManagedDatabaseTables, ManagedDatabaseTransparentDataEncryption, ManagedDatabaseVulnerabilityAssessmentRuleBaselines, - ManagedDatabaseVulnerabilityAssessments, ManagedDatabaseVulnerabilityAssessmentScans, + ManagedDatabaseVulnerabilityAssessments, + ManagedDatabases, ManagedInstanceAdministrators, + ManagedInstanceAdvancedThreatProtectionSettings, ManagedInstanceAzureADOnlyAuthentications, + ManagedInstanceDtcs, ManagedInstanceEncryptionProtectors, ManagedInstanceKeys, ManagedInstanceLongTermRetentionPolicies, @@ -222,69 +250,42 @@ import { ManagedInstancePrivateLinkResources, ManagedInstanceTdeCertificates, ManagedInstanceVulnerabilityAssessments, + ManagedInstances, + ManagedLedgerDigestUploadsOperations, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies, + ManagedServerDnsAliases, ManagedServerSecurityAlertPolicies, + NetworkSecurityPerimeterConfigurations, Operations, + OutboundFirewallRules, PrivateEndpointConnections, PrivateLinkResources, + RecoverableDatabases, RecoverableManagedDatabases, + ReplicationLinks, + RestorableDroppedDatabases, + RestorableDroppedManagedDatabases, RestorePoints, + SensitivityLabels, + RecommendedSensitivityLabels, + ServerAdvancedThreatProtectionSettings, ServerAdvisors, ServerAutomaticTuningOperations, ServerAzureADAdministrators, ServerAzureADOnlyAuthentications, + ServerConfigurationOptions, + ServerConnectionPolicies, ServerDevOpsAuditSettings, ServerDnsAliases, ServerKeys, ServerOperations, ServerSecurityAlertPolicies, + ServerTrustCertificates, ServerTrustGroups, + ServerUsages, ServerVulnerabilityAssessments, + Servers, SqlAgent, - SubscriptionUsages, - SyncAgents, - SyncGroups, - SyncMembers, - TdeCertificates, - TimeZones, - VirtualNetworkRules, - WorkloadClassifiers, - WorkloadGroups, - BackupShortTermRetentionPolicies, - DatabaseExtensionsOperations, - DatabaseOperations, - DatabaseUsages, - LedgerDigestUploadsOperations, - OutboundFirewallRules, - Usages, - LongTermRetentionBackups, - LongTermRetentionManagedInstanceBackups, - RestorableDroppedManagedDatabases, - ServerConnectionPolicies, - DistributedAvailabilityGroups, - ServerTrustCertificates, - IPv6FirewallRules, - EndpointCertificates, - ManagedDatabaseSensitivityLabels, - ManagedDatabaseRecommendedSensitivityLabels, - SensitivityLabels, - RecommendedSensitivityLabels, - ServerBlobAuditingPolicies, - DatabaseBlobAuditingPolicies, - ExtendedDatabaseBlobAuditingPolicies, - ExtendedServerBlobAuditingPolicies, - DatabaseAdvancedThreatProtectionSettings, - ServerAdvancedThreatProtectionSettings, - ManagedServerDnsAliases, - DatabaseSqlVulnerabilityAssessmentBaselines, - DatabaseSqlVulnerabilityAssessmentExecuteScan, - DatabaseSqlVulnerabilityAssessmentRuleBaselines, - DatabaseSqlVulnerabilityAssessmentScanResult, - DatabaseSqlVulnerabilityAssessmentScans, - DatabaseSqlVulnerabilityAssessmentsSettings, - ManagedDatabaseAdvancedThreatProtectionSettings, - ManagedInstanceAdvancedThreatProtectionSettings, - ReplicationLinks, SqlVulnerabilityAssessmentBaseline, SqlVulnerabilityAssessmentBaselines, SqlVulnerabilityAssessmentExecuteScan, @@ -294,28 +295,27 @@ import { SqlVulnerabilityAssessmentScans, SqlVulnerabilityAssessmentsSettings, SqlVulnerabilityAssessments, - ManagedDatabaseMoveOperations, - ManagedInstanceDtcs, + StartStopManagedInstanceSchedules, + SubscriptionUsages, SynapseLinkWorkspaces, + SyncAgents, + SyncGroups, + SyncMembers, + TdeCertificates, + TimeZones, + TransparentDataEncryptions, + Usages, VirtualClusters, - InstanceFailoverGroups, - ManagedDatabaseRestoreDetails, - ManagedDatabases, - DatabaseEncryptionProtectors, - ManagedInstances, - ManagedLedgerDigestUploadsOperations, - RecoverableDatabases, - RestorableDroppedDatabases, - ServerConfigurationOptions, - Servers, - StartStopManagedInstanceSchedules, - TransparentDataEncryptions -} from "./operationsInterfaces"; + VirtualNetworkRules, + WorkloadClassifiers, + WorkloadGroups +} from "./operationsInterfaces"; import { SqlManagementClientOptionalParams } from "./models"; export class SqlManagementClient extends coreClient.ServiceClient { $host: string; subscriptionId: string; + apiVersion: string; /** * Initializes a new instance of the SqlManagementClient class. @@ -344,7 +344,7 @@ export class SqlManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-sql/10.0.0`; + const packageDetails = `azsdk-js-arm-sql/11.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -397,57 +397,106 @@ export class SqlManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2022-11-01-preview"; + this.backupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesImpl( + this + ); + this.serverBlobAuditingPolicies = new ServerBlobAuditingPoliciesImpl(this); + this.databaseBlobAuditingPolicies = new DatabaseBlobAuditingPoliciesImpl( + this + ); + this.extendedDatabaseBlobAuditingPolicies = new ExtendedDatabaseBlobAuditingPoliciesImpl( + this + ); + this.extendedServerBlobAuditingPolicies = new ExtendedServerBlobAuditingPoliciesImpl( + this + ); this.dataMaskingPolicies = new DataMaskingPoliciesImpl(this); this.dataMaskingRules = new DataMaskingRulesImpl(this); - this.geoBackupPolicies = new GeoBackupPoliciesImpl(this); - this.databases = new DatabasesImpl(this); - this.elasticPools = new ElasticPoolsImpl(this); - this.serverCommunicationLinks = new ServerCommunicationLinksImpl(this); - this.serviceObjectives = new ServiceObjectivesImpl(this); - this.elasticPoolActivities = new ElasticPoolActivitiesImpl(this); - this.elasticPoolDatabaseActivities = new ElasticPoolDatabaseActivitiesImpl( + this.dataWarehouseUserActivitiesOperations = new DataWarehouseUserActivitiesOperationsImpl( + this + ); + this.databaseAdvancedThreatProtectionSettings = new DatabaseAdvancedThreatProtectionSettingsImpl( this ); - this.serverUsages = new ServerUsagesImpl(this); this.databaseAdvisors = new DatabaseAdvisorsImpl(this); this.databaseAutomaticTuningOperations = new DatabaseAutomaticTuningOperationsImpl( this ); this.databaseColumns = new DatabaseColumnsImpl(this); + this.databaseEncryptionProtectors = new DatabaseEncryptionProtectorsImpl( + this + ); + this.databaseExtensionsOperations = new DatabaseExtensionsOperationsImpl( + this + ); + this.databaseOperations = new DatabaseOperationsImpl(this); this.databaseRecommendedActions = new DatabaseRecommendedActionsImpl(this); this.databaseSchemas = new DatabaseSchemasImpl(this); this.databaseSecurityAlertPolicies = new DatabaseSecurityAlertPoliciesImpl( this ); - this.databaseTables = new DatabaseTablesImpl(this); - this.databaseVulnerabilityAssessmentRuleBaselines = new DatabaseVulnerabilityAssessmentRuleBaselinesImpl( + this.databaseSqlVulnerabilityAssessmentBaselines = new DatabaseSqlVulnerabilityAssessmentBaselinesImpl( this ); - this.databaseVulnerabilityAssessments = new DatabaseVulnerabilityAssessmentsImpl( + this.databaseSqlVulnerabilityAssessmentExecuteScan = new DatabaseSqlVulnerabilityAssessmentExecuteScanImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentRuleBaselines = new DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentScanResult = new DatabaseSqlVulnerabilityAssessmentScanResultImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentScans = new DatabaseSqlVulnerabilityAssessmentScansImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentsSettings = new DatabaseSqlVulnerabilityAssessmentsSettingsImpl( + this + ); + this.databaseTables = new DatabaseTablesImpl(this); + this.databaseUsages = new DatabaseUsagesImpl(this); + this.databaseVulnerabilityAssessmentRuleBaselines = new DatabaseVulnerabilityAssessmentRuleBaselinesImpl( this ); this.databaseVulnerabilityAssessmentScans = new DatabaseVulnerabilityAssessmentScansImpl( this ); - this.dataWarehouseUserActivitiesOperations = new DataWarehouseUserActivitiesOperationsImpl( + this.databaseVulnerabilityAssessments = new DatabaseVulnerabilityAssessmentsImpl( this ); + this.databases = new DatabasesImpl(this); this.deletedServers = new DeletedServersImpl(this); + this.distributedAvailabilityGroups = new DistributedAvailabilityGroupsImpl( + this + ); this.elasticPoolOperations = new ElasticPoolOperationsImpl(this); + this.elasticPools = new ElasticPoolsImpl(this); this.encryptionProtectors = new EncryptionProtectorsImpl(this); + this.endpointCertificates = new EndpointCertificatesImpl(this); this.failoverGroups = new FailoverGroupsImpl(this); this.firewallRules = new FirewallRulesImpl(this); + this.geoBackupPolicies = new GeoBackupPoliciesImpl(this); + this.iPv6FirewallRules = new IPv6FirewallRulesImpl(this); + this.instanceFailoverGroups = new InstanceFailoverGroupsImpl(this); this.instancePools = new InstancePoolsImpl(this); this.jobAgents = new JobAgentsImpl(this); this.jobCredentials = new JobCredentialsImpl(this); this.jobExecutions = new JobExecutionsImpl(this); - this.jobs = new JobsImpl(this); this.jobStepExecutions = new JobStepExecutionsImpl(this); this.jobSteps = new JobStepsImpl(this); this.jobTargetExecutions = new JobTargetExecutionsImpl(this); this.jobTargetGroups = new JobTargetGroupsImpl(this); this.jobVersions = new JobVersionsImpl(this); + this.jobs = new JobsImpl(this); + this.ledgerDigestUploadsOperations = new LedgerDigestUploadsOperationsImpl( + this + ); this.capabilities = new CapabilitiesImpl(this); + this.longTermRetentionBackups = new LongTermRetentionBackupsImpl(this); + this.longTermRetentionManagedInstanceBackups = new LongTermRetentionManagedInstanceBackupsImpl( + this + ); this.longTermRetentionPolicies = new LongTermRetentionPoliciesImpl(this); this.maintenanceWindowOptionsOperations = new MaintenanceWindowOptionsOperationsImpl( this @@ -458,8 +507,17 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedBackupShortTermRetentionPolicies = new ManagedBackupShortTermRetentionPoliciesImpl( this ); + this.managedDatabaseAdvancedThreatProtectionSettings = new ManagedDatabaseAdvancedThreatProtectionSettingsImpl( + this + ); this.managedDatabaseColumns = new ManagedDatabaseColumnsImpl(this); + this.managedDatabaseMoveOperations = new ManagedDatabaseMoveOperationsImpl( + this + ); this.managedDatabaseQueries = new ManagedDatabaseQueriesImpl(this); + this.managedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsImpl( + this + ); this.managedDatabaseSchemas = new ManagedDatabaseSchemasImpl(this); this.managedDatabaseSecurityAlertPolicies = new ManagedDatabaseSecurityAlertPoliciesImpl( this @@ -467,6 +525,12 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedDatabaseSecurityEvents = new ManagedDatabaseSecurityEventsImpl( this ); + this.managedDatabaseSensitivityLabels = new ManagedDatabaseSensitivityLabelsImpl( + this + ); + this.managedDatabaseRecommendedSensitivityLabels = new ManagedDatabaseRecommendedSensitivityLabelsImpl( + this + ); this.managedDatabaseTables = new ManagedDatabaseTablesImpl(this); this.managedDatabaseTransparentDataEncryption = new ManagedDatabaseTransparentDataEncryptionImpl( this @@ -474,18 +538,23 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedDatabaseVulnerabilityAssessmentRuleBaselines = new ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl( this ); - this.managedDatabaseVulnerabilityAssessments = new ManagedDatabaseVulnerabilityAssessmentsImpl( + this.managedDatabaseVulnerabilityAssessmentScans = new ManagedDatabaseVulnerabilityAssessmentScansImpl( this ); - this.managedDatabaseVulnerabilityAssessmentScans = new ManagedDatabaseVulnerabilityAssessmentScansImpl( + this.managedDatabaseVulnerabilityAssessments = new ManagedDatabaseVulnerabilityAssessmentsImpl( this ); + this.managedDatabases = new ManagedDatabasesImpl(this); this.managedInstanceAdministrators = new ManagedInstanceAdministratorsImpl( this ); + this.managedInstanceAdvancedThreatProtectionSettings = new ManagedInstanceAdvancedThreatProtectionSettingsImpl( + this + ); this.managedInstanceAzureADOnlyAuthentications = new ManagedInstanceAzureADOnlyAuthenticationsImpl( this ); + this.managedInstanceDtcs = new ManagedInstanceDtcsImpl(this); this.managedInstanceEncryptionProtectors = new ManagedInstanceEncryptionProtectorsImpl( this ); @@ -506,19 +575,41 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedInstanceVulnerabilityAssessments = new ManagedInstanceVulnerabilityAssessmentsImpl( this ); + this.managedInstances = new ManagedInstancesImpl(this); + this.managedLedgerDigestUploadsOperations = new ManagedLedgerDigestUploadsOperationsImpl( + this + ); this.managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies = new ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImpl( this ); + this.managedServerDnsAliases = new ManagedServerDnsAliasesImpl(this); this.managedServerSecurityAlertPolicies = new ManagedServerSecurityAlertPoliciesImpl( this ); + this.networkSecurityPerimeterConfigurations = new NetworkSecurityPerimeterConfigurationsImpl( + this + ); this.operations = new OperationsImpl(this); + this.outboundFirewallRules = new OutboundFirewallRulesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.recoverableDatabases = new RecoverableDatabasesImpl(this); this.recoverableManagedDatabases = new RecoverableManagedDatabasesImpl( this ); + this.replicationLinks = new ReplicationLinksImpl(this); + this.restorableDroppedDatabases = new RestorableDroppedDatabasesImpl(this); + this.restorableDroppedManagedDatabases = new RestorableDroppedManagedDatabasesImpl( + this + ); this.restorePoints = new RestorePointsImpl(this); + this.sensitivityLabels = new SensitivityLabelsImpl(this); + this.recommendedSensitivityLabels = new RecommendedSensitivityLabelsImpl( + this + ); + this.serverAdvancedThreatProtectionSettings = new ServerAdvancedThreatProtectionSettingsImpl( + this + ); this.serverAdvisors = new ServerAdvisorsImpl(this); this.serverAutomaticTuningOperations = new ServerAutomaticTuningOperationsImpl( this @@ -529,6 +620,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.serverAzureADOnlyAuthentications = new ServerAzureADOnlyAuthenticationsImpl( this ); + this.serverConfigurationOptions = new ServerConfigurationOptionsImpl(this); + this.serverConnectionPolicies = new ServerConnectionPoliciesImpl(this); this.serverDevOpsAuditSettings = new ServerDevOpsAuditSettingsImpl(this); this.serverDnsAliases = new ServerDnsAliasesImpl(this); this.serverKeys = new ServerKeysImpl(this); @@ -536,99 +629,14 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.serverSecurityAlertPolicies = new ServerSecurityAlertPoliciesImpl( this ); + this.serverTrustCertificates = new ServerTrustCertificatesImpl(this); this.serverTrustGroups = new ServerTrustGroupsImpl(this); + this.serverUsages = new ServerUsagesImpl(this); this.serverVulnerabilityAssessments = new ServerVulnerabilityAssessmentsImpl( this ); + this.servers = new ServersImpl(this); this.sqlAgent = new SqlAgentImpl(this); - this.subscriptionUsages = new SubscriptionUsagesImpl(this); - this.syncAgents = new SyncAgentsImpl(this); - this.syncGroups = new SyncGroupsImpl(this); - this.syncMembers = new SyncMembersImpl(this); - this.tdeCertificates = new TdeCertificatesImpl(this); - this.timeZones = new TimeZonesImpl(this); - this.virtualNetworkRules = new VirtualNetworkRulesImpl(this); - this.workloadClassifiers = new WorkloadClassifiersImpl(this); - this.workloadGroups = new WorkloadGroupsImpl(this); - this.backupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesImpl( - this - ); - this.databaseExtensionsOperations = new DatabaseExtensionsOperationsImpl( - this - ); - this.databaseOperations = new DatabaseOperationsImpl(this); - this.databaseUsages = new DatabaseUsagesImpl(this); - this.ledgerDigestUploadsOperations = new LedgerDigestUploadsOperationsImpl( - this - ); - this.outboundFirewallRules = new OutboundFirewallRulesImpl(this); - this.usages = new UsagesImpl(this); - this.longTermRetentionBackups = new LongTermRetentionBackupsImpl(this); - this.longTermRetentionManagedInstanceBackups = new LongTermRetentionManagedInstanceBackupsImpl( - this - ); - this.restorableDroppedManagedDatabases = new RestorableDroppedManagedDatabasesImpl( - this - ); - this.serverConnectionPolicies = new ServerConnectionPoliciesImpl(this); - this.distributedAvailabilityGroups = new DistributedAvailabilityGroupsImpl( - this - ); - this.serverTrustCertificates = new ServerTrustCertificatesImpl(this); - this.iPv6FirewallRules = new IPv6FirewallRulesImpl(this); - this.endpointCertificates = new EndpointCertificatesImpl(this); - this.managedDatabaseSensitivityLabels = new ManagedDatabaseSensitivityLabelsImpl( - this - ); - this.managedDatabaseRecommendedSensitivityLabels = new ManagedDatabaseRecommendedSensitivityLabelsImpl( - this - ); - this.sensitivityLabels = new SensitivityLabelsImpl(this); - this.recommendedSensitivityLabels = new RecommendedSensitivityLabelsImpl( - this - ); - this.serverBlobAuditingPolicies = new ServerBlobAuditingPoliciesImpl(this); - this.databaseBlobAuditingPolicies = new DatabaseBlobAuditingPoliciesImpl( - this - ); - this.extendedDatabaseBlobAuditingPolicies = new ExtendedDatabaseBlobAuditingPoliciesImpl( - this - ); - this.extendedServerBlobAuditingPolicies = new ExtendedServerBlobAuditingPoliciesImpl( - this - ); - this.databaseAdvancedThreatProtectionSettings = new DatabaseAdvancedThreatProtectionSettingsImpl( - this - ); - this.serverAdvancedThreatProtectionSettings = new ServerAdvancedThreatProtectionSettingsImpl( - this - ); - this.managedServerDnsAliases = new ManagedServerDnsAliasesImpl(this); - this.databaseSqlVulnerabilityAssessmentBaselines = new DatabaseSqlVulnerabilityAssessmentBaselinesImpl( - this - ); - this.databaseSqlVulnerabilityAssessmentExecuteScan = new DatabaseSqlVulnerabilityAssessmentExecuteScanImpl( - this - ); - this.databaseSqlVulnerabilityAssessmentRuleBaselines = new DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl( - this - ); - this.databaseSqlVulnerabilityAssessmentScanResult = new DatabaseSqlVulnerabilityAssessmentScanResultImpl( - this - ); - this.databaseSqlVulnerabilityAssessmentScans = new DatabaseSqlVulnerabilityAssessmentScansImpl( - this - ); - this.databaseSqlVulnerabilityAssessmentsSettings = new DatabaseSqlVulnerabilityAssessmentsSettingsImpl( - this - ); - this.managedDatabaseAdvancedThreatProtectionSettings = new ManagedDatabaseAdvancedThreatProtectionSettingsImpl( - this - ); - this.managedInstanceAdvancedThreatProtectionSettings = new ManagedInstanceAdvancedThreatProtectionSettingsImpl( - this - ); - this.replicationLinks = new ReplicationLinksImpl(this); this.sqlVulnerabilityAssessmentBaseline = new SqlVulnerabilityAssessmentBaselineImpl( this ); @@ -656,87 +664,132 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.sqlVulnerabilityAssessments = new SqlVulnerabilityAssessmentsImpl( this ); - this.managedDatabaseMoveOperations = new ManagedDatabaseMoveOperationsImpl( - this - ); - this.managedInstanceDtcs = new ManagedInstanceDtcsImpl(this); - this.synapseLinkWorkspaces = new SynapseLinkWorkspacesImpl(this); - this.virtualClusters = new VirtualClustersImpl(this); - this.instanceFailoverGroups = new InstanceFailoverGroupsImpl(this); - this.managedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsImpl( - this - ); - this.managedDatabases = new ManagedDatabasesImpl(this); - this.databaseEncryptionProtectors = new DatabaseEncryptionProtectorsImpl( - this - ); - this.managedInstances = new ManagedInstancesImpl(this); - this.managedLedgerDigestUploadsOperations = new ManagedLedgerDigestUploadsOperationsImpl( - this - ); - this.recoverableDatabases = new RecoverableDatabasesImpl(this); - this.restorableDroppedDatabases = new RestorableDroppedDatabasesImpl(this); - this.serverConfigurationOptions = new ServerConfigurationOptionsImpl(this); - this.servers = new ServersImpl(this); this.startStopManagedInstanceSchedules = new StartStopManagedInstanceSchedulesImpl( this ); + this.subscriptionUsages = new SubscriptionUsagesImpl(this); + this.synapseLinkWorkspaces = new SynapseLinkWorkspacesImpl(this); + this.syncAgents = new SyncAgentsImpl(this); + this.syncGroups = new SyncGroupsImpl(this); + this.syncMembers = new SyncMembersImpl(this); + this.tdeCertificates = new TdeCertificatesImpl(this); + this.timeZones = new TimeZonesImpl(this); this.transparentDataEncryptions = new TransparentDataEncryptionsImpl(this); + this.usages = new UsagesImpl(this); + this.virtualClusters = new VirtualClustersImpl(this); + this.virtualNetworkRules = new VirtualNetworkRulesImpl(this); + this.workloadClassifiers = new WorkloadClassifiersImpl(this); + this.workloadGroups = new WorkloadGroupsImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); } + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); + } + + backupShortTermRetentionPolicies: BackupShortTermRetentionPolicies; + serverBlobAuditingPolicies: ServerBlobAuditingPolicies; + databaseBlobAuditingPolicies: DatabaseBlobAuditingPolicies; + extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; + extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; dataMaskingPolicies: DataMaskingPolicies; dataMaskingRules: DataMaskingRules; - geoBackupPolicies: GeoBackupPolicies; - databases: Databases; - elasticPools: ElasticPools; - serverCommunicationLinks: ServerCommunicationLinks; - serviceObjectives: ServiceObjectives; - elasticPoolActivities: ElasticPoolActivities; - elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; - serverUsages: ServerUsages; + dataWarehouseUserActivitiesOperations: DataWarehouseUserActivitiesOperations; + databaseAdvancedThreatProtectionSettings: DatabaseAdvancedThreatProtectionSettings; databaseAdvisors: DatabaseAdvisors; databaseAutomaticTuningOperations: DatabaseAutomaticTuningOperations; databaseColumns: DatabaseColumns; + databaseEncryptionProtectors: DatabaseEncryptionProtectors; + databaseExtensionsOperations: DatabaseExtensionsOperations; + databaseOperations: DatabaseOperations; databaseRecommendedActions: DatabaseRecommendedActions; databaseSchemas: DatabaseSchemas; databaseSecurityAlertPolicies: DatabaseSecurityAlertPolicies; + databaseSqlVulnerabilityAssessmentBaselines: DatabaseSqlVulnerabilityAssessmentBaselines; + databaseSqlVulnerabilityAssessmentExecuteScan: DatabaseSqlVulnerabilityAssessmentExecuteScan; + databaseSqlVulnerabilityAssessmentRuleBaselines: DatabaseSqlVulnerabilityAssessmentRuleBaselines; + databaseSqlVulnerabilityAssessmentScanResult: DatabaseSqlVulnerabilityAssessmentScanResult; + databaseSqlVulnerabilityAssessmentScans: DatabaseSqlVulnerabilityAssessmentScans; + databaseSqlVulnerabilityAssessmentsSettings: DatabaseSqlVulnerabilityAssessmentsSettings; databaseTables: DatabaseTables; + databaseUsages: DatabaseUsages; databaseVulnerabilityAssessmentRuleBaselines: DatabaseVulnerabilityAssessmentRuleBaselines; - databaseVulnerabilityAssessments: DatabaseVulnerabilityAssessments; databaseVulnerabilityAssessmentScans: DatabaseVulnerabilityAssessmentScans; - dataWarehouseUserActivitiesOperations: DataWarehouseUserActivitiesOperations; + databaseVulnerabilityAssessments: DatabaseVulnerabilityAssessments; + databases: Databases; deletedServers: DeletedServers; + distributedAvailabilityGroups: DistributedAvailabilityGroups; elasticPoolOperations: ElasticPoolOperations; + elasticPools: ElasticPools; encryptionProtectors: EncryptionProtectors; + endpointCertificates: EndpointCertificates; failoverGroups: FailoverGroups; firewallRules: FirewallRules; + geoBackupPolicies: GeoBackupPolicies; + iPv6FirewallRules: IPv6FirewallRules; + instanceFailoverGroups: InstanceFailoverGroups; instancePools: InstancePools; jobAgents: JobAgents; jobCredentials: JobCredentials; jobExecutions: JobExecutions; - jobs: Jobs; jobStepExecutions: JobStepExecutions; jobSteps: JobSteps; jobTargetExecutions: JobTargetExecutions; jobTargetGroups: JobTargetGroups; jobVersions: JobVersions; + jobs: Jobs; + ledgerDigestUploadsOperations: LedgerDigestUploadsOperations; capabilities: Capabilities; + longTermRetentionBackups: LongTermRetentionBackups; + longTermRetentionManagedInstanceBackups: LongTermRetentionManagedInstanceBackups; longTermRetentionPolicies: LongTermRetentionPolicies; maintenanceWindowOptionsOperations: MaintenanceWindowOptionsOperations; maintenanceWindowsOperations: MaintenanceWindowsOperations; managedBackupShortTermRetentionPolicies: ManagedBackupShortTermRetentionPolicies; + managedDatabaseAdvancedThreatProtectionSettings: ManagedDatabaseAdvancedThreatProtectionSettings; managedDatabaseColumns: ManagedDatabaseColumns; + managedDatabaseMoveOperations: ManagedDatabaseMoveOperations; managedDatabaseQueries: ManagedDatabaseQueries; + managedDatabaseRestoreDetails: ManagedDatabaseRestoreDetails; managedDatabaseSchemas: ManagedDatabaseSchemas; managedDatabaseSecurityAlertPolicies: ManagedDatabaseSecurityAlertPolicies; managedDatabaseSecurityEvents: ManagedDatabaseSecurityEvents; + managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; + managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; managedDatabaseTables: ManagedDatabaseTables; managedDatabaseTransparentDataEncryption: ManagedDatabaseTransparentDataEncryption; managedDatabaseVulnerabilityAssessmentRuleBaselines: ManagedDatabaseVulnerabilityAssessmentRuleBaselines; - managedDatabaseVulnerabilityAssessments: ManagedDatabaseVulnerabilityAssessments; managedDatabaseVulnerabilityAssessmentScans: ManagedDatabaseVulnerabilityAssessmentScans; + managedDatabaseVulnerabilityAssessments: ManagedDatabaseVulnerabilityAssessments; + managedDatabases: ManagedDatabases; managedInstanceAdministrators: ManagedInstanceAdministrators; + managedInstanceAdvancedThreatProtectionSettings: ManagedInstanceAdvancedThreatProtectionSettings; managedInstanceAzureADOnlyAuthentications: ManagedInstanceAzureADOnlyAuthentications; + managedInstanceDtcs: ManagedInstanceDtcs; managedInstanceEncryptionProtectors: ManagedInstanceEncryptionProtectors; managedInstanceKeys: ManagedInstanceKeys; managedInstanceLongTermRetentionPolicies: ManagedInstanceLongTermRetentionPolicies; @@ -745,69 +798,42 @@ export class SqlManagementClient extends coreClient.ServiceClient { managedInstancePrivateLinkResources: ManagedInstancePrivateLinkResources; managedInstanceTdeCertificates: ManagedInstanceTdeCertificates; managedInstanceVulnerabilityAssessments: ManagedInstanceVulnerabilityAssessments; + managedInstances: ManagedInstances; + managedLedgerDigestUploadsOperations: ManagedLedgerDigestUploadsOperations; managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies; + managedServerDnsAliases: ManagedServerDnsAliases; managedServerSecurityAlertPolicies: ManagedServerSecurityAlertPolicies; + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; operations: Operations; + outboundFirewallRules: OutboundFirewallRules; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; + recoverableDatabases: RecoverableDatabases; recoverableManagedDatabases: RecoverableManagedDatabases; + replicationLinks: ReplicationLinks; + restorableDroppedDatabases: RestorableDroppedDatabases; + restorableDroppedManagedDatabases: RestorableDroppedManagedDatabases; restorePoints: RestorePoints; + sensitivityLabels: SensitivityLabels; + recommendedSensitivityLabels: RecommendedSensitivityLabels; + serverAdvancedThreatProtectionSettings: ServerAdvancedThreatProtectionSettings; serverAdvisors: ServerAdvisors; serverAutomaticTuningOperations: ServerAutomaticTuningOperations; serverAzureADAdministrators: ServerAzureADAdministrators; serverAzureADOnlyAuthentications: ServerAzureADOnlyAuthentications; + serverConfigurationOptions: ServerConfigurationOptions; + serverConnectionPolicies: ServerConnectionPolicies; serverDevOpsAuditSettings: ServerDevOpsAuditSettings; serverDnsAliases: ServerDnsAliases; serverKeys: ServerKeys; serverOperations: ServerOperations; serverSecurityAlertPolicies: ServerSecurityAlertPolicies; + serverTrustCertificates: ServerTrustCertificates; serverTrustGroups: ServerTrustGroups; + serverUsages: ServerUsages; serverVulnerabilityAssessments: ServerVulnerabilityAssessments; + servers: Servers; sqlAgent: SqlAgent; - subscriptionUsages: SubscriptionUsages; - syncAgents: SyncAgents; - syncGroups: SyncGroups; - syncMembers: SyncMembers; - tdeCertificates: TdeCertificates; - timeZones: TimeZones; - virtualNetworkRules: VirtualNetworkRules; - workloadClassifiers: WorkloadClassifiers; - workloadGroups: WorkloadGroups; - backupShortTermRetentionPolicies: BackupShortTermRetentionPolicies; - databaseExtensionsOperations: DatabaseExtensionsOperations; - databaseOperations: DatabaseOperations; - databaseUsages: DatabaseUsages; - ledgerDigestUploadsOperations: LedgerDigestUploadsOperations; - outboundFirewallRules: OutboundFirewallRules; - usages: Usages; - longTermRetentionBackups: LongTermRetentionBackups; - longTermRetentionManagedInstanceBackups: LongTermRetentionManagedInstanceBackups; - restorableDroppedManagedDatabases: RestorableDroppedManagedDatabases; - serverConnectionPolicies: ServerConnectionPolicies; - distributedAvailabilityGroups: DistributedAvailabilityGroups; - serverTrustCertificates: ServerTrustCertificates; - iPv6FirewallRules: IPv6FirewallRules; - endpointCertificates: EndpointCertificates; - managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; - managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; - sensitivityLabels: SensitivityLabels; - recommendedSensitivityLabels: RecommendedSensitivityLabels; - serverBlobAuditingPolicies: ServerBlobAuditingPolicies; - databaseBlobAuditingPolicies: DatabaseBlobAuditingPolicies; - extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; - extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; - databaseAdvancedThreatProtectionSettings: DatabaseAdvancedThreatProtectionSettings; - serverAdvancedThreatProtectionSettings: ServerAdvancedThreatProtectionSettings; - managedServerDnsAliases: ManagedServerDnsAliases; - databaseSqlVulnerabilityAssessmentBaselines: DatabaseSqlVulnerabilityAssessmentBaselines; - databaseSqlVulnerabilityAssessmentExecuteScan: DatabaseSqlVulnerabilityAssessmentExecuteScan; - databaseSqlVulnerabilityAssessmentRuleBaselines: DatabaseSqlVulnerabilityAssessmentRuleBaselines; - databaseSqlVulnerabilityAssessmentScanResult: DatabaseSqlVulnerabilityAssessmentScanResult; - databaseSqlVulnerabilityAssessmentScans: DatabaseSqlVulnerabilityAssessmentScans; - databaseSqlVulnerabilityAssessmentsSettings: DatabaseSqlVulnerabilityAssessmentsSettings; - managedDatabaseAdvancedThreatProtectionSettings: ManagedDatabaseAdvancedThreatProtectionSettings; - managedInstanceAdvancedThreatProtectionSettings: ManagedInstanceAdvancedThreatProtectionSettings; - replicationLinks: ReplicationLinks; sqlVulnerabilityAssessmentBaseline: SqlVulnerabilityAssessmentBaseline; sqlVulnerabilityAssessmentBaselines: SqlVulnerabilityAssessmentBaselines; sqlVulnerabilityAssessmentExecuteScan: SqlVulnerabilityAssessmentExecuteScan; @@ -817,20 +843,18 @@ export class SqlManagementClient extends coreClient.ServiceClient { sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; sqlVulnerabilityAssessmentsSettings: SqlVulnerabilityAssessmentsSettings; sqlVulnerabilityAssessments: SqlVulnerabilityAssessments; - managedDatabaseMoveOperations: ManagedDatabaseMoveOperations; - managedInstanceDtcs: ManagedInstanceDtcs; - synapseLinkWorkspaces: SynapseLinkWorkspaces; - virtualClusters: VirtualClusters; - instanceFailoverGroups: InstanceFailoverGroups; - managedDatabaseRestoreDetails: ManagedDatabaseRestoreDetails; - managedDatabases: ManagedDatabases; - databaseEncryptionProtectors: DatabaseEncryptionProtectors; - managedInstances: ManagedInstances; - managedLedgerDigestUploadsOperations: ManagedLedgerDigestUploadsOperations; - recoverableDatabases: RecoverableDatabases; - restorableDroppedDatabases: RestorableDroppedDatabases; - serverConfigurationOptions: ServerConfigurationOptions; - servers: Servers; startStopManagedInstanceSchedules: StartStopManagedInstanceSchedules; + subscriptionUsages: SubscriptionUsages; + synapseLinkWorkspaces: SynapseLinkWorkspaces; + syncAgents: SyncAgents; + syncGroups: SyncGroups; + syncMembers: SyncMembers; + tdeCertificates: TdeCertificates; + timeZones: TimeZones; transparentDataEncryptions: TransparentDataEncryptions; + usages: Usages; + virtualClusters: VirtualClusters; + virtualNetworkRules: VirtualNetworkRules; + workloadClassifiers: WorkloadClassifiers; + workloadGroups: WorkloadGroups; } diff --git a/sdk/sql/arm-sql/test/sampleTest.ts b/sdk/sql/arm-sql/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/sql/arm-sql/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/sql/arm-sql/tsconfig.json b/sdk/sql/arm-sql/tsconfig.json index c6da67f236cf..3e6ae96443f3 100644 --- a/sdk/sql/arm-sql/tsconfig.json +++ b/sdk/sql/arm-sql/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-sql": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"